diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 00000000..7d9f992d --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,4 @@ +# Team: Integrations & Extensibility +# Slack: #eng-integrations-and-extensibility + +* @flipdishbytes/integrations-extensibility diff --git a/Flipdish.sln b/Flipdish.sln new file mode 100644 index 00000000..f3b484ad --- /dev/null +++ b/Flipdish.sln @@ -0,0 +1,25 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Flipdish", "src\Flipdish\Flipdish.csproj", "{4BF29234-5C39-4B57-9AB7-A80BB4210A51}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4BF29234-5C39-4B57-9AB7-A80BB4210A51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4BF29234-5C39-4B57-9AB7-A80BB4210A51}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4BF29234-5C39-4B57-9AB7-A80BB4210A51}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4BF29234-5C39-4B57-9AB7-A80BB4210A51}.Release|Any CPU.Build.0 = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/README.md b/README.md index b031ec46..b7a3495b 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var signupStepAction = signupStepAction_example; // string | Signup step action - var answerId = 56; // int? | Identifier of the answer + var signupStepAction = signupStepAction_example; // string | + var answerId = 56; // int? | try { - // Answer a signup question apiInstance.AnswerSignUpQuestion(signupStepAction, answerId); } catch (Exception e) @@ -77,94 +76,109 @@ All URIs are relative to *https://api.flipdish.co* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AccountsApi* | [**AnswerSignUpQuestion**](docs/AccountsApi.md#answersignupquestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | Answer a signup question -*AccountsApi* | [**ChangePassword**](docs/AccountsApi.md#changepassword) | **PUT** /api/v1.0/accounts/password | Change password -*AccountsApi* | [**ChangePasswordWithPin**](docs/AccountsApi.md#changepasswordwithpin) | **PUT** /api/v1.0/accounts/password/pin | Change password -*AccountsApi* | [**CreateAccount**](docs/AccountsApi.md#createaccount) | **POST** /api/v1.0/accounts | Create account with email address and store name -*AccountsApi* | [**GetAccountDetails**](docs/AccountsApi.md#getaccountdetails) | **GET** /api/v1.0/accounts | Gets the current account detail -*AccountsApi* | [**GetLocalisedTimeZones**](docs/AccountsApi.md#getlocalisedtimezones) | **GET** /api/v1.0/accounts/timezones | [PRIVATE API] Get timezones localised to users language -*AccountsApi* | [**Login**](docs/AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | Login with username and password -*AccountsApi* | [**LoginWithPin**](docs/AccountsApi.md#loginwithpin) | **POST** /api/v1.0/accounts/login/pin | Login with username and password -*AccountsApi* | [**Logout**](docs/AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | Log out. It removes Flipdish authorization Cookie. -*AccountsApi* | [**PasswordResetWithToken**](docs/AccountsApi.md#passwordresetwithtoken) | **POST** /api/v1.0/accounts/password | Reset password with token. -*AccountsApi* | [**RequestLoginPin**](docs/AccountsApi.md#requestloginpin) | **POST** /api/v1.0/accounts/pin | Request login PIN. The server sends the PIN to the email address. -*AccountsApi* | [**RequestPasswordReset**](docs/AccountsApi.md#requestpasswordreset) | **POST** /api/v1.0/accounts/passwordreset | Request password reset. Flipdish system will send a token via email. -*AccountsApi* | [**SendPinForPasswordReset**](docs/AccountsApi.md#sendpinforpasswordreset) | **POST** /api/v1.0/accounts/password/resetpin | Request Password Reset PIN. The server sends the PIN to the email address. -*AccountsApi* | [**SkipSignupStep**](docs/AccountsApi.md#skipsignupstep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | Skip a signup question -*AccountsApi* | [**UpdateAccount**](docs/AccountsApi.md#updateaccount) | **PUT** /api/v1.0/accounts | Update account with name and language -*AddressApi* | [**FormByApp**](docs/AddressApi.md#formbyapp) | **GET** /api/v1.0/app/{appId}/address/form | Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. -*AddressApi* | [**FormByCountry**](docs/AddressApi.md#formbycountry) | **GET** /api/v1.0/address/country/{countryCode}/form | Provides a dyamic form definition for the given country code, with labels localized using the provided language. -*AddressApi* | [**FormatGoogleAddress**](docs/AddressApi.md#formatgoogleaddress) | **POST** /api/v1.0/address/google | Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. -*AddressApi* | [**GetCountries**](docs/AddressApi.md#getcountries) | **GET** /api/v1.0/address/countries | Retuns a list of localised countries -*ApmApi* | [**GetApmStatus**](docs/ApmApi.md#getapmstatus) | **GET** /api/v1.0/{appId}/apm/status | [PRIVATE API] Returns true if APM is enabled on at least one store in an application -*ApmApi* | [**GetBasicStatistics**](docs/ApmApi.md#getbasicstatistics) | **GET** /api/v1.0/{appId}/apm/statistics | [PRIVATE API] Get Basic Statistics -*ApmApi* | [**GetCalendarWeekStatistics**](docs/ApmApi.md#getcalendarweekstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | [PRIVATE API] Get Calendar statistics -*ApmApi* | [**GetCallsStatistics**](docs/ApmApi.md#getcallsstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | [PRIVATE API] Get Calls Statistics -*ApmApi* | [**GetOrderStatistics**](docs/ApmApi.md#getorderstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | [PRIVATE API] Get Order Statistics (Value of Orders) -*ApmApi* | [**GetPaginatedCallList**](docs/ApmApi.md#getpaginatedcalllist) | **GET** /api/v1.0/{appId}/apm/calls | [PRIVATE API] Get paginated APM call list -*AppStoreApi* | [**GetAppStoreApp**](docs/AppStoreApi.md#getappstoreapp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | Get App store app -*AppStoreApi* | [**GetAppStoreApps**](docs/AppStoreApi.md#getappstoreapps) | **GET** /api/v1.0/appstore/apps | Get list of App store app summaries -*AppStoreConfigurationsApi* | [**CreateAppStoreConfig**](docs/AppStoreConfigurationsApi.md#createappstoreconfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | Create App store app configuration -*AppStoreConfigurationsApi* | [**DeleteAppStoreConfig**](docs/AppStoreConfigurationsApi.md#deleteappstoreconfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Delete App store app configuration -*AppStoreConfigurationsApi* | [**GetAppStoreConfig**](docs/AppStoreConfigurationsApi.md#getappstoreconfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Get App store app configuration -*AppStoreConfigurationsApi* | [**GetConfiguredAppSingleApp**](docs/AppStoreConfigurationsApi.md#getconfiguredappsingleapp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | Get list of App store app configurations for one App store app -*AppStoreConfigurationsApi* | [**GetConfiguredApps**](docs/AppStoreConfigurationsApi.md#getconfiguredapps) | **GET** /api/v1.0/{appId}/appstore/apps | Get list of App store apps which have been configured -*AppStoreConfigurationsApi* | [**UpdateAppStoreConfig**](docs/AppStoreConfigurationsApi.md#updateappstoreconfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Update App store app configuration -*AppStoreDeveloperApi* | [**AppVerificationUpdate**](docs/AppStoreDeveloperApi.md#appverificationupdate) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification | Update App store app verification -*AppStoreDeveloperApi* | [**CreateAppStoreApp**](docs/AppStoreDeveloperApi.md#createappstoreapp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | Create App store app -*AppStoreDeveloperApi* | [**DeleteAppStoreApp**](docs/AppStoreDeveloperApi.md#deleteappstoreapp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | Delete App store app -*AppStoreDeveloperApi* | [**UpdateAppStoreApp**](docs/AppStoreDeveloperApi.md#updateappstoreapp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | Update App store app -*AppStoreDeveloperApi* | [**UploadAppStoreAppLogo**](docs/AppStoreDeveloperApi.md#uploadappstoreapplogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | Upload the App store app logo \\ icon -*AppsApi* | [**GetApp**](docs/AppsApi.md#getapp) | **GET** /api/v1.0/apps/{appId} | Get the application configuration -*AppsApi* | [**GetAppHostnameStatus**](docs/AppsApi.md#getapphostnamestatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | Get the application hostname DNS delegation states for A and CNAME records. -*AppsApi* | [**GetApps**](docs/AppsApi.md#getapps) | **GET** /api/v1.0/apps | Get Apps -*AppsApi* | [**GetCompliance**](docs/AppsApi.md#getcompliance) | **GET** /api/v1.0/apps/{appId}/compliance | Get the application compliance configuration -*AppsApi* | [**GetPanaceaVanityUrl**](docs/AppsApi.md#getpanaceavanityurl) | **GET** /api/v1.0/apps/{appId}/panacea/url | Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] -*AppsApi* | [**GetSupportedCountries**](docs/AppsApi.md#getsupportedcountries) | **GET** /api/v1.0/apps/supportedcountries | Get all supported countries. -*AppsApi* | [**IsPanaceaVanityUrlAvailable**](docs/AppsApi.md#ispanaceavanityurlavailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | Is panacea vanity url available -*AppsApi* | [**SetAppConfig**](docs/AppsApi.md#setappconfig) | **POST** /api/v1.0/apps/{appId}/config | Set the application configuration -*AppsApi* | [**SetAppHostname**](docs/AppsApi.md#setapphostname) | **POST** /api/v1.0/apps/{appId}/hostname | Set the application hostname. -*AppsApi* | [**SetAppLanguages**](docs/AppsApi.md#setapplanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | Set the application languages -*AppsApi* | [**SetCompliance**](docs/AppsApi.md#setcompliance) | **POST** /api/v1.0/apps/{appId}/compliance | Set the application compliance configuration -*AppsApi* | [**SetPanaceaVanityUrl**](docs/AppsApi.md#setpanaceavanityurl) | **POST** /api/v1.0/apps/{appId}/panacea/url | Set panacea vanity url -*AppsApi* | [**UploadAppLogo**](docs/AppsApi.md#uploadapplogo) | **POST** /api/v1.0/apps/{appId}/logo | Set the application logo \\ icon -*AuditLogsApi* | [**AddOrderAuditLog**](docs/AuditLogsApi.md#addorderauditlog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | Create an order audit log event -*AuditLogsApi* | [**AddStoreAuditLogEvent**](docs/AuditLogsApi.md#addstoreauditlogevent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | Create a store audit log event -*AuthorizationTokensApi* | [**GetAuthorizationTokens**](docs/AuthorizationTokensApi.md#getauthorizationtokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | Get authorization tokens -*AuthorizationTokensApi* | [**RevokeToken**](docs/AuthorizationTokensApi.md#revoketoken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | Revoke token -*BankAccountApi* | [**AttachBankAccountToStore**](docs/BankAccountApi.md#attachbankaccounttostore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | [PRIVATE API] Attach Bank Account to Store -*BankAccountApi* | [**CreateBankAccount**](docs/BankAccountApi.md#createbankaccount) | **POST** /api/v1.0/{appId}/bankaccounts | Create a new Bank Account and attach to this App -*BankAccountApi* | [**DeleteBankAccount**](docs/BankAccountApi.md#deletebankaccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Delete BankAccount -*BankAccountApi* | [**GetBankAccountById**](docs/BankAccountApi.md#getbankaccountbyid) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Get BankAccount Detail by Id -*BankAccountApi* | [**GetBankAccounts**](docs/BankAccountApi.md#getbankaccounts) | **GET** /api/v1.0/{appId}/bankaccounts | Get List of BankAccounts for WL -*BankAccountApi* | [**GetCountriesWithFieldDefinitions**](docs/BankAccountApi.md#getcountrieswithfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | Get bank account fields definitions -*BankAccountApi* | [**GetFieldDefinitions**](docs/BankAccountApi.md#getfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | Get bank account fields definitions -*BankAccountApi* | [**UpdateBankAccount**](docs/BankAccountApi.md#updatebankaccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Update BankAccount -*BankAccountApi* | [**UpdateBankAccountState**](docs/BankAccountApi.md#updatebankaccountstate) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | [PRIVATE API] Update State of Bank Account -*CampaignsApi* | [**CreateLoyaltyCampaign**](docs/CampaignsApi.md#createloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | Creates loyalty campaign -*CampaignsApi* | [**CreateRetentionCampaign**](docs/CampaignsApi.md#createretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | Creates retention campaign -*CampaignsApi* | [**GetLoyaltyCampaignsForApp**](docs/CampaignsApi.md#getloyaltycampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | Gets loyalty campaigns for app -*CampaignsApi* | [**GetLoyaltyCampaignsForStore**](docs/CampaignsApi.md#getloyaltycampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | Gets loyalty campaigns for store -*CampaignsApi* | [**GetRetentionCampaignsForApp**](docs/CampaignsApi.md#getretentioncampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/retention | Gets retention campaigns for app -*CampaignsApi* | [**GetRetentionCampaignsForStore**](docs/CampaignsApi.md#getretentioncampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | Gets retention campaigns for store -*CampaignsApi* | [**GetStoreList**](docs/CampaignsApi.md#getstorelist) | **GET** /api/v1.0/{appId}/campaigns/stores | Gets list of stores for app -*CampaignsApi* | [**RemoveCampaign**](docs/CampaignsApi.md#removecampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | Deletes a campaign -*CampaignsApi* | [**UpdateLoyaltyCampaign**](docs/CampaignsApi.md#updateloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | Updates loyalty campaign -*CampaignsApi* | [**UpdateRetentionCampaign**](docs/CampaignsApi.md#updateretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | Updates retention campaign -*CardReadersApi* | [**AuthorizeStripeTerminal**](docs/CardReadersApi.md#authorizestripeterminal) | **POST** /api/v1.0/{appId}/stripeterminal/authorize | Get Authorization Key for Stripe Terminal -*CardReadersApi* | [**CancelCurrentlyInitiatedBluetoothDeviceUpdate**](docs/CardReadersApi.md#cancelcurrentlyinitiatedbluetoothdeviceupdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | Cancel currently initiated install update for bluetooth terminal -*CardReadersApi* | [**CancelReaderAction**](docs/CardReadersApi.md#cancelreaderaction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | Cancel terminals action -*CardReadersApi* | [**CardReadersGetReader**](docs/CardReadersApi.md#cardreadersgetreader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | Get reader -*CardReadersApi* | [**GenerateStripeTerminalLocation**](docs/CardReadersApi.md#generatestripeterminallocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | Get Location ID for Stripe Terminal -*CardReadersApi* | [**GetBluetoothTerminalStatus**](docs/CardReadersApi.md#getbluetoothterminalstatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | Get the status of the bluetooth terminal -*CardReadersApi* | [**GetStripeConnectionToken**](docs/CardReadersApi.md#getstripeconnectiontoken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | Get Connection Token For a Stripe Terminal -*CardReadersApi* | [**InitiateBluetoothTerminalDeviceUpdateCheck**](docs/CardReadersApi.md#initiatebluetoothterminaldeviceupdatecheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | Trigger check for Bluetooth device update on Kiosk -*CardReadersApi* | [**InitiateKioskBluetoothPairingMode**](docs/CardReadersApi.md#initiatekioskbluetoothpairingmode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | Initiate stripe terminal pairing mode -*CardReadersApi* | [**InitiateKioskBluetoothUpdateInstall**](docs/CardReadersApi.md#initiatekioskbluetoothupdateinstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | Initiate Kiosk Update Install for bluetooth terminal -*CardReadersApi* | [**InitiateReaderProcessPaymentIntent**](docs/CardReadersApi.md#initiatereaderprocesspaymentintent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | Initiate Stripe terminal to Process Payment Intent +*AccountsApi* | [**AnswerSignUpQuestion**](docs/AccountsApi.md#answersignupquestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | +*AccountsApi* | [**ChangePassword**](docs/AccountsApi.md#changepassword) | **PUT** /api/v1.0/accounts/password | +*AccountsApi* | [**CreateAccount**](docs/AccountsApi.md#createaccount) | **POST** /api/v1.0/accounts | +*AccountsApi* | [**CreateBasicAccount**](docs/AccountsApi.md#createbasicaccount) | **POST** /api/v1.0/accounts/basic-account | +*AccountsApi* | [**GetAccountDetails**](docs/AccountsApi.md#getaccountdetails) | **GET** /api/v1.0/accounts | +*AccountsApi* | [**GetLocalisedTimeZones**](docs/AccountsApi.md#getlocalisedtimezones) | **GET** /api/v1.0/accounts/timezones | +*AccountsApi* | [**Login**](docs/AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | +*AccountsApi* | [**LoginSso**](docs/AccountsApi.md#loginsso) | **POST** /api/v1.0/accounts/login/sso | +*AccountsApi* | [**Logout**](docs/AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | +*AccountsApi* | [**PasswordResetWithToken**](docs/AccountsApi.md#passwordresetwithtoken) | **POST** /api/v1.0/accounts/password | +*AccountsApi* | [**RecaptchaValidate**](docs/AccountsApi.md#recaptchavalidate) | **POST** /api/v1.0/accounts/recaptcha | +*AccountsApi* | [**RequestPasswordReset**](docs/AccountsApi.md#requestpasswordreset) | **POST** /api/v1.0/accounts/passwordreset | +*AccountsApi* | [**SkipSignupStep**](docs/AccountsApi.md#skipsignupstep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | +*AccountsApi* | [**UpdateAccount**](docs/AccountsApi.md#updateaccount) | **PUT** /api/v1.0/accounts | +*AddressApi* | [**AddressTemplates**](docs/AddressApi.md#addresstemplates) | **POST** /api/v1.0/address/templates | +*AddressApi* | [**FormByApp**](docs/AddressApi.md#formbyapp) | **GET** /api/v1.0/app/{appId}/address/form | +*AddressApi* | [**FormByCountry**](docs/AddressApi.md#formbycountry) | **GET** /api/v1.0/address/country/{countryCode}/form | +*AddressApi* | [**FormatGoogleAddress**](docs/AddressApi.md#formatgoogleaddress) | **POST** /api/v1.0/address/google | +*AddressApi* | [**GetCountries**](docs/AddressApi.md#getcountries) | **GET** /api/v1.0/address/countries | +*ApmApi* | [**GetApmStatus**](docs/ApmApi.md#getapmstatus) | **GET** /api/v1.0/{appId}/apm/status | +*ApmApi* | [**GetBasicStatistics**](docs/ApmApi.md#getbasicstatistics) | **GET** /api/v1.0/{appId}/apm/statistics | +*ApmApi* | [**GetCalendarWeekStatistics**](docs/ApmApi.md#getcalendarweekstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | +*ApmApi* | [**GetCallsStatistics**](docs/ApmApi.md#getcallsstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | +*ApmApi* | [**GetOrderStatistics**](docs/ApmApi.md#getorderstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | +*ApmApi* | [**GetPaginatedCallList**](docs/ApmApi.md#getpaginatedcalllist) | **GET** /api/v1.0/{appId}/apm/calls | +*AppStoreApi* | [**GetAppStoreApp**](docs/AppStoreApi.md#getappstoreapp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | +*AppStoreApi* | [**GetAppStoreApps**](docs/AppStoreApi.md#getappstoreapps) | **GET** /api/v1.0/appstore/apps | +*AppStoreConfigurationsApi* | [**AppStoreConfigurationsAppStoreHandleOauthResponseCode**](docs/AppStoreConfigurationsApi.md#appstoreconfigurationsappstorehandleoauthresponsecode) | **GET** /api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode | +*AppStoreConfigurationsApi* | [**CreateAppStoreConfig**](docs/AppStoreConfigurationsApi.md#createappstoreconfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | +*AppStoreConfigurationsApi* | [**DeleteAppStoreConfig**](docs/AppStoreConfigurationsApi.md#deleteappstoreconfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*AppStoreConfigurationsApi* | [**ExecuteConfigurationAction**](docs/AppStoreConfigurationsApi.md#executeconfigurationaction) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action | +*AppStoreConfigurationsApi* | [**GetAppStoreConfig**](docs/AppStoreConfigurationsApi.md#getappstoreconfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*AppStoreConfigurationsApi* | [**GetConfiguredAppSingleApp**](docs/AppStoreConfigurationsApi.md#getconfiguredappsingleapp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | +*AppStoreConfigurationsApi* | [**GetConfiguredApps**](docs/AppStoreConfigurationsApi.md#getconfiguredapps) | **GET** /api/v1.0/{appId}/appstore/apps | +*AppStoreConfigurationsApi* | [**UpdateAppStoreConfig**](docs/AppStoreConfigurationsApi.md#updateappstoreconfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*AppStoreConfigurationsApi* | [**UpdateAppStoreConfigSettingValues**](docs/AppStoreConfigurationsApi.md#updateappstoreconfigsettingvalues) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings | +*AppStoreDeveloperApi* | [**AppVerificationUpdate**](docs/AppStoreDeveloperApi.md#appverificationupdate) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification | +*AppStoreDeveloperApi* | [**CreateAppStoreApp**](docs/AppStoreDeveloperApi.md#createappstoreapp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | +*AppStoreDeveloperApi* | [**DeleteAppStoreApp**](docs/AppStoreDeveloperApi.md#deleteappstoreapp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +*AppStoreDeveloperApi* | [**GetAppExternalProduct**](docs/AppStoreDeveloperApi.md#getappexternalproduct) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +*AppStoreDeveloperApi* | [**GetExternalFunctionSigningKey**](docs/AppStoreDeveloperApi.md#getexternalfunctionsigningkey) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key | +*AppStoreDeveloperApi* | [**UpdateAppStoreApp**](docs/AppStoreDeveloperApi.md#updateappstoreapp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +*AppStoreDeveloperApi* | [**UpdateExternalProduct**](docs/AppStoreDeveloperApi.md#updateexternalproduct) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +*AppStoreDeveloperApi* | [**UploadAppStoreAppLogo**](docs/AppStoreDeveloperApi.md#uploadappstoreapplogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | +*AppStoreEntitlementsApi* | [**GetAppStoreAppEntitlements**](docs/AppStoreEntitlementsApi.md#getappstoreappentitlements) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements | +*AppsApi* | [**AppsSetPropertyId**](docs/AppsApi.md#appssetpropertyid) | **POST** /api/v1.0/apps/{appId}/orgId/{orgId} | +*AppsApi* | [**CreateApp**](docs/AppsApi.md#createapp) | **POST** /api/v1.0/apps | +*AppsApi* | [**GetApp**](docs/AppsApi.md#getapp) | **GET** /api/v1.0/apps/{appId} | +*AppsApi* | [**GetAppHostnameStatus**](docs/AppsApi.md#getapphostnamestatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | +*AppsApi* | [**GetAppName**](docs/AppsApi.md#getappname) | **GET** /api/v1.0/apps/{appId}/name | +*AppsApi* | [**GetApps**](docs/AppsApi.md#getapps) | **GET** /api/v1.0/apps | +*AppsApi* | [**GetCompliance**](docs/AppsApi.md#getcompliance) | **GET** /api/v1.0/apps/{appId}/compliance | +*AppsApi* | [**GetPanaceaVanityUrl**](docs/AppsApi.md#getpanaceavanityurl) | **GET** /api/v1.0/apps/{appId}/panacea/url | +*AppsApi* | [**GetSupportedCountries**](docs/AppsApi.md#getsupportedcountries) | **GET** /api/v1.0/apps/supportedcountries | +*AppsApi* | [**IsPanaceaVanityUrlAvailable**](docs/AppsApi.md#ispanaceavanityurlavailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | +*AppsApi* | [**LookupByWhitelabelId**](docs/AppsApi.md#lookupbywhitelabelid) | **GET** /api/v1.0/apps/{whitelabelId}/lookup | +*AppsApi* | [**SendPushNotification**](docs/AppsApi.md#sendpushnotification) | **POST** /api/v1.0/apps/{appId}/SendPushNotification/{customerId} | +*AppsApi* | [**SetAppConfig**](docs/AppsApi.md#setappconfig) | **POST** /api/v1.0/apps/{appId}/config | +*AppsApi* | [**SetAppHostname**](docs/AppsApi.md#setapphostname) | **POST** /api/v1.0/apps/{appId}/hostname | +*AppsApi* | [**SetAppLanguages**](docs/AppsApi.md#setapplanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | +*AppsApi* | [**SetAppStoreName**](docs/AppsApi.md#setappstorename) | **POST** /api/v1.0/apps/{appId}/appstorename | +*AppsApi* | [**SetCompliance**](docs/AppsApi.md#setcompliance) | **POST** /api/v1.0/apps/{appId}/compliance | +*AppsApi* | [**SetPanaceaVanityUrl**](docs/AppsApi.md#setpanaceavanityurl) | **POST** /api/v1.0/apps/{appId}/panacea/url | +*AppsApi* | [**SetThirdPartyIntegrations**](docs/AppsApi.md#setthirdpartyintegrations) | **POST** /api/v1.0/apps/{appId}/third-party-integrations | +*AppsApi* | [**ToggleNextGenWeb**](docs/AppsApi.md#togglenextgenweb) | **POST** /api/v1.0/apps/{appId}/nextgenweb | +*AppsApi* | [**UploadAppLogo**](docs/AppsApi.md#uploadapplogo) | **POST** /api/v1.0/apps/{appId}/logo | +*AuditLogsApi* | [**AddOrderAuditLog**](docs/AuditLogsApi.md#addorderauditlog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | +*AuditLogsApi* | [**AddStoreAuditLogEvent**](docs/AuditLogsApi.md#addstoreauditlogevent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | +*AuthorizationTokensApi* | [**GetAuthorizationTokens**](docs/AuthorizationTokensApi.md#getauthorizationtokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | +*AuthorizationTokensApi* | [**RevokeToken**](docs/AuthorizationTokensApi.md#revoketoken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | +*BankAccountApi* | [**AttachBankAccountToStore**](docs/BankAccountApi.md#attachbankaccounttostore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | +*BankAccountApi* | [**CreateBankAccount**](docs/BankAccountApi.md#createbankaccount) | **POST** /api/v1.0/{appId}/bankaccounts | +*BankAccountApi* | [**DeleteBankAccount**](docs/BankAccountApi.md#deletebankaccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*BankAccountApi* | [**GetBankAccountById**](docs/BankAccountApi.md#getbankaccountbyid) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*BankAccountApi* | [**GetBankAccounts**](docs/BankAccountApi.md#getbankaccounts) | **GET** /api/v1.0/{appId}/bankaccounts | +*BankAccountApi* | [**GetCountriesWithFieldDefinitions**](docs/BankAccountApi.md#getcountrieswithfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | +*BankAccountApi* | [**GetFieldDefinitions**](docs/BankAccountApi.md#getfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | +*BankAccountApi* | [**UpdateBankAccount**](docs/BankAccountApi.md#updatebankaccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*BankAccountApi* | [**UpdateBankAccountState**](docs/BankAccountApi.md#updatebankaccountstate) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | +*CampaignsApi* | [**CreateLoyaltyCampaign**](docs/CampaignsApi.md#createloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | +*CampaignsApi* | [**CreateRetentionCampaign**](docs/CampaignsApi.md#createretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | +*CampaignsApi* | [**GetLoyaltyCampaignsForApp**](docs/CampaignsApi.md#getloyaltycampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | +*CampaignsApi* | [**GetLoyaltyCampaignsForStore**](docs/CampaignsApi.md#getloyaltycampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | +*CampaignsApi* | [**GetRetentionCampaignsForApp**](docs/CampaignsApi.md#getretentioncampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/retention | +*CampaignsApi* | [**GetRetentionCampaignsForStore**](docs/CampaignsApi.md#getretentioncampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | +*CampaignsApi* | [**GetStoreList**](docs/CampaignsApi.md#getstorelist) | **GET** /api/v1.0/{appId}/campaigns/stores | +*CampaignsApi* | [**RemoveCampaign**](docs/CampaignsApi.md#removecampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | +*CampaignsApi* | [**UpdateLoyaltyCampaign**](docs/CampaignsApi.md#updateloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | +*CampaignsApi* | [**UpdateRetentionCampaign**](docs/CampaignsApi.md#updateretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | +*CardReadersApi* | [**CancelCurrentlyInitiatedBluetoothDeviceUpdate**](docs/CardReadersApi.md#cancelcurrentlyinitiatedbluetoothdeviceupdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | +*CardReadersApi* | [**CancelReaderAction**](docs/CardReadersApi.md#cancelreaderaction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | +*CardReadersApi* | [**CardReadersGetReader**](docs/CardReadersApi.md#cardreadersgetreader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | +*CardReadersApi* | [**GenerateStripeTerminalLocation**](docs/CardReadersApi.md#generatestripeterminallocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | +*CardReadersApi* | [**GetBluetoothTerminalStatus**](docs/CardReadersApi.md#getbluetoothterminalstatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | +*CardReadersApi* | [**GetKioskStripeLocation**](docs/CardReadersApi.md#getkioskstripelocation) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/stripe-location | +*CardReadersApi* | [**GetStripeConnectionToken**](docs/CardReadersApi.md#getstripeconnectiontoken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | +*CardReadersApi* | [**InitiateBluetoothTerminalDeviceUpdateCheck**](docs/CardReadersApi.md#initiatebluetoothterminaldeviceupdatecheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | +*CardReadersApi* | [**InitiateKioskBluetoothPairingMode**](docs/CardReadersApi.md#initiatekioskbluetoothpairingmode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | +*CardReadersApi* | [**InitiateKioskBluetoothUpdateInstall**](docs/CardReadersApi.md#initiatekioskbluetoothupdateinstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +*CardReadersApi* | [**InitiateReaderProcessPaymentIntent**](docs/CardReadersApi.md#initiatereaderprocesspaymentintent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | *CardReadersApi* | [**RegisterStripeTerminal**](docs/CardReadersApi.md#registerstripeterminal) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/register | -*CardReadersApi* | [**UnRegisterTerminal**](docs/CardReadersApi.md#unregisterterminal) | **DELETE** /api/v1.0/{appId}/payments/terminals/stripe/unregister | Un-register terminal by deleting it from stripe -*CardReadersApi* | [**UnpairCurrentlyPairedBluetoothDevice**](docs/CardReadersApi.md#unpaircurrentlypairedbluetoothdevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | Unpair the currently paired stripe terminal +*CardReadersApi* | [**UnRegisterTerminal**](docs/CardReadersApi.md#unregisterterminal) | **DELETE** /api/v1.0/{appId}/payments/terminals/stripe/unregister | +*CardReadersApi* | [**UnpairCurrentlyPairedBluetoothDevice**](docs/CardReadersApi.md#unpaircurrentlypairedbluetoothdevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | *CatalogChangesApi* | [**GetPendingMenuChanges**](docs/CatalogChangesApi.md#getpendingmenuchanges) | **GET** /api/v1.0/{appId}/menus/catalog-changes | Get menu pending changes from Catalog groups and items *CatalogChangesApi* | [**GetPendingMenuChangesSummaries**](docs/CatalogChangesApi.md#getpendingmenuchangessummaries) | **GET** /api/v1.0/{appId}/menus/catalog-changes/summaries | Get menu pending changes summaries by appId *CatalogChangesApi* | [**PublishPendingMenuChanges**](docs/CatalogChangesApi.md#publishpendingmenuchanges) | **POST** /api/v1.0/{appId}/menus/catalog-changes/publish | Update menus with the pending changes from Catalog groups and items @@ -187,114 +201,134 @@ Class | Method | HTTP request | Description *CatalogProductsApi* | [**GetProductById**](docs/CatalogProductsApi.md#getproductbyid) | **GET** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Get Product by Id *CatalogProductsApi* | [**GetProducts**](docs/CatalogProductsApi.md#getproducts) | **GET** /api/v1.0/{appId}/catalog/products | Get paginated products by app name id filtered by types *CatalogProductsApi* | [**UpdateProduct**](docs/CatalogProductsApi.md#updateproduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Update Product -*ChannelsApi* | [**AssignAppIdToSalesChannel**](docs/ChannelsApi.md#assignappidtosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/assign-appId | Assign a given AppId to a Sales Channel -*ChannelsApi* | [**AssignStoreToChannel**](docs/ChannelsApi.md#assignstoretochannel) | **POST** /api/v1.0/{appId}/channels/assign-store | Assign a Store to a Sales Channel -*ChannelsApi* | [**AttachStoreToSalesChannel**](docs/ChannelsApi.md#attachstoretosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | Attachs the specified store to the given sales channel. -*ChannelsApi* | [**DetachAllStoresFromSalesChannel**](docs/ChannelsApi.md#detachallstoresfromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | Detaches all the stores from the given sales channel. -*ChannelsApi* | [**DetachStoreFromSalesChannel**](docs/ChannelsApi.md#detachstorefromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | Detaches the specified store from the given sales channel. -*ChannelsApi* | [**GetAssignedChannels**](docs/ChannelsApi.md#getassignedchannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | Returns a list of sales channels that are assigned to a given AppId -*ChannelsApi* | [**GetAvailableChannels**](docs/ChannelsApi.md#getavailablechannels) | **GET** /api/v1.0/{appId}/channels/available-channels | Returns a list of sales channels that are not yet assigned to a given AppId -*ChannelsApi* | [**GetChannel**](docs/ChannelsApi.md#getchannel) | **GET** /api/v1.0/{appId}/channels/{id} | Returns a Sales Channel by Id. -*ChannelsApi* | [**GetChannels**](docs/ChannelsApi.md#getchannels) | **GET** /api/v1.0/{appId}/channels | Returns a list of enabled Channels -*ChannelsApi* | [**GetStoresAssignedToChannel**](docs/ChannelsApi.md#getstoresassignedtochannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/assigned-stores | Returns a list of stores of an AppId that are assigned to a given Sales Channel -*ChannelsApi* | [**GetStoresBySalesChannel**](docs/ChannelsApi.md#getstoresbysaleschannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/stores | Returns a list of store ids attached to the given channel type for the specified app. -*ChannelsApi* | [**UnassignStoreFromChannel**](docs/ChannelsApi.md#unassignstorefromchannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | Unassign a Store from a Sales Channel -*ChannelsStoreMappingApi* | [**ChannelsGetStoreChannelStoreMapping**](docs/ChannelsStoreMappingApi.md#channelsgetstorechannelstoremapping) | **GET** /api/v1.0/{appId}/channels/storemappings | -*ChannelsStoreMappingApi* | [**ChannelsSetStoreChannelStoreMapping**](docs/ChannelsStoreMappingApi.md#channelssetstorechannelstoremapping) | **POST** /api/v1.0/{appId}/channels/storemappings | +*ChannelsApi* | [**AssignAppIdToSalesChannel**](docs/ChannelsApi.md#assignappidtosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/assign-appId | +*ChannelsApi* | [**AssignStoreToChannel**](docs/ChannelsApi.md#assignstoretochannel) | **POST** /api/v1.0/{appId}/channels/assign-store | +*ChannelsApi* | [**AttachStoreToSalesChannel**](docs/ChannelsApi.md#attachstoretosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +*ChannelsApi* | [**DetachAllStoresFromSalesChannel**](docs/ChannelsApi.md#detachallstoresfromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | +*ChannelsApi* | [**DetachStoreFromSalesChannel**](docs/ChannelsApi.md#detachstorefromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +*ChannelsApi* | [**GetAssignedChannels**](docs/ChannelsApi.md#getassignedchannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | +*ChannelsApi* | [**GetAvailableChannels**](docs/ChannelsApi.md#getavailablechannels) | **GET** /api/v1.0/{appId}/channels/available-channels | +*ChannelsApi* | [**GetChannel**](docs/ChannelsApi.md#getchannel) | **GET** /api/v1.0/{appId}/channels/{id} | +*ChannelsApi* | [**GetChannels**](docs/ChannelsApi.md#getchannels) | **GET** /api/v1.0/{appId}/channels | +*ChannelsApi* | [**GetStoresAssignedToChannel**](docs/ChannelsApi.md#getstoresassignedtochannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/assigned-stores | +*ChannelsApi* | [**GetStoresBySalesChannel**](docs/ChannelsApi.md#getstoresbysaleschannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/stores | +*ChannelsApi* | [**UnassignStoreFromChannel**](docs/ChannelsApi.md#unassignstorefromchannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | +*ClientsApi* | [**GetClient**](docs/ClientsApi.md#getclient) | **GET** /api/v1.0/clients/{clientId} | +*ClientsApi* | [**SetSalesForceContactId**](docs/ClientsApi.md#setsalesforcecontactid) | **POST** /api/v1.0/clients/{clientId}/salesforcecontactid | +*ClientsApi* | [**SetStripeCustomerId**](docs/ClientsApi.md#setstripecustomerid) | **POST** /api/v1.0/clients/{clientId}/stripecustomerid | *ContentSecurityPolicyApi* | [**ContentSecurityPolicyReport**](docs/ContentSecurityPolicyApi.md#contentsecuritypolicyreport) | **POST** /api/v1.0/csp/report | -*CustomersApi* | [**GetCustomerById**](docs/CustomersApi.md#getcustomerbyid) | **GET** /api/v1.0/{appId}/customers/{customerId} | Get customer of an app by Id -*CustomersApi* | [**UpdateCustomerById**](docs/CustomersApi.md#updatecustomerbyid) | **POST** /api/v1.0/{appId}/customers/{customerId} | Update customer of an app by Id -*DeliveryTrackingApi* | [**AssignDriverToOrder**](docs/DeliveryTrackingApi.md#assigndrivertoorder) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders/{orderId} | [PRIVATE] Assign driver to order -*DeliveryTrackingApi* | [**AssignDriverToOrders**](docs/DeliveryTrackingApi.md#assigndrivertoorders) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders | Assign driver to multiple orders -*DeliveryTrackingApi* | [**GetDrivers**](docs/DeliveryTrackingApi.md#getdrivers) | **GET** /api/v1.0/{appId}/drivers | [PRIVATE] Get drivers by App -*DeliveryTrackingApi* | [**InviteDriverToApp**](docs/DeliveryTrackingApi.md#invitedrivertoapp) | **POST** /api/v1.0/{appId}/drivers | [PRIVATE] Invite driver -*DeliveryTrackingApi* | [**RemoveDriverFromApp**](docs/DeliveryTrackingApi.md#removedriverfromapp) | **DELETE** /api/v1.0/{appId}/drivers/{driverId} | [PRIVATE] Unassign driver from app -*DeliveryTrackingApi* | [**UnassignDriverFromOrder**](docs/DeliveryTrackingApi.md#unassigndriverfromorder) | **DELETE** /api/v1.0/{appId}/orders/{orderId}/driver | [PRIVATE] Unassign driver from order -*DeliveryZoneApi* | [**AddDeliveryZone**](docs/DeliveryZoneApi.md#adddeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | Adds a delivery zone to the store id -*DeliveryZoneApi* | [**GetDeliveryZones**](docs/DeliveryZoneApi.md#getdeliveryzones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | Get all the delivery zones associated with a store -*DeliveryZoneApi* | [**RemoveDeliveryZone**](docs/DeliveryZoneApi.md#removedeliveryzone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Removes the existing delivery zone -*DeliveryZoneApi* | [**UpdateDeliveryZone**](docs/DeliveryZoneApi.md#updatedeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Updates the existing delivery zone -*DriversApi* | [**AddDriverNotificationToken**](docs/DriversApi.md#adddrivernotificationtoken) | **POST** /api/v1.0/drivers/token | Add driver token -*DriversApi* | [**DeleteDriverProfileImage**](docs/DriversApi.md#deletedriverprofileimage) | **DELETE** /api/v1.0/drivers/profile/image | Delete driver profile image -*DriversApi* | [**DriverLogin**](docs/DriversApi.md#driverlogin) | **POST** /api/v1.0/drivers/login | [PRIVATE] Login with phone number and pin -*DriversApi* | [**DriverRequestLoginCodeSms**](docs/DriversApi.md#driverrequestlogincodesms) | **POST** /api/v1.0/drivers/pin | [PRIVATE] Request an SMS to be sent to the driver with their login code -*DriversApi* | [**GetDriverProfile**](docs/DriversApi.md#getdriverprofile) | **GET** /api/v1.0/drivers/profile | Get driver profile -*DriversApi* | [**GetStoresForDriver**](docs/DriversApi.md#getstoresfordriver) | **GET** /api/v1.0/drivers/assignedstores | Get stores for driver -*DriversApi* | [**RemoveDriverNotificationToken**](docs/DriversApi.md#removedrivernotificationtoken) | **DELETE** /api/v1.0/drivers/token | Delete driver token -*DriversApi* | [**SetDriverPresenceForStore**](docs/DriversApi.md#setdriverpresenceforstore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | -*DriversApi* | [**SetDriverProfileImage**](docs/DriversApi.md#setdriverprofileimage) | **POST** /api/v1.0/drivers/profile/image | Set driver profile image and returns it's url -*DriversApi* | [**UpdateDeliveryTrackingStatus**](docs/DriversApi.md#updatedeliverytrackingstatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | Change delivery tracking status and return the updated status. -*DriversApi* | [**UpdateDriverProfile**](docs/DriversApi.md#updatedriverprofile) | **POST** /api/v1.0/drivers/profile | Update driver profile -*EventsApi* | [**GetCustomerEvents**](docs/EventsApi.md#getcustomerevents) | **GET** /api/v1.0/events/customer/{customerId} | Get customer events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetEvents**](docs/EventsApi.md#getevents) | **GET** /api/v1.0/events | Get events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetEventsById**](docs/EventsApi.md#geteventsbyid) | **GET** /api/v1.0/events/{eventId} | Get event by Id For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetMenuEvents**](docs/EventsApi.md#getmenuevents) | **GET** /api/v1.0/events/menu/{menuId} | Get menu events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetOrderEvents**](docs/EventsApi.md#getorderevents) | **GET** /api/v1.0/events/order/{orderId} | Get order events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetOrderEventsByCustomer**](docs/EventsApi.md#getordereventsbycustomer) | **GET** /api/v1.0/events/order | Get order events by customer For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetStoreEvents**](docs/EventsApi.md#getstoreevents) | **GET** /api/v1.0/events/store/{storeId} | Get store events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetUserEvents**](docs/EventsApi.md#getuserevents) | **GET** /api/v1.0/events/user/{userId} | Get user events For technical reasons, the number of records returned is limited to 100. -*EventsApi* | [**GetWhiteLabelEvents**](docs/EventsApi.md#getwhitelabelevents) | **GET** /api/v1.0/events/whitelabel/{whitelabelId} | Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. -*FilesApi* | [**DownloadFile**](docs/FilesApi.md#downloadfile) | **GET** /api/v1.0/{appId}/files/download/{fileId} | Get file from storage -*FulfillmentStateConfigurationApi* | [**CreateFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#createfulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states | Create fulfillment configuration -*FulfillmentStateConfigurationApi* | [**DeleteFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#deletefulfillmentstatesconfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Delete fulfillment states configuration -*FulfillmentStateConfigurationApi* | [**GetFulfillmentStatesConfiguration**](docs/FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Get fulfillment configuration -*FulfillmentStateConfigurationApi* | [**SearchFulfillmentStatesConfigurations**](docs/FulfillmentStateConfigurationApi.md#searchfulfillmentstatesconfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | List fulfillment configurations for AppId -*FulfillmentStateConfigurationApi* | [**UpdateFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#updatefulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Update fulfillment configuration +*CrossSellApi* | [**GetCrossSellMenuItems**](docs/CrossSellApi.md#getcrosssellmenuitems) | **GET** /api/v1.0/{appId}/crossSell/menuItems | +*CustomersApi* | [**CreateCustomer**](docs/CustomersApi.md#createcustomer) | **POST** /api/v1.0/{appId}/customers | +*CustomersApi* | [**GetCustomerById**](docs/CustomersApi.md#getcustomerbyid) | **GET** /api/v1.0/{appId}/customers/{customerId} | +*CustomersApi* | [**GetCustomers**](docs/CustomersApi.md#getcustomers) | **GET** /api/v1.0/{appId}/customers | +*CustomersApi* | [**UpdateCustomerById**](docs/CustomersApi.md#updatecustomerbyid) | **POST** /api/v1.0/{appId}/customers/{customerId} | +*DeliveryZoneApi* | [**AddDeliveryZone**](docs/DeliveryZoneApi.md#adddeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | +*DeliveryZoneApi* | [**GetDeliveryZones**](docs/DeliveryZoneApi.md#getdeliveryzones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | +*DeliveryZoneApi* | [**RemoveDeliveryZone**](docs/DeliveryZoneApi.md#removedeliveryzone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +*DeliveryZoneApi* | [**UpdateDeliveryZone**](docs/DeliveryZoneApi.md#updatedeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +*DeviceApi* | [**AssignDevice**](docs/DeviceApi.md#assigndevice) | **POST** /api/v1.0/{appId}/devices/assign | +*DeviceApi* | [**EnrollDevice**](docs/DeviceApi.md#enrolldevice) | **POST** /api/v1.0/{appId}/devices/enroll | +*DeviceApi* | [**GetDeviceDetails**](docs/DeviceApi.md#getdevicedetails) | **GET** /api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId} | +*DeviceApi* | [**SearchDevices**](docs/DeviceApi.md#searchdevices) | **GET** /api/v1.0/{appId}/devices/search | +*DriversApi* | [**DriversAddDriverNotificationToken**](docs/DriversApi.md#driversadddrivernotificationtoken) | **POST** /api/v1.0/drivers/token | +*DriversApi* | [**DriversDeleteDriverProfileImage**](docs/DriversApi.md#driversdeletedriverprofileimage) | **DELETE** /api/v1.0/drivers/profile/image | +*DriversApi* | [**DriversDriverLogin**](docs/DriversApi.md#driversdriverlogin) | **POST** /api/v1.0/drivers/login | +*DriversApi* | [**DriversDriverRequestLoginCodeSms**](docs/DriversApi.md#driversdriverrequestlogincodesms) | **POST** /api/v1.0/drivers/pin | +*DriversApi* | [**DriversGetDriverProfile**](docs/DriversApi.md#driversgetdriverprofile) | **GET** /api/v1.0/drivers/profile | +*DriversApi* | [**DriversGetStoresForDriver**](docs/DriversApi.md#driversgetstoresfordriver) | **GET** /api/v1.0/drivers/assignedstores | +*DriversApi* | [**DriversRemoveDriverNotificationToken**](docs/DriversApi.md#driversremovedrivernotificationtoken) | **DELETE** /api/v1.0/drivers/token | +*DriversApi* | [**DriversSetDriverPresenceForStore**](docs/DriversApi.md#driverssetdriverpresenceforstore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +*DriversApi* | [**DriversSetDriverProfileImage**](docs/DriversApi.md#driverssetdriverprofileimage) | **POST** /api/v1.0/drivers/profile/image | +*DriversApi* | [**DriversUpdateDeliveryTrackingStatus**](docs/DriversApi.md#driversupdatedeliverytrackingstatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | +*DriversApi* | [**DriversUpdateDriverProfile**](docs/DriversApi.md#driversupdatedriverprofile) | **POST** /api/v1.0/drivers/profile | +*EndUserFeesApi* | [**CreateEndUserFeeConfig**](docs/EndUserFeesApi.md#createenduserfeeconfig) | **POST** /api/v1.0/{appId}/stores/{storeId}/end-user-fees | +*EndUserFeesApi* | [**GetEndUserFeesForStore**](docs/EndUserFeesApi.md#getenduserfeesforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/end-user-fees | +*EndUserFeesApi* | [**SetV2FeeCalculation**](docs/EndUserFeesApi.md#setv2feecalculation) | **POST** /api/v1.0/{appId}/stores/{storeId}/end-user-fees/v2-fee-calculation | +*EventsApi* | [**GetCustomerEvents**](docs/EventsApi.md#getcustomerevents) | **GET** /api/v1.0/{appId}/events/customer/{customerId} | +*EventsApi* | [**GetEvents**](docs/EventsApi.md#getevents) | **GET** /api/v1.0/{appId}/events | +*EventsApi* | [**GetEventsById**](docs/EventsApi.md#geteventsbyid) | **GET** /api/v1.0/{appId}/events/{eventId} | +*EventsApi* | [**GetMenuEvents**](docs/EventsApi.md#getmenuevents) | **GET** /api/v1.0/{appId}/events/menu/{menuId} | +*EventsApi* | [**GetOrderEvents**](docs/EventsApi.md#getorderevents) | **GET** /api/v1.0/{appId}/events/order/{orderId} | +*EventsApi* | [**GetOrderEventsByCustomer**](docs/EventsApi.md#getordereventsbycustomer) | **GET** /api/v1.0/{appId}/events/order | +*EventsApi* | [**GetStoreEvents**](docs/EventsApi.md#getstoreevents) | **GET** /api/v1.0/{appId}/events/store/{storeId} | +*EventsApi* | [**GetUserEvents**](docs/EventsApi.md#getuserevents) | **GET** /api/v1.0/{appId}/events/user/{userId} | +*EventsApi* | [**GetWhiteLabelEvents**](docs/EventsApi.md#getwhitelabelevents) | **GET** /api/v1.0/{appId}/events/whitelabel/{whitelabelId} | +*FeaturesApi* | [**DisableFeatures**](docs/FeaturesApi.md#disablefeatures) | **POST** /api/v1.0/{appId}/features/disable | +*FeaturesApi* | [**EnableFeatures**](docs/FeaturesApi.md#enablefeatures) | **POST** /api/v1.0/{appId}/features/enable | +*FirebaseAppsApi* | [**FirebaseAppsAddFirebaseApp**](docs/FirebaseAppsApi.md#firebaseappsaddfirebaseapp) | **POST** /api/v1.0/FirebaseApp | +*FirebaseAppsApi* | [**FirebaseAppsDeleteFirebaseApp**](docs/FirebaseAppsApi.md#firebaseappsdeletefirebaseapp) | **DELETE** /api/v1.0/FirebaseApp/{whiteLabelId} | +*FirebaseAppsApi* | [**FirebaseAppsGetFirebaseApp**](docs/FirebaseAppsApi.md#firebaseappsgetfirebaseapp) | **GET** /api/v1.0/FirebaseApp/{whitelabelId} | +*FpmApi* | [**CreateFpmForStore**](docs/FpmApi.md#createfpmforstore) | **POST** /api/v1.0/{storeId}/fpm | +*FpmApi* | [**DeleteFpmForStore**](docs/FpmApi.md#deletefpmforstore) | **DELETE** /api/v1.0/{storeId}/fpm | +*FpmApi* | [**EditFpmForStore**](docs/FpmApi.md#editfpmforstore) | **POST** /api/v1.0/{storeId}/fpm/edit | +*FpmApi* | [**GetFpmForStore**](docs/FpmApi.md#getfpmforstore) | **GET** /api/v1.0/{storeId}/fpm | +*FulfillmentStateConfigurationApi* | [**CreateFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#createfulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states | +*FulfillmentStateConfigurationApi* | [**DeleteFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#deletefulfillmentstatesconfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +*FulfillmentStateConfigurationApi* | [**GetFulfillmentStatesConfiguration**](docs/FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +*FulfillmentStateConfigurationApi* | [**GetFulfillmentStatesConfigurationTemplate**](docs/FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfigurationtemplate) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states_template | +*FulfillmentStateConfigurationApi* | [**SearchFulfillmentStatesConfigurations**](docs/FulfillmentStateConfigurationApi.md#searchfulfillmentstatesconfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | +*FulfillmentStateConfigurationApi* | [**UpdateFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#updatefulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | *HeartbeatApi* | [**HeadHostname**](docs/HeartbeatApi.md#headhostname) | **HEAD** /api/v1.0/heartbeat/Hostname | *HeartbeatApi* | [**HeadPing**](docs/HeartbeatApi.md#headping) | **HEAD** /api/v1.0/heartbeat | *HeartbeatApi* | [**Hostname**](docs/HeartbeatApi.md#hostname) | **GET** /api/v1.0/heartbeat/Hostname | *HeartbeatApi* | [**Ping**](docs/HeartbeatApi.md#ping) | **GET** /api/v1.0/heartbeat | -*HomeApi* | [**CompleteHomeAction**](docs/HomeApi.md#completehomeaction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | [PRIVATE API] Complete Home Action -*HomeApi* | [**DismissOldPortalAction**](docs/HomeApi.md#dismissoldportalaction) | **POST** /api/v1.0/home/dismissoldportalaction | [PRIVATE API] Complete Home Action -*HomeApi* | [**GetHomeActions**](docs/HomeApi.md#gethomeactions) | **GET** /api/v1.0/{appId}/home | [PRIVATE API] Get Home Actions -*HomeApi* | [**GetHomeStatistics**](docs/HomeApi.md#gethomestatistics) | **GET** /api/v1.0/{appId}/home/stats | [PRIVATE API] Get Home Statistics -*HttpRequestResponseLogsApi* | [**GetLogs**](docs/HttpRequestResponseLogsApi.md#getlogs) | **GET** /api/v1.0/{appId}/interactions/logs | Get API interaction logs -*HydraApi* | [**AssignEmv**](docs/HydraApi.md#assignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | Assign an EMV terminal to a kiosk -*HydraApi* | [**AttachStoreToKiosk**](docs/HydraApi.md#attachstoretokiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | [Private] -*HydraApi* | [**AttachStoreToTerminal**](docs/HydraApi.md#attachstoretoterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | [Private] +*HomeApi* | [**CompleteHomeAction**](docs/HomeApi.md#completehomeaction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | +*HomeApi* | [**GetHomeActions**](docs/HomeApi.md#gethomeactions) | **GET** /api/v1.0/{appId}/home | +*HomeApi* | [**GetHomeStatistics**](docs/HomeApi.md#gethomestatistics) | **GET** /api/v1.0/{appId}/home/stats | +*HomeApi* | [**GetOktaPortalFeatureFlag**](docs/HomeApi.md#getoktaportalfeatureflag) | **GET** /api/v1.0/home/okta-portal | +*HydraApi* | [**AssignEmv**](docs/HydraApi.md#assignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | +*HydraApi* | [**AttachStoreToKiosk**](docs/HydraApi.md#attachstoretokiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | +*HydraApi* | [**AttachStoreToTerminal**](docs/HydraApi.md#attachstoretoterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | *HydraApi* | [**CancelEmvPayment**](docs/HydraApi.md#cancelemvpayment) | **POST** /api/v1.0/{appId}/hydra/cancelemvpayment/{orderId} | -*HydraApi* | [**DetachStoreFromTerminal**](docs/HydraApi.md#detachstorefromterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | [Private] -*HydraApi* | [**GetAttachedDevice**](docs/HydraApi.md#getattacheddevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | [Private] -*HydraApi* | [**GetAttachedDevices**](docs/HydraApi.md#getattacheddevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | [Private] -*HydraApi* | [**GetEMVTerminalDetails**](docs/HydraApi.md#getemvterminaldetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | [Private] -*HydraApi* | [**GetEmvOrderState**](docs/HydraApi.md#getemvorderstate) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | [Private] -*HydraApi* | [**GetKioskCashPaymentSettings**](docs/HydraApi.md#getkioskcashpaymentsettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | Get the status of Cash Payment Methon on Kisok +*HydraApi* | [**DetachStoreFromTerminal**](docs/HydraApi.md#detachstorefromterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | +*HydraApi* | [**GetAblyToken**](docs/HydraApi.md#getablytoken) | **GET** /api/v1.0/hydra/ably_token | +*HydraApi* | [**GetAttachedDevice**](docs/HydraApi.md#getattacheddevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | +*HydraApi* | [**GetAttachedDevices**](docs/HydraApi.md#getattacheddevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | +*HydraApi* | [**GetEMVTerminalDetails**](docs/HydraApi.md#getemvterminaldetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | +*HydraApi* | [**GetEmvOrderState**](docs/HydraApi.md#getemvorderstate) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | +*HydraApi* | [**GetKioskCashPaymentSettings**](docs/HydraApi.md#getkioskcashpaymentsettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | +*HydraApi* | [**GetKioskSettings**](docs/HydraApi.md#getkiosksettings) | **GET** /api/v1.0/{appId}/kiosksettings/{deviceId} | *HydraApi* | [**GetRegistration**](docs/HydraApi.md#getregistration) | **GET** /api/v1.0/hydra/registration | -*HydraApi* | [**GetSettings**](docs/HydraApi.md#getsettings) | **GET** /api/v1.0/hydra/settings | [Private] -*HydraApi* | [**HydraCreateEmv**](docs/HydraApi.md#hydracreateemv) | **POST** /api/v1.0/{appId}/emvterminals | [Private] -*HydraApi* | [**HydraDeleteEmv**](docs/HydraApi.md#hydradeleteemv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | [Private] -*HydraApi* | [**HydraDetachStoreFromKiosk**](docs/HydraApi.md#hydradetachstorefromkiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | [Private] -*HydraApi* | [**HydraGetEmvsForAppId**](docs/HydraApi.md#hydragetemvsforappid) | **GET** /api/v1.0/{appId}/emvterminals | List EMV terminals belonging to the given AppNameId -*HydraApi* | [**LoginWithDeviceId**](docs/HydraApi.md#loginwithdeviceid) | **POST** /api/v1.0/hydra/{deviceId}/login | [Private] -*HydraApi* | [**Register**](docs/HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | [Private] -*HydraApi* | [**UnAssign**](docs/HydraApi.md#unassign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | [Private] -*HydraApi* | [**UnassignEmv**](docs/HydraApi.md#unassignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | Unassign the currently assigned EMV terminal from a kiosk -*HydraApi* | [**UpdateKioskCashVisibilitySettings**](docs/HydraApi.md#updatekioskcashvisibilitysettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | Update the Cash Payment Methon Visiability on Kisok -*KioskIotApi* | [**GetKioskIotConnection**](docs/KioskIotApi.md#getkioskiotconnection) | **POST** /api/v1.0/kioskiot/connect | Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context -*KioskIotApi* | [**QueryTelemetrySeries**](docs/KioskIotApi.md#querytelemetryseries) | **POST** /api/v1.0/{appId}/kioskiot/timeseries/query | Get the IoT time series values for a given Kiosk Id, properties and time range -*KioskStoreSettingsApi* | [**GetAllKioskSettingsForStore**](docs/KioskStoreSettingsApi.md#getallkiosksettingsforstore) | **GET** /api/v1.0/{appId}/kiosksettings/store/{storeId} | Get all kiosk settings associated with a store -*KioskStoreSettingsApi* | [**GetAllStoreSettingsForKioskHydra**](docs/KioskStoreSettingsApi.md#getallstoresettingsforkioskhydra) | **GET** /api/v1.0/kioskstoresettings | [For Kiosk use only] Get all stores connected to a Kiosk -*KioskStoreSettingsApi* | [**UpdateCashSettingForKiosk**](docs/KioskStoreSettingsApi.md#updatecashsettingforkiosk) | **POST** /api/v1.0/{appId}/kiosksettings/cash | +*HydraApi* | [**GetSettings**](docs/HydraApi.md#getsettings) | **GET** /api/v1.0/hydra/settings | +*HydraApi* | [**HydraCreateEmv**](docs/HydraApi.md#hydracreateemv) | **POST** /api/v1.0/{appId}/emvterminals | +*HydraApi* | [**HydraDeleteEmv**](docs/HydraApi.md#hydradeleteemv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | +*HydraApi* | [**HydraDetachStoreFromKiosk**](docs/HydraApi.md#hydradetachstorefromkiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | +*HydraApi* | [**HydraGetEmvsForAppId**](docs/HydraApi.md#hydragetemvsforappid) | **GET** /api/v1.0/{appId}/emvterminals | +*HydraApi* | [**LoginWithDeviceId**](docs/HydraApi.md#loginwithdeviceid) | **POST** /api/v1.0/hydra/{deviceId}/login | +*HydraApi* | [**Register**](docs/HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | +*HydraApi* | [**UnAssign**](docs/HydraApi.md#unassign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | +*HydraApi* | [**UnassignEmv**](docs/HydraApi.md#unassignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | +*HydraApi* | [**UpdateKioskCashVisibilitySettings**](docs/HydraApi.md#updatekioskcashvisibilitysettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | +*HydraApi* | [**UpdateKioskSettings**](docs/HydraApi.md#updatekiosksettings) | **POST** /api/v1.0/{appId}/kiosksettings/{deviceId} | +*IntegrationMetadataCatalogueApi* | [**IntegrationMetadataCatalogueGetPixelPointProducts**](docs/IntegrationMetadataCatalogueApi.md#integrationmetadatacataloguegetpixelpointproducts) | **GET** /api/v1.0/integrationmetadatacatalogue/pixelpoint/stores/{storeId}/products | +*IntercomApi* | [**UserHash**](docs/IntercomApi.md#userhash) | **GET** /api/v1.0/intercom/userHash | +*InvoicesApi* | [**GetInvoices**](docs/InvoicesApi.md#getinvoices) | **GET** /api/v1.0/{appId}/invoices | +*InvoicesApi* | [**InvoicePdf**](docs/InvoicesApi.md#invoicepdf) | **GET** /api/v1.0/{appId}/invoices/InvoicePdf | +*InvoicesApi* | [**ListInvoices**](docs/InvoicesApi.md#listinvoices) | **GET** /api/v1.0/{appId}/invoices/ListInvoices | +*InvoicesApi* | [**ListSubscriptionInvoices**](docs/InvoicesApi.md#listsubscriptioninvoices) | **GET** /api/v1.0/{appId}/invoices/ListSubscriptionInvoices | +*KioskEntitlementsApi* | [**QueryKioskEntitlementsByOrgId**](docs/KioskEntitlementsApi.md#querykioskentitlementsbyorgid) | **GET** /api/v1.0/orgs/{orgId}/kiosk/entitlements | +*KioskIotApi* | [**GetKioskIotConnection**](docs/KioskIotApi.md#getkioskiotconnection) | **POST** /api/v1.0/kioskiot/connect | +*KioskIotApi* | [**QueryTelemetrySeries**](docs/KioskIotApi.md#querytelemetryseries) | **POST** /api/v1.0/{appId}/kioskiot/timeseries/query | *LightspeedApi* | [**LightspeedGenerateMenu**](docs/LightspeedApi.md#lightspeedgeneratemenu) | **POST** /api/v1.0/lightspeed/{storeId}/menu/generate | *LightspeedApi* | [**LightspeedGetStoreSettings**](docs/LightspeedApi.md#lightspeedgetstoresettings) | **GET** /api/v1.0/lightspeed/{storeId}/settings | *LightspeedApi* | [**LightspeedSaveStoreSettings**](docs/LightspeedApi.md#lightspeedsavestoresettings) | **POST** /api/v1.0/lightspeed/{storeId}/settings | -*LocationApi* | [**CreateLocation**](docs/LocationApi.md#createlocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | Create a Location i.e: Table, Hotel Room, Car park space -*LocationApi* | [**DeleteLocation**](docs/LocationApi.md#deletelocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | Set a Location as deleted -*LocationApi* | [**MapLocationToExternalId**](docs/LocationApi.md#maplocationtoexternalid) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | Set or unset External Location Id on a Location -*LocationApi* | [**MoveLocation**](docs/LocationApi.md#movelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | Move a Location to a different location Area -*LocationApi* | [**UpdateLocation**](docs/LocationApi.md#updatelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update | Update a Location i.e: Table, Hotel Room, Car park space -*LocationAreasApi* | [**CreateLocationArea**](docs/LocationAreasApi.md#createlocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas | Create a Location Area, i.e: Room, Floor, Parking lot -*LocationAreasApi* | [**GetLocationArea**](docs/LocationAreasApi.md#getlocationarea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | Retrieve a Location Area -*LocationAreasApi* | [**GetLocationAreasForStore**](docs/LocationAreasApi.md#getlocationareasforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | Retrieve all Location Areas for a Store -*LocationAreasApi* | [**UpdateLocationArea**](docs/LocationAreasApi.md#updatelocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update | Update a Location Area, i.e: Room, Floor, Car park space -*LookerDashboardApi* | [**LookerDashboardGetAll**](docs/LookerDashboardApi.md#lookerdashboardgetall) | **GET** /api/v1.0/{appId}/looker/dashboards | Get all dashboards -*LookerSingleSignOnApi* | [**GetSSOEndpoint**](docs/LookerSingleSignOnApi.md#getssoendpoint) | **GET** /api/v1.0/{appId}/looker/sso | Get the generic single sign on embed URL for Looker dashboards +*LocationApi* | [**CreateLocation**](docs/LocationApi.md#createlocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | +*LocationApi* | [**DeleteLocation**](docs/LocationApi.md#deletelocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | +*LocationApi* | [**MapLocationToExternalId**](docs/LocationApi.md#maplocationtoexternalid) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | +*LocationApi* | [**MoveLocation**](docs/LocationApi.md#movelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | +*LocationApi* | [**UpdateLocation**](docs/LocationApi.md#updatelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update | +*LocationAreasApi* | [**CreateLocationArea**](docs/LocationAreasApi.md#createlocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas | +*LocationAreasApi* | [**GetLocationArea**](docs/LocationAreasApi.md#getlocationarea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | +*LocationAreasApi* | [**GetLocationAreasForStore**](docs/LocationAreasApi.md#getlocationareasforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | +*LocationAreasApi* | [**UpdateLocationArea**](docs/LocationAreasApi.md#updatelocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update | +*LookerDashboardApi* | [**LookerDashboardGetAll**](docs/LookerDashboardApi.md#lookerdashboardgetall) | **GET** /api/v1.0/{appId}/looker/dashboards | +*LookerSingleSignOnApi* | [**GetSSOEndpoint**](docs/LookerSingleSignOnApi.md#getssoendpoint) | **GET** /api/v1.0/{appId}/looker/sso | *MenuOptionSetItemsApi* | [**AddMenuItemOptionSetItem**](docs/MenuOptionSetItemsApi.md#addmenuitemoptionsetitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Create menu item option set item *MenuOptionSetItemsApi* | [**DeleteOptionSetItemImage**](docs/MenuOptionSetItemsApi.md#deleteoptionsetitemimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Delete menu item option set item image *MenuOptionSetItemsApi* | [**GetMenuItemOptionSetItemById**](docs/MenuOptionSetItemsApi.md#getmenuitemoptionsetitembyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Get menu item option set item by identifier *MenuOptionSetItemsApi* | [**GetMenuItemOptionSetItems**](docs/MenuOptionSetItemsApi.md#getmenuitemoptionsetitems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Get menu item option set items *MenuOptionSetItemsApi* | [**RemoveMenuItemOptionSetItem**](docs/MenuOptionSetItemsApi.md#removemenuitemoptionsetitem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Delete menu item option set item -*MenuOptionSetItemsApi* | [**SetOptionSetItemTax**](docs/MenuOptionSetItemsApi.md#setoptionsetitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId} | [Private API] Set Tax Rate on OptionSetItem +*MenuOptionSetItemsApi* | [**SetOptionSetItemTax**](docs/MenuOptionSetItemsApi.md#setoptionsetitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId} | Set Tax Rate on OptionSetItem *MenuOptionSetItemsApi* | [**UpdateMenuItemOptionSetItem**](docs/MenuOptionSetItemsApi.md#updatemenuitemoptionsetitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Update menu item option set item *MenuOptionSetItemsApi* | [**UploadOptionSetItemImage**](docs/MenuOptionSetItemsApi.md#uploadoptionsetitemimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Upload menu item option set item image *MenuOptionSetsApi* | [**CreateMenuItemOptionSet**](docs/MenuOptionSetsApi.md#createmenuitemoptionset) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Create menu item option set @@ -311,8 +345,8 @@ Class | Method | HTTP request | Description *MenuSectionItemsApi* | [**DeleteMenuSectionItemImage**](docs/MenuSectionItemsApi.md#deletemenusectionitemimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Delete menu section item image *MenuSectionItemsApi* | [**GetMenuItemById**](docs/MenuSectionItemsApi.md#getmenuitembyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Get menu item by identifier *MenuSectionItemsApi* | [**GetMenuItems**](docs/MenuSectionItemsApi.md#getmenuitems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Get menu items -*MenuSectionItemsApi* | [**MoveMenuItem**](docs/MenuSectionItemsApi.md#movemenuitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder} | [PRIVATE API]Move an Item within a menu -*MenuSectionItemsApi* | [**SetSectionItemTax**](docs/MenuSectionItemsApi.md#setsectionitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | [PRIVATE API]Move an Item within a menu +*MenuSectionItemsApi* | [**MoveMenuItem**](docs/MenuSectionItemsApi.md#movemenuitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder} | Move an Item within a menu +*MenuSectionItemsApi* | [**SetSectionItemTax**](docs/MenuSectionItemsApi.md#setsectionitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | Set tax rate for menu item *MenuSectionItemsApi* | [**UpdateMenuSectionItem**](docs/MenuSectionItemsApi.md#updatemenusectionitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Update menu section item *MenuSectionItemsApi* | [**UploadMenuSectionItemImage**](docs/MenuSectionItemsApi.md#uploadmenusectionitemimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Upload menu section item image *MenuSectionsApi* | [**CloneMenuSection**](docs/MenuSectionsApi.md#clonemenusection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone | Clone menu section @@ -326,9 +360,21 @@ Class | Method | HTTP request | Description *MenuSectionsApi* | [**MenuSectionsSetItemDisplayOrders**](docs/MenuSectionsApi.md#menusectionssetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders | Re-arrange Items within a Section *MenuSectionsApi* | [**UpdateMenuSection**](docs/MenuSectionsApi.md#updatemenusection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Update menu section *MenuSectionsApi* | [**UploadMenuSectionImage**](docs/MenuSectionsApi.md#uploadmenusectionimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Upload menu section image -*MenusApi* | [**CreateDraftMenuFromExistingMenu**](docs/MenusApi.md#createdraftmenufromexistingmenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | [PRIVATE API]Clone a menu, (without attaching stores) -*MenusApi* | [**CreateNewMenuForApp**](docs/MenusApi.md#createnewmenuforapp) | **POST** /api/v1.0/{appId}/menus | Create a new menu. If request body is empty, the system will create a menu with default items. -*MenusApi* | [**DeleteMenu**](docs/MenusApi.md#deletemenu) | **DELETE** /api/v1.0/menus/{menuId} | [PRIVATE API]Mark a Menu as Deleted +*MenuZonesApi* | [**AddMenuZone**](docs/MenuZonesApi.md#addmenuzone) | **POST** /api/v1.0/menus/{menuId}/zones | Adds a new menu zone to a menu. +*MenuZonesApi* | [**DeleteMenuZone**](docs/MenuZonesApi.md#deletemenuzone) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Deletes a menu zone. +*MenuZonesApi* | [**DeleteMenuZoneImage**](docs/MenuZonesApi.md#deletemenuzoneimage) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Deletes a menu zone image. +*MenuZonesApi* | [**FlipMenuZones**](docs/MenuZonesApi.md#flipmenuzones) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2} | Flips the order of two menu zones. +*MenuZonesApi* | [**GetMenuZone**](docs/MenuZonesApi.md#getmenuzone) | **GET** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Gets a specific menu zone for a given zone id +*MenuZonesApi* | [**GetMenuZonesForMenuId**](docs/MenuZonesApi.md#getmenuzonesformenuid) | **GET** /api/v1.0/menus/{menuId}/zones | Gets all the menu zones for a menu +*MenuZonesApi* | [**SetMenuSectionMenuZone**](docs/MenuZonesApi.md#setmenusectionmenuzone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId} | Assigns a zone to a menu section. +*MenuZonesApi* | [**SetMenuZoneDescription**](docs/MenuZonesApi.md#setmenuzonedescription) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/description | Sets the description of a menu zone. +*MenuZonesApi* | [**SetMenuZoneName**](docs/MenuZonesApi.md#setmenuzonename) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName} | Sets the name of a menu zone. +*MenuZonesApi* | [**UpdateMenuZone**](docs/MenuZonesApi.md#updatemenuzone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Updates a menu zone. +*MenuZonesApi* | [**UploadMenuZoneImage**](docs/MenuZonesApi.md#uploadmenuzoneimage) | **POST** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Uploads an image for a menu zone. +*MenusApi* | [**CreateDraftMenuFromExistingMenu**](docs/MenusApi.md#createdraftmenufromexistingmenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | Clone a menu, (without attaching stores) +*MenusApi* | [**CreateNewMenuAsync**](docs/MenusApi.md#createnewmenuasync) | **POST** /api/v1.0/{appId}/menus/async | Create a new menu asynchronously +*MenusApi* | [**CreateNewMenuForApp**](docs/MenusApi.md#createnewmenuforapp) | **POST** /api/v1.0/{appId}/menus | Create a new menu +*MenusApi* | [**DeleteMenu**](docs/MenusApi.md#deletemenu) | **DELETE** /api/v1.0/menus/{menuId} | Mark a Menu as Deleted *MenusApi* | [**DeleteMenuImage**](docs/MenusApi.md#deletemenuimage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image *MenusApi* | [**DeleteMenuItemMetadata**](docs/MenusApi.md#deletemenuitemmetadata) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Delete menu item metadata *MenusApi* | [**GetAllMenuMetadataByMenuIdAndStoreId**](docs/MenusApi.md#getallmenumetadatabymenuidandstoreid) | **GET** /api/v1.0/menus/{menuId}/metadata/store/{storeId} | Get all menu metadata by menu ID and store ID @@ -336,93 +382,111 @@ Class | Method | HTTP request | Description *MenusApi* | [**GetMenuItemMetadata**](docs/MenusApi.md#getmenuitemmetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Get menu item metadata *MenusApi* | [**GetMenuItemMetadataByKey**](docs/MenusApi.md#getmenuitemmetadatabykey) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get menu item metadata by key *MenusApi* | [**GetMenuItemOptionSetItemMetadata**](docs/MenusApi.md#getmenuitemoptionsetitemmetadata) | **GET** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Get menu item option set item metadata by key -*MenusApi* | [**GetMenuName**](docs/MenusApi.md#getmenuname) | **GET** /api/v1.0/menus/{menuId}/name | [PRIVATE API]Get Menus Name -*MenusApi* | [**GetMenuStoreNames**](docs/MenusApi.md#getmenustorenames) | **GET** /api/v1.0/menus/{menuId}/stores | [PRIVATE API]Get menus store names -*MenusApi* | [**GetMenuTaxDetails**](docs/MenusApi.md#getmenutaxdetails) | **GET** /api/v1.0/menus/{menuId}/tax | [PRIVATE API]Get menus tax details -*MenusApi* | [**GetMenusByAppId**](docs/MenusApi.md#getmenusbyappid) | **GET** /api/v1.0/{appId}/menus | [PRIVATE API]Get menus by appId -*MenusApi* | [**GetMenusCheckpoints**](docs/MenusApi.md#getmenuscheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | [PRIVATE API]Get a Menus Checkpoints -*MenusApi* | [**MenusDeleteTaxRate**](docs/MenusApi.md#menusdeletetaxrate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached -*MenusApi* | [**MenusGetMenuBulkShowHide**](docs/MenusApi.md#menusgetmenubulkshowhide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | -*MenusApi* | [**MenusSetDisplayOnMenuTax**](docs/MenusApi.md#menussetdisplayonmenutax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | [PRIVATE API]Set if tax shows for a Menu -*MenusApi* | [**MenusSetItemDisplayOrders**](docs/MenusApi.md#menussetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | [PRIVATE API]Re-arrange Sections within a Menu -*MenusApi* | [**MenusShowHideBulkItems**](docs/MenusApi.md#menusshowhidebulkitems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | -*MenusApi* | [**MenusUpdateTaxType**](docs/MenusApi.md#menusupdatetaxtype) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | [PRIVATE API]Set the type of Tax on a Menu -*MenusApi* | [**MenusUpsertTaxRate**](docs/MenusApi.md#menusupserttaxrate) | **POST** /api/v1.0/menus/{menuId}/taxrate | [PRIVATE API]Add/Update a Tax Rate -*MenusApi* | [**RestoreAMenuCheckpoint**](docs/MenusApi.md#restoreamenucheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | [PRIVATE API]Restore a Menu to a checkpoint +*MenusApi* | [**GetMenuName**](docs/MenusApi.md#getmenuname) | **GET** /api/v1.0/menus/{menuId}/name | Get Menus Name +*MenusApi* | [**GetMenuStoreNames**](docs/MenusApi.md#getmenustorenames) | **GET** /api/v1.0/menus/{menuId}/stores | Get menus store names +*MenusApi* | [**GetMenuTaxDetails**](docs/MenusApi.md#getmenutaxdetails) | **GET** /api/v1.0/menus/{menuId}/tax | Get menus tax details +*MenusApi* | [**GetMenusByAppId**](docs/MenusApi.md#getmenusbyappid) | **GET** /api/v1.0/{appId}/menus | Get menus by appId +*MenusApi* | [**GetMenusCheckpoints**](docs/MenusApi.md#getmenuscheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | Get a Menus Checkpoints +*MenusApi* | [**MenusDeleteTaxRate**](docs/MenusApi.md#menusdeletetaxrate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +*MenusApi* | [**MenusGetMenuBulkShowHide**](docs/MenusApi.md#menusgetmenubulkshowhide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | Get bulk show/hide menu items and option set items +*MenusApi* | [**MenusSetDisplayOnMenuTax**](docs/MenusApi.md#menussetdisplayonmenutax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | Set if tax shows for a Menu +*MenusApi* | [**MenusSetItemDisplayOrders**](docs/MenusApi.md#menussetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | Re-arrange Sections within a Menu +*MenusApi* | [**MenusShowHideBulkItems**](docs/MenusApi.md#menusshowhidebulkitems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | Bulk show/hide menu items or option set items +*MenusApi* | [**MenusUpdateTaxType**](docs/MenusApi.md#menusupdatetaxtype) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | Set the type of Tax on a Menu +*MenusApi* | [**MenusUpsertTaxRate**](docs/MenusApi.md#menusupserttaxrate) | **POST** /api/v1.0/menus/{menuId}/taxrate | Add/Update a Tax Rate +*MenusApi* | [**RestoreAMenuCheckpoint**](docs/MenusApi.md#restoreamenucheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | Restore a Menu to a checkpoint *MenusApi* | [**SetMenuItemMetadata**](docs/MenusApi.md#setmenuitemmetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update menu item metadata *MenusApi* | [**SetMenuItemOptionSetItemMetadata**](docs/MenusApi.md#setmenuitemoptionsetitemmetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update menu item option set item metadata -*MenusApi* | [**SetMenuLock**](docs/MenusApi.md#setmenulock) | **POST** /api/v1.0/menus/{menuId}/lock | [PRIVATE API]Lock/Unlock a Menu for Editing -*MenusApi* | [**SetMenuName**](docs/MenusApi.md#setmenuname) | **POST** /api/v1.0/menus/{menuId}/name | [PRIVATE API]Set Menus Name +*MenusApi* | [**SetMenuLock**](docs/MenusApi.md#setmenulock) | **POST** /api/v1.0/menus/{menuId}/lock | Lock/Unlock a Menu for Editing +*MenusApi* | [**SetMenuName**](docs/MenusApi.md#setmenuname) | **POST** /api/v1.0/menus/{menuId}/name | Set Menus Name *MenusApi* | [**UpdateMenu**](docs/MenusApi.md#updatemenu) | **POST** /api/v1.0/menus/{menuId} | Update menu *MenusApi* | [**UploadMenuImage**](docs/MenusApi.md#uploadmenuimage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image *MenusApi* | [**UploadNewMenuForApp**](docs/MenusApi.md#uploadnewmenuforapp) | **POST** /api/v1.0/{appId}/menus/xlsx | Create a new menu from xlsx file. -*MetafieldDefinitionsApi* | [**CreateMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#createmetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | Create a Metafield Definition -*MetafieldDefinitionsApi* | [**GetMetafieldDefinitionByKey**](docs/MetafieldDefinitionsApi.md#getmetafielddefinitionbykey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | Get a Metafield Definition for the specified owner entity and key. -*MetafieldDefinitionsApi* | [**GetMetafieldDefinitions**](docs/MetafieldDefinitionsApi.md#getmetafielddefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | Get Metafield Definitions for the specified owner entity. -*MetafieldDefinitionsApi* | [**GetOwnerEntityConfigurations**](docs/MetafieldDefinitionsApi.md#getownerentityconfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | Get OwnerEntity Configurations which contain information to manage Metafield Definitions -*MetafieldDefinitionsApi* | [**GetOwnerEntityRecommendations**](docs/MetafieldDefinitionsApi.md#getownerentityrecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | Get OwnerEntity Definition Recommendations -*MetafieldDefinitionsApi* | [**UpdateMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#updatemetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | Update a Metafield Definition -*MobileAppsApi* | [**GetAppConfigSalesChannel**](docs/MobileAppsApi.md#getappconfigsaleschannel) | **GET** /api/v1.0/mobileapps/{appId}/saleschannel/details | Get sales channel configuration -*MobileAppsApi* | [**GetStatistics**](docs/MobileAppsApi.md#getstatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | Get statistics mobile apps -*MobileAppsApi* | [**GetSubmissionDetails**](docs/MobileAppsApi.md#getsubmissiondetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | Get submission details mobile apps -*MobileAppsApi* | [**GetSubmissionStatus**](docs/MobileAppsApi.md#getsubmissionstatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/status | Get submission status mobile apps -*MobileAppsApi* | [**Submission**](docs/MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | Submission form mobile apps -*MobileAppsApi* | [**UpdateAppConfigSalesChannel**](docs/MobileAppsApi.md#updateappconfigsaleschannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | Update the application sales channel configuration -*MobileAppsApi* | [**UpdateSubmissionStatus**](docs/MobileAppsApi.md#updatesubmissionstatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{mobileAppsSubmissionId}/status | Update submission status -*MobileAppsApi* | [**UploadImage**](docs/MobileAppsApi.md#uploadimage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | Upload image mobile apps -*OAuthClientsApi* | [**AddRedirectUri**](docs/OAuthClientsApi.md#addredirecturi) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Create OAuth App redirect uri -*OAuthClientsApi* | [**CreateOAuthApp**](docs/OAuthClientsApi.md#createoauthapp) | **POST** /api/v1.0/{appId}/oauthclients | Create OAuth App -*OAuthClientsApi* | [**DeleteOAuthApp**](docs/OAuthClientsApi.md#deleteoauthapp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Delete OAuth App -*OAuthClientsApi* | [**GetOAuthApps**](docs/OAuthClientsApi.md#getoauthapps) | **GET** /api/v1.0/{appId}/oauthclients | Get all OAuth Apps -*OAuthClientsApi* | [**GetOAuthClientByClientId**](docs/OAuthClientsApi.md#getoauthclientbyclientid) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Get OAuth App by identifier -*OAuthClientsApi* | [**GetOAuthClientSecret**](docs/OAuthClientsApi.md#getoauthclientsecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | Get OAuth App secret key -*OAuthClientsApi* | [**GetOauthAccessToken**](docs/OAuthClientsApi.md#getoauthaccesstoken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | Get OAuth access token for App -*OAuthClientsApi* | [**GetRedirectUris**](docs/OAuthClientsApi.md#getredirecturis) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Get OAuth App redirect uris +*MenusNutritionInfoApi* | [**AddOrUpdateMenuItemNutritionInfo**](docs/MenusNutritionInfoApi.md#addorupdatemenuitemnutritioninfo) | **POST** /api/v1.0/menus/{menuId}/menuItem/{publicId}/nutrition | Add or update menuitem nutrition info by menu item's publicId +*MenusNutritionInfoApi* | [**AddOrUpdateMenuItemOptionSetItemNutritionInfo**](docs/MenusNutritionInfoApi.md#addorupdatemenuitemoptionsetitemnutritioninfo) | **POST** /api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition | Add or update menuitem optionsetitem nutrition info its publicId +*MenusNutritionInfoApi* | [**AddOrUpdateMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#addorupdatemenunutritioninfobymenuid) | **POST** /api/v1.0/menus/{menuId}/nutrition | Add or update menu nutrition by identifier +*MenusNutritionInfoApi* | [**DeleteMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#deletemenunutritioninfobymenuid) | **DELETE** /api/v1.0/menus/{menuId}/nutrition | Delete menu nutrition information by menuId +*MenusNutritionInfoApi* | [**GetAllergens**](docs/MenusNutritionInfoApi.md#getallergens) | **GET** /api/v1.0/{appId}/menus/nutrition/allergens | Get allergens +*MenusNutritionInfoApi* | [**GetMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#getmenunutritioninfobymenuid) | **GET** /api/v1.0/menus/{menuId}/nutrition | Get menu nutrition by menuId +*MenusNutritionInfoV2Api* | [**AddOrUpdateMenuItemNutritionInfoV2**](docs/MenusNutritionInfoV2Api.md#addorupdatemenuitemnutritioninfov2) | **POST** /api/v1.0/{appId}/menus/{menuId}/menuItem/{publicId}/nutritionv2 | Add or update menuitem nutrition info by menu item's publicId +*MenusNutritionInfoV2Api* | [**AddOrUpdateMenuItemOptionSetItemNutritionInfoV2**](docs/MenusNutritionInfoV2Api.md#addorupdatemenuitemoptionsetitemnutritioninfov2) | **POST** /api/v1.0/{appId}/menus/{menuId}/menuItemOption/{publicId}/nutritionv2 | Add or update menuitem option set item's nutrition info by its publicId +*MenusNutritionInfoV2Api* | [**GetAllergensV2**](docs/MenusNutritionInfoV2Api.md#getallergensv2) | **GET** /api/v1.0/{appId}/menus/nutritionv2/allergens | Get allergens +*MenusNutritionInfoV2Api* | [**GetMenuNutritionInfoV2ByMenuId**](docs/MenusNutritionInfoV2Api.md#getmenunutritioninfov2bymenuid) | **GET** /api/v1.0/{appId}/menus/{menuId}/nutritionv2 | Get menu nutrition by menuId +*MetafieldDefinitionsApi* | [**CreateMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#createmetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +*MetafieldDefinitionsApi* | [**GetMetafieldDefinitionByKey**](docs/MetafieldDefinitionsApi.md#getmetafielddefinitionbykey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +*MetafieldDefinitionsApi* | [**GetMetafieldDefinitions**](docs/MetafieldDefinitionsApi.md#getmetafielddefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +*MetafieldDefinitionsApi* | [**GetOwnerEntityConfigurations**](docs/MetafieldDefinitionsApi.md#getownerentityconfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | +*MetafieldDefinitionsApi* | [**GetOwnerEntityRecommendations**](docs/MetafieldDefinitionsApi.md#getownerentityrecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | +*MetafieldDefinitionsApi* | [**UpdateMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#updatemetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +*MobileAppsApi* | [**GetAppConfigSalesChannel**](docs/MobileAppsApi.md#getappconfigsaleschannel) | **GET** /api/v1.0/mobileapps/{appId}/saleschannel/details | +*MobileAppsApi* | [**GetStatistics**](docs/MobileAppsApi.md#getstatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | +*MobileAppsApi* | [**GetSubmissionDetails**](docs/MobileAppsApi.md#getsubmissiondetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | +*MobileAppsApi* | [**GetSubmissionStatus**](docs/MobileAppsApi.md#getsubmissionstatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +*MobileAppsApi* | [**Publish**](docs/MobileAppsApi.md#publish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish | +*MobileAppsApi* | [**Resubmission**](docs/MobileAppsApi.md#resubmission) | **POST** /api/v1.0/mobileapps/{appId}/resubmission | +*MobileAppsApi* | [**Submission**](docs/MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | +*MobileAppsApi* | [**Unpublish**](docs/MobileAppsApi.md#unpublish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish | +*MobileAppsApi* | [**UpdateAppConfigSalesChannel**](docs/MobileAppsApi.md#updateappconfigsaleschannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | +*MobileAppsApi* | [**UpdateSubmissionStatus**](docs/MobileAppsApi.md#updatesubmissionstatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +*MobileAppsApi* | [**UploadImage**](docs/MobileAppsApi.md#uploadimage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | +*OAuthClientsApi* | [**AddRedirectUri**](docs/OAuthClientsApi.md#addredirecturi) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +*OAuthClientsApi* | [**CreateOAuthApp**](docs/OAuthClientsApi.md#createoauthapp) | **POST** /api/v1.0/{appId}/oauthclients | +*OAuthClientsApi* | [**DeleteOAuthApp**](docs/OAuthClientsApi.md#deleteoauthapp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +*OAuthClientsApi* | [**GetOAuthApps**](docs/OAuthClientsApi.md#getoauthapps) | **GET** /api/v1.0/{appId}/oauthclients | +*OAuthClientsApi* | [**GetOAuthClientByClientId**](docs/OAuthClientsApi.md#getoauthclientbyclientid) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +*OAuthClientsApi* | [**GetOAuthClientSecret**](docs/OAuthClientsApi.md#getoauthclientsecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | +*OAuthClientsApi* | [**GetOauthAccessToken**](docs/OAuthClientsApi.md#getoauthaccesstoken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | +*OAuthClientsApi* | [**GetRedirectUris**](docs/OAuthClientsApi.md#getredirecturis) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | *OAuthClientsApi* | [**OAuthClientsGetApplications**](docs/OAuthClientsApi.md#oauthclientsgetapplications) | **GET** /api/v1.0/{appId}/oauthclients/appnames | -*OAuthClientsApi* | [**RemoveRedirectUri**](docs/OAuthClientsApi.md#removeredirecturi) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | Delete OAuth App redirect uri -*OAuthClientsApi* | [**UpdateOAuthApp**](docs/OAuthClientsApi.md#updateoauthapp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Update OAuth App +*OAuthClientsApi* | [**RemoveRedirectUri**](docs/OAuthClientsApi.md#removeredirecturi) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | +*OAuthClientsApi* | [**UpdateOAuthApp**](docs/OAuthClientsApi.md#updateoauthapp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | *OnboardingApi* | [**OnboardingGetOnboardingConfig**](docs/OnboardingApi.md#onboardinggetonboardingconfig) | **GET** /api/v1.0/clients/{appId}/onboarding/config | +*OnboardingApi* | [**OnboardingGetOnboardingConfigs**](docs/OnboardingApi.md#onboardinggetonboardingconfigs) | **GET** /api/v1.0/clients/{appId}/onboarding/configs | *OnboardingApi* | [**OnboardingGetOnboardingItems**](docs/OnboardingApi.md#onboardinggetonboardingitems) | **GET** /api/v1.0/clients/{appId}/onboarding/stores/{storeId} | +*OnboardingApi* | [**OnboardingGetOnboardingItemsV2**](docs/OnboardingApi.md#onboardinggetonboardingitemsv2) | **GET** /api/v1.0/clients/{appId}/onboarding/stores | *OnboardingApi* | [**OnboardingUpdateOnboardingConfig**](docs/OnboardingApi.md#onboardingupdateonboardingconfig) | **POST** /api/v1.0/clients/{appId}/onboarding/config | +*OnboardingApi* | [**OnboardingUpdateOnboardingConfigById**](docs/OnboardingApi.md#onboardingupdateonboardingconfigbyid) | **POST** /api/v1.0/clients/{appId}/onboarding/config/{configId} | *OnboardingApi* | [**OnboardingUpdateOnboardingItem**](docs/OnboardingApi.md#onboardingupdateonboardingitem) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId} | -*OrderBatchesApi* | [**GetAllOrderBatches**](docs/OrderBatchesApi.md#getallorderbatches) | **GET** /api/v1.0/{appId}/stores/{storeId}/order-batches | Returns order batches -*OrderBatchesApi* | [**GetOrderBatch**](docs/OrderBatchesApi.md#getorderbatch) | **GET** /api/v1.0/{appId}/stores/{storeId}/order-batches/{batchId} | Returns the order batch details -*OrderBatchingConfigurationApi* | [**Get**](docs/OrderBatchingConfigurationApi.md#get) | **GET** /api/v1.0/stores/{storeId}/order-batching-configuration | Returns order batching configuration for a specific store -*OrderBatchingConfigurationApi* | [**Post**](docs/OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | Sets order batching configuration for a specific store -*OrderIngestApi* | [**OrderIngestSubmitNewOrder**](docs/OrderIngestApi.md#orderingestsubmitneworder) | **POST** /api/v1.0/{appNameId}/order-ingest/submit | Provides an ability to ingest a 3rd party order into Flipdish ecosystem -*OrdersApi* | [**AcceptOrder**](docs/OrdersApi.md#acceptorder) | **POST** /api/v1.0/orders/{id}/accept | Accept order -*OrdersApi* | [**DispatchOrder**](docs/OrdersApi.md#dispatchorder) | **POST** /api/v1.0/orders/{id}/dispatch | Dispatch order -*OrdersApi* | [**GetDeliveryInformation**](docs/OrdersApi.md#getdeliveryinformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | Get order delivery information -*OrdersApi* | [**GetFulfillmentState**](docs/OrdersApi.md#getfulfillmentstate) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | Get order fulfillment state -*OrdersApi* | [**GetFulfillmentStatusWithDetailsAndActions**](docs/OrdersApi.md#getfulfillmentstatuswithdetailsandactions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | Get order fulfillment state with actionable details like default next state -*OrdersApi* | [**GetOrderById**](docs/OrdersApi.md#getorderbyid) | **GET** /api/v1.0/orders/{id} | Get order by ID -*OrdersApi* | [**GetOrders**](docs/OrdersApi.md#getorders) | **GET** /api/v1.0/orders | Get orders by filter -*OrdersApi* | [**GetOrdersSummary**](docs/OrdersApi.md#getorderssummary) | **GET** /api/v1.0/{appId}/orders/summaries | [PRIVATE API] Get summary of orders by filter -*OrdersApi* | [**RefundOrder**](docs/OrdersApi.md#refundorder) | **POST** /api/v1.0/orders/{id}/refund | Refund order -*OrdersApi* | [**RejectOrder**](docs/OrdersApi.md#rejectorder) | **POST** /api/v1.0/orders/{id}/reject | Reject order -*OrdersApi* | [**SearchFulfillmentStatuses**](docs/OrdersApi.md#searchfulfillmentstatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | Get fulfillment status for a list of orders -*OrdersApi* | [**UpdateDeliveryInformation**](docs/OrdersApi.md#updatedeliveryinformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | Add/update delivery-related information to an order -*OrdersApi* | [**UpdateFulfillmentState**](docs/OrdersApi.md#updatefulfillmentstate) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | Update fulfillment status information to an order -*PaymentIntentsApi* | [**GetPaymentIntent**](docs/PaymentIntentsApi.md#getpaymentintent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | Returns stripe payment intent for a given id -*PaymentsApi* | [**GetOrderPaymentInformation**](docs/PaymentsApi.md#getorderpaymentinformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | Returns payment refund information related to the order with the order id -*PayoutsApi* | [**GetPayout**](docs/PayoutsApi.md#getpayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | Get Payout details broken down by Store -*PayoutsApi* | [**GetPayoutChargebacks**](docs/PayoutsApi.md#getpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | Get list of payout's chargebacks -*PayoutsApi* | [**GetPayoutOrders**](docs/PayoutsApi.md#getpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | Get list of payout's orders -*PayoutsApi* | [**GetPayoutOtherCharges**](docs/PayoutsApi.md#getpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | Get list of payout's other charges -*PayoutsApi* | [**GetPayoutRefunds**](docs/PayoutsApi.md#getpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | Get list of payout's refunds -*PayoutsApi* | [**GetPayoutSummaries**](docs/PayoutsApi.md#getpayoutsummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | Get list of payout summaries -*PayoutsApi* | [**GetPayouts**](docs/PayoutsApi.md#getpayouts) | **GET** /api/v1.0/{appId}/payouts | Get list of payouts -*PayoutsExportApi* | [**ExportPayoutChargebacks**](docs/PayoutsExportApi.md#exportpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export | Export a list of payout's chargebacks as CSV -*PayoutsExportApi* | [**ExportPayoutOrders**](docs/PayoutsExportApi.md#exportpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | Export a list of payout's orders as CSV -*PayoutsExportApi* | [**ExportPayoutOtherCharges**](docs/PayoutsExportApi.md#exportpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | Export a list of payout's other charges as CSV -*PayoutsExportApi* | [**ExportPayoutRefunds**](docs/PayoutsExportApi.md#exportpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | Export a list of payout's refunds as CSV -*PayoutsExportApi* | [**ExportPayoutStores**](docs/PayoutsExportApi.md#exportpayoutstores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | Export payout's details as CSV -*PayoutsExportApi* | [**ExportPayouts**](docs/PayoutsExportApi.md#exportpayouts) | **GET** /api/v1.0/{appId}/payouts/export | Export payouts as CSV -*ProcessingFeeConfigsApi* | [**GetProcessingFeeConfigsByStoreIds**](docs/ProcessingFeeConfigsApi.md#getprocessingfeeconfigsbystoreids) | **GET** /api/v1.0/processingfeeconfigs | Get processing fee configs by store identifiers -*PushNotificationsApi* | [**DeletePushNotification**](docs/PushNotificationsApi.md#deletepushnotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Push notification to cutomers -*PushNotificationsApi* | [**GetPushNotifications**](docs/PushNotificationsApi.md#getpushnotifications) | **GET** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers -*PushNotificationsApi* | [**SchedulePushNotification**](docs/PushNotificationsApi.md#schedulepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers -*PushNotificationsApi* | [**UpdatePushNotification**](docs/PushNotificationsApi.md#updatepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Update the push notification +*OnboardingApi* | [**OnboardingUpdateOnboardingItemV2**](docs/OnboardingApi.md#onboardingupdateonboardingitemv2) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId} | +*OrderBatchesApi* | [**GetAllOrderBatches**](docs/OrderBatchesApi.md#getallorderbatches) | **GET** /api/v1.0/{appId}/order-batches | +*OrderBatchesApi* | [**GetOrderBatch**](docs/OrderBatchesApi.md#getorderbatch) | **GET** /api/v1.0/{appId}/order-batches/{orderBatchId} | +*OrderBatchingConfigurationApi* | [**Get**](docs/OrderBatchingConfigurationApi.md#get) | **GET** /api/v1.0/stores/{storeId}/order-batching-configuration | +*OrderBatchingConfigurationApi* | [**Post**](docs/OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | +*OrdersApi* | [**AcceptOrder**](docs/OrdersApi.md#acceptorder) | **POST** /api/v1.0/orders/{id}/accept | +*OrdersApi* | [**DispatchOrder**](docs/OrdersApi.md#dispatchorder) | **POST** /api/v1.0/orders/{id}/dispatch | +*OrdersApi* | [**GetDeliveryInformation**](docs/OrdersApi.md#getdeliveryinformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | +*OrdersApi* | [**GetFulfillmentState**](docs/OrdersApi.md#getfulfillmentstate) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | +*OrdersApi* | [**GetFulfillmentStatusWithDetailsAndActions**](docs/OrdersApi.md#getfulfillmentstatuswithdetailsandactions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | +*OrdersApi* | [**GetOrderById**](docs/OrdersApi.md#getorderbyid) | **GET** /api/v1.0/orders/{id} | +*OrdersApi* | [**GetOrders**](docs/OrdersApi.md#getorders) | **GET** /api/v1.0/orders | +*OrdersApi* | [**GetOrdersSummary**](docs/OrdersApi.md#getorderssummary) | **GET** /api/v1.0/{appId}/orders/summaries | +*OrdersApi* | [**GetOrdersSummaryNew**](docs/OrdersApi.md#getorderssummarynew) | **GET** /api/v1.0/{appId}/orders/summariesNew | +*OrdersApi* | [**GetReadyToProcess**](docs/OrdersApi.md#getreadytoprocess) | **GET** /api/v1.0/{appId}/orders/ready_to_process | +*OrdersApi* | [**RefundOrder**](docs/OrdersApi.md#refundorder) | **POST** /api/v1.0/orders/{id}/refund | +*OrdersApi* | [**RejectOrder**](docs/OrdersApi.md#rejectorder) | **POST** /api/v1.0/orders/{id}/reject | +*OrdersApi* | [**SearchFulfillmentStatuses**](docs/OrdersApi.md#searchfulfillmentstatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | +*OrdersApi* | [**UpdateDeliveryInformation**](docs/OrdersApi.md#updatedeliveryinformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | +*OrdersApi* | [**UpdateFulfillmentState**](docs/OrdersApi.md#updatefulfillmentstate) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | +*PaymentIntentsApi* | [**GetPaymentIntent**](docs/PaymentIntentsApi.md#getpaymentintent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | +*PaymentsApi* | [**GetOrderPaymentInformation**](docs/PaymentsApi.md#getorderpaymentinformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | +*PayoutReportsApi* | [**GetPayoutReport3Details**](docs/PayoutReportsApi.md#getpayoutreport3details) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details | +*PayoutReportsApi* | [**GetPayoutReport3Overview**](docs/PayoutReportsApi.md#getpayoutreport3overview) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview | +*PayoutReportsApi* | [**GetPayoutReport3PropertyDetails**](docs/PayoutReportsApi.md#getpayoutreport3propertydetails) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/properties | +*PayoutReportsApi* | [**GetPayoutReport3RefundedOrders**](docs/PayoutReportsApi.md#getpayoutreport3refundedorders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders | +*PayoutReportsApi* | [**GetPayoutReport3Stores**](docs/PayoutReportsApi.md#getpayoutreport3stores) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/stores | +*PayoutsApi* | [**GetPayout**](docs/PayoutsApi.md#getpayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | +*PayoutsApi* | [**GetPayoutChargebacks**](docs/PayoutsApi.md#getpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | +*PayoutsApi* | [**GetPayoutOrders**](docs/PayoutsApi.md#getpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | +*PayoutsApi* | [**GetPayoutOtherCharges**](docs/PayoutsApi.md#getpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | +*PayoutsApi* | [**GetPayoutRefunds**](docs/PayoutsApi.md#getpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | +*PayoutsApi* | [**GetPayoutSummaries**](docs/PayoutsApi.md#getpayoutsummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | +*PayoutsApi* | [**GetPayouts**](docs/PayoutsApi.md#getpayouts) | **GET** /api/v1.0/{appId}/payouts | +*ProcessingFeeConfigsApi* | [**GetProcessingFeeConfigsByStoreIds**](docs/ProcessingFeeConfigsApi.md#getprocessingfeeconfigsbystoreids) | **GET** /api/v1.0/processingfeeconfigs | +*PushNotificationsApi* | [**DeletePushNotification**](docs/PushNotificationsApi.md#deletepushnotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +*PushNotificationsApi* | [**GetPushNotifications**](docs/PushNotificationsApi.md#getpushnotifications) | **GET** /api/v1.0/{appId}/pushnotifications | +*PushNotificationsApi* | [**SchedulePushNotification**](docs/PushNotificationsApi.md#schedulepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications | +*PushNotificationsApi* | [**UpdatePushNotification**](docs/PushNotificationsApi.md#updatepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +*ReceiptsApi* | [**GetReceipt**](docs/ReceiptsApi.md#getreceipt) | **GET** /api/v1.0/receipts/{orderId} | *RestaurantVouchersPayGreenApi* | [**CreatePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#createpaygreenconfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen | *RestaurantVouchersPayGreenApi* | [**DeletePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#deletepaygreenconfiguration) | **DELETE** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | *RestaurantVouchersPayGreenApi* | [**GetElegibleStores**](docs/RestaurantVouchersPayGreenApi.md#getelegiblestores) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores | @@ -432,108 +496,182 @@ Class | Method | HTTP request | Description *RestaurantVouchersPayGreenApi* | [**ListPayGreenConfigurations**](docs/RestaurantVouchersPayGreenApi.md#listpaygreenconfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | *RestaurantVouchersPayGreenApi* | [**UpdatePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#updatepaygreenconfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | *RestaurantVouchersPayGreenApi* | [**UpdateStorePayGreenConfiguration_**](docs/RestaurantVouchersPayGreenApi.md#updatestorepaygreenconfiguration_) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | -*StoreGroupsApi* | [**CreateStoreGroup**](docs/StoreGroupsApi.md#createstoregroup) | **POST** /api/v1.0/{appNameId}/storegroups | Creates a Store Group It will be attached to an existing App -*StoreGroupsApi* | [**GetStoreGroup**](docs/StoreGroupsApi.md#getstoregroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | Returns a Store Groups -*StoreGroupsApi* | [**GetStoreGroups**](docs/StoreGroupsApi.md#getstoregroups) | **GET** /api/v1.0/{appNameId}/storegroups | Returns a paginated list of Store Groups -*StoreGroupsApi* | [**GetStoreGroupsExtended**](docs/StoreGroupsApi.md#getstoregroupsextended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | [PRIVATE API] Returns a paginated list of Extended Store Groups -*StoreGroupsApi* | [**RemoveStoreGroup**](docs/StoreGroupsApi.md#removestoregroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | Deletes a Store Group Can only remove a store group if there is no stores attached to the group -*StoreGroupsApi* | [**UpdateStoreGroup**](docs/StoreGroupsApi.md#updatestoregroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | Updates Store Group -*StoreOrderCapacityApi* | [**GetStoreOrderCapacity**](docs/StoreOrderCapacityApi.md#getstoreordercapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | Get store's order capacity configuration -*StoreOrderCapacityApi* | [**UpdateStoreOrderCapacityConfig**](docs/StoreOrderCapacityApi.md#updatestoreordercapacityconfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | Create or update a store's order capacity configuration -*StoresApi* | [**ArchiveStore**](docs/StoresApi.md#archivestore) | **POST** /api/v1.0/stores/{storeId}/archive | Archive store -*StoresApi* | [**AssignMenu**](docs/StoresApi.md#assignmenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | Assign Menu to Store -*StoresApi* | [**CloneStore**](docs/StoresApi.md#clonestore) | **POST** /api/v1.0/stores/{storeId}/clone | Clone store with store clone settings -*StoresApi* | [**ConfigureStoreServiceCharge**](docs/StoresApi.md#configurestoreservicecharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | Configure Store Service Charge; Idempotent Operation -*StoresApi* | [**CreateBusinessHoursOverrideByStoreId**](docs/StoresApi.md#createbusinesshoursoverridebystoreid) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | Create Business Hours Override for a store -*StoresApi* | [**CreateStore**](docs/StoresApi.md#createstore) | **POST** /api/v1.0/stores | Create store with Store Group identifier -*StoresApi* | [**DeleteBusinessHoursOverride**](docs/StoresApi.md#deletebusinesshoursoverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | Delete Business Hours Override for a store -*StoresApi* | [**GetBankAccountForStore**](docs/StoresApi.md#getbankaccountforstore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | Get Stores Bank Account Id -*StoresApi* | [**GetBusinessHours**](docs/StoresApi.md#getbusinesshours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Get Business hours -*StoresApi* | [**GetBusinessHoursOverrideByStoreId**](docs/StoresApi.md#getbusinesshoursoverridebystoreid) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | Get business hours overrides by store identifier -*StoresApi* | [**GetEndOfDayReport**](docs/StoresApi.md#getendofdayreport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | Get store end of day report -*StoresApi* | [**GetPreOrderConfig**](docs/StoresApi.md#getpreorderconfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | Get the pre order config for a store, by type -*StoresApi* | [**GetPreOrderPreview**](docs/StoresApi.md#getpreorderpreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | Get the Preview times of the pre-order configuration -*StoresApi* | [**GetProcessingFeeConfigsByStoreId**](docs/StoresApi.md#getprocessingfeeconfigsbystoreid) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | Get processing fee configs by store identifier -*StoresApi* | [**GetProcessingFeeConfigsByStoreIdAndPaymentAccountType**](docs/StoresApi.md#getprocessingfeeconfigsbystoreidandpaymentaccounttype) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | Get processing fee configs by store identifier -*StoresApi* | [**GetStoreById**](docs/StoresApi.md#getstorebyid) | **GET** /api/v1.0/stores/{storeId} | Get store by identifier -*StoresApi* | [**GetStoreFeeConfig**](docs/StoresApi.md#getstorefeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | Retrieve Store feeConfig -*StoresApi* | [**GetStoreHeadersByAppId**](docs/StoresApi.md#getstoreheadersbyappid) | **GET** /api/v1.0/{appId}/stores/header | Get all stores by app name id -*StoresApi* | [**GetStoreNetSales**](docs/StoresApi.md#getstorenetsales) | **GET** /api/v1.0/{appId}/stores/stats | Get stores statistics by app name id and storeIds -*StoresApi* | [**GetStoreServiceCharge**](docs/StoresApi.md#getstoreservicecharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | Retrieve Store Service Charge -*StoresApi* | [**GetStores**](docs/StoresApi.md#getstores) | **GET** /api/v1.0/stores | Get all stores, excluding archived ones -*StoresApi* | [**GetStoresByAppId**](docs/StoresApi.md#getstoresbyappid) | **GET** /api/v1.0/{appId}/stores | Get all stores by app name id -*StoresApi* | [**GetStoresByStoreIdWithValidations**](docs/StoresApi.md#getstoresbystoreidwithvalidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | Get store validation by storeIds -*StoresApi* | [**PublishStore**](docs/StoresApi.md#publishstore) | **POST** /api/v1.0/stores/{storeId}/publish | Publish store -*StoresApi* | [**SetBusinessHours**](docs/StoresApi.md#setbusinesshours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Set Business hours -*StoresApi* | [**SetPreOrdeEnabled**](docs/StoresApi.md#setpreordeenabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | UPDATE pre order config for a store, by type -*StoresApi* | [**UnpublishStore**](docs/StoresApi.md#unpublishstore) | **POST** /api/v1.0/stores/{storeId}/unpublish | Unpublish store -*StoresApi* | [**UpdatePreOrderConfig**](docs/StoresApi.md#updatepreorderconfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | UPDATE pre order config for a store, by type -*StoresApi* | [**UpdateStore**](docs/StoresApi.md#updatestore) | **POST** /api/v1.0/stores/{storeId} | Update store by identifier -*StoresApi* | [**UpdateStoreAddress**](docs/StoresApi.md#updatestoreaddress) | **POST** /api/v1.0/stores/{storeId}/address | Update store address -*StoresApi* | [**UpdateStoreAddressCoordinates**](docs/StoresApi.md#updatestoreaddresscoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | Update store address coordinates -*StoresApi* | [**UpdateStoreAddressForm**](docs/StoresApi.md#updatestoreaddressform) | **POST** /api/v1.0/stores/{storeId}/addressform | Update store address -*StripeCustomConnectApi* | [**CreateBankAccountAndConnectedAccount**](docs/StripeCustomConnectApi.md#createbankaccountandconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | Create a new Bank Account and Stripe connected account -*StripeCustomConnectApi* | [**CreateStripeConnectedAccount**](docs/StripeCustomConnectApi.md#createstripeconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | Create or update a Stripe connected account associated with the bank account of bankAccountId -*StripeCustomConnectApi* | [**CreateStripeConnectedAccountLink**](docs/StripeCustomConnectApi.md#createstripeconnectedaccountlink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | Gets a single-use Stripe URL for the given account -*StripeCustomConnectApi* | [**GetVerificationStatus**](docs/StripeCustomConnectApi.md#getverificationstatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | Gets the current verification status of the given connected account -*StripeCustomConnectApi* | [**SetBankAccountBusinessType**](docs/StripeCustomConnectApi.md#setbankaccountbusinesstype) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | Update bank account's BusinessType and create a Stripe Connected Account +*SearchApi* | [**SearchRestaurants**](docs/SearchApi.md#searchrestaurants) | **GET** /api/v1.0/search/restaurants | +*SmsProviderCredentialsApi* | [**GetBrandSmsProviderCredentialByServiceType**](docs/SmsProviderCredentialsApi.md#getbrandsmsprovidercredentialbyservicetype) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*SmsProviderCredentialsApi* | [**GetBrandSmsProviderCredentials**](docs/SmsProviderCredentialsApi.md#getbrandsmsprovidercredentials) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials | +*SmsProviderCredentialsApi* | [**SmsProviderCredentialDelete**](docs/SmsProviderCredentialsApi.md#smsprovidercredentialdelete) | **DELETE** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*SmsProviderCredentialsApi* | [**SmsProviderCredentialUpdate**](docs/SmsProviderCredentialsApi.md#smsprovidercredentialupdate) | **POST** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*SmsProviderCredentialsApi* | [**SmsProviderCredentialsBulkUpsert**](docs/SmsProviderCredentialsApi.md#smsprovidercredentialsbulkupsert) | **POST** /api/v1.0/sms-providers/bulk-upsert | +*StoreGroupsApi* | [**AssignStoresToStoreGroup**](docs/StoreGroupsApi.md#assignstorestostoregroup) | **POST** /api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores | +*StoreGroupsApi* | [**CreateStoreGroup**](docs/StoreGroupsApi.md#createstoregroup) | **POST** /api/v1.0/{appNameId}/storegroups | +*StoreGroupsApi* | [**GetStoreGroup**](docs/StoreGroupsApi.md#getstoregroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | +*StoreGroupsApi* | [**GetStoreGroups**](docs/StoreGroupsApi.md#getstoregroups) | **GET** /api/v1.0/{appNameId}/storegroups | +*StoreGroupsApi* | [**GetStoreGroupsExtended**](docs/StoreGroupsApi.md#getstoregroupsextended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | +*StoreGroupsApi* | [**RemoveStoreGroup**](docs/StoreGroupsApi.md#removestoregroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | +*StoreGroupsApi* | [**SetCustomerMessages**](docs/StoreGroupsApi.md#setcustomermessages) | **POST** /api/v1.0/storegroups/{storeGroupId}/CustomerMessages | +*StoreGroupsApi* | [**UpdateStoreGroup**](docs/StoreGroupsApi.md#updatestoregroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | +*StoreOrderCapacityApi* | [**GetStoreOrderCapacity**](docs/StoreOrderCapacityApi.md#getstoreordercapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | +*StoreOrderCapacityApi* | [**UpdateStoreOrderCapacityConfig**](docs/StoreOrderCapacityApi.md#updatestoreordercapacityconfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | +*StoresApi* | [**ArchiveStore**](docs/StoresApi.md#archivestore) | **POST** /api/v1.0/stores/{storeId}/archive | +*StoresApi* | [**AssignMenu**](docs/StoresApi.md#assignmenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | +*StoresApi* | [**CloneStore**](docs/StoresApi.md#clonestore) | **POST** /api/v1.0/stores/{storeId}/clone | +*StoresApi* | [**ConfigureStoreServiceCharge**](docs/StoresApi.md#configurestoreservicecharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | +*StoresApi* | [**CreateBusinessHoursOverrideByStoreId**](docs/StoresApi.md#createbusinesshoursoverridebystoreid) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | +*StoresApi* | [**CreateStore**](docs/StoresApi.md#createstore) | **POST** /api/v1.0/stores | +*StoresApi* | [**CreateStoreInProperty**](docs/StoresApi.md#createstoreinproperty) | **POST** /api/v1.0/properties/{propertyId}/stores | +*StoresApi* | [**DeleteBusinessHoursOverride**](docs/StoresApi.md#deletebusinesshoursoverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | +*StoresApi* | [**GetBankAccountForStore**](docs/StoresApi.md#getbankaccountforstore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | +*StoresApi* | [**GetBusinessHours**](docs/StoresApi.md#getbusinesshours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +*StoresApi* | [**GetBusinessHoursOverrideByStoreId**](docs/StoresApi.md#getbusinesshoursoverridebystoreid) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | +*StoresApi* | [**GetEndOfDayReport**](docs/StoresApi.md#getendofdayreport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | +*StoresApi* | [**GetPreOrderConfig**](docs/StoresApi.md#getpreorderconfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +*StoresApi* | [**GetPreOrderPreview**](docs/StoresApi.md#getpreorderpreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | +*StoresApi* | [**GetProcessingFeeConfigsByStoreId**](docs/StoresApi.md#getprocessingfeeconfigsbystoreid) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | +*StoresApi* | [**GetProcessingFeeConfigsByStoreIdAndPaymentAccountType**](docs/StoresApi.md#getprocessingfeeconfigsbystoreidandpaymentaccounttype) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | +*StoresApi* | [**GetStoreById**](docs/StoresApi.md#getstorebyid) | **GET** /api/v1.0/stores/{storeId} | +*StoresApi* | [**GetStoreDeliveryFeeConfig**](docs/StoresApi.md#getstoredeliveryfeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +*StoresApi* | [**GetStoreFeeConfig**](docs/StoresApi.md#getstorefeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | +*StoresApi* | [**GetStoreHeadersByAppId**](docs/StoresApi.md#getstoreheadersbyappid) | **GET** /api/v1.0/{appId}/stores/header | +*StoresApi* | [**GetStoreLeadTimes**](docs/StoresApi.md#getstoreleadtimes) | **GET** /api/v1.0/stores/{storeId}/leadTimes | +*StoresApi* | [**GetStoreNetSales**](docs/StoresApi.md#getstorenetsales) | **GET** /api/v1.0/{appId}/stores/stats | +*StoresApi* | [**GetStoreServiceCharge**](docs/StoresApi.md#getstoreservicecharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | +*StoresApi* | [**GetStores**](docs/StoresApi.md#getstores) | **GET** /api/v1.0/stores | +*StoresApi* | [**GetStoresByAppId**](docs/StoresApi.md#getstoresbyappid) | **GET** /api/v1.0/{appId}/stores | +*StoresApi* | [**GetStoresByStoreIdWithValidations**](docs/StoresApi.md#getstoresbystoreidwithvalidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | +*StoresApi* | [**PublishStore**](docs/StoresApi.md#publishstore) | **POST** /api/v1.0/stores/{storeId}/publish | +*StoresApi* | [**PutStoreDeliveryFeeConfig**](docs/StoresApi.md#putstoredeliveryfeeconfig) | **PUT** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +*StoresApi* | [**SetBusinessHours**](docs/StoresApi.md#setbusinesshours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +*StoresApi* | [**SetPreOrdeEnabled**](docs/StoresApi.md#setpreordeenabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | +*StoresApi* | [**SetStoreCollectionSettings**](docs/StoresApi.md#setstorecollectionsettings) | **POST** /api/v1.0/stores/{storeId}/collectionsettings | +*StoresApi* | [**SetStoreLeadTimes**](docs/StoresApi.md#setstoreleadtimes) | **POST** /api/v1.0/stores/{storeId}/leadTimes | +*StoresApi* | [**StoresSetPropertyId**](docs/StoresApi.md#storessetpropertyid) | **POST** /api/v1.0/stores/{storeId}/propertyId/{propertyId} | +*StoresApi* | [**SupportedSalesChannelsTypes**](docs/StoresApi.md#supportedsaleschannelstypes) | **POST** /api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels | +*StoresApi* | [**UnpublishStore**](docs/StoresApi.md#unpublishstore) | **POST** /api/v1.0/stores/{storeId}/unpublish | +*StoresApi* | [**UpdatePreOrderConfig**](docs/StoresApi.md#updatepreorderconfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +*StoresApi* | [**UpdateStore**](docs/StoresApi.md#updatestore) | **POST** /api/v1.0/stores/{storeId} | +*StoresApi* | [**UpdateStoreAddress**](docs/StoresApi.md#updatestoreaddress) | **POST** /api/v1.0/stores/{storeId}/address | +*StoresApi* | [**UpdateStoreAddressCoordinates**](docs/StoresApi.md#updatestoreaddresscoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | +*StoresApi* | [**UpdateStoreAddressForm**](docs/StoresApi.md#updatestoreaddressform) | **POST** /api/v1.0/stores/{storeId}/addressform | +*StripeCustomConnectApi* | [**CreateBankAccountAndConnectedAccount**](docs/StripeCustomConnectApi.md#createbankaccountandconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | +*StripeCustomConnectApi* | [**CreateStripeConnectedAccount**](docs/StripeCustomConnectApi.md#createstripeconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | +*StripeCustomConnectApi* | [**CreateStripeConnectedAccountLink**](docs/StripeCustomConnectApi.md#createstripeconnectedaccountlink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | +*StripeCustomConnectApi* | [**GetCustomConnect**](docs/StripeCustomConnectApi.md#getcustomconnect) | **GET** /api/v1.0/{appId}/customconnect/{storeId} | +*StripeCustomConnectApi* | [**SetBankAccountBusinessType**](docs/StripeCustomConnectApi.md#setbankaccountbusinesstype) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | *StripeCustomConnectApi* | [**StripeCustomConnectRefresh**](docs/StripeCustomConnectApi.md#stripecustomconnectrefresh) | **GET** /api/v1.0/{appId}/customconnect/refresh-link | -*StripeCustomConnectApi* | [**UpdateBankAccountDetails**](docs/StripeCustomConnectApi.md#updatebankaccountdetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | Update bank account details -*StripeCustomConnectApi* | [**UpdatePayoutSchedule**](docs/StripeCustomConnectApi.md#updatepayoutschedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | Update Stripe Connection Account's payout schedule -*StripeCustomConnectAdminApi* | [**InitializeBankAccountConnectedAccount**](docs/StripeCustomConnectAdminApi.md#initializebankaccountconnectedaccount) | **POST** /api/v1.0/customconnect/initialize-bank-account | Create a new Bank Account and Stripe connected account -*StuartApi* | [**StuartCancelJob**](docs/StuartApi.md#stuartcanceljob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | Cancel a stuart job -*StuartApi* | [**StuartGetJob**](docs/StuartApi.md#stuartgetjob) | **GET** /api/v1.0/stuart/jobs/{jobId} | Get start job details -*StuartApi* | [**StuartGetStuartSettings**](docs/StuartApi.md#stuartgetstuartsettings) | **GET** /api/v1.0/stuart/settings/{storeId} | Get stuart settings for a store -*StuartApi* | [**StuartPostStuartSettings**](docs/StuartApi.md#stuartpoststuartsettings) | **POST** /api/v1.0/stuart/settings/{storeId} | Set stuart settings for a store -*TeammatesApi* | [**CreateTeammate**](docs/TeammatesApi.md#createteammate) | **POST** /api/v1.0/{appId}/teammates | Create teammate and send an invite. -*TeammatesApi* | [**DeleteTeammate**](docs/TeammatesApi.md#deleteteammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | Delete teammate -*TeammatesApi* | [**GetTeammateByAppIdAndTeammateId**](docs/TeammatesApi.md#getteammatebyappidandteammateid) | **GET** /api/v1.0/{appId}/teammates/{id} | Get a teammates by email address -*TeammatesApi* | [**GetTeammatesByAppId**](docs/TeammatesApi.md#getteammatesbyappid) | **GET** /api/v1.0/{appId}/teammates | Get all teammates -*TeammatesApi* | [**RedeemInvitation**](docs/TeammatesApi.md#redeeminvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | Redeem one-time code from invitation -*TeammatesApi* | [**UpdateTeammate**](docs/TeammatesApi.md#updateteammate) | **POST** /api/v1.0/{appId}/teammates/{id} | Update teammates (this method does not support Deltas!) -*TerminalIotApi* | [**GetTerminalIotConnection**](docs/TerminalIotApi.md#getterminaliotconnection) | **POST** /api/v1.0/terminaliot/connect | Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context -*TipsApi* | [**TipConfigGet**](docs/TipsApi.md#tipconfigget) | **GET** /api/v1.0/stores/{storeId}/tipconfig | Returns current tip configuration for a store -*TipsApi* | [**TipConfigUpsert**](docs/TipsApi.md#tipconfigupsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | Update or insert current tip configuration for a store +*StripeCustomConnectApi* | [**UpdateBankAccountDetails**](docs/StripeCustomConnectApi.md#updatebankaccountdetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | +*StripeCustomConnectApi* | [**UpdatePayoutSchedule**](docs/StripeCustomConnectApi.md#updatepayoutschedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | +*StuartApi* | [**StuartCancelJob**](docs/StuartApi.md#stuartcanceljob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | +*StuartApi* | [**StuartGetJob**](docs/StuartApi.md#stuartgetjob) | **GET** /api/v1.0/stuart/jobs/{jobId} | +*StuartApi* | [**StuartGetStuartSettings**](docs/StuartApi.md#stuartgetstuartsettings) | **GET** /api/v1.0/stuart/settings/{storeId} | +*StuartApi* | [**StuartPostStuartSettings**](docs/StuartApi.md#stuartpoststuartsettings) | **POST** /api/v1.0/stuart/settings/{storeId} | +*SubscriptionsApi* | [**GetSubscriptionById**](docs/SubscriptionsApi.md#getsubscriptionbyid) | **GET** /api/v1.0/{appId}/subscriptions/{subscriptionId} | +*SubscriptionsApi* | [**GetSubscriptionsForApp**](docs/SubscriptionsApi.md#getsubscriptionsforapp) | **GET** /api/v1.0/{appId}/subscriptions | +*SubscriptionsApi* | [**HasCustomerGotPaymentMethodOnFile**](docs/SubscriptionsApi.md#hascustomergotpaymentmethodonfile) | **GET** /api/v1.0/{appId}/subscriptions/hasPaymentMethod | +*TeammatesApi* | [**CreateTeammate**](docs/TeammatesApi.md#createteammate) | **POST** /api/v1.0/{appId}/teammates | +*TeammatesApi* | [**DeleteTeammate**](docs/TeammatesApi.md#deleteteammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | +*TeammatesApi* | [**GetTeammateByAppIdAndTeammateId**](docs/TeammatesApi.md#getteammatebyappidandteammateid) | **GET** /api/v1.0/{appId}/teammates/{id} | +*TeammatesApi* | [**GetTeammatesByAppId**](docs/TeammatesApi.md#getteammatesbyappid) | **GET** /api/v1.0/{appId}/teammates | +*TeammatesApi* | [**Grantaccess**](docs/TeammatesApi.md#grantaccess) | **POST** /api/v1.0/{appId}/teammates/grantaccess | +*TeammatesApi* | [**RedeemInvitation**](docs/TeammatesApi.md#redeeminvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | +*TeammatesApi* | [**TeammateMobileRedirect**](docs/TeammatesApi.md#teammatemobileredirect) | **GET** /api/v1.0/teammates/mobile-redirect | +*TeammatesApi* | [**TeammatesAcceptInvitation**](docs/TeammatesApi.md#teammatesacceptinvitation) | **GET** /api/v1.0/{appId}/teammates/accept/{otc} | +*TeammatesApi* | [**TeammatesAcceptInvitations**](docs/TeammatesApi.md#teammatesacceptinvitations) | **POST** /api/v1.0/teammates/acceptInvitations | +*TeammatesApi* | [**TeammatesPendingInvitations**](docs/TeammatesApi.md#teammatespendinginvitations) | **GET** /api/v1.0/teammates/pending-invitations | +*TeammatesApi* | [**UpdateTeammate**](docs/TeammatesApi.md#updateteammate) | **POST** /api/v1.0/{appId}/teammates/{id} | +*TerminalIotApi* | [**GetTerminalIotConnection**](docs/TerminalIotApi.md#getterminaliotconnection) | **POST** /api/v1.0/terminaliot/connect | +*TipsApi* | [**TipConfigGet**](docs/TipsApi.md#tipconfigget) | **GET** /api/v1.0/stores/{storeId}/tipconfig | +*TipsApi* | [**TipConfigUpsert**](docs/TipsApi.md#tipconfigupsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | +*UsersApi* | [**AddUserNote**](docs/UsersApi.md#addusernote) | **POST** /api/v1.0/users/{userId}/AddUserNote | +*UsersApi* | [**AddUserToRole**](docs/UsersApi.md#addusertorole) | **POST** /api/v1.0/users/{userId}/AddUserToRole/{roleName} | +*UsersApi* | [**AnonymizeUser**](docs/UsersApi.md#anonymizeuser) | **POST** /api/v1.0/users/{userId}/AnonymizeUser | +*UsersApi* | [**BlockUserPhoneNumber**](docs/UsersApi.md#blockuserphonenumber) | **POST** /api/v1.0/users/{userId}/BlockUserPhoneNumber | +*UsersApi* | [**CreateUserDeliveryLocation**](docs/UsersApi.md#createuserdeliverylocation) | **POST** /api/v1.0/users/{userId}/deliveryLocations | *UsersApi* | [**GetPreviousOrderCountForStore**](docs/UsersApi.md#getpreviousordercountforstore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | -*UsersApi* | [**GetRoles**](docs/UsersApi.md#getroles) | **GET** /api/v1.0/users/roles | Get role names -*VouchersApi* | [**CreateVoucher**](docs/VouchersApi.md#createvoucher) | **POST** /api/v1.0/vouchers/{appId} | [PRIVATE API] Create voucher -*VouchersApi* | [**GetVoucherById**](docs/VouchersApi.md#getvoucherbyid) | **GET** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Get voucher by identifier -*VouchersApi* | [**GetVoucherStatsById**](docs/VouchersApi.md#getvoucherstatsbyid) | **GET** /api/v1.0/vouchers/stats/{voucherId} | [PRIVATE API] Get voucher stats by identifier -*VouchersApi* | [**GetVouchers**](docs/VouchersApi.md#getvouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | [PRIVATE API] Get vouchers summaries for App Id -*VouchersApi* | [**UpdateVoucher**](docs/VouchersApi.md#updatevoucher) | **POST** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Updates voucher -*WebhooksApi* | [**CraeteWebhookSubscription**](docs/WebhooksApi.md#craetewebhooksubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Create a webhook subscription for you Oauth App -*WebhooksApi* | [**CreateWebhookSubscriptionEventNames**](docs/WebhooksApi.md#createwebhooksubscriptioneventnames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription -*WebhooksApi* | [**DeleteWebhookSubscription**](docs/WebhooksApi.md#deletewebhooksubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription -*WebhooksApi* | [**DeleteWebhookSubscriptionEventName**](docs/WebhooksApi.md#deletewebhooksubscriptioneventname) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription -*WebhooksApi* | [**GetWebhookEventNames**](docs/WebhooksApi.md#getwebhookeventnames) | **GET** /api/v1.0/{appId}/webhooks/events | Get all webhook subscription event names -*WebhooksApi* | [**GetWebhookEventNamesBySubscriptionId**](docs/WebhooksApi.md#getwebhookeventnamesbysubscriptionid) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names -*WebhooksApi* | [**GetWebhookEventSample**](docs/WebhooksApi.md#getwebhookeventsample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | Get a sample event from a webhook subscription -*WebhooksApi* | [**GetWebhookLogs**](docs/WebhooksApi.md#getwebhooklogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription -*WebhooksApi* | [**GetWebhookSubscriptions**](docs/WebhooksApi.md#getwebhooksubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Get all webhook subscriptions by your Oauth App id -*WebhooksApi* | [**UpdateWebhookSubscription**](docs/WebhooksApi.md#updatewebhooksubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object -*WebsiteApi* | [**AddTestimonial**](docs/WebsiteApi.md#addtestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | Add a testimonial -*WebsiteApi* | [**DeleteTestimonial**](docs/WebsiteApi.md#deletetestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Delete a testimonial -*WebsiteApi* | [**DeleteWebsiteImage**](docs/WebsiteApi.md#deletewebsiteimage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | Delete Website Image -*WebsiteApi* | [**EditTestimonial**](docs/WebsiteApi.md#edittestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Edit a testimonial -*WebsiteApi* | [**GetIndexConfiguration**](docs/WebsiteApi.md#getindexconfiguration) | **GET** /api/v1.0/{appId}/website/index | Get Index Configuration -*WebsiteApi* | [**SetIndexConfiguration**](docs/WebsiteApi.md#setindexconfiguration) | **POST** /api/v1.0/{appId}/website/index | Set Index Configuration -*WebsiteApi* | [**UploadWebsiteImage**](docs/WebsiteApi.md#uploadwebsiteimage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | Upload Website Image -*WebsiteApi* | [**WebsiteCheckNow**](docs/WebsiteApi.md#websitechecknow) | **GET** /api/v1.0/{appId}/website/dnscheck | Triggers a Check DNS Process +*UsersApi* | [**GetRestaurantUserAccounts**](docs/UsersApi.md#getrestaurantuseraccounts) | **GET** /api/v1.0/users/{userId}/RestaurantUserAccounts | +*UsersApi* | [**GetRestaurantUserStores**](docs/UsersApi.md#getrestaurantuserstores) | **GET** /api/v1.0/users/{userId}/RestaurantUserStores | +*UsersApi* | [**GetRoles**](docs/UsersApi.md#getroles) | **GET** /api/v1.0/users/roles | +*UsersApi* | [**GetRolesAndUnassignedRoles**](docs/UsersApi.md#getrolesandunassignedroles) | **GET** /api/v1.0/users/{userId}/roles | +*UsersApi* | [**GetUserById**](docs/UsersApi.md#getuserbyid) | **GET** /api/v1.0/users/{userId} | +*UsersApi* | [**GetUserDeliveryLocationsForAdmin**](docs/UsersApi.md#getuserdeliverylocationsforadmin) | **GET** /api/v1.0/users/{userId}/deliveryLocations | +*UsersApi* | [**GetUserNotes**](docs/UsersApi.md#getusernotes) | **GET** /api/v1.0/users/{userId}/UserNotes | +*UsersApi* | [**GetUserOrderByIdForAdmin**](docs/UsersApi.md#getuserorderbyidforadmin) | **GET** /api/v1.0/users/{userId}/orders/{orderId} | +*UsersApi* | [**GetUserOrdersForAdmin**](docs/UsersApi.md#getuserordersforadmin) | **GET** /api/v1.0/users/{userId}/orders | +*UsersApi* | [**GetUserSmsConversationItems**](docs/UsersApi.md#getusersmsconversationitems) | **GET** /api/v1.0/users/{userId}/smsConversationItems | +*UsersApi* | [**HideUserDeliveryLocation**](docs/UsersApi.md#hideuserdeliverylocation) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/hide | +*UsersApi* | [**MarkUserAsFraudulent**](docs/UsersApi.md#markuserasfraudulent) | **POST** /api/v1.0/users/{userId}/MarkUserAsFraudulent | +*UsersApi* | [**MarkUserAsSuspicious**](docs/UsersApi.md#markuserassuspicious) | **POST** /api/v1.0/users/{userId}/MarkUserAsSuspicious | +*UsersApi* | [**RemoveFlipdishAccountIdForUser**](docs/UsersApi.md#removeflipdishaccountidforuser) | **POST** /api/v1.0/users/{userId}/RemoveFlipdishAccountId/{accountId} | +*UsersApi* | [**RemoveUserFromRole**](docs/UsersApi.md#removeuserfromrole) | **POST** /api/v1.0/users/{userId}/RemoveUserFromRole/{roleName} | +*UsersApi* | [**ResetMfa**](docs/UsersApi.md#resetmfa) | **POST** /api/v1.0/users/{userId}/ResetMfa | +*UsersApi* | [**SearchFlipdishAccounts**](docs/UsersApi.md#searchflipdishaccounts) | **GET** /api/v1.0/users/searchFlipdishAccounts | +*UsersApi* | [**SearchUsers**](docs/UsersApi.md#searchusers) | **GET** /api/v1.0/users/search | +*UsersApi* | [**SendUserPushNotification**](docs/UsersApi.md#senduserpushnotification) | **POST** /api/v1.0/users/{userId}/pushNotifications | +*UsersApi* | [**SendUserSms**](docs/UsersApi.md#sendusersms) | **POST** /api/v1.0/users/{userId}/sms | +*UsersApi* | [**SetCustomerName**](docs/UsersApi.md#setcustomername) | **POST** /api/v1.0/users/{userId}/SetCustomerName | +*UsersApi* | [**SetFlipdishAccountIdForUser**](docs/UsersApi.md#setflipdishaccountidforuser) | **POST** /api/v1.0/users/{userId}/SetFlipdishAccountId/{accountId} | +*UsersApi* | [**SetUserDeliveryLocationCoordinates**](docs/UsersApi.md#setuserdeliverylocationcoordinates) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/coordinates | +*UsersApi* | [**SetUserDeliveryLocationField**](docs/UsersApi.md#setuserdeliverylocationfield) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/fields | +*UsersApi* | [**SetUserLanguage**](docs/UsersApi.md#setuserlanguage) | **POST** /api/v1.0/users/{userId}/SetLanguage/{languageId} | +*UsersApi* | [**UnblockUserPhoneNumber**](docs/UsersApi.md#unblockuserphonenumber) | **POST** /api/v1.0/users/{userId}/UnblockUserPhoneNumber | +*VouchersApi* | [**CreateVoucher**](docs/VouchersApi.md#createvoucher) | **POST** /api/v1.0/vouchers/{appId} | +*VouchersApi* | [**GetVoucherByCode**](docs/VouchersApi.md#getvoucherbycode) | **GET** /api/v1.0/{appId}/vouchers/code/{code} | +*VouchersApi* | [**GetVoucherById**](docs/VouchersApi.md#getvoucherbyid) | **GET** /api/v1.0/vouchers/{voucherId} | +*VouchersApi* | [**GetVoucherStatsById**](docs/VouchersApi.md#getvoucherstatsbyid) | **GET** /api/v1.0/vouchers/stats/{voucherId} | +*VouchersApi* | [**GetVoucherValidityPeriods**](docs/VouchersApi.md#getvouchervalidityperiods) | **GET** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods | +*VouchersApi* | [**GetVouchers**](docs/VouchersApi.md#getvouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | +*VouchersApi* | [**GetVouchersByCustomerForApp**](docs/VouchersApi.md#getvouchersbycustomerforapp) | **GET** /api/v1.0/vouchers/{appId}/customer/{customerId} | +*VouchersApi* | [**SetVoucherValidityPeriodsSimplified**](docs/VouchersApi.md#setvouchervalidityperiodssimplified) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified | +*VouchersApi* | [**UpdateVoucher**](docs/VouchersApi.md#updatevoucher) | **POST** /api/v1.0/vouchers/{voucherId} | +*VouchersApi* | [**UpdateVoucherUsage**](docs/VouchersApi.md#updatevoucherusage) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/usage | +*WebhooksApi* | [**CreateWebhookSubscription**](docs/WebhooksApi.md#createwebhooksubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +*WebhooksApi* | [**CreateWebhookSubscriptionEventNames**](docs/WebhooksApi.md#createwebhooksubscriptioneventnames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +*WebhooksApi* | [**DeleteWebhookSubscription**](docs/WebhooksApi.md#deletewebhooksubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +*WebhooksApi* | [**DeleteWebhookSubscriptionEventName**](docs/WebhooksApi.md#deletewebhooksubscriptioneventname) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +*WebhooksApi* | [**GetWebhookEventNames**](docs/WebhooksApi.md#getwebhookeventnames) | **GET** /api/v1.0/{appId}/webhooks/events | +*WebhooksApi* | [**GetWebhookEventNamesBySubscriptionId**](docs/WebhooksApi.md#getwebhookeventnamesbysubscriptionid) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | +*WebhooksApi* | [**GetWebhookEventSample**](docs/WebhooksApi.md#getwebhookeventsample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | +*WebhooksApi* | [**GetWebhookLogs**](docs/WebhooksApi.md#getwebhooklogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | +*WebhooksApi* | [**GetWebhookSubscriptions**](docs/WebhooksApi.md#getwebhooksubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +*WebhooksApi* | [**UpdateWebhookSubscription**](docs/WebhooksApi.md#updatewebhooksubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +*WebsiteApi* | [**AddTestimonial**](docs/WebsiteApi.md#addtestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | +*WebsiteApi* | [**DeleteTestimonial**](docs/WebsiteApi.md#deletetestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +*WebsiteApi* | [**DeleteWebsiteImage**](docs/WebsiteApi.md#deletewebsiteimage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | +*WebsiteApi* | [**EditTestimonial**](docs/WebsiteApi.md#edittestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +*WebsiteApi* | [**GetIndexConfiguration**](docs/WebsiteApi.md#getindexconfiguration) | **GET** /api/v1.0/{appId}/website/index | +*WebsiteApi* | [**SetIndexConfiguration**](docs/WebsiteApi.md#setindexconfiguration) | **POST** /api/v1.0/{appId}/website/index | +*WebsiteApi* | [**UploadWebsiteImage**](docs/WebsiteApi.md#uploadwebsiteimage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | +*WebsiteApi* | [**WebsiteCheckNow**](docs/WebsiteApi.md#websitechecknow) | **GET** /api/v1.0/{appId}/website/dnscheck | +*WhiteLabelBuildsApi* | [**HealthCheck**](docs/WhiteLabelBuildsApi.md#healthcheck) | **GET** /api/v1.0/whitelabelbuilds/health | +*WhiteLabelBuildsApi* | [**SubmitAndroidApps**](docs/WhiteLabelBuildsApi.md#submitandroidapps) | **POST** /api/v1.0/whitelabelbuilds/android/multiple | +*WhiteLabelBuildsApi* | [**SubmitAndroidBuild**](docs/WhiteLabelBuildsApi.md#submitandroidbuild) | **POST** /api/v1.0/whitelabelbuilds/{appId}/android | +*WhiteLabelBuildsApi* | [**SubmitIosApps**](docs/WhiteLabelBuildsApi.md#submitiosapps) | **POST** /api/v1.0/whitelabelbuilds/ios/multiple | +*WhiteLabelBuildsApi* | [**SubmitIosBuild**](docs/WhiteLabelBuildsApi.md#submitiosbuild) | **POST** /api/v1.0/whitelabelbuilds/{appId}/ios | +*WhiteLabelConfigApi* | [**GetAppGeneralConfig**](docs/WhiteLabelConfigApi.md#getappgeneralconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/general | +*WhiteLabelConfigApi* | [**GetAppStoreConfig**](docs/WhiteLabelConfigApi.md#getappstoreconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/appstore | +*WhiteLabelConfigApi* | [**GetPlayStoreConfig**](docs/WhiteLabelConfigApi.md#getplaystoreconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/playstore | +*WhiteLabelConfigApi* | [**GetWhiteLabelConfig**](docs/WhiteLabelConfigApi.md#getwhitelabelconfig) | **GET** /api/v1.0/whitelabelconfig/id/{wlid} | +*WhiteLabelConfigApi* | [**GetWhiteLabelConfigByAppNameId**](docs/WhiteLabelConfigApi.md#getwhitelabelconfigbyappnameid) | **GET** /api/v1.0/whitelabelconfig/name/{appId} | +*WhiteLabelConfigApi* | [**HealthCheck**](docs/WhiteLabelConfigApi.md#healthcheck) | **GET** /api/v1.0/whitelabelconfig/health | +*WhiteLabelConfigApi* | [**UpdateAppGeneralConfig**](docs/WhiteLabelConfigApi.md#updateappgeneralconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/general | +*WhiteLabelConfigApi* | [**UpdateAppStoreConfig**](docs/WhiteLabelConfigApi.md#updateappstoreconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/appstore | +*WhiteLabelConfigApi* | [**UpdatePlayStoreConfig**](docs/WhiteLabelConfigApi.md#updateplaystoreconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/playstore | +*WhiteLabelConfigApi* | [**UploadAppStoreIcon**](docs/WhiteLabelConfigApi.md#uploadappstoreicon) | **POST** /api/v1.0/whitelabelconfig/{appId}/app-store-icon | ## Documentation for Models - [Model.Accept](docs/Accept.md) + - [Model.AcceptInvitationResult](docs/AcceptInvitationResult.md) - [Model.AccountDetail](docs/AccountDetail.md) - [Model.AccountDetailBase](docs/AccountDetailBase.md) - [Model.AccountFieldDefinition](docs/AccountFieldDefinition.md) - [Model.AccountFieldKeyValuePair](docs/AccountFieldKeyValuePair.md) - [Model.AccountFieldsDefinitions](docs/AccountFieldsDefinitions.md) - - [Model.AddItemDetails](docs/AddItemDetails.md) - [Model.AddressFormDisplayFormat](docs/AddressFormDisplayFormat.md) - [Model.AddressFormResponse](docs/AddressFormResponse.md) - [Model.AllMetadataResult](docs/AllMetadataResult.md) + - [Model.Allergen](docs/Allergen.md) - [Model.AnalyticsClientEvent](docs/AnalyticsClientEvent.md) - [Model.ApmCurrencyDataPoint](docs/ApmCurrencyDataPoint.md) - [Model.ApmDataPoint](docs/ApmDataPoint.md) @@ -546,20 +684,27 @@ Class | Method | HTTP request | Description - [Model.AppConfigSalesChannel](docs/AppConfigSalesChannel.md) - [Model.AppConfigUpdateModel](docs/AppConfigUpdateModel.md) - [Model.AppCreatedEvent](docs/AppCreatedEvent.md) + - [Model.AppGeneralConfigModel](docs/AppGeneralConfigModel.md) + - [Model.AppInstall](docs/AppInstall.md) + - [Model.AppLookup](docs/AppLookup.md) - [Model.AppStoreApp](docs/AppStoreApp.md) - [Model.AppStoreAppConfiguration](docs/AppStoreAppConfiguration.md) - - [Model.AppStoreAppConfigurationHeader](docs/AppStoreAppConfigurationHeader.md) - [Model.AppStoreAppConfigurationSummary](docs/AppStoreAppConfigurationSummary.md) + - [Model.AppStoreAppEntitlements](docs/AppStoreAppEntitlements.md) - [Model.AppStoreAppSummary](docs/AppStoreAppSummary.md) - [Model.AppStoreAppSupportInfo](docs/AppStoreAppSupportInfo.md) - [Model.AppStoreConfigCreatedEvent](docs/AppStoreConfigCreatedEvent.md) - [Model.AppStoreConfigDeletedEvent](docs/AppStoreConfigDeletedEvent.md) + - [Model.AppStoreConfigModel](docs/AppStoreConfigModel.md) - [Model.AppStoreConfigUpdatedEvent](docs/AppStoreConfigUpdatedEvent.md) + - [Model.AppStoreSubscriptionChangeJobUpdatedEvent](docs/AppStoreSubscriptionChangeJobUpdatedEvent.md) - [Model.AppUpdatedEvent](docs/AppUpdatedEvent.md) + - [Model.AssetResultModel](docs/AssetResultModel.md) - [Model.AssignedBankAccount](docs/AssignedBankAccount.md) - [Model.AuditLogFieldChangeInformation](docs/AuditLogFieldChangeInformation.md) - [Model.BalanceDetails](docs/BalanceDetails.md) - [Model.BankAccount](docs/BankAccount.md) + - [Model.BankAccountAssignedEvent](docs/BankAccountAssignedEvent.md) - [Model.BankAccountCreate](docs/BankAccountCreate.md) - [Model.BankAccountCreatedEvent](docs/BankAccountCreatedEvent.md) - [Model.BankAccountDeletedEvent](docs/BankAccountDeletedEvent.md) @@ -568,14 +713,15 @@ Class | Method | HTTP request | Description - [Model.BankAccountSummary](docs/BankAccountSummary.md) - [Model.BankAccountUpdatedEvent](docs/BankAccountUpdatedEvent.md) - [Model.BluetoothTerminalStatus](docs/BluetoothTerminalStatus.md) + - [Model.BuildResultModel](docs/BuildResultModel.md) - [Model.BusinessHoursOverride](docs/BusinessHoursOverride.md) - [Model.BusinessHoursOverrideBase](docs/BusinessHoursOverrideBase.md) - [Model.BusinessHoursPeriod](docs/BusinessHoursPeriod.md) - [Model.BusinessHoursPeriodBase](docs/BusinessHoursPeriodBase.md) - [Model.CampaignStatistics](docs/CampaignStatistics.md) + - [Model.CancellationToken](docs/CancellationToken.md) - [Model.CardReader](docs/CardReader.md) - [Model.CardReaderRegistrationRequest](docs/CardReaderRegistrationRequest.md) - - [Model.Cart](docs/Cart.md) - [Model.CatalogGroupArchivedEvent](docs/CatalogGroupArchivedEvent.md) - [Model.CatalogGroupCreatedEvent](docs/CatalogGroupCreatedEvent.md) - [Model.CatalogGroupReference](docs/CatalogGroupReference.md) @@ -589,17 +735,25 @@ Class | Method | HTTP request | Description - [Model.CertificateRenewedEvent](docs/CertificateRenewedEvent.md) - [Model.ChangePasswordModel](docs/ChangePasswordModel.md) - [Model.Channel](docs/Channel.md) - - [Model.ChannelStoreMapping](docs/ChannelStoreMapping.md) + - [Model.ChannelStoresUpdatedEvent](docs/ChannelStoresUpdatedEvent.md) - [Model.ChargebackDetails](docs/ChargebackDetails.md) + - [Model.ClientDevice](docs/ClientDevice.md) + - [Model.ClientDeviceAssignEnrolledDevice](docs/ClientDeviceAssignEnrolledDevice.md) + - [Model.ClientDeviceEnroll](docs/ClientDeviceEnroll.md) + - [Model.ClientDeviceEnrollmentResult](docs/ClientDeviceEnrollmentResult.md) + - [Model.ClientDeviceSummary](docs/ClientDeviceSummary.md) - [Model.ConfiguredStore](docs/ConfiguredStore.md) - - [Model.Contact](docs/Contact.md) - [Model.Coordinates](docs/Coordinates.md) - [Model.CountryFormResponse](docs/CountryFormResponse.md) - [Model.CountryWithAccountFieldsDefinitions](docs/CountryWithAccountFieldsDefinitions.md) - [Model.CreateAccountModel](docs/CreateAccountModel.md) + - [Model.CreateAppParameters](docs/CreateAppParameters.md) - [Model.CreateAppStoreApp](docs/CreateAppStoreApp.md) + - [Model.CreateBasicAccountModel](docs/CreateBasicAccountModel.md) - [Model.CreateCatalogGroupReference](docs/CreateCatalogGroupReference.md) - [Model.CreateCatalogItem](docs/CreateCatalogItem.md) + - [Model.CreateEndUserFeeConfig](docs/CreateEndUserFeeConfig.md) + - [Model.CreateFulfillmentStatesConfiguration](docs/CreateFulfillmentStatesConfiguration.md) - [Model.CreateFullMenu](docs/CreateFullMenu.md) - [Model.CreateFullMenuItemOptionSet](docs/CreateFullMenuItemOptionSet.md) - [Model.CreateFullMenuItemOptionSetItem](docs/CreateFullMenuItemOptionSetItem.md) @@ -616,21 +770,27 @@ Class | Method | HTTP request | Description - [Model.CreatePayGreenConfigurationRequest](docs/CreatePayGreenConfigurationRequest.md) - [Model.CreateProduct](docs/CreateProduct.md) - [Model.CreateProductReference](docs/CreateProductReference.md) + - [Model.CreatePromotion](docs/CreatePromotion.md) - [Model.CreateTeammate](docs/CreateTeammate.md) + - [Model.CreateUserDeliveryLocationRequest](docs/CreateUserDeliveryLocationRequest.md) - [Model.CreateVoucher](docs/CreateVoucher.md) - [Model.CreatedMenuSectionItems](docs/CreatedMenuSectionItems.md) - [Model.CreditNoteDetails](docs/CreditNoteDetails.md) + - [Model.CrossSellMenuItems](docs/CrossSellMenuItems.md) - [Model.CspReport](docs/CspReport.md) - [Model.CspReportRequest](docs/CspReportRequest.md) - [Model.CurrencyData](docs/CurrencyData.md) - [Model.Customer](docs/Customer.md) - [Model.CustomerConsentUpdatedEvent](docs/CustomerConsentUpdatedEvent.md) + - [Model.CustomerCreateModel](docs/CustomerCreateModel.md) - [Model.CustomerCreatedEvent](docs/CustomerCreatedEvent.md) - [Model.CustomerDeliveryTrackingOrder](docs/CustomerDeliveryTrackingOrder.md) - [Model.CustomerDeliveryTrackingOrderLine](docs/CustomerDeliveryTrackingOrderLine.md) + - [Model.CustomerMessages](docs/CustomerMessages.md) - [Model.CustomerSummary](docs/CustomerSummary.md) - [Model.CustomerUpdateModel](docs/CustomerUpdateModel.md) - [Model.CustomerUpdatedEvent](docs/CustomerUpdatedEvent.md) + - [Model.Customers](docs/Customers.md) - [Model.DashboardEmbed](docs/DashboardEmbed.md) - [Model.DeliveryLocation](docs/DeliveryLocation.md) - [Model.DeliveryZone](docs/DeliveryZone.md) @@ -638,14 +798,12 @@ Class | Method | HTTP request | Description - [Model.DeliveryZoneCreatedEvent](docs/DeliveryZoneCreatedEvent.md) - [Model.DeliveryZoneDeletedEvent](docs/DeliveryZoneDeletedEvent.md) - [Model.DeliveryZoneUpdatedEvent](docs/DeliveryZoneUpdatedEvent.md) + - [Model.DepositReturnFeesSummary](docs/DepositReturnFeesSummary.md) - [Model.DeviceSettings](docs/DeviceSettings.md) - [Model.DnsRecordInformation](docs/DnsRecordInformation.md) - [Model.DnsVerifiedEvent](docs/DnsVerifiedEvent.md) - - [Model.Driver](docs/Driver.md) - - [Model.DriverInvitation](docs/DriverInvitation.md) - [Model.DriverLoginModel](docs/DriverLoginModel.md) - [Model.DriverRequestLoginPinModel](docs/DriverRequestLoginPinModel.md) - - [Model.DriverStore](docs/DriverStore.md) - [Model.DynamicFormField](docs/DynamicFormField.md) - [Model.DynamicFormFieldOption](docs/DynamicFormFieldOption.md) - [Model.DynamicFormRule](docs/DynamicFormRule.md) @@ -653,23 +811,28 @@ Class | Method | HTTP request | Description - [Model.EmvNotificationEvent](docs/EmvNotificationEvent.md) - [Model.EmvTerminal](docs/EmvTerminal.md) - [Model.EmvTerminalWithAssignments](docs/EmvTerminalWithAssignments.md) + - [Model.EndUserFeeConfig](docs/EndUserFeeConfig.md) - [Model.EventSearchResult](docs/EventSearchResult.md) + - [Model.ExecuteConfigurationActionRequest](docs/ExecuteConfigurationActionRequest.md) + - [Model.ExecuteConfigurationActionResult](docs/ExecuteConfigurationActionResult.md) - [Model.ExternalStoreAuditLog](docs/ExternalStoreAuditLog.md) - [Model.ExternalStoreEvent](docs/ExternalStoreEvent.md) - [Model.FeeSummary](docs/FeeSummary.md) - [Model.Field](docs/Field.md) - [Model.FieldChangeInformation](docs/FieldChangeInformation.md) - [Model.FieldGroup](docs/FieldGroup.md) + - [Model.FirebaseApp](docs/FirebaseApp.md) + - [Model.FlipdishAccountName](docs/FlipdishAccountName.md) - [Model.FlipdishEventBase](docs/FlipdishEventBase.md) - [Model.FlipdishFeesDetails](docs/FlipdishFeesDetails.md) - [Model.FulfillentStatusActionItem](docs/FulfillentStatusActionItem.md) - - [Model.FulfillmentInfo](docs/FulfillmentInfo.md) - [Model.FulfillmentStatesConfiguration](docs/FulfillmentStatesConfiguration.md) - - [Model.FulfillmentStatesConfigurationCreateBase](docs/FulfillmentStatesConfigurationCreateBase.md) - [Model.FulfillmentStatesConfigurationSummary](docs/FulfillmentStatesConfigurationSummary.md) - [Model.FulfillmentStatesConfiguredStore](docs/FulfillmentStatesConfiguredStore.md) - [Model.FulfillmentStatusConfigurationItem](docs/FulfillmentStatusConfigurationItem.md) - [Model.GeoPointRequest](docs/GeoPointRequest.md) + - [Model.GetEndUserFeeConfigsResponse](docs/GetEndUserFeeConfigsResponse.md) + - [Model.GetReceiptByOrderIdQueryResponse](docs/GetReceiptByOrderIdQueryResponse.md) - [Model.GoogleAddress](docs/GoogleAddress.md) - [Model.GoogleAddressComponent](docs/GoogleAddressComponent.md) - [Model.GoogleAddressResult](docs/GoogleAddressResult.md) @@ -680,12 +843,14 @@ Class | Method | HTTP request | Description - [Model.Group](docs/Group.md) - [Model.GroupReference](docs/GroupReference.md) - [Model.GroupedCoordinates](docs/GroupedCoordinates.md) + - [Model.HasPaymentMethodResponse](docs/HasPaymentMethodResponse.md) - [Model.HomeAction](docs/HomeAction.md) - [Model.HomeStatistics](docs/HomeStatistics.md) - - [Model.HttpRequestAndResponseLog](docs/HttpRequestAndResponseLog.md) + - [Model.HttpPostedFileBase](docs/HttpPostedFileBase.md) - [Model.HydraAssignedEvent](docs/HydraAssignedEvent.md) - [Model.HydraConfig](docs/HydraConfig.md) - [Model.HydraConnectionStatusChangedEvent](docs/HydraConnectionStatusChangedEvent.md) + - [Model.HydraCreatedEvent](docs/HydraCreatedEvent.md) - [Model.HydraDeviceDetails](docs/HydraDeviceDetails.md) - [Model.HydraRegistrationRequest](docs/HydraRegistrationRequest.md) - [Model.HydraRequestResetEvent](docs/HydraRequestResetEvent.md) @@ -697,6 +862,13 @@ Class | Method | HTTP request | Description - [Model.HydraUnAssignedEvent](docs/HydraUnAssignedEvent.md) - [Model.IndexPage](docs/IndexPage.md) - [Model.IndexPageBase](docs/IndexPageBase.md) + - [Model.IntercomUserHash](docs/IntercomUserHash.md) + - [Model.Invoice](docs/Invoice.md) + - [Model.InvoiceDiscount](docs/InvoiceDiscount.md) + - [Model.InvoiceItem](docs/InvoiceItem.md) + - [Model.InvoicePeriod](docs/InvoicePeriod.md) + - [Model.ItemNutritionInfoAddUpdateModel](docs/ItemNutritionInfoAddUpdateModel.md) + - [Model.ItemNutritionInfoV2AddUpdateModel](docs/ItemNutritionInfoV2AddUpdateModel.md) - [Model.JobAddress](docs/JobAddress.md) - [Model.JobCancellation](docs/JobCancellation.md) - [Model.JobContact](docs/JobContact.md) @@ -717,17 +889,16 @@ Class | Method | HTTP request | Description - [Model.KioskBluetoothTerminalUpdatedEvent](docs/KioskBluetoothTerminalUpdatedEvent.md) - [Model.KioskBluetoothUnpairingModeEvent](docs/KioskBluetoothUnpairingModeEvent.md) - [Model.KioskCashPaymentSettings](docs/KioskCashPaymentSettings.md) - - [Model.KioskCashSetting](docs/KioskCashSetting.md) + - [Model.KioskEntitlementsResult](docs/KioskEntitlementsResult.md) - [Model.KioskIotConnectionParameters](docs/KioskIotConnectionParameters.md) - - [Model.KioskStoreSettings](docs/KioskStoreSettings.md) + - [Model.KioskSettings](docs/KioskSettings.md) + - [Model.KioskStripeLocation](docs/KioskStripeLocation.md) - [Model.KioskTerminalActionStateChangedEvent](docs/KioskTerminalActionStateChangedEvent.md) - [Model.Language](docs/Language.md) - [Model.LastPaymentError](docs/LastPaymentError.md) + - [Model.LeadTime](docs/LeadTime.md) - [Model.LightspeedSettings](docs/LightspeedSettings.md) - - [Model.LineItem](docs/LineItem.md) - - [Model.LineItemOption](docs/LineItemOption.md) - [Model.LocalisedTimeZone](docs/LocalisedTimeZone.md) - - [Model.Location](docs/Location.md) - [Model.LocationArea](docs/LocationArea.md) - [Model.LocationAreaCreatedEvent](docs/LocationAreaCreatedEvent.md) - [Model.LocationAreaLocation](docs/LocationAreaLocation.md) @@ -736,7 +907,6 @@ Class | Method | HTTP request | Description - [Model.LocationCreatedEvent](docs/LocationCreatedEvent.md) - [Model.LocationDeletedEvent](docs/LocationDeletedEvent.md) - [Model.LoginModel](docs/LoginModel.md) - - [Model.LoginWithPinModel](docs/LoginWithPinModel.md) - [Model.LoyaltyCampaign](docs/LoyaltyCampaign.md) - [Model.LoyaltyCampaignBase](docs/LoyaltyCampaignBase.md) - [Model.LoyaltyCampaignCreatedEvent](docs/LoyaltyCampaignCreatedEvent.md) @@ -746,6 +916,7 @@ Class | Method | HTTP request | Description - [Model.MappedLocation](docs/MappedLocation.md) - [Model.MaskedPhoneNumber](docs/MaskedPhoneNumber.md) - [Model.Menu](docs/Menu.md) + - [Model.MenuAsyncCreationCompletedEvent](docs/MenuAsyncCreationCompletedEvent.md) - [Model.MenuBase](docs/MenuBase.md) - [Model.MenuBulkEditEvent](docs/MenuBulkEditEvent.md) - [Model.MenuCatalogItem](docs/MenuCatalogItem.md) @@ -766,6 +937,7 @@ Class | Method | HTTP request | Description - [Model.MenuItemOptionSetItemDeletedEvent](docs/MenuItemOptionSetItemDeletedEvent.md) - [Model.MenuItemOptionSetItemUpdatedEvent](docs/MenuItemOptionSetItemUpdatedEvent.md) - [Model.MenuItemOptionSetUpdatedEvent](docs/MenuItemOptionSetUpdatedEvent.md) + - [Model.MenuNutritionInfoHeader](docs/MenuNutritionInfoHeader.md) - [Model.MenuObjectDisplayOrders](docs/MenuObjectDisplayOrders.md) - [Model.MenuSection](docs/MenuSection.md) - [Model.MenuSectionAvailability](docs/MenuSectionAvailability.md) @@ -785,6 +957,7 @@ Class | Method | HTTP request | Description - [Model.MenuTaxRate](docs/MenuTaxRate.md) - [Model.MenuUpdatedEvent](docs/MenuUpdatedEvent.md) - [Model.MenuUploadedEvent](docs/MenuUploadedEvent.md) + - [Model.MenuZone](docs/MenuZone.md) - [Model.Metadata](docs/Metadata.md) - [Model.Metafield](docs/Metafield.md) - [Model.MetafieldDefinition](docs/MetafieldDefinition.md) @@ -794,18 +967,30 @@ Class | Method | HTTP request | Description - [Model.MobileAppsSubmission](docs/MobileAppsSubmission.md) - [Model.MobileAppsSubmissionDetails](docs/MobileAppsSubmissionDetails.md) - [Model.MobileAppsSubmissionStatus](docs/MobileAppsSubmissionStatus.md) + - [Model.MobileAppsSubmissionStatusUpdatedEvent](docs/MobileAppsSubmissionStatusUpdatedEvent.md) + - [Model.MobileAppsSubmissionUpdatedEvent](docs/MobileAppsSubmissionUpdatedEvent.md) - [Model.ModelBase](docs/ModelBase.md) - [Model.NextStatusWithOrderType](docs/NextStatusWithOrderType.md) + - [Model.NutritionInfo](docs/NutritionInfo.md) + - [Model.NutritionInfoItemAddUpdateLabelModel](docs/NutritionInfoItemAddUpdateLabelModel.md) + - [Model.NutritionInfoLabel](docs/NutritionInfoLabel.md) + - [Model.NutritionInfoMenuItem](docs/NutritionInfoMenuItem.md) + - [Model.NutritionInfoMenuOptionSetItem](docs/NutritionInfoMenuOptionSetItem.md) + - [Model.NutritionInfoV2](docs/NutritionInfoV2.md) + - [Model.NutritionInfoV2Allergen](docs/NutritionInfoV2Allergen.md) + - [Model.NutritionInfoV2Item](docs/NutritionInfoV2Item.md) - [Model.OAuthApp](docs/OAuthApp.md) - [Model.OAuthTokenModel](docs/OAuthTokenModel.md) - [Model.OauthClientRedirectUri](docs/OauthClientRedirectUri.md) - [Model.ObjectDisplayOrder](docs/ObjectDisplayOrder.md) + - [Model.OktaPortalFeatureFlag](docs/OktaPortalFeatureFlag.md) - [Model.OnboardingConfigUpdate](docs/OnboardingConfigUpdate.md) - [Model.OnboardingItemUpdate](docs/OnboardingItemUpdate.md) - [Model.Order](docs/Order.md) - [Model.OrderAcceptedEvent](docs/OrderAcceptedEvent.md) - [Model.OrderBatch](docs/OrderBatch.md) - - [Model.OrderBatchItem](docs/OrderBatchItem.md) + - [Model.OrderBatchPublishedEvent](docs/OrderBatchPublishedEvent.md) + - [Model.OrderBatchSummary](docs/OrderBatchSummary.md) - [Model.OrderBatchingConfiguration](docs/OrderBatchingConfiguration.md) - [Model.OrderCapacityConfigUpdatedEvent](docs/OrderCapacityConfigUpdatedEvent.md) - [Model.OrderCreatedEvent](docs/OrderCreatedEvent.md) @@ -820,13 +1005,13 @@ Class | Method | HTTP request | Description - [Model.OrderFulfillmentStatusUpdate](docs/OrderFulfillmentStatusUpdate.md) - [Model.OrderFulfillmentStatusUpdatedEvent](docs/OrderFulfillmentStatusUpdatedEvent.md) - [Model.OrderFulfillmentStatusWithConfigurationActions](docs/OrderFulfillmentStatusWithConfigurationActions.md) - - [Model.OrderIdAndSequenceNumber](docs/OrderIdAndSequenceNumber.md) - - [Model.OrderIngestSubmitOrderRequest](docs/OrderIngestSubmitOrderRequest.md) - - [Model.OrderIngestSubmitOrderResponse](docs/OrderIngestSubmitOrderResponse.md) - [Model.OrderItem](docs/OrderItem.md) - [Model.OrderItemOption](docs/OrderItemOption.md) + - [Model.OrderLeadTimes](docs/OrderLeadTimes.md) + - [Model.OrderList](docs/OrderList.md) - [Model.OrderPaymentInformation](docs/OrderPaymentInformation.md) - [Model.OrderRatingUpdatedEvent](docs/OrderRatingUpdatedEvent.md) + - [Model.OrderReference](docs/OrderReference.md) - [Model.OrderRefundedEvent](docs/OrderRefundedEvent.md) - [Model.OrderRejectedEvent](docs/OrderRejectedEvent.md) - [Model.OrderSummary](docs/OrderSummary.md) @@ -836,7 +1021,7 @@ Class | Method | HTTP request | Description - [Model.OwnerEntityConfiguration](docs/OwnerEntityConfiguration.md) - [Model.OwnerEntityConfigurations](docs/OwnerEntityConfigurations.md) - [Model.PasswordResetModel](docs/PasswordResetModel.md) - - [Model.PaymentInfo](docs/PaymentInfo.md) + - [Model.PaymentAccount](docs/PaymentAccount.md) - [Model.PaymentIntent](docs/PaymentIntent.md) - [Model.PaymentTerminalDetails](docs/PaymentTerminalDetails.md) - [Model.PaymentTerminalTransactionDetails](docs/PaymentTerminalTransactionDetails.md) @@ -846,19 +1031,39 @@ Class | Method | HTTP request | Description - [Model.PayoutOrder](docs/PayoutOrder.md) - [Model.PayoutOtherCharge](docs/PayoutOtherCharge.md) - [Model.PayoutRefund](docs/PayoutRefund.md) + - [Model.PayoutReport3Details](docs/PayoutReport3Details.md) + - [Model.PayoutReport3DetailsAdjustments](docs/PayoutReport3DetailsAdjustments.md) + - [Model.PayoutReport3DetailsFlipdishFees](docs/PayoutReport3DetailsFlipdishFees.md) + - [Model.PayoutReport3DetailsRevenue](docs/PayoutReport3DetailsRevenue.md) + - [Model.PayoutReport3DetailsSalesLine](docs/PayoutReport3DetailsSalesLine.md) + - [Model.PayoutReport3DetailsSummary](docs/PayoutReport3DetailsSummary.md) + - [Model.PayoutReport3Overview](docs/PayoutReport3Overview.md) + - [Model.PayoutReport3OverviewHeader](docs/PayoutReport3OverviewHeader.md) + - [Model.PayoutReport3PropertyDetails](docs/PayoutReport3PropertyDetails.md) + - [Model.PayoutReport3PropertyFilterOption](docs/PayoutReport3PropertyFilterOption.md) + - [Model.PayoutReport3RefundedOrder](docs/PayoutReport3RefundedOrder.md) + - [Model.PayoutReport3Store](docs/PayoutReport3Store.md) + - [Model.PayoutReport3StorePayout](docs/PayoutReport3StorePayout.md) + - [Model.PayoutReport3StorePayouts](docs/PayoutReport3StorePayouts.md) - [Model.PayoutRequestIds](docs/PayoutRequestIds.md) - [Model.PayoutStore](docs/PayoutStore.md) - [Model.PayoutSummary](docs/PayoutSummary.md) + - [Model.PendingInvitation](docs/PendingInvitation.md) - [Model.PendingMenuChanges](docs/PendingMenuChanges.md) - [Model.PendingMenuChangesSummaries](docs/PendingMenuChangesSummaries.md) - [Model.PercentDiscountDetails](docs/PercentDiscountDetails.md) - [Model.PhoneCall](docs/PhoneCall.md) - [Model.PhoneCallEndedEvent](docs/PhoneCallEndedEvent.md) - [Model.PhoneCallStartedEvent](docs/PhoneCallStartedEvent.md) + - [Model.PixelPointProductCatalogue](docs/PixelPointProductCatalogue.md) + - [Model.PlayStoreConfigModel](docs/PlayStoreConfigModel.md) + - [Model.PosRevenueDetails](docs/PosRevenueDetails.md) - [Model.PreOrderConfig](docs/PreOrderConfig.md) - [Model.PreOrderTime](docs/PreOrderTime.md) - [Model.PredefinedAnswer](docs/PredefinedAnswer.md) - - [Model.Price](docs/Price.md) + - [Model.PreviousOrder](docs/PreviousOrder.md) + - [Model.PreviousOrderItem](docs/PreviousOrderItem.md) + - [Model.PreviousOrderItemOption](docs/PreviousOrderItemOption.md) - [Model.Printer](docs/Printer.md) - [Model.PrinterAssignedToStoreEvent](docs/PrinterAssignedToStoreEvent.md) - [Model.PrinterTurnedOffEvent](docs/PrinterTurnedOffEvent.md) @@ -868,6 +1073,8 @@ Class | Method | HTTP request | Description - [Model.ProcessingFeeConfig](docs/ProcessingFeeConfig.md) - [Model.Product](docs/Product.md) - [Model.ProductReference](docs/ProductReference.md) + - [Model.PromotionAward](docs/PromotionAward.md) + - [Model.PromotionDetails](docs/PromotionDetails.md) - [Model.PublishMenuChanges](docs/PublishMenuChanges.md) - [Model.PushNotificationDeletedEvent](docs/PushNotificationDeletedEvent.md) - [Model.PushNotificationRequest](docs/PushNotificationRequest.md) @@ -879,25 +1086,23 @@ Class | Method | HTTP request | Description - [Model.RedeemInvitationResult](docs/RedeemInvitationResult.md) - [Model.Refund](docs/Refund.md) - [Model.Reject](docs/Reject.md) - - [Model.RequestLoginPinModel](docs/RequestLoginPinModel.md) - - [Model.RequestLoginPinResposne](docs/RequestLoginPinResposne.md) - [Model.RequestPasswordResetModel](docs/RequestPasswordResetModel.md) - - [Model.RequestPasswordResetPinResponse](docs/RequestPasswordResetPinResponse.md) - [Model.Response](docs/Response.md) - [Model.RestApiArrayResultAllMetadataResult](docs/RestApiArrayResultAllMetadataResult.md) + - [Model.RestApiArrayResultAllergen](docs/RestApiArrayResultAllergen.md) - [Model.RestApiArrayResultApmCurrencyDataPoint](docs/RestApiArrayResultApmCurrencyDataPoint.md) - [Model.RestApiArrayResultApmDataPoint](docs/RestApiArrayResultApmDataPoint.md) - [Model.RestApiArrayResultApmHourlyDataPoint](docs/RestApiArrayResultApmHourlyDataPoint.md) - - [Model.RestApiArrayResultAppStoreAppConfigurationHeader](docs/RestApiArrayResultAppStoreAppConfigurationHeader.md) - [Model.RestApiArrayResultAppStoreAppConfigurationSummary](docs/RestApiArrayResultAppStoreAppConfigurationSummary.md) + - [Model.RestApiArrayResultAppStoreAppSummary](docs/RestApiArrayResultAppStoreAppSummary.md) - [Model.RestApiArrayResultBankAccountSummary](docs/RestApiArrayResultBankAccountSummary.md) - [Model.RestApiArrayResultBusinessHoursPeriod](docs/RestApiArrayResultBusinessHoursPeriod.md) - [Model.RestApiArrayResultChannel](docs/RestApiArrayResultChannel.md) + - [Model.RestApiArrayResultClientDeviceSummary](docs/RestApiArrayResultClientDeviceSummary.md) - [Model.RestApiArrayResultCountryWithAccountFieldsDefinitions](docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md) - [Model.RestApiArrayResultDeliveryZone](docs/RestApiArrayResultDeliveryZone.md) - - [Model.RestApiArrayResultDriver](docs/RestApiArrayResultDriver.md) - - [Model.RestApiArrayResultDriverStore](docs/RestApiArrayResultDriverStore.md) - [Model.RestApiArrayResultEmvTerminalWithAssignments](docs/RestApiArrayResultEmvTerminalWithAssignments.md) + - [Model.RestApiArrayResultFlipdishAccountName](docs/RestApiArrayResultFlipdishAccountName.md) - [Model.RestApiArrayResultFulfillmentStatesConfigurationSummary](docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md) - [Model.RestApiArrayResultHomeAction](docs/RestApiArrayResultHomeAction.md) - [Model.RestApiArrayResultKioskCashPaymentSettings](docs/RestApiArrayResultKioskCashPaymentSettings.md) @@ -915,31 +1120,46 @@ Class | Method | HTTP request | Description - [Model.RestApiArrayResultMenuStoreNames](docs/RestApiArrayResultMenuStoreNames.md) - [Model.RestApiArrayResultMenuSummary](docs/RestApiArrayResultMenuSummary.md) - [Model.RestApiArrayResultMenuTaxDetails](docs/RestApiArrayResultMenuTaxDetails.md) + - [Model.RestApiArrayResultMenuZone](docs/RestApiArrayResultMenuZone.md) - [Model.RestApiArrayResultMetadata](docs/RestApiArrayResultMetadata.md) - [Model.RestApiArrayResultMobileAppsStatistics](docs/RestApiArrayResultMobileAppsStatistics.md) - [Model.RestApiArrayResultOAuthApp](docs/RestApiArrayResultOAuthApp.md) - [Model.RestApiArrayResultOauthClientRedirectUri](docs/RestApiArrayResultOauthClientRedirectUri.md) - - [Model.RestApiArrayResultOrderBatchItem](docs/RestApiArrayResultOrderBatchItem.md) + - [Model.RestApiArrayResultOrderBatch](docs/RestApiArrayResultOrderBatch.md) - [Model.RestApiArrayResultOrderFulfillmentStatus](docs/RestApiArrayResultOrderFulfillmentStatus.md) - [Model.RestApiArrayResultPayoutSummary](docs/RestApiArrayResultPayoutSummary.md) + - [Model.RestApiArrayResultPendingInvitation](docs/RestApiArrayResultPendingInvitation.md) - [Model.RestApiArrayResultPendingMenuChangesSummaries](docs/RestApiArrayResultPendingMenuChangesSummaries.md) - [Model.RestApiArrayResultPreOrderTime](docs/RestApiArrayResultPreOrderTime.md) - [Model.RestApiArrayResultProcessingFeeConfig](docs/RestApiArrayResultProcessingFeeConfig.md) + - [Model.RestApiArrayResultRedeemInvitationResult](docs/RestApiArrayResultRedeemInvitationResult.md) - [Model.RestApiArrayResultRestApiDefaultResponse](docs/RestApiArrayResultRestApiDefaultResponse.md) - [Model.RestApiArrayResultRestaurantVoucherEligibleStore](docs/RestApiArrayResultRestaurantVoucherEligibleStore.md) - [Model.RestApiArrayResultRestaurantVoucherPayGreenConfiguration](docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md) - [Model.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary](docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md) - [Model.RestApiArrayResultRetentionCampaign](docs/RestApiArrayResultRetentionCampaign.md) + - [Model.RestApiArrayResultSmsProviderCredential](docs/RestApiArrayResultSmsProviderCredential.md) - [Model.RestApiArrayResultStoreChannelAssignment](docs/RestApiArrayResultStoreChannelAssignment.md) - - [Model.RestApiArrayResultStoreChannelStoreMapping](docs/RestApiArrayResultStoreChannelStoreMapping.md) + - [Model.RestApiArrayResultStoreDeliveryZoneFeeConfig](docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md) - [Model.RestApiArrayResultStoreListItem](docs/RestApiArrayResultStoreListItem.md) - [Model.RestApiArrayResultStoreStatistics](docs/RestApiArrayResultStoreStatistics.md) + - [Model.RestApiArrayResultStripeCustomConnectedAccount](docs/RestApiArrayResultStripeCustomConnectedAccount.md) + - [Model.RestApiArrayResultSubscriptionSummary](docs/RestApiArrayResultSubscriptionSummary.md) - [Model.RestApiArrayResultSupportedCountry](docs/RestApiArrayResultSupportedCountry.md) - [Model.RestApiArrayResultTeammate](docs/RestApiArrayResultTeammate.md) + - [Model.RestApiArrayResultUserDeliveryLocationAdmin](docs/RestApiArrayResultUserDeliveryLocationAdmin.md) + - [Model.RestApiArrayResultUserFlipdishAccount](docs/RestApiArrayResultUserFlipdishAccount.md) + - [Model.RestApiArrayResultUserNote](docs/RestApiArrayResultUserNote.md) + - [Model.RestApiArrayResultUserOrderSummary](docs/RestApiArrayResultUserOrderSummary.md) + - [Model.RestApiArrayResultUserSmsChatItem](docs/RestApiArrayResultUserSmsChatItem.md) + - [Model.RestApiArrayResultUserStoreInfo](docs/RestApiArrayResultUserStoreInfo.md) - [Model.RestApiArrayResultVoucherDataPoint](docs/RestApiArrayResultVoucherDataPoint.md) + - [Model.RestApiArrayResultVoucherSummary](docs/RestApiArrayResultVoucherSummary.md) - [Model.RestApiDefaultResponse](docs/RestApiDefaultResponse.md) - [Model.RestApiErrorResult](docs/RestApiErrorResult.md) - [Model.RestApiEventSearchPaginationResult](docs/RestApiEventSearchPaginationResult.md) + - [Model.RestApiFinanceSearchPaginationResultInvoice](docs/RestApiFinanceSearchPaginationResultInvoice.md) + - [Model.RestApiFinanceSearchPaginationResultSubscriptionInvoice](docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md) - [Model.RestApiForbiddenResult](docs/RestApiForbiddenResult.md) - [Model.RestApiIntegerResult](docs/RestApiIntegerResult.md) - [Model.RestApiPaginationResultApp](docs/RestApiPaginationResultApp.md) @@ -947,7 +1167,6 @@ Class | Method | HTTP request | Description - [Model.RestApiPaginationResultBusinessHoursOverride](docs/RestApiPaginationResultBusinessHoursOverride.md) - [Model.RestApiPaginationResultCatalogItem](docs/RestApiPaginationResultCatalogItem.md) - [Model.RestApiPaginationResultGroup](docs/RestApiPaginationResultGroup.md) - - [Model.RestApiPaginationResultHttpRequestAndResponseLog](docs/RestApiPaginationResultHttpRequestAndResponseLog.md) - [Model.RestApiPaginationResultHydraDeviceDetails](docs/RestApiPaginationResultHydraDeviceDetails.md) - [Model.RestApiPaginationResultMetafieldDefinition](docs/RestApiPaginationResultMetafieldDefinition.md) - [Model.RestApiPaginationResultMetafieldDefinitionRecommendation](docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md) @@ -959,18 +1178,22 @@ Class | Method | HTTP request | Description - [Model.RestApiPaginationResultPayoutOrder](docs/RestApiPaginationResultPayoutOrder.md) - [Model.RestApiPaginationResultPayoutOtherCharge](docs/RestApiPaginationResultPayoutOtherCharge.md) - [Model.RestApiPaginationResultPayoutRefund](docs/RestApiPaginationResultPayoutRefund.md) + - [Model.RestApiPaginationResultPayoutReport3RefundedOrder](docs/RestApiPaginationResultPayoutReport3RefundedOrder.md) - [Model.RestApiPaginationResultPendingMenuChanges](docs/RestApiPaginationResultPendingMenuChanges.md) - [Model.RestApiPaginationResultPhoneCall](docs/RestApiPaginationResultPhoneCall.md) - [Model.RestApiPaginationResultProduct](docs/RestApiPaginationResultProduct.md) - [Model.RestApiPaginationResultPushNotificationResponse](docs/RestApiPaginationResultPushNotificationResponse.md) + - [Model.RestApiPaginationResultRestaurant](docs/RestApiPaginationResultRestaurant.md) - [Model.RestApiPaginationResultStore](docs/RestApiPaginationResultStore.md) - [Model.RestApiPaginationResultStoreGroup](docs/RestApiPaginationResultStoreGroup.md) - [Model.RestApiPaginationResultStoreGroupExtended](docs/RestApiPaginationResultStoreGroupExtended.md) - [Model.RestApiPaginationResultStoreHeader](docs/RestApiPaginationResultStoreHeader.md) - [Model.RestApiPaginationResultStoreValidationConfig](docs/RestApiPaginationResultStoreValidationConfig.md) + - [Model.RestApiPaginationResultUserSearch](docs/RestApiPaginationResultUserSearch.md) - [Model.RestApiPaginationResultVoucherSummary](docs/RestApiPaginationResultVoucherSummary.md) - [Model.RestApiPaginationResultWebhookLog](docs/RestApiPaginationResultWebhookLog.md) - [Model.RestApiPaginationResultWebhookSubscription](docs/RestApiPaginationResultWebhookSubscription.md) + - [Model.RestApiResultAcceptInvitationResult](docs/RestApiResultAcceptInvitationResult.md) - [Model.RestApiResultAccountDetail](docs/RestApiResultAccountDetail.md) - [Model.RestApiResultAccountFieldsDefinitions](docs/RestApiResultAccountFieldsDefinitions.md) - [Model.RestApiResultAddressFormResponse](docs/RestApiResultAddressFormResponse.md) @@ -980,35 +1203,49 @@ Class | Method | HTTP request | Description - [Model.RestApiResultAppChannelAssignment](docs/RestApiResultAppChannelAssignment.md) - [Model.RestApiResultAppCompliance](docs/RestApiResultAppCompliance.md) - [Model.RestApiResultAppConfigSalesChannel](docs/RestApiResultAppConfigSalesChannel.md) + - [Model.RestApiResultAppGeneralConfigModel](docs/RestApiResultAppGeneralConfigModel.md) - [Model.RestApiResultAppStoreApp](docs/RestApiResultAppStoreApp.md) - [Model.RestApiResultAppStoreAppConfiguration](docs/RestApiResultAppStoreAppConfiguration.md) + - [Model.RestApiResultAppStoreAppEntitlements](docs/RestApiResultAppStoreAppEntitlements.md) + - [Model.RestApiResultAppStoreConfigModel](docs/RestApiResultAppStoreConfigModel.md) + - [Model.RestApiResultAssetResultModel](docs/RestApiResultAssetResultModel.md) - [Model.RestApiResultAssignedBankAccount](docs/RestApiResultAssignedBankAccount.md) - [Model.RestApiResultBankAccountDetail](docs/RestApiResultBankAccountDetail.md) - [Model.RestApiResultBluetoothTerminalStatus](docs/RestApiResultBluetoothTerminalStatus.md) + - [Model.RestApiResultBuildResultModel](docs/RestApiResultBuildResultModel.md) - [Model.RestApiResultBusinessHoursOverride](docs/RestApiResultBusinessHoursOverride.md) - [Model.RestApiResultBusinessHoursPeriod](docs/RestApiResultBusinessHoursPeriod.md) - [Model.RestApiResultCardReader](docs/RestApiResultCardReader.md) - [Model.RestApiResultCatalogItem](docs/RestApiResultCatalogItem.md) - [Model.RestApiResultChannel](docs/RestApiResultChannel.md) + - [Model.RestApiResultClientDevice](docs/RestApiResultClientDevice.md) + - [Model.RestApiResultClientDeviceEnrollmentResult](docs/RestApiResultClientDeviceEnrollmentResult.md) - [Model.RestApiResultCoordinates](docs/RestApiResultCoordinates.md) - [Model.RestApiResultCountryFormResponse](docs/RestApiResultCountryFormResponse.md) - [Model.RestApiResultCreatedMenuSectionItems](docs/RestApiResultCreatedMenuSectionItems.md) + - [Model.RestApiResultCrossSellMenuItems](docs/RestApiResultCrossSellMenuItems.md) - [Model.RestApiResultCustomer](docs/RestApiResultCustomer.md) + - [Model.RestApiResultCustomers](docs/RestApiResultCustomers.md) - [Model.RestApiResultDeliveryZone](docs/RestApiResultDeliveryZone.md) - [Model.RestApiResultDnsRecordInformation](docs/RestApiResultDnsRecordInformation.md) - - [Model.RestApiResultDriver](docs/RestApiResultDriver.md) + - [Model.RestApiResultEndUserFeeConfig](docs/RestApiResultEndUserFeeConfig.md) + - [Model.RestApiResultExecuteConfigurationActionResult](docs/RestApiResultExecuteConfigurationActionResult.md) - [Model.RestApiResultFulfillmentStatesConfiguration](docs/RestApiResultFulfillmentStatesConfiguration.md) + - [Model.RestApiResultGetEndUserFeeConfigsResponse](docs/RestApiResultGetEndUserFeeConfigsResponse.md) - [Model.RestApiResultGroup](docs/RestApiResultGroup.md) + - [Model.RestApiResultHasPaymentMethodResponse](docs/RestApiResultHasPaymentMethodResponse.md) - [Model.RestApiResultHomeStatistics](docs/RestApiResultHomeStatistics.md) - [Model.RestApiResultHydraConfig](docs/RestApiResultHydraConfig.md) - [Model.RestApiResultHydraDeviceDetails](docs/RestApiResultHydraDeviceDetails.md) - [Model.RestApiResultHydraStatus](docs/RestApiResultHydraStatus.md) - [Model.RestApiResultIndexPage](docs/RestApiResultIndexPage.md) - [Model.RestApiResultIndexPageBase](docs/RestApiResultIndexPageBase.md) + - [Model.RestApiResultIntercomUserHash](docs/RestApiResultIntercomUserHash.md) - [Model.RestApiResultJobResponse](docs/RestApiResultJobResponse.md) - - [Model.RestApiResultKioskCashSetting](docs/RestApiResultKioskCashSetting.md) + - [Model.RestApiResultKioskEntitlementsResult](docs/RestApiResultKioskEntitlementsResult.md) - [Model.RestApiResultKioskIotConnectionParameters](docs/RestApiResultKioskIotConnectionParameters.md) - - [Model.RestApiResultKioskStoreSettings](docs/RestApiResultKioskStoreSettings.md) + - [Model.RestApiResultKioskSettings](docs/RestApiResultKioskSettings.md) + - [Model.RestApiResultKioskStripeLocation](docs/RestApiResultKioskStripeLocation.md) - [Model.RestApiResultLightspeedSettings](docs/RestApiResultLightspeedSettings.md) - [Model.RestApiResultLocationArea](docs/RestApiResultLocationArea.md) - [Model.RestApiResultLocationAreaLocation](docs/RestApiResultLocationAreaLocation.md) @@ -1018,9 +1255,11 @@ Class | Method | HTTP request | Description - [Model.RestApiResultMenu](docs/RestApiResultMenu.md) - [Model.RestApiResultMenuItemOptionSet](docs/RestApiResultMenuItemOptionSet.md) - [Model.RestApiResultMenuItemOptionSetItem](docs/RestApiResultMenuItemOptionSetItem.md) + - [Model.RestApiResultMenuNutritionInfoHeader](docs/RestApiResultMenuNutritionInfoHeader.md) - [Model.RestApiResultMenuSection](docs/RestApiResultMenuSection.md) - [Model.RestApiResultMenuSectionAvailability](docs/RestApiResultMenuSectionAvailability.md) - [Model.RestApiResultMenuSectionItem](docs/RestApiResultMenuSectionItem.md) + - [Model.RestApiResultMenuZone](docs/RestApiResultMenuZone.md) - [Model.RestApiResultMetadata](docs/RestApiResultMetadata.md) - [Model.RestApiResultMetafieldDefinition](docs/RestApiResultMetafieldDefinition.md) - [Model.RestApiResultMobileAppsImage](docs/RestApiResultMobileAppsImage.md) @@ -1028,51 +1267,69 @@ Class | Method | HTTP request | Description - [Model.RestApiResultMobileAppsSubmissionDetails](docs/RestApiResultMobileAppsSubmissionDetails.md) - [Model.RestApiResultMobileAppsSubmissionStatus](docs/RestApiResultMobileAppsSubmissionStatus.md) - [Model.RestApiResultModelBase](docs/RestApiResultModelBase.md) + - [Model.RestApiResultNutritionInfo](docs/RestApiResultNutritionInfo.md) + - [Model.RestApiResultNutritionInfoV2](docs/RestApiResultNutritionInfoV2.md) - [Model.RestApiResultOAuthApp](docs/RestApiResultOAuthApp.md) - [Model.RestApiResultOauthClientRedirectUri](docs/RestApiResultOauthClientRedirectUri.md) + - [Model.RestApiResultOktaPortalFeatureFlag](docs/RestApiResultOktaPortalFeatureFlag.md) - [Model.RestApiResultOrder](docs/RestApiResultOrder.md) - [Model.RestApiResultOrderBatch](docs/RestApiResultOrderBatch.md) - [Model.RestApiResultOrderBatchingConfiguration](docs/RestApiResultOrderBatchingConfiguration.md) - [Model.RestApiResultOrderDeliveryInformation](docs/RestApiResultOrderDeliveryInformation.md) - [Model.RestApiResultOrderFulfillmentStatus](docs/RestApiResultOrderFulfillmentStatus.md) - [Model.RestApiResultOrderFulfillmentStatusWithConfigurationActions](docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md) - - [Model.RestApiResultOrderIngestSubmitOrderResponse](docs/RestApiResultOrderIngestSubmitOrderResponse.md) + - [Model.RestApiResultOrderLeadTimes](docs/RestApiResultOrderLeadTimes.md) - [Model.RestApiResultOrderPaymentInformation](docs/RestApiResultOrderPaymentInformation.md) - [Model.RestApiResultPaymentIntent](docs/RestApiResultPaymentIntent.md) - [Model.RestApiResultPaymentTerminalDetails](docs/RestApiResultPaymentTerminalDetails.md) - [Model.RestApiResultPaymentTerminalTransactionDetails](docs/RestApiResultPaymentTerminalTransactionDetails.md) + - [Model.RestApiResultPayoutReport3Details](docs/RestApiResultPayoutReport3Details.md) + - [Model.RestApiResultPayoutReport3Overview](docs/RestApiResultPayoutReport3Overview.md) + - [Model.RestApiResultPayoutReport3PropertyDetails](docs/RestApiResultPayoutReport3PropertyDetails.md) + - [Model.RestApiResultPayoutReport3StorePayouts](docs/RestApiResultPayoutReport3StorePayouts.md) + - [Model.RestApiResultPixelPointProductCatalogue](docs/RestApiResultPixelPointProductCatalogue.md) + - [Model.RestApiResultPlayStoreConfigModel](docs/RestApiResultPlayStoreConfigModel.md) - [Model.RestApiResultPreOrderConfig](docs/RestApiResultPreOrderConfig.md) - [Model.RestApiResultProcessingFeeConfig](docs/RestApiResultProcessingFeeConfig.md) - [Model.RestApiResultProduct](docs/RestApiResultProduct.md) - [Model.RestApiResultPushNotificationResponse](docs/RestApiResultPushNotificationResponse.md) - [Model.RestApiResultRedeemInvitationResult](docs/RestApiResultRedeemInvitationResult.md) + - [Model.RestApiResultRestApiDefaultResponse](docs/RestApiResultRestApiDefaultResponse.md) + - [Model.RestApiResultRestApiIntegerResult](docs/RestApiResultRestApiIntegerResult.md) - [Model.RestApiResultRestaurantVoucherPayGreenConfiguration](docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md) - [Model.RestApiResultRestaurantVoucherPayGreenStoreConfiguration](docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) - [Model.RestApiResultRetentionCampaign](docs/RestApiResultRetentionCampaign.md) - [Model.RestApiResultServiceCharge](docs/RestApiResultServiceCharge.md) + - [Model.RestApiResultSetV2FeeCalculationRequest](docs/RestApiResultSetV2FeeCalculationRequest.md) + - [Model.RestApiResultSmsProviderCredential](docs/RestApiResultSmsProviderCredential.md) - [Model.RestApiResultStore](docs/RestApiResultStore.md) - [Model.RestApiResultStoreAddress](docs/RestApiResultStoreAddress.md) - [Model.RestApiResultStoreChannelAssignment](docs/RestApiResultStoreChannelAssignment.md) - [Model.RestApiResultStoreEndOfDayReport](docs/RestApiResultStoreEndOfDayReport.md) - [Model.RestApiResultStoreGroup](docs/RestApiResultStoreGroup.md) - [Model.RestApiResultStoreGroupBase](docs/RestApiResultStoreGroupBase.md) - - [Model.RestApiResultStoreKioskSettings](docs/RestApiResultStoreKioskSettings.md) - [Model.RestApiResultStoreOrderCapacityConfig](docs/RestApiResultStoreOrderCapacityConfig.md) - [Model.RestApiResultStripeConnectedAccount](docs/RestApiResultStripeConnectedAccount.md) - [Model.RestApiResultStripeTerminalConnectionToken](docs/RestApiResultStripeTerminalConnectionToken.md) - [Model.RestApiResultStripeTerminalLocation](docs/RestApiResultStripeTerminalLocation.md) - - [Model.RestApiResultStripeTerminalPrivateKey](docs/RestApiResultStripeTerminalPrivateKey.md) - [Model.RestApiResultStuartSettings](docs/RestApiResultStuartSettings.md) + - [Model.RestApiResultSubscription](docs/RestApiResultSubscription.md) - [Model.RestApiResultTeammate](docs/RestApiResultTeammate.md) - [Model.RestApiResultTelemetrySeriesResult](docs/RestApiResultTelemetrySeriesResult.md) - [Model.RestApiResultTipConfiguration](docs/RestApiResultTipConfiguration.md) - [Model.RestApiResultUpdateMobileAppsSubmissionStatus](docs/RestApiResultUpdateMobileAppsSubmissionStatus.md) + - [Model.RestApiResultUserInfo](docs/RestApiResultUserInfo.md) + - [Model.RestApiResultUserPushNotificationSentResult](docs/RestApiResultUserPushNotificationSentResult.md) + - [Model.RestApiResultUserRole](docs/RestApiResultUserRole.md) + - [Model.RestApiResultVoucher](docs/RestApiResultVoucher.md) - [Model.RestApiResultVoucherWithStats](docs/RestApiResultVoucherWithStats.md) - [Model.RestApiResultWebsiteImage](docs/RestApiResultWebsiteImage.md) - [Model.RestApiResultWebsiteTestimonial](docs/RestApiResultWebsiteTestimonial.md) + - [Model.RestApiResultWhiteLabelConfigModel](docs/RestApiResultWhiteLabelConfigModel.md) - [Model.RestApiStringArrayResult](docs/RestApiStringArrayResult.md) - [Model.RestApiStringResult](docs/RestApiStringResult.md) - [Model.RestApiUnauthorizedResult](docs/RestApiUnauthorizedResult.md) + - [Model.Restaurant](docs/Restaurant.md) - [Model.RestaurantVoucherAssignedStore](docs/RestaurantVoucherAssignedStore.md) - [Model.RestaurantVoucherEligibleStore](docs/RestaurantVoucherEligibleStore.md) - [Model.RestaurantVoucherPayGreenConfiguration](docs/RestaurantVoucherPayGreenConfiguration.md) @@ -1085,13 +1342,21 @@ Class | Method | HTTP request | Description - [Model.RetentionCampaignUpdatedEvent](docs/RetentionCampaignUpdatedEvent.md) - [Model.RevenueAdjustmentsDetails](docs/RevenueAdjustmentsDetails.md) - [Model.RevenueDetail](docs/RevenueDetail.md) + - [Model.SafeWaitHandle](docs/SafeWaitHandle.md) - [Model.SearchCriteria](docs/SearchCriteria.md) + - [Model.SendUserPushNotificationRequest](docs/SendUserPushNotificationRequest.md) + - [Model.SendUserSmsRequest](docs/SendUserSmsRequest.md) - [Model.ServiceCharge](docs/ServiceCharge.md) - [Model.SetOrderBatchingConfiguration](docs/SetOrderBatchingConfiguration.md) - - [Model.SetPasswordWithPinModel](docs/SetPasswordWithPinModel.md) + - [Model.SetUserDeliveryLocationCoordinatesRequest](docs/SetUserDeliveryLocationCoordinatesRequest.md) + - [Model.SetUserDeliveryLocationFieldRequest](docs/SetUserDeliveryLocationFieldRequest.md) + - [Model.SetV2FeeCalculationRequest](docs/SetV2FeeCalculationRequest.md) + - [Model.SetVoucherValidityPeriodsSimplifiedRequest](docs/SetVoucherValidityPeriodsSimplifiedRequest.md) - [Model.Setting](docs/Setting.md) - [Model.SignupStep](docs/SignupStep.md) - [Model.SmsInfo](docs/SmsInfo.md) + - [Model.SmsProviderCredential](docs/SmsProviderCredential.md) + - [Model.SmsProviderCredentialUpdateRequest](docs/SmsProviderCredentialUpdateRequest.md) - [Model.SmsReceivedEvent](docs/SmsReceivedEvent.md) - [Model.StatisticsCurrencyDataPoint](docs/StatisticsCurrencyDataPoint.md) - [Model.Store](docs/Store.md) @@ -1105,15 +1370,18 @@ Class | Method | HTTP request | Description - [Model.StoreBusinessHoursOverrideDeletedEvent](docs/StoreBusinessHoursOverrideDeletedEvent.md) - [Model.StoreCampaignStartTime](docs/StoreCampaignStartTime.md) - [Model.StoreChannelAssignment](docs/StoreChannelAssignment.md) - - [Model.StoreChannelStoreMapping](docs/StoreChannelStoreMapping.md) - [Model.StoreCloneSettings](docs/StoreCloneSettings.md) + - [Model.StoreCollectionSettings](docs/StoreCollectionSettings.md) - [Model.StoreConfig](docs/StoreConfig.md) - [Model.StoreCreateBase](docs/StoreCreateBase.md) - [Model.StoreCreatedEvent](docs/StoreCreatedEvent.md) - [Model.StoreDataPoint](docs/StoreDataPoint.md) - [Model.StoreDeletedEvent](docs/StoreDeletedEvent.md) + - [Model.StoreDeliveryZoneFeeConfig](docs/StoreDeliveryZoneFeeConfig.md) + - [Model.StoreDeliveryZoneFeeConfigUpdateRequest](docs/StoreDeliveryZoneFeeConfigUpdateRequest.md) - [Model.StoreEndOfDayReport](docs/StoreEndOfDayReport.md) - [Model.StoreFeeConfig](docs/StoreFeeConfig.md) + - [Model.StoreFeeConfigUpdatedEvent](docs/StoreFeeConfigUpdatedEvent.md) - [Model.StoreGroup](docs/StoreGroup.md) - [Model.StoreGroupBase](docs/StoreGroupBase.md) - [Model.StoreGroupCreatedEvent](docs/StoreGroupCreatedEvent.md) @@ -1123,9 +1391,7 @@ Class | Method | HTTP request | Description - [Model.StoreHeader](docs/StoreHeader.md) - [Model.StoreItemHeader](docs/StoreItemHeader.md) - [Model.StoreKioskSetting](docs/StoreKioskSetting.md) - - [Model.StoreKioskSettingModel](docs/StoreKioskSettingModel.md) - [Model.StoreKioskSettingUpdatedEvent](docs/StoreKioskSettingUpdatedEvent.md) - - [Model.StoreKioskSettings](docs/StoreKioskSettings.md) - [Model.StoreListItem](docs/StoreListItem.md) - [Model.StoreLogoCreatedEvent](docs/StoreLogoCreatedEvent.md) - [Model.StoreLogoDeletedEvent](docs/StoreLogoDeletedEvent.md) @@ -1146,15 +1412,23 @@ Class | Method | HTTP request | Description - [Model.StoreUnpublishedEvent](docs/StoreUnpublishedEvent.md) - [Model.StoreUpdatedEvent](docs/StoreUpdatedEvent.md) - [Model.StoreValidationConfig](docs/StoreValidationConfig.md) + - [Model.Stream](docs/Stream.md) - [Model.StripeAccountLinkRequest](docs/StripeAccountLinkRequest.md) - [Model.StripeConnectedAccount](docs/StripeConnectedAccount.md) - [Model.StripeConnectedAccountInfo](docs/StripeConnectedAccountInfo.md) + - [Model.StripeCustomConnectedAccount](docs/StripeCustomConnectedAccount.md) - [Model.StripeTerminalConnectionToken](docs/StripeTerminalConnectionToken.md) - [Model.StripeTerminalLocation](docs/StripeTerminalLocation.md) - - [Model.StripeTerminalPrivateKey](docs/StripeTerminalPrivateKey.md) - [Model.StuartSettings](docs/StuartSettings.md) - [Model.StuartSettingsTransportPrices](docs/StuartSettingsTransportPrices.md) + - [Model.Subscription](docs/Subscription.md) + - [Model.SubscriptionInvoice](docs/SubscriptionInvoice.md) + - [Model.SubscriptionProduct](docs/SubscriptionProduct.md) + - [Model.SubscriptionStore](docs/SubscriptionStore.md) + - [Model.SubscriptionSummary](docs/SubscriptionSummary.md) - [Model.SupportedCountry](docs/SupportedCountry.md) + - [Model.TaxItem](docs/TaxItem.md) + - [Model.TaxRate](docs/TaxRate.md) - [Model.Teammate](docs/Teammate.md) - [Model.TeammateBase](docs/TeammateBase.md) - [Model.TeammateDeletedEvent](docs/TeammateDeletedEvent.md) @@ -1164,11 +1438,17 @@ Class | Method | HTTP request | Description - [Model.TelemetrySeriesProperty](docs/TelemetrySeriesProperty.md) - [Model.TelemetrySeriesQueryParameters](docs/TelemetrySeriesQueryParameters.md) - [Model.TelemetrySeriesResult](docs/TelemetrySeriesResult.md) + - [Model.TelephonyConfig](docs/TelephonyConfig.md) + - [Model.TelephonyConfigUpdatedEvent](docs/TelephonyConfigUpdatedEvent.md) + - [Model.ThirdPartyFeesDetails](docs/ThirdPartyFeesDetails.md) - [Model.TipConfiguration](docs/TipConfiguration.md) - [Model.UnRegisterCardReaderRequest](docs/UnRegisterCardReaderRequest.md) + - [Model.UpcomingInvoice](docs/UpcomingInvoice.md) - [Model.UpdateAppStoreApp](docs/UpdateAppStoreApp.md) - [Model.UpdateAppStoreAppConfiguration](docs/UpdateAppStoreAppConfiguration.md) + - [Model.UpdateAppStoreAppConfigurationValuesBatch](docs/UpdateAppStoreAppConfigurationValuesBatch.md) - [Model.UpdateAppStoreAppConfigurationWebhookDTO](docs/UpdateAppStoreAppConfigurationWebhookDTO.md) + - [Model.UpdateAppStoreAppExternalProduct](docs/UpdateAppStoreAppExternalProduct.md) - [Model.UpdateCatalogGroupReference](docs/UpdateCatalogGroupReference.md) - [Model.UpdateCatalogItem](docs/UpdateCatalogItem.md) - [Model.UpdateDriverNotificationToken](docs/UpdateDriverNotificationToken.md) @@ -1184,23 +1464,40 @@ Class | Method | HTTP request | Description - [Model.UpdateProductReference](docs/UpdateProductReference.md) - [Model.UpdateStorePayGreenConfigurationRequest](docs/UpdateStorePayGreenConfigurationRequest.md) - [Model.UpdateTipConfiguration](docs/UpdateTipConfiguration.md) + - [Model.UpdateVoucher](docs/UpdateVoucher.md) + - [Model.UpdateVoucherUsage](docs/UpdateVoucherUsage.md) - [Model.UserAnsweredSignupQuestionsEvent](docs/UserAnsweredSignupQuestionsEvent.md) - [Model.UserCreatedEvent](docs/UserCreatedEvent.md) - [Model.UserDeletedEvent](docs/UserDeletedEvent.md) + - [Model.UserDeliveryLocationAdmin](docs/UserDeliveryLocationAdmin.md) - [Model.UserEventInfo](docs/UserEventInfo.md) + - [Model.UserFlipdishAccount](docs/UserFlipdishAccount.md) + - [Model.UserInfo](docs/UserInfo.md) - [Model.UserLoginEvent](docs/UserLoginEvent.md) + - [Model.UserMonthlyCommission](docs/UserMonthlyCommission.md) + - [Model.UserNote](docs/UserNote.md) + - [Model.UserOrderSummary](docs/UserOrderSummary.md) - [Model.UserPasswordCreatedEvent](docs/UserPasswordCreatedEvent.md) + - [Model.UserPushNotificationSentResult](docs/UserPushNotificationSentResult.md) + - [Model.UserRole](docs/UserRole.md) + - [Model.UserSearch](docs/UserSearch.md) + - [Model.UserSmsChatItem](docs/UserSmsChatItem.md) + - [Model.UserStoreInfo](docs/UserStoreInfo.md) - [Model.UserUpdatedEvent](docs/UserUpdatedEvent.md) + - [Model.UserWhiteLabelConfig](docs/UserWhiteLabelConfig.md) + - [Model.UserWhiteLabelInfo](docs/UserWhiteLabelInfo.md) - [Model.ValidValue](docs/ValidValue.md) - [Model.ValidationErrorResult](docs/ValidationErrorResult.md) + - [Model.ValidityPeriod](docs/ValidityPeriod.md) - [Model.Voucher](docs/Voucher.md) - - [Model.VoucherBase](docs/VoucherBase.md) + - [Model.VoucherAppliedEvent](docs/VoucherAppliedEvent.md) - [Model.VoucherCreatedEvent](docs/VoucherCreatedEvent.md) - [Model.VoucherDataPoint](docs/VoucherDataPoint.md) - [Model.VoucherDeletedEvent](docs/VoucherDeletedEvent.md) - [Model.VoucherSummary](docs/VoucherSummary.md) - [Model.VoucherUpdatedEvent](docs/VoucherUpdatedEvent.md) - [Model.VoucherWithStats](docs/VoucherWithStats.md) + - [Model.WaitHandle](docs/WaitHandle.md) - [Model.WebhookEventSample](docs/WebhookEventSample.md) - [Model.WebhookLog](docs/WebhookLog.md) - [Model.WebhookSubscription](docs/WebhookSubscription.md) @@ -1213,6 +1510,11 @@ Class | Method | HTTP request | Description - [Model.WebsiteTestimonialBase](docs/WebsiteTestimonialBase.md) - [Model.WebsiteUpdatedEvent](docs/WebsiteUpdatedEvent.md) - [Model.WebsiteVanityUrlUpdatedEvent](docs/WebsiteVanityUrlUpdatedEvent.md) + - [Model.WhiteLabelAssetModel](docs/WhiteLabelAssetModel.md) + - [Model.WhiteLabelColorSchemeModel](docs/WhiteLabelColorSchemeModel.md) + - [Model.WhiteLabelConfig](docs/WhiteLabelConfig.md) + - [Model.WhiteLabelConfigModel](docs/WhiteLabelConfigModel.md) + - [Model.WhiteLabelLanguageModel](docs/WhiteLabelLanguageModel.md) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fcde5c2b..c76a3e0e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,23 +10,46 @@ trigger: include: - master -pr: none +pr: + branches: + include: + - master pool: vmImage: 'windows-latest' variables: - nuspec: '**/Flipdish.csproj' - buildPlatform: 'Any CPU' - buildConfiguration: 'Release' - + # Secret nuget.org API key (NUGET_API_KEY) lives in this variable group + # (Pipelines > Library > 'Flipdish NuGet'). Keep the group authorized for + # this pipeline, otherwise runs fail with an authorization error. +- group: 'Flipdish NuGet' +- name: nuspec + value: '**/Flipdish.csproj' +- name: buildPlatform + value: 'Any CPU' +- name: buildConfiguration + value: 'Release' + # Publishing (pack + push) only on push to master. PR runs build + restore only. + # Azure Pipelines has no 'Push' Build.Reason: push-triggered runs are 'IndividualCI' + # or 'BatchedCI'. Build.Reason is a runtime variable - it is NOT available to + # ${{ }} template expressions - so evaluate isMaster with $[ ]. + # String eq/in are case-insensitive, so eq(variables['isMaster'], 'true') below + # matches the 'True'/'False' values a runtime expression produces. +- name: isMaster + value: $[ and(eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI')) ] steps: +# Pin NuGet to 6.x: NuGet 7.x fails to parse the legacy solution file format +# (Format Version 12.00 / VS 14) with "Could not load Microsoft.Build.Framework +# Version=15.1.0.0" (see builds 1.1.530/1.2.434). - task: NuGetToolInstaller@1 + inputs: + versionSpec: '6.x' - task: NuGetCommand@2 inputs: - restoreSolution: '$(solution)' + # 'solution' was never defined - restore silently did nothing before. + restoreSolution: 'Flipdish.sln' - task: MSBuild@1 inputs: @@ -36,22 +59,54 @@ steps: configuration: '$(buildConfiguration)' clean: true maximumCpuCount: true - restoreNugetPackages: true + # restoreNugetPackages must stay OFF: it makes MSBuild@1 run the agent's + # bundled externals NuGet (C:\actions-runner\...\externals\nuget\NuGet.exe), + # which fails on this legacy .sln ("Error parsing solution file ... + # Microsoft.Build.Framework, Version=15.1.0.0" -> exit 1). Restore is + # already handled above by NuGetCommand@2 using the pinned NuGet 6.x. - task: NuGetCommand@2 + condition: and(succeeded(), eq(variables['isMaster'], 'true')) inputs: command: 'pack' packagesToPack: '$(nuspec)' versioningScheme: 'byBuildNumber' + env: + NUGET_ENABLE_LEGACY_PROJECT_JSON_PACK: true -- task: NuGetCommand@2 +# Push with the API key from the 'Flipdish NuGet' variable group (secret +# NUGET_API_KEY, mapped into env below so it is masked in logs). The +# NuGetCommand@2 task (>= 2.280.1) refuses API-key external service +# connections on NuGet 6.x ("External service connections that use API key +# authentication require NuGet 7.6 or later" - build 1.2.439), and the 6.x +# pin must stay for the legacy .sln restore, so push runs as a script. +# dotnet is preinstalled on hosted Windows agents; the nupkg produced by +# nuget.exe pack pushes exactly like any other package. +- task: PowerShell@2 + displayName: 'dotnet nuget push (nuget.org)' + condition: and(succeeded(), eq(variables['isMaster'], 'true')) + env: + NUGET_API_KEY: $(NUGET_API_KEY) inputs: - command: 'push' - packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' - nuGetFeedType: 'external' - publishFeedCredentials: 'Nuget service' + targetType: 'inline' + script: | + $ErrorActionPreference = 'Stop' + $pkgs = Get-ChildItem "$env:BUILD_ARTIFACTSTAGINGDIRECTORY" -Filter *.nupkg | + Where-Object { $_.Name -notlike '*.symbols.nupkg' } + if (-not $pkgs) { + Write-Host "##vso[task.logissue type=error]No .nupkg packages found in $env:BUILD_ARTIFACTSTAGINGDIRECTORY" + exit 1 + } + foreach ($pkg in $pkgs) { + Write-Host "Pushing $($pkg.Name)" + # --no-symbols: dotnet push would otherwise auto-push a matching .snupkg + # --skip-duplicate: build re-runs after a successful push become a no-op + dotnet nuget push "$($pkg.FullName)" --source https://api.nuget.org/v3/index.json --api-key "$env:NUGET_API_KEY" --no-symbols --skip-duplicate + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + } -- task: VSTest@2 - inputs: - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' +# there are no tests in the solution (only src\Flipdish) - same as netcore repo +#- task: VSTest@2 +# inputs: +# platform: '$(buildPlatform)' +# configuration: '$(buildConfiguration)' diff --git a/docs/Accept.md b/docs/Accept.md new file mode 100644 index 00000000..de97b954 --- /dev/null +++ b/docs/Accept.md @@ -0,0 +1,9 @@ +# Flipdish.Model.Accept +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EstimatedMinutesForDelivery** | **int?** | Estimated minutes for delivery | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AcceptInvitationResult.md b/docs/AcceptInvitationResult.md new file mode 100644 index 00000000..fd757c94 --- /dev/null +++ b/docs/AcceptInvitationResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AcceptInvitationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsNewUser** | **bool?** | Bool indicating if the user accepting the invitation is a new user | [optional] +**InvitedEmailAddress** | **string** | The email address that was invited. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountDetail.md b/docs/AccountDetail.md new file mode 100644 index 00000000..b753cb03 --- /dev/null +++ b/docs/AccountDetail.md @@ -0,0 +1,19 @@ +# Flipdish.Model.AccountDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email | [optional] +**SignupSteps** | [**List<SignupStep>**](SignupStep.md) | Signup steps | [optional] +**IsVerified** | **bool?** | Is account email verified | [optional] +**IsSelfServeUser** | **bool?** | is the account a Self Server | [optional] +**AccountId** | **int?** | Accounts Id | [optional] +**Name** | **string** | Name | [optional] +**Language** | **string** | Language Id | [optional] +**TimeZoneInfoId** | **string** | Time Zone Info Id | [optional] +**DisplayTimesInUserLocalTimeZone** | **bool?** | Display the time in time zone local to the user | [optional] +**ShowHiddenFeatures** | **bool?** | Show hidden features | [optional] +**CreatedAt** | **DateTime?** | User created at | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountDetailBase.md b/docs/AccountDetailBase.md new file mode 100644 index 00000000..1b6cef88 --- /dev/null +++ b/docs/AccountDetailBase.md @@ -0,0 +1,14 @@ +# Flipdish.Model.AccountDetailBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name | [optional] +**Language** | **string** | Language Id | [optional] +**TimeZoneInfoId** | **string** | Time Zone Info Id | [optional] +**DisplayTimesInUserLocalTimeZone** | **bool?** | Display the time in time zone local to the user | [optional] +**ShowHiddenFeatures** | **bool?** | Show hidden features | [optional] +**CreatedAt** | **DateTime?** | User created at | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountFieldDefinition.md b/docs/AccountFieldDefinition.md new file mode 100644 index 00000000..fe4f367b --- /dev/null +++ b/docs/AccountFieldDefinition.md @@ -0,0 +1,15 @@ +# Flipdish.Model.AccountFieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData | [optional] +**DisplayName** | **string** | Display name of the field | [optional] +**Type** | **string** | There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools | [optional] +**MinLength** | **int?** | Minimum length of the field | [optional] +**MaxLength** | **int?** | Maximum length of the field | [optional] +**DigitsOnly** | **bool?** | Is the field digits (numeric) only | [optional] +**Regex** | **string** | Regex for validating the field (if specified) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountFieldKeyValuePair.md b/docs/AccountFieldKeyValuePair.md new file mode 100644 index 00000000..7bb3ee20 --- /dev/null +++ b/docs/AccountFieldKeyValuePair.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AccountFieldKeyValuePair +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData | [optional] +**Value** | **string** | The value of the field | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountFieldsDefinitions.md b/docs/AccountFieldsDefinitions.md new file mode 100644 index 00000000..56959f8d --- /dev/null +++ b/docs/AccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.Model.AccountFieldsDefinitions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefinitionsPerCountry** | **Dictionary<string, List<AccountFieldDefinition>>** | List of field definitions per country | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md new file mode 100644 index 00000000..b1fe833b --- /dev/null +++ b/docs/AccountsApi.md @@ -0,0 +1,851 @@ +# Flipdish.Api.AccountsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerSignUpQuestion**](AccountsApi.md#answersignupquestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | +[**ChangePassword**](AccountsApi.md#changepassword) | **PUT** /api/v1.0/accounts/password | +[**CreateAccount**](AccountsApi.md#createaccount) | **POST** /api/v1.0/accounts | +[**CreateBasicAccount**](AccountsApi.md#createbasicaccount) | **POST** /api/v1.0/accounts/basic-account | +[**GetAccountDetails**](AccountsApi.md#getaccountdetails) | **GET** /api/v1.0/accounts | +[**GetLocalisedTimeZones**](AccountsApi.md#getlocalisedtimezones) | **GET** /api/v1.0/accounts/timezones | +[**Login**](AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | +[**LoginSso**](AccountsApi.md#loginsso) | **POST** /api/v1.0/accounts/login/sso | +[**Logout**](AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | +[**PasswordResetWithToken**](AccountsApi.md#passwordresetwithtoken) | **POST** /api/v1.0/accounts/password | +[**RecaptchaValidate**](AccountsApi.md#recaptchavalidate) | **POST** /api/v1.0/accounts/recaptcha | +[**RequestPasswordReset**](AccountsApi.md#requestpasswordreset) | **POST** /api/v1.0/accounts/passwordreset | +[**SkipSignupStep**](AccountsApi.md#skipsignupstep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | +[**UpdateAccount**](AccountsApi.md#updateaccount) | **PUT** /api/v1.0/accounts | + + + +# **AnswerSignUpQuestion** +> void AnswerSignUpQuestion (string signupStepAction, int? answerId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AnswerSignUpQuestionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var signupStepAction = signupStepAction_example; // string | + var answerId = 56; // int? | + + try + { + apiInstance.AnswerSignUpQuestion(signupStepAction, answerId); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.AnswerSignUpQuestion: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **string**| | + **answerId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ChangePassword** +> void ChangePassword (ChangePasswordModel changePasswordModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ChangePasswordExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var changePasswordModel = new ChangePasswordModel(); // ChangePasswordModel | + + try + { + apiInstance.ChangePassword(changePasswordModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.ChangePassword: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changePasswordModel** | [**ChangePasswordModel**](ChangePasswordModel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateAccount** +> void CreateAccount (CreateAccountModel createAccountModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var createAccountModel = new CreateAccountModel(); // CreateAccountModel | + + try + { + apiInstance.CreateAccount(createAccountModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.CreateAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createAccountModel** | [**CreateAccountModel**](CreateAccountModel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateBasicAccount** +> string CreateBasicAccount (CreateBasicAccountModel basicAccountModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateBasicAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var basicAccountModel = new CreateBasicAccountModel(); // CreateBasicAccountModel | + + try + { + string result = apiInstance.CreateBasicAccount(basicAccountModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.CreateBasicAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **basicAccountModel** | [**CreateBasicAccountModel**](CreateBasicAccountModel.md)| | + +### Return type + +**string** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAccountDetails** +> RestApiResultAccountDetail GetAccountDetails () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAccountDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + + try + { + RestApiResultAccountDetail result = apiInstance.GetAccountDetails(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.GetAccountDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultAccountDetail**](RestApiResultAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLocalisedTimeZones** +> RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetLocalisedTimeZonesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + + try + { + RestApiArrayResultLocalisedTimeZone result = apiInstance.GetLocalisedTimeZones(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.GetLocalisedTimeZones: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultLocalisedTimeZone**](RestApiArrayResultLocalisedTimeZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Login** +> void Login (LoginModel loginModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LoginExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var loginModel = new LoginModel(); // LoginModel | + + try + { + apiInstance.Login(loginModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.Login: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loginModel** | [**LoginModel**](LoginModel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LoginSso** +> void LoginSso () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LoginSsoExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + + try + { + apiInstance.LoginSso(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.LoginSso: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Logout** +> void Logout () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LogoutExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + + try + { + apiInstance.Logout(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.Logout: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **PasswordResetWithToken** +> void PasswordResetWithToken (PasswordResetModel passwordResetModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PasswordResetWithTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var passwordResetModel = new PasswordResetModel(); // PasswordResetModel | + + try + { + apiInstance.PasswordResetWithToken(passwordResetModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.PasswordResetWithToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **passwordResetModel** | [**PasswordResetModel**](PasswordResetModel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RecaptchaValidate** +> void RecaptchaValidate (string token) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RecaptchaValidateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var token = token_example; // string | + + try + { + apiInstance.RecaptchaValidate(token); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.RecaptchaValidate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RequestPasswordReset** +> void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RequestPasswordResetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var requestPasswordResetModel = new RequestPasswordResetModel(); // RequestPasswordResetModel | + + try + { + apiInstance.RequestPasswordReset(requestPasswordResetModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.RequestPasswordReset: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestPasswordResetModel** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SkipSignupStep** +> void SkipSignupStep (string signupStepAction) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SkipSignupStepExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var signupStepAction = signupStepAction_example; // string | + + try + { + apiInstance.SkipSignupStep(signupStepAction); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.SkipSignupStep: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAccount** +> void UpdateAccount (AccountDetailBase updateAccountModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AccountsApi(); + var updateAccountModel = new AccountDetailBase(); // AccountDetailBase | + + try + { + apiInstance.UpdateAccount(updateAccountModel); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccountsApi.UpdateAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateAccountModel** | [**AccountDetailBase**](AccountDetailBase.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AddressApi.md b/docs/AddressApi.md new file mode 100644 index 00000000..58b1d878 --- /dev/null +++ b/docs/AddressApi.md @@ -0,0 +1,324 @@ +# Flipdish.Api.AddressApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddressTemplates**](AddressApi.md#addresstemplates) | **POST** /api/v1.0/address/templates | +[**FormByApp**](AddressApi.md#formbyapp) | **GET** /api/v1.0/app/{appId}/address/form | +[**FormByCountry**](AddressApi.md#formbycountry) | **GET** /api/v1.0/address/country/{countryCode}/form | +[**FormatGoogleAddress**](AddressApi.md#formatgoogleaddress) | **POST** /api/v1.0/address/google | +[**GetCountries**](AddressApi.md#getcountries) | **GET** /api/v1.0/address/countries | + + + +# **AddressTemplates** +> RestApiStringResult AddressTemplates (StoreAddressForm address) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddressTemplatesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AddressApi(); + var address = new StoreAddressForm(); // StoreAddressForm | + + try + { + RestApiStringResult result = apiInstance.AddressTemplates(address); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AddressApi.AddressTemplates: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | [**StoreAddressForm**](StoreAddressForm.md)| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FormByApp** +> RestApiResultAddressFormResponse FormByApp (string appId, string language = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FormByAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AddressApi(); + var appId = appId_example; // string | + var language = language_example; // string | (optional) + + try + { + RestApiResultAddressFormResponse result = apiInstance.FormByApp(appId, language); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AddressApi.FormByApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **language** | **string**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FormByCountry** +> RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FormByCountryExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AddressApi(); + var countryCode = countryCode_example; // string | + var language = language_example; // string | (optional) + + try + { + RestApiResultAddressFormResponse result = apiInstance.FormByCountry(countryCode, language); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AddressApi.FormByCountry: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **countryCode** | **string**| | + **language** | **string**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FormatGoogleAddress** +> RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FormatGoogleAddressExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AddressApi(); + var googleAddress = new GoogleAddress(); // GoogleAddress | + var language = language_example; // string | (optional) + + try + { + RestApiResultAddressFormResponse result = apiInstance.FormatGoogleAddress(googleAddress, language); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AddressApi.FormatGoogleAddress: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **googleAddress** | [**GoogleAddress**](GoogleAddress.md)| | + **language** | **string**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCountries** +> RestApiResultCountryFormResponse GetCountries (string language = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCountriesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AddressApi(); + var language = language_example; // string | (optional) + + try + { + RestApiResultCountryFormResponse result = apiInstance.GetCountries(language); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AddressApi.GetCountries: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **language** | **string**| | [optional] + +### Return type + +[**RestApiResultCountryFormResponse**](RestApiResultCountryFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AddressFormDisplayFormat.md b/docs/AddressFormDisplayFormat.md new file mode 100644 index 00000000..a617d89a --- /dev/null +++ b/docs/AddressFormDisplayFormat.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AddressFormDisplayFormat +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OneLine** | **string** | | [optional] +**TwoLines** | **List<string>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AddressFormResponse.md b/docs/AddressFormResponse.md new file mode 100644 index 00000000..88d283d7 --- /dev/null +++ b/docs/AddressFormResponse.md @@ -0,0 +1,12 @@ +# Flipdish.Model.AddressFormResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FormData** | [**List<DynamicFormField>**](DynamicFormField.md) | List of field definitions. | [optional] +**CountryCode** | **string** | ISO two letter code. | [optional] +**Language** | **string** | ISO culture code. | [optional] +**DisplayFormat** | [**AddressFormDisplayFormat**](AddressFormDisplayFormat.md) | Templates used to format form fields when displaying items in a list. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AllMetadataResult.md b/docs/AllMetadataResult.md new file mode 100644 index 00000000..22b58949 --- /dev/null +++ b/docs/AllMetadataResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AllMetadataResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemMetadata** | [**List<Metadata>**](Metadata.md) | Menu item metadata | [optional] +**MenuItemOptionSetItemMetadata** | [**List<Metadata>**](Metadata.md) | Menu item optionset item metadata | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Allergen.md b/docs/Allergen.md new file mode 100644 index 00000000..81a32c73 --- /dev/null +++ b/docs/Allergen.md @@ -0,0 +1,11 @@ +# Flipdish.Model.Allergen +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllergenId** | **string** | A unique identifier for the allergen | [optional] +**LocalizedName** | **string** | Localized name of the allergen | [optional] +**IconUrl** | **string** | Url to the icon for the allergen | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnalyticsClientEvent.md b/docs/AnalyticsClientEvent.md new file mode 100644 index 00000000..5de05884 --- /dev/null +++ b/docs/AnalyticsClientEvent.md @@ -0,0 +1,23 @@ +# Flipdish.Model.AnalyticsClientEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**EventType** | **string** | Type of the event | [optional] +**AppType** | **string** | Type of the app the event is coming from | [optional] +**Metadata** | **string** | JSON Metadata | [optional] +**UserId** | **int?** | User Id | [optional] +**Latitude** | **double?** | Latitude of the event | [optional] +**Longitude** | **double?** | Longitude of the event | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApmApi.md b/docs/ApmApi.md new file mode 100644 index 00000000..54f281b6 --- /dev/null +++ b/docs/ApmApi.md @@ -0,0 +1,402 @@ +# Flipdish.Api.ApmApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetApmStatus**](ApmApi.md#getapmstatus) | **GET** /api/v1.0/{appId}/apm/status | +[**GetBasicStatistics**](ApmApi.md#getbasicstatistics) | **GET** /api/v1.0/{appId}/apm/statistics | +[**GetCalendarWeekStatistics**](ApmApi.md#getcalendarweekstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | +[**GetCallsStatistics**](ApmApi.md#getcallsstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | +[**GetOrderStatistics**](ApmApi.md#getorderstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | +[**GetPaginatedCallList**](ApmApi.md#getpaginatedcalllist) | **GET** /api/v1.0/{appId}/apm/calls | + + + +# **GetApmStatus** +> RestApiResultApmStatus GetApmStatus (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetApmStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + + try + { + RestApiResultApmStatus result = apiInstance.GetApmStatus(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetApmStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultApmStatus**](RestApiResultApmStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBasicStatistics** +> RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBasicStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + var storeId = new List(); // List | (optional) + + try + { + RestApiResultApmStatistics result = apiInstance.GetBasicStatistics(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetBasicStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiResultApmStatistics**](RestApiResultApmStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCalendarWeekStatistics** +> RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCalendarWeekStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + var storeId = new List(); // List | (optional) + + try + { + RestApiArrayResultApmHourlyDataPoint result = apiInstance.GetCalendarWeekStatistics(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetCalendarWeekStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmHourlyDataPoint**](RestApiArrayResultApmHourlyDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCallsStatistics** +> RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCallsStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) + + try + { + RestApiArrayResultApmDataPoint result = apiInstance.GetCallsStatistics(appId, aggregateDataBy, dataPointLimit, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetCallsStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmDataPoint**](RestApiArrayResultApmDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrderStatistics** +> RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) + + try + { + RestApiArrayResultApmCurrencyDataPoint result = apiInstance.GetOrderStatistics(appId, aggregateDataBy, dataPointLimit, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetOrderStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmCurrencyDataPoint**](RestApiArrayResultApmCurrencyDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPaginatedCallList** +> RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPaginatedCallListExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ApmApi(); + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) + + try + { + RestApiPaginationResultPhoneCall result = apiInstance.GetPaginatedCallList(appId, page, limit, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ApmApi.GetPaginatedCallList: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPhoneCall**](RestApiPaginationResultPhoneCall.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ApmCurrencyDataPoint.md b/docs/ApmCurrencyDataPoint.md new file mode 100644 index 00000000..56aa41b0 --- /dev/null +++ b/docs/ApmCurrencyDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ApmCurrencyDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **DateTime?** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **int?** | The length in days that this data point covers | [optional] +**CurrencyData** | [**List<CurrencyData>**](CurrencyData.md) | The values of this data point | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApmDataPoint.md b/docs/ApmDataPoint.md new file mode 100644 index 00000000..454a78a2 --- /dev/null +++ b/docs/ApmDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ApmDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **DateTime?** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **int?** | The length in days that this data point covers | [optional] +**Value** | **int?** | The value of this data point | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApmHourlyDataPoint.md b/docs/ApmHourlyDataPoint.md new file mode 100644 index 00000000..6d796265 --- /dev/null +++ b/docs/ApmHourlyDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ApmHourlyDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | **string** | Day of the week | [optional] +**Hour** | **int?** | Hour in the day | [optional] +**TotalValue** | **int?** | Total Value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApmStatistics.md b/docs/ApmStatistics.md new file mode 100644 index 00000000..2078d764 --- /dev/null +++ b/docs/ApmStatistics.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ApmStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EstimatedMinutesSaved** | **int?** | Total amount of time spent with APM | [optional] +**EstimatedMinutesCouldSaved** | **int?** | Total amount of time that could be saved | [optional] +**CurrencyData** | [**List<StatisticsCurrencyDataPoint>**](StatisticsCurrencyDataPoint.md) | Currency based data | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApmStatus.md b/docs/ApmStatus.md new file mode 100644 index 00000000..162df574 --- /dev/null +++ b/docs/ApmStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.ApmStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsApmEnabled** | **bool?** | Indicates if APM is active or otherwise | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/App.md b/docs/App.md new file mode 100644 index 00000000..84403d2f --- /dev/null +++ b/docs/App.md @@ -0,0 +1,36 @@ +# Flipdish.Model.App +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | App Identifier | [optional] +**HasIosApp** | **bool?** | Has iOS app in Apple App Store. This is readonly. | [optional] +**IosAppStoreUrl** | **string** | IOS App Store URL | [optional] +**HasAndroidApp** | **bool?** | Has Android app in Google Play Store. This is readonly. | [optional] +**AndroidPlayStoreUrl** | **string** | Android Play Store URL | [optional] +**DisplayDeliveryRestaurantScreen** | **bool?** | Display delivery restaurant screen | [optional] +**LogoImageUrl** | **string** | Application Logo. | [optional] +**Languages** | [**List<Language>**](Language.md) | Languages that have been selected to be available to customers. | [optional] +**AvailableAppLanguages** | [**List<Language>**](Language.md) | Lists all languages that are supported by Flipdish. | [optional] +**AppAccessLevel** | **string** | App access level for the logged in user | [optional] +**AppResourceSet** | **List<string>** | Constitutes a list of available resources | [optional] +**Features** | **List<string>** | Feature flags. These cannot be set by 3rd parties. | [optional] +**MapCenter** | [**Coordinates**](Coordinates.md) | Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**MapNorthEast** | [**Coordinates**](Coordinates.md) | North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**MapSouthWest** | [**Coordinates**](Coordinates.md) | South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. | [optional] +**GoogleMapsApiKeyWeb** | **string** | Key to be passed with Google Maps requests | [optional] +**OrgId** | **string** | Org Id | [optional] +**SmsRestaurantName** | **string** | SMS Restaurant Name | [optional] +**WebToAppRedirect** | **string** | Web to App Redirect settings | [optional] +**Name** | **string** | App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. | [optional] +**HostName** | **string** | HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. | [optional] +**MainColor** | **string** | Main color of the web / Android / iOS applications | [optional] +**KioskPrimaryColour** | **string** | Primary colour used on the Kiosk | [optional] +**ApplicationCategory** | **string** | Application Category | [optional] +**IsPanaceaEnabled** | **bool?** | Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. | [optional] +**PanaceaVanityUrl** | **string** | In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} | [optional] +**CookieConsentPromptEnabled** | **bool?** | Cookie Consent Prompt Enabled | [optional] +**CountryId** | **string** | Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppChannelAssignment.md b/docs/AppChannelAssignment.md new file mode 100644 index 00000000..32f7c556 --- /dev/null +++ b/docs/AppChannelAssignment.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AppChannelAssignment +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **int?** | Id of the channel on the assignment | [optional] +**AppId** | **string** | AppId of the assignment | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppCompliance.md b/docs/AppCompliance.md new file mode 100644 index 00000000..84b60949 --- /dev/null +++ b/docs/AppCompliance.md @@ -0,0 +1,11 @@ +# Flipdish.Model.AppCompliance +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | App ID | [optional] +**ComplianceType** | **string** | Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. | [optional] +**AllowDisablingOfGdpr** | **bool?** | For EU countries, we should not allow to change the option to “Default banner”, but all other countries should be able to do so. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppConfigSalesChannel.md b/docs/AppConfigSalesChannel.md new file mode 100644 index 00000000..74c10200 --- /dev/null +++ b/docs/AppConfigSalesChannel.md @@ -0,0 +1,12 @@ +# Flipdish.Model.AppConfigSalesChannel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailRequestMode** | **string** | Display a popup to users requesting their email address | [optional] +**WebToAppRedirect** | **string** | Sends users to their native apps or request them to install the pwa | [optional] +**AddressEntryType** | **string** | Address entry type - TextEntryManualDisallowed is the only supported configuration | [optional] +**DisplayDeliveryRestaurantListScreen** | **bool?** | Display Pickup Restaurant List Screen | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppConfigUpdateModel.md b/docs/AppConfigUpdateModel.md new file mode 100644 index 00000000..2d7fa61a --- /dev/null +++ b/docs/AppConfigUpdateModel.md @@ -0,0 +1,18 @@ +# Flipdish.Model.AppConfigUpdateModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. | [optional] +**HostName** | **string** | HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. | [optional] +**MainColor** | **string** | Main color of the web / Android / iOS applications | [optional] +**KioskPrimaryColour** | **string** | Primary colour used on the Kiosk | [optional] +**ApplicationCategory** | **string** | Application Category | [optional] +**IsPanaceaEnabled** | **bool?** | Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. | [optional] +**PanaceaVanityUrl** | **string** | In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} | [optional] +**CookieConsentPromptEnabled** | **bool?** | Cookie Consent Prompt Enabled | [optional] +**LogoImageUrl** | **string** | Logo image URL | [optional] +**CountryId** | **string** | Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppCreatedEvent.md b/docs/AppCreatedEvent.md new file mode 100644 index 00000000..d157b5ed --- /dev/null +++ b/docs/AppCreatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.AppCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**AppName** | **string** | App Name | [optional] +**CountryId** | **string** | Country Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User information | [optional] +**AccountId** | **string** | Salesforce Account Id | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppGeneralConfigModel.md b/docs/AppGeneralConfigModel.md new file mode 100644 index 00000000..6a522e71 --- /dev/null +++ b/docs/AppGeneralConfigModel.md @@ -0,0 +1,23 @@ +# Flipdish.Model.AppGeneralConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **int?** | White label ID | [optional] +**DeepLinkUrlScheme** | **string** | Deep link URL scheme | [optional] +**SmsRestaurantName** | **string** | SMS restaurant name | [optional] +**NexmoSupportSmsNumber** | **string** | Nexmo support SMS number | [optional] +**TwilioSupportSmsNumber** | **string** | Twilio support SMS number | [optional] +**FallbackPhoneNumberPrefix** | **string** | Fallback phone number prefix | [optional] +**AutocompletePhoneNumberLength** | **int?** | Autocomplete phone number length | [optional] +**ContactFormType** | **string** | Contact form type None = 0, Email = 1, Intercom = 2, WebView = 3, FlipdishMessages = 4 | [optional] +**PrivateSupportEmailAddress** | **string** | Private support email address | [optional] +**ContactPhoneNumber** | **string** | Contact phone number | [optional] +**DeliveryEnabled** | **bool?** | Delivery enabled | [optional] +**PickupEnabled** | **bool?** | Pickup enabled | [optional] +**DineInEnabled** | **bool?** | Dine in enabled | [optional] +**DisplayDeliveryRestaurantListScreen** | **bool?** | Display delivery restaurant list screen | [optional] +**DisplayPickupRestaurantListScreen** | **bool?** | Display pickup restaurant list screen | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppInstall.md b/docs/AppInstall.md new file mode 100644 index 00000000..672416d2 --- /dev/null +++ b/docs/AppInstall.md @@ -0,0 +1,18 @@ +# Flipdish.Model.AppInstall +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the installed application. | [optional] +**FirstLogin** | **DateTime?** | Date and time of the user's first login to the app. | [optional] +**FirstLoginHuman** | **string** | Human-readable representation of the first login date. | [optional] +**LastActivity** | **DateTime?** | Date and time of the user's last activity in the app. | [optional] +**LastActivityHuman** | **string** | Human-readable representation of the last activity date. | [optional] +**GoogleTokens** | **int?** | Number of Google push notification tokens associated with the app install. | [optional] +**AppleTokens** | **int?** | Number of Apple push notification tokens associated with the app install. | [optional] +**OrderCount** | **int?** | Number of orders placed by the user through this app install. | [optional] +**UserAgentAtSignup** | **string** | User agent string at the time of signup. | [optional] +**UserAgentMostRecent** | **string** | Most recent user agent string used by the user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppLookup.md b/docs/AppLookup.md new file mode 100644 index 00000000..c1f14e51 --- /dev/null +++ b/docs/AppLookup.md @@ -0,0 +1,9 @@ +# Flipdish.Model.AppLookup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | App id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreApi.md b/docs/AppStoreApi.md new file mode 100644 index 00000000..f8708e1f --- /dev/null +++ b/docs/AppStoreApi.md @@ -0,0 +1,142 @@ +# Flipdish.Api.AppStoreApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAppStoreApp**](AppStoreApi.md#getappstoreapp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | +[**GetAppStoreApps**](AppStoreApi.md#getappstoreapps) | **GET** /api/v1.0/appstore/apps | + + + +# **GetAppStoreApp** +> RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppStoreAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreApi(); + var appStoreAppId = appStoreAppId_example; // string | + var appId = appId_example; // string | (optional) + + try + { + RestApiResultAppStoreApp result = apiInstance.GetAppStoreApp(appStoreAppId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreApi.GetAppStoreApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appStoreAppId** | **string**| | + **appId** | **string**| | [optional] + +### Return type + +[**RestApiResultAppStoreApp**](RestApiResultAppStoreApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppStoreApps** +> RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppStoreAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreApi(); + var search = search_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var excludeNotOwned = true; // bool? | (optional) + var showOnlyVerified = true; // bool? | (optional) + + try + { + RestApiPaginationResultAppStoreAppSummary result = apiInstance.GetAppStoreApps(search, page, limit, excludeNotOwned, showOnlyVerified); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreApi.GetAppStoreApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **excludeNotOwned** | **bool?**| | [optional] + **showOnlyVerified** | **bool?**| | [optional] + +### Return type + +[**RestApiPaginationResultAppStoreAppSummary**](RestApiPaginationResultAppStoreAppSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppStoreApp.md b/docs/AppStoreApp.md new file mode 100644 index 00000000..c4f6153d --- /dev/null +++ b/docs/AppStoreApp.md @@ -0,0 +1,31 @@ +# Flipdish.Model.AppStoreApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**VerificationStatus** | **string** | | +**Logo** | **string** | | [optional] +**OAuthAppId** | **string** | | +**Internal** | **bool?** | | +**Details** | **string** | | +**ConfigurationType** | **string** | | +**StoreSelectorType** | **string** | | +**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | | [optional] +**SetupInstructions** | **string** | | [optional] +**ExternalSetupLink** | **string** | | [optional] +**TeammateAppAccessLevel** | **string** | | [optional] +**PermissionsType** | **string** | | +**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | | [optional] +**ExternalFunctionActionUrl** | **string** | | [optional] +**ExternalFunctionSignatureKey** | **string** | | [optional] +**IsPaid** | **bool?** | | [optional] +**Name** | **string** | | +**Description** | **string** | | +**IsEnabled** | **bool?** | | [optional] +**Categories** | **List<string>** | | +**Countries** | **List<string>** | | +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreAppConfiguration.md b/docs/AppStoreAppConfiguration.md new file mode 100644 index 00000000..5b0e9230 --- /dev/null +++ b/docs/AppStoreAppConfiguration.md @@ -0,0 +1,35 @@ +# Flipdish.Model.AppStoreAppConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**AppId** | **string** | | +**AppStoreAppId** | **string** | | +**IsEnabled** | **bool?** | | +**StoreIds** | **List<int?>** | | [optional] +**Settings** | [**List<Setting>**](Setting.md) | | [optional] +**VerificationStatus** | **string** | | +**Logo** | **string** | | [optional] +**OAuthAppId** | **string** | | +**Internal** | **bool?** | | +**Details** | **string** | | +**ConfigurationType** | **string** | | +**StoreSelectorType** | **string** | | +**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | | [optional] +**SetupInstructions** | **string** | | [optional] +**ExternalSetupLink** | **string** | | [optional] +**TeammateAppAccessLevel** | **string** | | [optional] +**PermissionsType** | **string** | | +**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | | [optional] +**ExternalFunctionActionUrl** | **string** | | [optional] +**ExternalFunctionSignatureKey** | **string** | | [optional] +**IsPaid** | **bool?** | | [optional] +**Name** | **string** | | +**Description** | **string** | | +**Categories** | **List<string>** | | +**Countries** | **List<string>** | | +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreAppConfigurationSummary.md b/docs/AppStoreAppConfigurationSummary.md new file mode 100644 index 00000000..32b61b5e --- /dev/null +++ b/docs/AppStoreAppConfigurationSummary.md @@ -0,0 +1,20 @@ +# Flipdish.Model.AppStoreAppConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**AppId** | **string** | | +**IsEnabled** | **bool?** | | +**Stores** | [**List<ConfiguredStore>**](ConfiguredStore.md) | | +**ConfigurationType** | **string** | | +**StoreSelectorType** | **string** | | +**Internal** | **bool?** | | +**AppStoreAppId** | **string** | | +**Name** | **string** | | +**Description** | **string** | | +**Logo** | **string** | | [optional] +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreAppEntitlements.md b/docs/AppStoreAppEntitlements.md new file mode 100644 index 00000000..2cfaa789 --- /dev/null +++ b/docs/AppStoreAppEntitlements.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AppStoreAppEntitlements +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitlementQuantity** | **int?** | | [optional] +**CurrentUsage** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreAppSummary.md b/docs/AppStoreAppSummary.md new file mode 100644 index 00000000..8933282f --- /dev/null +++ b/docs/AppStoreAppSummary.md @@ -0,0 +1,18 @@ +# Flipdish.Model.AppStoreAppSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**VerificationStatus** | **string** | | +**Logo** | **string** | | [optional] +**Internal** | **bool?** | | +**Name** | **string** | | +**Description** | **string** | | +**IsEnabled** | **bool?** | | [optional] +**Categories** | **List<string>** | | +**Countries** | **List<string>** | | +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreAppSupportInfo.md b/docs/AppStoreAppSupportInfo.md new file mode 100644 index 00000000..beeb6fd8 --- /dev/null +++ b/docs/AppStoreAppSupportInfo.md @@ -0,0 +1,14 @@ +# Flipdish.Model.AppStoreAppSupportInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicy** | **string** | | [optional] +**TermsOfUse** | **string** | | [optional] +**CompanyWebsite** | **string** | | [optional] +**LearnMore** | **string** | | [optional] +**InstallationMessage** | **string** | | [optional] +**SupportEmail** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreConfigCreatedEvent.md b/docs/AppStoreConfigCreatedEvent.md new file mode 100644 index 00000000..36a10991 --- /dev/null +++ b/docs/AppStoreConfigCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.AppStoreConfigCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**AppStoreAppId** | **string** | App Store App Id | [optional] +**AppStoreAppConfigurationId** | **string** | App Store Configuration Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreConfigDeletedEvent.md b/docs/AppStoreConfigDeletedEvent.md new file mode 100644 index 00000000..7b41b387 --- /dev/null +++ b/docs/AppStoreConfigDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.AppStoreConfigDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**AppStoreAppId** | **string** | App Store Id | [optional] +**AppStoreAppConfigurationId** | **string** | App Store Configuration Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has deleted the configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreConfigModel.md b/docs/AppStoreConfigModel.md new file mode 100644 index 00000000..d416955a --- /dev/null +++ b/docs/AppStoreConfigModel.md @@ -0,0 +1,23 @@ +# Flipdish.Model.AppStoreConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **int?** | White label ID | [optional] +**ReadyToPublishToAppStore** | **bool?** | Ready to publish to app store | [optional] +**AppStoreName** | **string** | App store name | [optional] +**AppStoreAppleId** | **string** | App Store Apple ID | [optional] +**AppStoreUrl** | **string** | App Store URL | [optional] +**AppStoreId** | **string** | App Store ID | [optional] +**AppStorePassword** | **string** | App Store password | [optional] +**TeamId** | **string** | Team ID | [optional] +**AppGroupId** | **string** | App Group ID | [optional] +**BundleId** | **string** | Bundle ID | [optional] +**AppStoreSigningIdentity** | **string** | App Store signing identity | [optional] +**AppStoreToken** | **string** | App Store token | [optional] +**AppStoreMerchantId** | **string** | App Store merchant ID | [optional] +**P8PrivateKey** | **string** | P8 private key | [optional] +**P8PrivateKeyId** | **string** | P8 private key ID | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreConfigUpdatedEvent.md b/docs/AppStoreConfigUpdatedEvent.md new file mode 100644 index 00000000..53b903a9 --- /dev/null +++ b/docs/AppStoreConfigUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.AppStoreConfigUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**AppStoreAppId** | **string** | App Store Id | [optional] +**AppStoreAppConfiguration** | [**UpdateAppStoreAppConfigurationWebhookDTO**](UpdateAppStoreAppConfigurationWebhookDTO.md) | App Configuration | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has update the configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppStoreConfigurationsApi.md b/docs/AppStoreConfigurationsApi.md new file mode 100644 index 00000000..d4e0e4df --- /dev/null +++ b/docs/AppStoreConfigurationsApi.md @@ -0,0 +1,594 @@ +# Flipdish.Api.AppStoreConfigurationsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppStoreConfigurationsAppStoreHandleOauthResponseCode**](AppStoreConfigurationsApi.md#appstoreconfigurationsappstorehandleoauthresponsecode) | **GET** /api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode | +[**CreateAppStoreConfig**](AppStoreConfigurationsApi.md#createappstoreconfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | +[**DeleteAppStoreConfig**](AppStoreConfigurationsApi.md#deleteappstoreconfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**ExecuteConfigurationAction**](AppStoreConfigurationsApi.md#executeconfigurationaction) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action | +[**GetAppStoreConfig**](AppStoreConfigurationsApi.md#getappstoreconfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**GetConfiguredAppSingleApp**](AppStoreConfigurationsApi.md#getconfiguredappsingleapp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | +[**GetConfiguredApps**](AppStoreConfigurationsApi.md#getconfiguredapps) | **GET** /api/v1.0/{appId}/appstore/apps | +[**UpdateAppStoreConfig**](AppStoreConfigurationsApi.md#updateappstoreconfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**UpdateAppStoreConfigSettingValues**](AppStoreConfigurationsApi.md#updateappstoreconfigsettingvalues) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings | + + + +# **AppStoreConfigurationsAppStoreHandleOauthResponseCode** +> Object AppStoreConfigurationsAppStoreHandleOauthResponseCode (string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AppStoreConfigurationsAppStoreHandleOauthResponseCodeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appStoreAppId = appStoreAppId_example; // string | + + try + { + Object result = apiInstance.AppStoreConfigurationsAppStoreHandleOauthResponseCode(appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.AppStoreConfigurationsAppStoreHandleOauthResponseCode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appStoreAppId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateAppStoreConfig** +> RestApiResultAppStoreAppConfiguration CreateAppStoreConfig (string appId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + RestApiResultAppStoreAppConfiguration result = apiInstance.CreateAppStoreConfig(appId, appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.CreateAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +[**RestApiResultAppStoreAppConfiguration**](RestApiResultAppStoreAppConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteAppStoreConfig** +> RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + + try + { + RestApiStringResult result = apiInstance.DeleteAppStoreConfig(appId, appStoreAppId, configId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.DeleteAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ExecuteConfigurationAction** +> RestApiResultExecuteConfigurationActionResult ExecuteConfigurationAction (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ExecuteConfigurationActionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + var executeConfigurationActionRequest = new ExecuteConfigurationActionRequest(); // ExecuteConfigurationActionRequest | + + try + { + RestApiResultExecuteConfigurationActionResult result = apiInstance.ExecuteConfigurationAction(appId, appStoreAppId, configId, executeConfigurationActionRequest); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.ExecuteConfigurationAction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | + **executeConfigurationActionRequest** | [**ExecuteConfigurationActionRequest**](ExecuteConfigurationActionRequest.md)| | + +### Return type + +[**RestApiResultExecuteConfigurationActionResult**](RestApiResultExecuteConfigurationActionResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppStoreConfig** +> RestApiResultAppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + + try + { + RestApiResultAppStoreAppConfiguration result = apiInstance.GetAppStoreConfig(appId, appStoreAppId, configId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.GetAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | + +### Return type + +[**RestApiResultAppStoreAppConfiguration**](RestApiResultAppStoreAppConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConfiguredAppSingleApp** +> RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleApp (string appId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetConfiguredAppSingleAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + RestApiArrayResultAppStoreAppConfigurationSummary result = apiInstance.GetConfiguredAppSingleApp(appId, appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.GetConfiguredAppSingleApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +[**RestApiArrayResultAppStoreAppConfigurationSummary**](RestApiArrayResultAppStoreAppConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConfiguredApps** +> RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetConfiguredAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultAppStoreAppSummary result = apiInstance.GetConfiguredApps(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.GetConfiguredApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultAppStoreAppSummary**](RestApiArrayResultAppStoreAppSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppStoreConfig** +> void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + var updateAppStoreAppConfiguration = new UpdateAppStoreAppConfiguration(); // UpdateAppStoreAppConfiguration | + + try + { + apiInstance.UpdateAppStoreConfig(appId, appStoreAppId, configId, updateAppStoreAppConfiguration); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.UpdateAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | + **updateAppStoreAppConfiguration** | [**UpdateAppStoreAppConfiguration**](UpdateAppStoreAppConfiguration.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppStoreConfigSettingValues** +> void UpdateAppStoreConfigSettingValues (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppStoreConfigSettingValuesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreConfigurationsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + var updateAppStoreAppConfigurationValues = new UpdateAppStoreAppConfigurationValuesBatch(); // UpdateAppStoreAppConfigurationValuesBatch | + + try + { + apiInstance.UpdateAppStoreConfigSettingValues(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreConfigurationsApi.UpdateAppStoreConfigSettingValues: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | + **updateAppStoreAppConfigurationValues** | [**UpdateAppStoreAppConfigurationValuesBatch**](UpdateAppStoreAppConfigurationValuesBatch.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppStoreDeveloperApi.md b/docs/AppStoreDeveloperApi.md new file mode 100644 index 00000000..3e1f2590 --- /dev/null +++ b/docs/AppStoreDeveloperApi.md @@ -0,0 +1,523 @@ +# Flipdish.Api.AppStoreDeveloperApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppVerificationUpdate**](AppStoreDeveloperApi.md#appverificationupdate) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification | +[**CreateAppStoreApp**](AppStoreDeveloperApi.md#createappstoreapp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | +[**DeleteAppStoreApp**](AppStoreDeveloperApi.md#deleteappstoreapp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +[**GetAppExternalProduct**](AppStoreDeveloperApi.md#getappexternalproduct) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +[**GetExternalFunctionSigningKey**](AppStoreDeveloperApi.md#getexternalfunctionsigningkey) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key | +[**UpdateAppStoreApp**](AppStoreDeveloperApi.md#updateappstoreapp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +[**UpdateExternalProduct**](AppStoreDeveloperApi.md#updateexternalproduct) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +[**UploadAppStoreAppLogo**](AppStoreDeveloperApi.md#uploadappstoreapplogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | + + + +# **AppVerificationUpdate** +> void AppVerificationUpdate (string oauthAppId, string appStoreAppId, string verificationStatus) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AppVerificationUpdateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var verificationStatus = verificationStatus_example; // string | + + try + { + apiInstance.AppVerificationUpdate(oauthAppId, appStoreAppId, verificationStatus); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.AppVerificationUpdate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + **verificationStatus** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateAppStoreApp** +> RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateAppStoreAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var createAppStoreApp = new CreateAppStoreApp(); // CreateAppStoreApp | + + try + { + RestApiResultAppStoreApp result = apiInstance.CreateAppStoreApp(oauthAppId, createAppStoreApp); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.CreateAppStoreApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **createAppStoreApp** | [**CreateAppStoreApp**](CreateAppStoreApp.md)| | + +### Return type + +[**RestApiResultAppStoreApp**](RestApiResultAppStoreApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteAppStoreApp** +> RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteAppStoreAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + RestApiStringResult result = apiInstance.DeleteAppStoreApp(oauthAppId, appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.DeleteAppStoreApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppExternalProduct** +> void GetAppExternalProduct (string oauthAppId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppExternalProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + apiInstance.GetAppExternalProduct(oauthAppId, appStoreAppId); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.GetAppExternalProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetExternalFunctionSigningKey** +> RestApiStringResult GetExternalFunctionSigningKey (string oauthAppId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetExternalFunctionSigningKeyExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + RestApiStringResult result = apiInstance.GetExternalFunctionSigningKey(oauthAppId, appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.GetExternalFunctionSigningKey: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppStoreApp** +> void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppStoreAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var appStoreApp = new UpdateAppStoreApp(); // UpdateAppStoreApp | + + try + { + apiInstance.UpdateAppStoreApp(oauthAppId, appStoreAppId, appStoreApp); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.UpdateAppStoreApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + **appStoreApp** | [**UpdateAppStoreApp**](UpdateAppStoreApp.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateExternalProduct** +> void UpdateExternalProduct (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateExternalProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var appStoreAppExternalProduct = new UpdateAppStoreAppExternalProduct(); // UpdateAppStoreAppExternalProduct | + + try + { + apiInstance.UpdateExternalProduct(oauthAppId, appStoreAppId, appStoreAppExternalProduct); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.UpdateExternalProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + **appStoreAppExternalProduct** | [**UpdateAppStoreAppExternalProduct**](UpdateAppStoreAppExternalProduct.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadAppStoreAppLogo** +> void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadAppStoreAppLogoExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreDeveloperApi(); + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var image = new System.IO.Stream(); // System.IO.Stream | App Store App Logo + + try + { + apiInstance.UploadAppStoreAppLogo(oauthAppId, appStoreAppId, image); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreDeveloperApi.UploadAppStoreAppLogo: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + **image** | **System.IO.Stream**| App Store App Logo | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppStoreEntitlementsApi.md b/docs/AppStoreEntitlementsApi.md new file mode 100644 index 00000000..b98949ea --- /dev/null +++ b/docs/AppStoreEntitlementsApi.md @@ -0,0 +1,72 @@ +# Flipdish.Api.AppStoreEntitlementsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAppStoreAppEntitlements**](AppStoreEntitlementsApi.md#getappstoreappentitlements) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements | + + + +# **GetAppStoreAppEntitlements** +> RestApiResultAppStoreAppEntitlements GetAppStoreAppEntitlements (string appId, string appStoreAppId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppStoreAppEntitlementsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppStoreEntitlementsApi(); + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + + try + { + RestApiResultAppStoreAppEntitlements result = apiInstance.GetAppStoreAppEntitlements(appId, appStoreAppId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppStoreEntitlementsApi.GetAppStoreAppEntitlements: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreAppId** | **string**| | + +### Return type + +[**RestApiResultAppStoreAppEntitlements**](RestApiResultAppStoreAppEntitlements.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md b/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md new file mode 100644 index 00000000..70862f9e --- /dev/null +++ b/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.AppStoreSubscriptionChangeJobUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**AppStoreAppId** | **string** | App Store Id | [optional] +**Status** | **string** | Status | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppUpdatedEvent.md b/docs/AppUpdatedEvent.md new file mode 100644 index 00000000..f29723eb --- /dev/null +++ b/docs/AppUpdatedEvent.md @@ -0,0 +1,23 @@ +# Flipdish.Model.AppUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**Changes** | **string** | A summary of changes made | [optional] +**AppName** | **string** | App Name | [optional] +**CountryId** | **string** | Country Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User information | [optional] +**App** | [**App**](App.md) | App - Whitelabel config | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AppsApi.md b/docs/AppsApi.md new file mode 100644 index 00000000..c1dcc6ce --- /dev/null +++ b/docs/AppsApi.md @@ -0,0 +1,1338 @@ +# Flipdish.Api.AppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppsSetPropertyId**](AppsApi.md#appssetpropertyid) | **POST** /api/v1.0/apps/{appId}/orgId/{orgId} | +[**CreateApp**](AppsApi.md#createapp) | **POST** /api/v1.0/apps | +[**GetApp**](AppsApi.md#getapp) | **GET** /api/v1.0/apps/{appId} | +[**GetAppHostnameStatus**](AppsApi.md#getapphostnamestatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | +[**GetAppName**](AppsApi.md#getappname) | **GET** /api/v1.0/apps/{appId}/name | +[**GetApps**](AppsApi.md#getapps) | **GET** /api/v1.0/apps | +[**GetCompliance**](AppsApi.md#getcompliance) | **GET** /api/v1.0/apps/{appId}/compliance | +[**GetPanaceaVanityUrl**](AppsApi.md#getpanaceavanityurl) | **GET** /api/v1.0/apps/{appId}/panacea/url | +[**GetSupportedCountries**](AppsApi.md#getsupportedcountries) | **GET** /api/v1.0/apps/supportedcountries | +[**IsPanaceaVanityUrlAvailable**](AppsApi.md#ispanaceavanityurlavailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | +[**LookupByWhitelabelId**](AppsApi.md#lookupbywhitelabelid) | **GET** /api/v1.0/apps/{whitelabelId}/lookup | +[**SendPushNotification**](AppsApi.md#sendpushnotification) | **POST** /api/v1.0/apps/{appId}/SendPushNotification/{customerId} | +[**SetAppConfig**](AppsApi.md#setappconfig) | **POST** /api/v1.0/apps/{appId}/config | +[**SetAppHostname**](AppsApi.md#setapphostname) | **POST** /api/v1.0/apps/{appId}/hostname | +[**SetAppLanguages**](AppsApi.md#setapplanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | +[**SetAppStoreName**](AppsApi.md#setappstorename) | **POST** /api/v1.0/apps/{appId}/appstorename | +[**SetCompliance**](AppsApi.md#setcompliance) | **POST** /api/v1.0/apps/{appId}/compliance | +[**SetPanaceaVanityUrl**](AppsApi.md#setpanaceavanityurl) | **POST** /api/v1.0/apps/{appId}/panacea/url | +[**SetThirdPartyIntegrations**](AppsApi.md#setthirdpartyintegrations) | **POST** /api/v1.0/apps/{appId}/third-party-integrations | +[**ToggleNextGenWeb**](AppsApi.md#togglenextgenweb) | **POST** /api/v1.0/apps/{appId}/nextgenweb | +[**UploadAppLogo**](AppsApi.md#uploadapplogo) | **POST** /api/v1.0/apps/{appId}/logo | + + + +# **AppsSetPropertyId** +> Object AppsSetPropertyId (string appId, string orgId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AppsSetPropertyIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var orgId = orgId_example; // string | + + try + { + Object result = apiInstance.AppsSetPropertyId(appId, orgId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.AppsSetPropertyId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **orgId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateApp** +> RestApiStringResult CreateApp (CreateAppParameters parameters) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var parameters = new CreateAppParameters(); // CreateAppParameters | + + try + { + RestApiStringResult result = apiInstance.CreateApp(parameters); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.CreateApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **parameters** | [**CreateAppParameters**](CreateAppParameters.md)| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetApp** +> RestApiResultApp GetApp (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + + try + { + RestApiResultApp result = apiInstance.GetApp(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppHostnameStatus** +> RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppHostnameStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + + try + { + RestApiResultDnsRecordInformation result = apiInstance.GetAppHostnameStatus(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetAppHostnameStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultDnsRecordInformation**](RestApiResultDnsRecordInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppName** +> RestApiStringResult GetAppName (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + + try + { + RestApiStringResult result = apiInstance.GetAppName(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetAppName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetApps** +> RestApiPaginationResultApp GetApps (string nameFilter = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var nameFilter = nameFilter_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultApp result = apiInstance.GetApps(nameFilter, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nameFilter** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultApp**](RestApiPaginationResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCompliance** +> RestApiResultAppCompliance GetCompliance (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetComplianceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + + try + { + RestApiResultAppCompliance result = apiInstance.GetCompliance(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetCompliance: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultAppCompliance**](RestApiResultAppCompliance.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPanaceaVanityUrl** +> RestApiStringResult GetPanaceaVanityUrl (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPanaceaVanityUrlExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + + try + { + RestApiStringResult result = apiInstance.GetPanaceaVanityUrl(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetPanaceaVanityUrl: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSupportedCountries** +> RestApiArrayResultSupportedCountry GetSupportedCountries () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSupportedCountriesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + + try + { + RestApiArrayResultSupportedCountry result = apiInstance.GetSupportedCountries(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.GetSupportedCountries: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultSupportedCountry**](RestApiArrayResultSupportedCountry.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **IsPanaceaVanityUrlAvailable** +> RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class IsPanaceaVanityUrlAvailableExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var vanityUrl = vanityUrl_example; // string | + var appId = appId_example; // string | + + try + { + RestApiStringResult result = apiInstance.IsPanaceaVanityUrlAvailable(vanityUrl, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.IsPanaceaVanityUrlAvailable: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vanityUrl** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LookupByWhitelabelId** +> AppLookup LookupByWhitelabelId (int? whitelabelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LookupByWhitelabelIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var whitelabelId = 56; // int? | + + try + { + AppLookup result = apiInstance.LookupByWhitelabelId(whitelabelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.LookupByWhitelabelId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whitelabelId** | **int?**| | + +### Return type + +[**AppLookup**](AppLookup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SendPushNotification** +> void SendPushNotification (string appId, int? customerId, string message) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SendPushNotificationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + var message = message_example; // string | + + try + { + apiInstance.SendPushNotification(appId, customerId, message); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SendPushNotification: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + **message** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetAppConfig** +> RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetAppConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var appConfigUpdate = new AppConfigUpdateModel(); // AppConfigUpdateModel | + + try + { + RestApiResultApp result = apiInstance.SetAppConfig(appId, appConfigUpdate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetAppConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appConfigUpdate** | [**AppConfigUpdateModel**](AppConfigUpdateModel.md)| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetAppHostname** +> RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetAppHostnameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var hostname = hostname_example; // string | + var isEmbed = true; // bool? | (optional) + + try + { + RestApiStringResult result = apiInstance.SetAppHostname(appId, hostname, isEmbed); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetAppHostname: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **hostname** | **string**| | + **isEmbed** | **bool?**| | [optional] + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetAppLanguages** +> RestApiResultApp SetAppLanguages (string appId, List languages) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetAppLanguagesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var languages = new List(); // List | + + try + { + RestApiResultApp result = apiInstance.SetAppLanguages(appId, languages); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetAppLanguages: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **languages** | [**List<Language>**](Language.md)| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetAppStoreName** +> void SetAppStoreName (string appId, string appStoreName) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetAppStoreNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var appStoreName = appStoreName_example; // string | + + try + { + apiInstance.SetAppStoreName(appId, appStoreName); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetAppStoreName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreName** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetCompliance** +> RestApiResultAppCompliance SetCompliance (string appId, string complianceType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetComplianceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var complianceType = complianceType_example; // string | + + try + { + RestApiResultAppCompliance result = apiInstance.SetCompliance(appId, complianceType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetCompliance: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **complianceType** | **string**| | + +### Return type + +[**RestApiResultAppCompliance**](RestApiResultAppCompliance.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetPanaceaVanityUrl** +> RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetPanaceaVanityUrlExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var vanityUrl = vanityUrl_example; // string | + + try + { + RestApiStringResult result = apiInstance.SetPanaceaVanityUrl(appId, vanityUrl); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetPanaceaVanityUrl: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **vanityUrl** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetThirdPartyIntegrations** +> void SetThirdPartyIntegrations (string appId, bool? enabled) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetThirdPartyIntegrationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var enabled = true; // bool? | + + try + { + apiInstance.SetThirdPartyIntegrations(appId, enabled); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.SetThirdPartyIntegrations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **enabled** | **bool?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ToggleNextGenWeb** +> RestApiStringResult ToggleNextGenWeb (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ToggleNextGenWebExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var hostname = hostname_example; // string | + var vanityUrl = vanityUrl_example; // string | + var isNextGenWeb = true; // bool? | + + try + { + RestApiStringResult result = apiInstance.ToggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.ToggleNextGenWeb: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **hostname** | **string**| | + **vanityUrl** | **string**| | + **isNextGenWeb** | **bool?**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadAppLogo** +> void UploadAppLogo (string appId, System.IO.Stream image) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadAppLogoExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AppsApi(); + var appId = appId_example; // string | + var image = new System.IO.Stream(); // System.IO.Stream | App Logo + + try + { + apiInstance.UploadAppLogo(appId, image); + } + catch (Exception e) + { + Debug.Print("Exception when calling AppsApi.UploadAppLogo: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **image** | **System.IO.Stream**| App Logo | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AssetResultModel.md b/docs/AssetResultModel.md new file mode 100644 index 00000000..4e7d31e4 --- /dev/null +++ b/docs/AssetResultModel.md @@ -0,0 +1,11 @@ +# Flipdish.Model.AssetResultModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Asset result message | [optional] +**AssetUrl** | **string** | Asset URL or path | [optional] +**AssetName** | **string** | Asset name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AssignedBankAccount.md b/docs/AssignedBankAccount.md new file mode 100644 index 00000000..d582aa94 --- /dev/null +++ b/docs/AssignedBankAccount.md @@ -0,0 +1,10 @@ +# Flipdish.Model.AssignedBankAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id of Bank Account | [optional] +**BankAccountName** | **string** | Name of Bank Account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AuditLogFieldChangeInformation.md b/docs/AuditLogFieldChangeInformation.md new file mode 100644 index 00000000..e4fa20f7 --- /dev/null +++ b/docs/AuditLogFieldChangeInformation.md @@ -0,0 +1,13 @@ +# Flipdish.Model.AuditLogFieldChangeInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | Path (hierarchy) | [optional] +**Name** | **string** | Name of field | [optional] +**Key** | **string** | Key (code) of field | [optional] +**OldValue** | **string** | Old value | [optional] +**NewValue** | **string** | New value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AuditLogsApi.md b/docs/AuditLogsApi.md new file mode 100644 index 00000000..f829942b --- /dev/null +++ b/docs/AuditLogsApi.md @@ -0,0 +1,134 @@ +# Flipdish.Api.AuditLogsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddOrderAuditLog**](AuditLogsApi.md#addorderauditlog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | +[**AddStoreAuditLogEvent**](AuditLogsApi.md#addstoreauditlogevent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | + + + +# **AddOrderAuditLog** +> void AddOrderAuditLog (int? orderId, List externalEventCreate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrderAuditLogExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AuditLogsApi(); + var orderId = 56; // int? | + var externalEventCreate = new List(); // List | + + try + { + apiInstance.AddOrderAuditLog(orderId, externalEventCreate); + } + catch (Exception e) + { + Debug.Print("Exception when calling AuditLogsApi.AddOrderAuditLog: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **externalEventCreate** | [**List<ExternalStoreAuditLog>**](ExternalStoreAuditLog.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AddStoreAuditLogEvent** +> void AddStoreAuditLogEvent (int? storeId, List externalEventCreate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddStoreAuditLogEventExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AuditLogsApi(); + var storeId = 56; // int? | + var externalEventCreate = new List(); // List | + + try + { + apiInstance.AddStoreAuditLogEvent(storeId, externalEventCreate); + } + catch (Exception e) + { + Debug.Print("Exception when calling AuditLogsApi.AddStoreAuditLogEvent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **externalEventCreate** | [**List<ExternalStoreAuditLog>**](ExternalStoreAuditLog.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthorizationTokensApi.md b/docs/AuthorizationTokensApi.md new file mode 100644 index 00000000..271942b8 --- /dev/null +++ b/docs/AuthorizationTokensApi.md @@ -0,0 +1,139 @@ +# Flipdish.Api.AuthorizationTokensApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAuthorizationTokens**](AuthorizationTokensApi.md#getauthorizationtokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | +[**RevokeToken**](AuthorizationTokensApi.md#revoketoken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | + + + +# **GetAuthorizationTokens** +> RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oauthAppId, string appId, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAuthorizationTokensExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AuthorizationTokensApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultOAuthTokenModel result = apiInstance.GetAuthorizationTokens(oauthAppId, appId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AuthorizationTokensApi.GetAuthorizationTokens: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultOAuthTokenModel**](RestApiPaginationResultOAuthTokenModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RevokeToken** +> void RevokeToken (string key, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RevokeTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new AuthorizationTokensApi(); + var key = key_example; // string | + var appId = appId_example; // string | + + try + { + apiInstance.RevokeToken(key, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling AuthorizationTokensApi.RevokeToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **key** | **string**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BalanceDetails.md b/docs/BalanceDetails.md new file mode 100644 index 00000000..34ee73e1 --- /dev/null +++ b/docs/BalanceDetails.md @@ -0,0 +1,10 @@ +# Flipdish.Model.BalanceDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OpeningBalance** | **double?** | OpeningBalance. | [optional] +**ClosingBalance** | **double?** | ClosingBalance. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccount.md b/docs/BankAccount.md new file mode 100644 index 00000000..f0321d2f --- /dev/null +++ b/docs/BankAccount.md @@ -0,0 +1,22 @@ +# Flipdish.Model.BankAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id of this account | [optional] +**AccountName** | **string** | Name of this account | [optional] +**Iban** | **string** | IBAN of this account | [optional] +**Swift** | **string** | SWIFT of this bank account | [optional] +**PopulatedAccountFields** | [**List<AccountFieldKeyValuePair>**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields should be ignored. | [optional] +**AccountState** | **string** | Status of Account | [optional] +**StoreNames** | **List<string>** | Store Names that are attached to this account | [optional] +**StoreIds** | **List<int?>** | Store Ids that are attached to this account | [optional] +**BankAddress** | **string** | Address lf the bank | [optional] +**BankCountryCode** | **string** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **string** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **string** | Account Holders Country Code | [optional] +**VatNumber** | **string** | Account Holders Vat Number | [optional] +**StripeAccountId** | **string** | Stripe Id of the connected account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountApi.md b/docs/BankAccountApi.md new file mode 100644 index 00000000..92a25c57 --- /dev/null +++ b/docs/BankAccountApi.md @@ -0,0 +1,584 @@ +# Flipdish.Api.BankAccountApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AttachBankAccountToStore**](BankAccountApi.md#attachbankaccounttostore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | +[**CreateBankAccount**](BankAccountApi.md#createbankaccount) | **POST** /api/v1.0/{appId}/bankaccounts | +[**DeleteBankAccount**](BankAccountApi.md#deletebankaccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**GetBankAccountById**](BankAccountApi.md#getbankaccountbyid) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**GetBankAccounts**](BankAccountApi.md#getbankaccounts) | **GET** /api/v1.0/{appId}/bankaccounts | +[**GetCountriesWithFieldDefinitions**](BankAccountApi.md#getcountrieswithfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | +[**GetFieldDefinitions**](BankAccountApi.md#getfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | +[**UpdateBankAccount**](BankAccountApi.md#updatebankaccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**UpdateBankAccountState**](BankAccountApi.md#updatebankaccountstate) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | + + + +# **AttachBankAccountToStore** +> void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AttachBankAccountToStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var storeId = 56; // int? | + var skipBankAccountUpdateWarningEmail = true; // bool? | (optional) + + try + { + apiInstance.AttachBankAccountToStore(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.AttachBankAccountToStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **storeId** | **int?**| | + **skipBankAccountUpdateWarningEmail** | **bool?**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateBankAccount** +> RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateBankAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + var account = new BankAccountCreate(); // BankAccountCreate | + + try + { + RestApiResultBankAccountDetail result = apiInstance.CreateBankAccount(appId, account); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.CreateBankAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteBankAccount** +> void DeleteBankAccount (string appId, int? bankAccountId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteBankAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + + try + { + apiInstance.DeleteBankAccount(appId, bankAccountId); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.DeleteBankAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBankAccountById** +> RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBankAccountByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var bankAccountId = 56; // int? | + var appId = appId_example; // string | + + try + { + RestApiResultBankAccountDetail result = apiInstance.GetBankAccountById(bankAccountId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.GetBankAccountById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bankAccountId** | **int?**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBankAccounts** +> RestApiArrayResultBankAccountSummary GetBankAccounts (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBankAccountsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultBankAccountSummary result = apiInstance.GetBankAccounts(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.GetBankAccounts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultBankAccountSummary**](RestApiArrayResultBankAccountSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCountriesWithFieldDefinitions** +> RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFieldDefinitions (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCountriesWithFieldDefinitionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultCountryWithAccountFieldsDefinitions result = apiInstance.GetCountriesWithFieldDefinitions(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.GetCountriesWithFieldDefinitions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultCountryWithAccountFieldsDefinitions**](RestApiArrayResultCountryWithAccountFieldsDefinitions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFieldDefinitions** +> RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFieldDefinitionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + + try + { + RestApiResultAccountFieldsDefinitions result = apiInstance.GetFieldDefinitions(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.GetFieldDefinitions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultAccountFieldsDefinitions**](RestApiResultAccountFieldsDefinitions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateBankAccount** +> void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateBankAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var account = new BankAccountCreate(); // BankAccountCreate | + + try + { + apiInstance.UpdateBankAccount(appId, bankAccountId, account); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.UpdateBankAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateBankAccountState** +> void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateBankAccountStateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new BankAccountApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var state = state_example; // string | + var reason = reason_example; // string | + + try + { + apiInstance.UpdateBankAccountState(appId, bankAccountId, state, reason); + } + catch (Exception e) + { + Debug.Print("Exception when calling BankAccountApi.UpdateBankAccountState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **state** | **string**| | + **reason** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BankAccountAssignedEvent.md b/docs/BankAccountAssignedEvent.md new file mode 100644 index 00000000..047786ea --- /dev/null +++ b/docs/BankAccountAssignedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.BankAccountAssignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | The assigned bank account | [optional] +**Description** | **string** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountCreate.md b/docs/BankAccountCreate.md new file mode 100644 index 00000000..ac8c867e --- /dev/null +++ b/docs/BankAccountCreate.md @@ -0,0 +1,23 @@ +# Flipdish.Model.BankAccountCreate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAddress** | **string** | Address lf the bank | [optional] +**BankCountryCode** | **string** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **string** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **string** | Account Holders Country Code | [optional] +**VatNumber** | **string** | Account Holders Vat Number | [optional] +**CurrencyCode** | **string** | Currency of Account | [optional] +**StoreIds** | **List<int?>** | List of stores to attach to Account | [optional] +**BankName** | **string** | Name of Bank | [optional] +**AccountName** | **string** | Name of this account | [optional] +**Iban** | **string** | IBAN of this account | [optional] +**Swift** | **string** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **string** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**List<AccountFieldKeyValuePair>**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **string** | Reason for Rejection | [optional] +**BusinessType** | **string** | Business Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountCreatedEvent.md b/docs/BankAccountCreatedEvent.md new file mode 100644 index 00000000..87277b79 --- /dev/null +++ b/docs/BankAccountCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.BankAccountCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountDeletedEvent.md b/docs/BankAccountDeletedEvent.md new file mode 100644 index 00000000..d39f281e --- /dev/null +++ b/docs/BankAccountDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.BankAccountDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountDetail.md b/docs/BankAccountDetail.md new file mode 100644 index 00000000..189c01c6 --- /dev/null +++ b/docs/BankAccountDetail.md @@ -0,0 +1,27 @@ +# Flipdish.Model.BankAccountDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id of this account | [optional] +**StoreNames** | **List<string>** | Store Names that are attached to this account | [optional] +**AccountState** | **string** | Status of Account | [optional] +**StripeConnectedAccountInfo** | [**StripeConnectedAccountInfo**](StripeConnectedAccountInfo.md) | Information about the Stripe connected account associated with this bank account (if any) | [optional] +**BankAddress** | **string** | Address lf the bank | [optional] +**BankCountryCode** | **string** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **string** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **string** | Account Holders Country Code | [optional] +**VatNumber** | **string** | Account Holders Vat Number | [optional] +**CurrencyCode** | **string** | Currency of Account | [optional] +**StoreIds** | **List<int?>** | List of stores to attach to Account | [optional] +**BankName** | **string** | Name of Bank | [optional] +**AccountName** | **string** | Name of this account | [optional] +**Iban** | **string** | IBAN of this account | [optional] +**Swift** | **string** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **string** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**List<AccountFieldKeyValuePair>**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **string** | Reason for Rejection | [optional] +**BusinessType** | **string** | Business Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountDetailsUpdateRequest.md b/docs/BankAccountDetailsUpdateRequest.md new file mode 100644 index 00000000..bf99dbf0 --- /dev/null +++ b/docs/BankAccountDetailsUpdateRequest.md @@ -0,0 +1,20 @@ +# Flipdish.Model.BankAccountDetailsUpdateRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAddress** | **string** | Address of the bank account | [optional] +**AccountHolderAddress** | **string** | Address of the payee | [optional] +**VatNumber** | **string** | Account Holders Vat Number | [optional] +**StoreIds** | **List<int?>** | List of stores to attach to Account | [optional] +**BankName** | **string** | Name of Bank | [optional] +**AccountName** | **string** | Name of this account | [optional] +**Iban** | **string** | IBAN of this account | [optional] +**Swift** | **string** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **string** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**List<AccountFieldKeyValuePair>**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **string** | Reason for Rejection | [optional] +**BusinessType** | **string** | Business Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountSummary.md b/docs/BankAccountSummary.md new file mode 100644 index 00000000..e090339d --- /dev/null +++ b/docs/BankAccountSummary.md @@ -0,0 +1,24 @@ +# Flipdish.Model.BankAccountSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id of this account | [optional] +**StoreNames** | **List<string>** | Store Names that are attached to this account | [optional] +**StoreIds** | **List<int?>** | Store Ids that are attached to this account | [optional] +**AccountState** | **string** | Status of Account | [optional] +**CurrencyCode** | **string** | Currency of Account | [optional] +**VatNumber** | **string** | Account Holders Vat Number | [optional] +**AccountHolderAddress** | **string** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **string** | Account Holders Country Code | [optional] +**StripeConnectedAccountInfo** | [**StripeConnectedAccountInfo**](StripeConnectedAccountInfo.md) | Information about the Stripe connected account associated with this bank account (if any) | [optional] +**AccountName** | **string** | Name of this account | [optional] +**Iban** | **string** | IBAN of this account | [optional] +**Swift** | **string** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **string** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**List<AccountFieldKeyValuePair>**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **string** | Reason for Rejection | [optional] +**BusinessType** | **string** | Business Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BankAccountUpdatedEvent.md b/docs/BankAccountUpdatedEvent.md new file mode 100644 index 00000000..68a6fd36 --- /dev/null +++ b/docs/BankAccountUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.BankAccountUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | The create bank account | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BluetoothTerminalStatus.md b/docs/BluetoothTerminalStatus.md new file mode 100644 index 00000000..64e83083 --- /dev/null +++ b/docs/BluetoothTerminalStatus.md @@ -0,0 +1,15 @@ +# Flipdish.Model.BluetoothTerminalStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | **string** | Serial Number | [optional] +**SoftwareVersion** | **string** | Software Version | [optional] +**DeviceType** | **string** | Device Type | [optional] +**Status** | **string** | Device Status | [optional] +**BatteryLevel** | **float?** | Indication of the battery level from 0 to 1 | [optional] +**UpdateTime** | **DateTime?** | Last time the status was updated | [optional] +**ReaderId** | **string** | ReaderId for Stripe Terminal | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BuildResultModel.md b/docs/BuildResultModel.md new file mode 100644 index 00000000..2583f251 --- /dev/null +++ b/docs/BuildResultModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.BuildResultModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Build result message | [optional] +**BuildId** | **string** | Build ID or reference | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BusinessHoursOverride.md b/docs/BusinessHoursOverride.md new file mode 100644 index 00000000..cade6fd3 --- /dev/null +++ b/docs/BusinessHoursOverride.md @@ -0,0 +1,13 @@ +# Flipdish.Model.BusinessHoursOverride +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BusinessHoursOverrideId** | **int?** | Unique identifier | [optional] +**DeliveryType** | **string** | Delivery or Pickup | [optional] +**StartTime** | **DateTime?** | Date and time in ISO 8601 format. | +**EndTime** | **DateTime?** | Date and time in ISO 8601 format. | +**Type** | **string** | Open, Closed or ClosedAllowPreOrders | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BusinessHoursOverrideBase.md b/docs/BusinessHoursOverrideBase.md new file mode 100644 index 00000000..85e0233b --- /dev/null +++ b/docs/BusinessHoursOverrideBase.md @@ -0,0 +1,12 @@ +# Flipdish.Model.BusinessHoursOverrideBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryType** | **string** | Delivery or Pickup | [optional] +**StartTime** | **DateTime?** | Date and time in ISO 8601 format. | +**EndTime** | **DateTime?** | Date and time in ISO 8601 format. | +**Type** | **string** | Open, Closed or ClosedAllowPreOrders | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BusinessHoursPeriod.md b/docs/BusinessHoursPeriod.md new file mode 100644 index 00000000..f05ebc87 --- /dev/null +++ b/docs/BusinessHoursPeriod.md @@ -0,0 +1,16 @@ +# Flipdish.Model.BusinessHoursPeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Early** | [**Range**](Range.md) | Early | [optional] +**Late** | [**Range**](Range.md) | Late | [optional] +**Ranges** | [**List<Range>**](Range.md) | Ranges | [optional] +**DayOfWeek** | **string** | Day of week | [optional] +**StartTime** | **string** | Start time | [optional] +**Period** | **string** | Period | [optional] +**StartTimeEarly** | **string** | Start time early | [optional] +**PeriodEarly** | **string** | Period early | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BusinessHoursPeriodBase.md b/docs/BusinessHoursPeriodBase.md new file mode 100644 index 00000000..ff1d7c12 --- /dev/null +++ b/docs/BusinessHoursPeriodBase.md @@ -0,0 +1,13 @@ +# Flipdish.Model.BusinessHoursPeriodBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DayOfWeek** | **string** | Day of week | [optional] +**StartTime** | **string** | Start time | [optional] +**Period** | **string** | Period | [optional] +**StartTimeEarly** | **string** | Start time early | [optional] +**PeriodEarly** | **string** | Period early | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CampaignStatistics.md b/docs/CampaignStatistics.md new file mode 100644 index 00000000..1d687db8 --- /dev/null +++ b/docs/CampaignStatistics.md @@ -0,0 +1,13 @@ +# Flipdish.Model.CampaignStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VouchersIssued** | **int?** | Deprecated. Number of issued vouchers. This field is always zero. | [optional] +**VouchersRedeemed** | **int?** | Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. | [optional] +**Conversion** | **double?** | Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. | [optional] +**SalesGenerated** | **double?** | Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. | [optional] +**ReturnOfInvestment** | **double?** | Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CampaignsApi.md b/docs/CampaignsApi.md new file mode 100644 index 00000000..dfe96743 --- /dev/null +++ b/docs/CampaignsApi.md @@ -0,0 +1,647 @@ +# Flipdish.Api.CampaignsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLoyaltyCampaign**](CampaignsApi.md#createloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | +[**CreateRetentionCampaign**](CampaignsApi.md#createretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | +[**GetLoyaltyCampaignsForApp**](CampaignsApi.md#getloyaltycampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | +[**GetLoyaltyCampaignsForStore**](CampaignsApi.md#getloyaltycampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | +[**GetRetentionCampaignsForApp**](CampaignsApi.md#getretentioncampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/retention | +[**GetRetentionCampaignsForStore**](CampaignsApi.md#getretentioncampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | +[**GetStoreList**](CampaignsApi.md#getstorelist) | **GET** /api/v1.0/{appId}/campaigns/stores | +[**RemoveCampaign**](CampaignsApi.md#removecampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | +[**UpdateLoyaltyCampaign**](CampaignsApi.md#updateloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | +[**UpdateRetentionCampaign**](CampaignsApi.md#updateretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | + + + +# **CreateLoyaltyCampaign** +> RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, LoyaltyCampaignBase campaign) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateLoyaltyCampaignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | + + try + { + RestApiResultLoyaltyCampaign result = apiInstance.CreateLoyaltyCampaign(appId, campaign); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.CreateLoyaltyCampaign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | + +### Return type + +[**RestApiResultLoyaltyCampaign**](RestApiResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateRetentionCampaign** +> RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateRetentionCampaignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | + + try + { + RestApiResultRetentionCampaign result = apiInstance.CreateRetentionCampaign(appId, campaign); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.CreateRetentionCampaign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | + +### Return type + +[**RestApiResultRetentionCampaign**](RestApiResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLoyaltyCampaignsForApp** +> RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetLoyaltyCampaignsForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultLoyaltyCampaign result = apiInstance.GetLoyaltyCampaignsForApp(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.GetLoyaltyCampaignsForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultLoyaltyCampaign**](RestApiArrayResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLoyaltyCampaignsForStore** +> RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetLoyaltyCampaignsForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiArrayResultLoyaltyCampaign result = apiInstance.GetLoyaltyCampaignsForStore(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.GetLoyaltyCampaignsForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultLoyaltyCampaign**](RestApiArrayResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRetentionCampaignsForApp** +> RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRetentionCampaignsForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultRetentionCampaign result = apiInstance.GetRetentionCampaignsForApp(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.GetRetentionCampaignsForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultRetentionCampaign**](RestApiArrayResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRetentionCampaignsForStore** +> RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRetentionCampaignsForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiArrayResultRetentionCampaign result = apiInstance.GetRetentionCampaignsForStore(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.GetRetentionCampaignsForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultRetentionCampaign**](RestApiArrayResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreList** +> RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreListExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var onlyPublished = true; // bool? | (optional) + + try + { + RestApiArrayResultStoreListItem result = apiInstance.GetStoreList(appId, onlyPublished); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.GetStoreList: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **onlyPublished** | **bool?**| | [optional] + +### Return type + +[**RestApiArrayResultStoreListItem**](RestApiArrayResultStoreListItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveCampaign** +> void RemoveCampaign (string appId, int? campaignId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveCampaignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var campaignId = 56; // int? | + + try + { + apiInstance.RemoveCampaign(appId, campaignId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.RemoveCampaign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **campaignId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateLoyaltyCampaign** +> RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateLoyaltyCampaignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var campaignId = 56; // int? | + var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | + + try + { + RestApiResultLoyaltyCampaign result = apiInstance.UpdateLoyaltyCampaign(appId, campaignId, campaign); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.UpdateLoyaltyCampaign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **campaignId** | **int?**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | + +### Return type + +[**RestApiResultLoyaltyCampaign**](RestApiResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRetentionCampaign** +> RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateRetentionCampaignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CampaignsApi(); + var appId = appId_example; // string | + var campaignId = 56; // int? | + var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | + + try + { + RestApiResultRetentionCampaign result = apiInstance.UpdateRetentionCampaign(appId, campaignId, campaign); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CampaignsApi.UpdateRetentionCampaign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **campaignId** | **int?**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | + +### Return type + +[**RestApiResultRetentionCampaign**](RestApiResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CancellationToken.md b/docs/CancellationToken.md new file mode 100644 index 00000000..1c52248f --- /dev/null +++ b/docs/CancellationToken.md @@ -0,0 +1,11 @@ +# Flipdish.Model.CancellationToken +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCancellationRequested** | **bool?** | | [optional] +**CanBeCanceled** | **bool?** | | [optional] +**WaitHandle** | [**WaitHandle**](WaitHandle.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CardReader.md b/docs/CardReader.md new file mode 100644 index 00000000..6009fa70 --- /dev/null +++ b/docs/CardReader.md @@ -0,0 +1,16 @@ +# Flipdish.Model.CardReader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Stripe reader id | [optional] +**DeviceSoftwareVersion** | **string** | Software version | [optional] +**SerialNumber** | **string** | Device serial number | [optional] +**Status** | **string** | Device status online or offline | [optional] +**RegistrationCode** | **string** | Registration code | [optional] +**DeviceType** | **string** | Device type | [optional] +**Deleted** | **bool?** | Indicates that the reader is deleted or not | [optional] +**Action** | [**ReaderActionStateInfo**](ReaderActionStateInfo.md) | Action status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CardReaderRegistrationRequest.md b/docs/CardReaderRegistrationRequest.md new file mode 100644 index 00000000..7c6ba0df --- /dev/null +++ b/docs/CardReaderRegistrationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CardReaderRegistrationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RegistrationCode** | **string** | The reader registration code | +**KioskDeviceId** | **string** | The kiosk device id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CardReadersApi.md b/docs/CardReadersApi.md new file mode 100644 index 00000000..1a176179 --- /dev/null +++ b/docs/CardReadersApi.md @@ -0,0 +1,907 @@ +# Flipdish.Api.CardReadersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CancelCurrentlyInitiatedBluetoothDeviceUpdate**](CardReadersApi.md#cancelcurrentlyinitiatedbluetoothdeviceupdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | +[**CancelReaderAction**](CardReadersApi.md#cancelreaderaction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | +[**CardReadersGetReader**](CardReadersApi.md#cardreadersgetreader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | +[**GenerateStripeTerminalLocation**](CardReadersApi.md#generatestripeterminallocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | +[**GetBluetoothTerminalStatus**](CardReadersApi.md#getbluetoothterminalstatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | +[**GetKioskStripeLocation**](CardReadersApi.md#getkioskstripelocation) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/stripe-location | +[**GetStripeConnectionToken**](CardReadersApi.md#getstripeconnectiontoken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | +[**InitiateBluetoothTerminalDeviceUpdateCheck**](CardReadersApi.md#initiatebluetoothterminaldeviceupdatecheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | +[**InitiateKioskBluetoothPairingMode**](CardReadersApi.md#initiatekioskbluetoothpairingmode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | +[**InitiateKioskBluetoothUpdateInstall**](CardReadersApi.md#initiatekioskbluetoothupdateinstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +[**InitiateReaderProcessPaymentIntent**](CardReadersApi.md#initiatereaderprocesspaymentintent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | +[**RegisterStripeTerminal**](CardReadersApi.md#registerstripeterminal) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/register | +[**UnRegisterTerminal**](CardReadersApi.md#unregisterterminal) | **DELETE** /api/v1.0/{appId}/payments/terminals/stripe/unregister | +[**UnpairCurrentlyPairedBluetoothDevice**](CardReadersApi.md#unpaircurrentlypairedbluetoothdevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | + + + +# **CancelCurrentlyInitiatedBluetoothDeviceUpdate** +> void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CancelCurrentlyInitiatedBluetoothDeviceUpdateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var terminalType = terminalType_example; // string | + + try + { + apiInstance.CancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.CancelCurrentlyInitiatedBluetoothDeviceUpdate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **terminalType** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CancelReaderAction** +> RestApiResultCardReader CancelReaderAction (string readerId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CancelReaderActionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var readerId = readerId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultCardReader result = apiInstance.CancelReaderAction(readerId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.CancelReaderAction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **readerId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CardReadersGetReader** +> RestApiResultCardReader CardReadersGetReader (string readerId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CardReadersGetReaderExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var readerId = readerId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultCardReader result = apiInstance.CardReadersGetReader(readerId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.CardReadersGetReader: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **readerId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GenerateStripeTerminalLocation** +> RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GenerateStripeTerminalLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var geoPointRequest = new GeoPointRequest(); // GeoPointRequest | + var appId = appId_example; // string | + + try + { + RestApiResultStripeTerminalLocation result = apiInstance.GenerateStripeTerminalLocation(geoPointRequest, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.GenerateStripeTerminalLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **geoPointRequest** | [**GeoPointRequest**](GeoPointRequest.md)| | + **appId** | **string**| | + +### Return type + +[**RestApiResultStripeTerminalLocation**](RestApiResultStripeTerminalLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBluetoothTerminalStatus** +> RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBluetoothTerminalStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultBluetoothTerminalStatus result = apiInstance.GetBluetoothTerminalStatus(appId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.GetBluetoothTerminalStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultBluetoothTerminalStatus**](RestApiResultBluetoothTerminalStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetKioskStripeLocation** +> RestApiResultKioskStripeLocation GetKioskStripeLocation (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetKioskStripeLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultKioskStripeLocation result = apiInstance.GetKioskStripeLocation(appId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.GetKioskStripeLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultKioskStripeLocation**](RestApiResultKioskStripeLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStripeConnectionToken** +> RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStripeConnectionTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + + try + { + RestApiResultStripeTerminalConnectionToken result = apiInstance.GetStripeConnectionToken(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.GetStripeConnectionToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultStripeTerminalConnectionToken**](RestApiResultStripeTerminalConnectionToken.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateBluetoothTerminalDeviceUpdateCheck** +> void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string deviceId, string terminalType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class InitiateBluetoothTerminalDeviceUpdateCheckExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var terminalType = terminalType_example; // string | + + try + { + apiInstance.InitiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.InitiateBluetoothTerminalDeviceUpdateCheck: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **terminalType** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateKioskBluetoothPairingMode** +> void InitiateKioskBluetoothPairingMode (string appId, string deviceId, string terminalType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class InitiateKioskBluetoothPairingModeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var terminalType = terminalType_example; // string | + + try + { + apiInstance.InitiateKioskBluetoothPairingMode(appId, deviceId, terminalType); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.InitiateKioskBluetoothPairingMode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **terminalType** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateKioskBluetoothUpdateInstall** +> void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, string terminalType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class InitiateKioskBluetoothUpdateInstallExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var terminalType = terminalType_example; // string | + + try + { + apiInstance.InitiateKioskBluetoothUpdateInstall(appId, deviceId, terminalType); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.InitiateKioskBluetoothUpdateInstall: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **terminalType** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateReaderProcessPaymentIntent** +> RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymentIntentRequest request, string readerId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class InitiateReaderProcessPaymentIntentExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var request = new ProcessPaymentIntentRequest(); // ProcessPaymentIntentRequest | + var readerId = readerId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultCardReader result = apiInstance.InitiateReaderProcessPaymentIntent(request, readerId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.InitiateReaderProcessPaymentIntent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ProcessPaymentIntentRequest**](ProcessPaymentIntentRequest.md)| | + **readerId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RegisterStripeTerminal** +> RestApiResultCardReader RegisterStripeTerminal (CardReaderRegistrationRequest request, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RegisterStripeTerminalExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var request = new CardReaderRegistrationRequest(); // CardReaderRegistrationRequest | + var appId = appId_example; // string | + + try + { + RestApiResultCardReader result = apiInstance.RegisterStripeTerminal(request, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.RegisterStripeTerminal: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**CardReaderRegistrationRequest**](CardReaderRegistrationRequest.md)| | + **appId** | **string**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnRegisterTerminal** +> RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest request, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnRegisterTerminalExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var request = new UnRegisterCardReaderRequest(); // UnRegisterCardReaderRequest | + var appId = appId_example; // string | + + try + { + RestApiResultCardReader result = apiInstance.UnRegisterTerminal(request, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.UnRegisterTerminal: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**UnRegisterCardReaderRequest**](UnRegisterCardReaderRequest.md)| | + **appId** | **string**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnpairCurrentlyPairedBluetoothDevice** +> void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnpairCurrentlyPairedBluetoothDeviceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CardReadersApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + apiInstance.UnpairCurrentlyPairedBluetoothDevice(appId, deviceId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CardReadersApi.UnpairCurrentlyPairedBluetoothDevice: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CatalogChangesApi.md b/docs/CatalogChangesApi.md new file mode 100644 index 00000000..f5b58d29 --- /dev/null +++ b/docs/CatalogChangesApi.md @@ -0,0 +1,210 @@ +# Flipdish.Api.CatalogChangesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPendingMenuChanges**](CatalogChangesApi.md#getpendingmenuchanges) | **GET** /api/v1.0/{appId}/menus/catalog-changes | Get menu pending changes from Catalog groups and items +[**GetPendingMenuChangesSummaries**](CatalogChangesApi.md#getpendingmenuchangessummaries) | **GET** /api/v1.0/{appId}/menus/catalog-changes/summaries | Get menu pending changes summaries by appId +[**PublishPendingMenuChanges**](CatalogChangesApi.md#publishpendingmenuchanges) | **POST** /api/v1.0/{appId}/menus/catalog-changes/publish | Update menus with the pending changes from Catalog groups and items + + + +# **GetPendingMenuChanges** +> RestApiPaginationResultPendingMenuChanges GetPendingMenuChanges (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null) + +Get menu pending changes from Catalog groups and items + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPendingMenuChangesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogChangesApi(); + var appId = appId_example; // string | + var menuId = 56; // int? | (optional) + var catalogItemId = catalogItemId_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + // Get menu pending changes from Catalog groups and items + RestApiPaginationResultPendingMenuChanges result = apiInstance.GetPendingMenuChanges(appId, menuId, catalogItemId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogChangesApi.GetPendingMenuChanges: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **menuId** | **int?**| | [optional] + **catalogItemId** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultPendingMenuChanges**](RestApiPaginationResultPendingMenuChanges.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPendingMenuChangesSummaries** +> RestApiArrayResultPendingMenuChangesSummaries GetPendingMenuChangesSummaries (string appId) + +Get menu pending changes summaries by appId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPendingMenuChangesSummariesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogChangesApi(); + var appId = appId_example; // string | + + try + { + // Get menu pending changes summaries by appId + RestApiArrayResultPendingMenuChangesSummaries result = apiInstance.GetPendingMenuChangesSummaries(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogChangesApi.GetPendingMenuChangesSummaries: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultPendingMenuChangesSummaries**](RestApiArrayResultPendingMenuChangesSummaries.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **PublishPendingMenuChanges** +> void PublishPendingMenuChanges (string appId, PublishMenuChanges publishMenuChanges) + +Update menus with the pending changes from Catalog groups and items + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PublishPendingMenuChangesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogChangesApi(); + var appId = appId_example; // string | + var publishMenuChanges = new PublishMenuChanges(); // PublishMenuChanges | + + try + { + // Update menus with the pending changes from Catalog groups and items + apiInstance.PublishPendingMenuChanges(appId, publishMenuChanges); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogChangesApi.PublishPendingMenuChanges: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **publishMenuChanges** | [**PublishMenuChanges**](PublishMenuChanges.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CatalogGroupArchivedEvent.md b/docs/CatalogGroupArchivedEvent.md new file mode 100644 index 00000000..edd259bc --- /dev/null +++ b/docs/CatalogGroupArchivedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogGroupArchivedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the group | [optional] +**Group** | [**Group**](Group.md) | Catalog group created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogGroupCreatedEvent.md b/docs/CatalogGroupCreatedEvent.md new file mode 100644 index 00000000..023f025d --- /dev/null +++ b/docs/CatalogGroupCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogGroupCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the group | [optional] +**Group** | [**Group**](Group.md) | Catalog group created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogGroupReference.md b/docs/CatalogGroupReference.md new file mode 100644 index 00000000..f5b4189d --- /dev/null +++ b/docs/CatalogGroupReference.md @@ -0,0 +1,12 @@ +# Flipdish.Model.CatalogGroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**Group**](Group.md) | Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogItem} | [optional] +**CatalogGroupId** | **string** | Identifier of the ProductId to use as SubProduct | +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | [optional] +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogGroupUpdatedEvent.md b/docs/CatalogGroupUpdatedEvent.md new file mode 100644 index 00000000..deeefc99 --- /dev/null +++ b/docs/CatalogGroupUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogGroupUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the group | [optional] +**Group** | [**Group**](Group.md) | Catalog group created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogGroupsApi.md b/docs/CatalogGroupsApi.md new file mode 100644 index 00000000..313f605e --- /dev/null +++ b/docs/CatalogGroupsApi.md @@ -0,0 +1,415 @@ +# Flipdish.Api.CatalogGroupsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArchiveGroup**](CatalogGroupsApi.md#archivegroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive | Archive Catalog Group +[**CreateGroup**](CatalogGroupsApi.md#creategroup) | **POST** /api/v1.0/{appId}/catalog/groups | Create a Catalog Group +[**DuplicateGroup**](CatalogGroupsApi.md#duplicategroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate | Duplicate Catalog Group +[**GetGroupById**](CatalogGroupsApi.md#getgroupbyid) | **GET** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Get group by Id +[**GetGroups**](CatalogGroupsApi.md#getgroups) | **GET** /api/v1.0/{appId}/catalog/groups | Get paginated groups by app name id filtered by types +[**UpdateGroup**](CatalogGroupsApi.md#updategroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Update Catalog Group + + + +# **ArchiveGroup** +> void ArchiveGroup (string appId, string catalogItemId) + +Archive Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ArchiveGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Archive Catalog Group + apiInstance.ArchiveGroup(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.ArchiveGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateGroup** +> RestApiResultGroup CreateGroup (string appId, CreateGroup createGroup) + +Create a Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var createGroup = new CreateGroup(); // CreateGroup | + + try + { + // Create a Catalog Group + RestApiResultGroup result = apiInstance.CreateGroup(appId, createGroup); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.CreateGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **createGroup** | [**CreateGroup**](CreateGroup.md)| | + +### Return type + +[**RestApiResultGroup**](RestApiResultGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DuplicateGroup** +> void DuplicateGroup (string appId, string catalogItemId) + +Duplicate Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DuplicateGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Duplicate Catalog Group + apiInstance.DuplicateGroup(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.DuplicateGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetGroupById** +> Group GetGroupById (string appId, string catalogItemId) + +Get group by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetGroupByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Get group by Id + Group result = apiInstance.GetGroupById(appId, catalogItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.GetGroupById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetGroups** +> RestApiPaginationResultGroup GetGroups (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null) + +Get paginated groups by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetGroupsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var groupTypes = groupTypes_example; // List | + var searchTerm = searchTerm_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + // Get paginated groups by app name id filtered by types + RestApiPaginationResultGroup result = apiInstance.GetGroups(appId, groupTypes, searchTerm, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.GetGroups: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **groupTypes** | **List<string>**| | + **searchTerm** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultGroup**](RestApiPaginationResultGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateGroup** +> void UpdateGroup (string appId, string catalogItemId, UpdateGroup updateGroup) + +Update Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogGroupsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + var updateGroup = new UpdateGroup(); // UpdateGroup | + + try + { + // Update Catalog Group + apiInstance.UpdateGroup(appId, catalogItemId, updateGroup); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogGroupsApi.UpdateGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + **updateGroup** | [**UpdateGroup**](UpdateGroup.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CatalogImage.md b/docs/CatalogImage.md new file mode 100644 index 00000000..4dd9f6d6 --- /dev/null +++ b/docs/CatalogImage.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CatalogImage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageUri** | **string** | Unique catalog Item id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogImagesApi.md b/docs/CatalogImagesApi.md new file mode 100644 index 00000000..a52038c3 --- /dev/null +++ b/docs/CatalogImagesApi.md @@ -0,0 +1,75 @@ +# Flipdish.Api.CatalogImagesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UploadCatalogImage**](CatalogImagesApi.md#uploadcatalogimage) | **POST** /api/v1.0/{appId}/catalog/images | Upload a Catalog Image + + + +# **UploadCatalogImage** +> CatalogImage UploadCatalogImage (string appId, System.IO.Stream image) + +Upload a Catalog Image + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadCatalogImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogImagesApi(); + var appId = appId_example; // string | + var image = new System.IO.Stream(); // System.IO.Stream | Catalog image + + try + { + // Upload a Catalog Image + CatalogImage result = apiInstance.UploadCatalogImage(appId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogImagesApi.UploadCatalogImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **image** | **System.IO.Stream**| Catalog image | + +### Return type + +[**CatalogImage**](CatalogImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md new file mode 100644 index 00000000..bb2172f8 --- /dev/null +++ b/docs/CatalogItem.md @@ -0,0 +1,19 @@ +# Flipdish.Model.CatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Unique catalog Item id | [optional] +**IsArchived** | **bool?** | Returns true if the item is archived | [optional] +**Groups** | [**List<CatalogGroupReference>**](CatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**ItemType** | **string** | Type of item (Product, Modifier, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Item name | +**Description** | **string** | Item description | [optional] +**Price** | **double?** | Item price | +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | item contains alcohol | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogItemArchivedEvent.md b/docs/CatalogItemArchivedEvent.md new file mode 100644 index 00000000..6e99707c --- /dev/null +++ b/docs/CatalogItemArchivedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogItemArchivedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the item | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | Catalog item created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogItemCreatedEvent.md b/docs/CatalogItemCreatedEvent.md new file mode 100644 index 00000000..a3696480 --- /dev/null +++ b/docs/CatalogItemCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogItemCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the item | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | Catalog item created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogItemUpdatedEvent.md b/docs/CatalogItemUpdatedEvent.md new file mode 100644 index 00000000..939d563f --- /dev/null +++ b/docs/CatalogItemUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CatalogItemUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the item | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | Catalog item created | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CatalogItemsApi.md b/docs/CatalogItemsApi.md new file mode 100644 index 00000000..1577ec98 --- /dev/null +++ b/docs/CatalogItemsApi.md @@ -0,0 +1,415 @@ +# Flipdish.Api.CatalogItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArchiveCatalogItem**](CatalogItemsApi.md#archivecatalogitem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/archive | Archive Catalog Item +[**CreateCatalogItem**](CatalogItemsApi.md#createcatalogitem) | **POST** /api/v1.0/{appId}/catalog/items | Create a Catalog Item +[**DuplicateCatalogItem**](CatalogItemsApi.md#duplicatecatalogitem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate | Duplicate Catalog Item +[**GetCatalogItemById**](CatalogItemsApi.md#getcatalogitembyid) | **GET** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Get item by Id +[**GetItems**](CatalogItemsApi.md#getitems) | **GET** /api/v1.0/{appId}/catalog/items | Get paginated items by app name id filtered by types +[**UpdateCatalogItem**](CatalogItemsApi.md#updatecatalogitem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Update Catalog Item + + + +# **ArchiveCatalogItem** +> void ArchiveCatalogItem (string appId, string catalogItemId) + +Archive Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ArchiveCatalogItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Archive Catalog Item + apiInstance.ArchiveCatalogItem(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.ArchiveCatalogItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateCatalogItem** +> RestApiResultCatalogItem CreateCatalogItem (string appId, CreateCatalogItem createCatalogItem) + +Create a Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateCatalogItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var createCatalogItem = new CreateCatalogItem(); // CreateCatalogItem | + + try + { + // Create a Catalog Item + RestApiResultCatalogItem result = apiInstance.CreateCatalogItem(appId, createCatalogItem); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.CreateCatalogItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **createCatalogItem** | [**CreateCatalogItem**](CreateCatalogItem.md)| | + +### Return type + +[**RestApiResultCatalogItem**](RestApiResultCatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DuplicateCatalogItem** +> void DuplicateCatalogItem (string appId, string catalogItemId) + +Duplicate Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DuplicateCatalogItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Duplicate Catalog Item + apiInstance.DuplicateCatalogItem(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.DuplicateCatalogItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCatalogItemById** +> CatalogItem GetCatalogItemById (string appId, string catalogItemId) + +Get item by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCatalogItemByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Get item by Id + CatalogItem result = apiInstance.GetCatalogItemById(appId, catalogItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.GetCatalogItemById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +[**CatalogItem**](CatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetItems** +> RestApiPaginationResultCatalogItem GetItems (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null) + +Get paginated items by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var itemTypes = itemTypes_example; // List | + var searchTerm = searchTerm_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + // Get paginated items by app name id filtered by types + RestApiPaginationResultCatalogItem result = apiInstance.GetItems(appId, itemTypes, searchTerm, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.GetItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **itemTypes** | **List<string>**| | + **searchTerm** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultCatalogItem**](RestApiPaginationResultCatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateCatalogItem** +> void UpdateCatalogItem (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem) + +Update Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateCatalogItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogItemsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + var updateCatalogItem = new UpdateCatalogItem(); // UpdateCatalogItem | + + try + { + // Update Catalog Item + apiInstance.UpdateCatalogItem(appId, catalogItemId, updateCatalogItem); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogItemsApi.UpdateCatalogItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + **updateCatalogItem** | [**UpdateCatalogItem**](UpdateCatalogItem.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CatalogProductsApi.md b/docs/CatalogProductsApi.md new file mode 100644 index 00000000..ac0af20c --- /dev/null +++ b/docs/CatalogProductsApi.md @@ -0,0 +1,415 @@ +# Flipdish.Api.CatalogProductsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArchiveProduct**](CatalogProductsApi.md#archiveproduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/archive | Archive Product +[**CreateProduct**](CatalogProductsApi.md#createproduct) | **POST** /api/v1.0/{appId}/catalog/products | Create a Product +[**DuplicateProduct**](CatalogProductsApi.md#duplicateproduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate | Duplicate Product +[**GetProductById**](CatalogProductsApi.md#getproductbyid) | **GET** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Get Product by Id +[**GetProducts**](CatalogProductsApi.md#getproducts) | **GET** /api/v1.0/{appId}/catalog/products | Get paginated products by app name id filtered by types +[**UpdateProduct**](CatalogProductsApi.md#updateproduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Update Product + + + +# **ArchiveProduct** +> void ArchiveProduct (string appId, string catalogItemId) + +Archive Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ArchiveProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Archive Product + apiInstance.ArchiveProduct(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.ArchiveProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateProduct** +> RestApiResultProduct CreateProduct (string appId, CreateProduct createProduct) + +Create a Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var createProduct = new CreateProduct(); // CreateProduct | + + try + { + // Create a Product + RestApiResultProduct result = apiInstance.CreateProduct(appId, createProduct); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.CreateProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **createProduct** | [**CreateProduct**](CreateProduct.md)| | + +### Return type + +[**RestApiResultProduct**](RestApiResultProduct.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DuplicateProduct** +> void DuplicateProduct (string appId, string catalogItemId) + +Duplicate Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DuplicateProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Duplicate Product + apiInstance.DuplicateProduct(appId, catalogItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.DuplicateProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProductById** +> Product GetProductById (string appId, string catalogItemId) + +Get Product by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetProductByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + + try + { + // Get Product by Id + Product result = apiInstance.GetProductById(appId, catalogItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.GetProductById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + +### Return type + +[**Product**](Product.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProducts** +> RestApiPaginationResultProduct GetProducts (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null) + +Get paginated products by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetProductsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var productTypes = productTypes_example; // List | + var searchTerm = searchTerm_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + // Get paginated products by app name id filtered by types + RestApiPaginationResultProduct result = apiInstance.GetProducts(appId, productTypes, searchTerm, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.GetProducts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **productTypes** | **List<string>**| | + **searchTerm** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultProduct**](RestApiPaginationResultProduct.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateProduct** +> void UpdateProduct (string appId, string catalogItemId, UpdateProduct updateProduct) + +Update Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateProductExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CatalogProductsApi(); + var appId = appId_example; // string | + var catalogItemId = catalogItemId_example; // string | + var updateProduct = new UpdateProduct(); // UpdateProduct | + + try + { + // Update Product + apiInstance.UpdateProduct(appId, catalogItemId, updateProduct); + } + catch (Exception e) + { + Debug.Print("Exception when calling CatalogProductsApi.UpdateProduct: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **catalogItemId** | **string**| | + **updateProduct** | [**UpdateProduct**](UpdateProduct.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CertificateCreatedEvent.md b/docs/CertificateCreatedEvent.md new file mode 100644 index 00000000..930efb63 --- /dev/null +++ b/docs/CertificateCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.CertificateCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | Description | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CertificateRenewedEvent.md b/docs/CertificateRenewedEvent.md new file mode 100644 index 00000000..78be1125 --- /dev/null +++ b/docs/CertificateRenewedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.CertificateRenewedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | Description | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ChangePasswordModel.md b/docs/ChangePasswordModel.md new file mode 100644 index 00000000..643b370a --- /dev/null +++ b/docs/ChangePasswordModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ChangePasswordModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OldPassword** | **string** | Old password | +**NewPassword** | **string** | New password | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Channel.md b/docs/Channel.md new file mode 100644 index 00000000..b540584e --- /dev/null +++ b/docs/Channel.md @@ -0,0 +1,14 @@ +# Flipdish.Model.Channel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **int?** | Channel Id | [optional] +**TranslationKey** | **string** | Channel TranslationKey | [optional] +**Source** | **string** | Channel Source | [optional] +**LogoUri** | **string** | Channel Logo URl | [optional] +**Available** | **bool?** | Channel is Available or not | [optional] +**MaintainedExternally** | **bool?** | Channel is Maintained Externally or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ChannelStoresUpdatedEvent.md b/docs/ChannelStoresUpdatedEvent.md new file mode 100644 index 00000000..e622d12e --- /dev/null +++ b/docs/ChannelStoresUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.ChannelStoresUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**ChannelId** | **int?** | ID of the channel | [optional] +**StoreIds** | **List<int?>** | List of store ids | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User info | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ChannelsApi.md b/docs/ChannelsApi.md new file mode 100644 index 00000000..c6f7abaa --- /dev/null +++ b/docs/ChannelsApi.md @@ -0,0 +1,778 @@ +# Flipdish.Api.ChannelsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AssignAppIdToSalesChannel**](ChannelsApi.md#assignappidtosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/assign-appId | +[**AssignStoreToChannel**](ChannelsApi.md#assignstoretochannel) | **POST** /api/v1.0/{appId}/channels/assign-store | +[**AttachStoreToSalesChannel**](ChannelsApi.md#attachstoretosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +[**DetachAllStoresFromSalesChannel**](ChannelsApi.md#detachallstoresfromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | +[**DetachStoreFromSalesChannel**](ChannelsApi.md#detachstorefromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +[**GetAssignedChannels**](ChannelsApi.md#getassignedchannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | +[**GetAvailableChannels**](ChannelsApi.md#getavailablechannels) | **GET** /api/v1.0/{appId}/channels/available-channels | +[**GetChannel**](ChannelsApi.md#getchannel) | **GET** /api/v1.0/{appId}/channels/{id} | +[**GetChannels**](ChannelsApi.md#getchannels) | **GET** /api/v1.0/{appId}/channels | +[**GetStoresAssignedToChannel**](ChannelsApi.md#getstoresassignedtochannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/assigned-stores | +[**GetStoresBySalesChannel**](ChannelsApi.md#getstoresbysaleschannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/stores | +[**UnassignStoreFromChannel**](ChannelsApi.md#unassignstorefromchannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | + + + +# **AssignAppIdToSalesChannel** +> Object AssignAppIdToSalesChannel (string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignAppIdToSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + Object result = apiInstance.AssignAppIdToSalesChannel(appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.AssignAppIdToSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AssignStoreToChannel** +> Object AssignStoreToChannel (int? storeId, string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignStoreToChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var storeId = 56; // int? | + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + Object result = apiInstance.AssignStoreToChannel(storeId, appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.AssignStoreToChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AttachStoreToSalesChannel** +> Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AttachStoreToSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.AttachStoreToSalesChannel(appId, channelId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.AttachStoreToSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DetachAllStoresFromSalesChannel** +> Object DetachAllStoresFromSalesChannel (string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DetachAllStoresFromSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + Object result = apiInstance.DetachAllStoresFromSalesChannel(appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.DetachAllStoresFromSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DetachStoreFromSalesChannel** +> Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DetachStoreFromSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.DetachStoreFromSalesChannel(appId, channelId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.DetachStoreFromSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAssignedChannels** +> RestApiArrayResultChannel GetAssignedChannels (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAssignedChannelsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultChannel result = apiInstance.GetAssignedChannels(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetAssignedChannels: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAvailableChannels** +> RestApiArrayResultChannel GetAvailableChannels (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAvailableChannelsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultChannel result = apiInstance.GetAvailableChannels(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetAvailableChannels: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetChannel** +> RestApiResultChannel GetChannel (int? id, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var id = 56; // int? | + var appId = appId_example; // string | + + try + { + RestApiResultChannel result = apiInstance.GetChannel(id, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultChannel**](RestApiResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetChannels** +> RestApiArrayResultChannel GetChannels (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetChannelsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultChannel result = apiInstance.GetChannels(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetChannels: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoresAssignedToChannel** +> RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoresAssignedToChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + RestApiArrayResultStoreChannelAssignment result = apiInstance.GetStoresAssignedToChannel(appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetStoresAssignedToChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +[**RestApiArrayResultStoreChannelAssignment**](RestApiArrayResultStoreChannelAssignment.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoresBySalesChannel** +> Response GetStoresBySalesChannel (string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoresBySalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + Response result = apiInstance.GetStoresBySalesChannel(appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.GetStoresBySalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +[**Response**](Response.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnassignStoreFromChannel** +> Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnassignStoreFromChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ChannelsApi(); + var storeId = 56; // int? | + var appId = appId_example; // string | + var channelId = 56; // int? | + + try + { + Object result = apiInstance.UnassignStoreFromChannel(storeId, appId, channelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChannelsApi.UnassignStoreFromChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **appId** | **string**| | + **channelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ChargebackDetails.md b/docs/ChargebackDetails.md new file mode 100644 index 00000000..bef20b39 --- /dev/null +++ b/docs/ChargebackDetails.md @@ -0,0 +1,13 @@ +# Flipdish.Model.ChargebackDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChargebackAmount** | **double?** | Chargeback amount | [optional] +**PosSalesChargebackAmount** | **double?** | POS Chargeback amount | [optional] +**ChargebackRefundedFees** | **double?** | Chargeback refunded feeds | [optional] +**ChargebacksCount** | **int?** | Number of chargebacks | [optional] +**TotalChargebackCost** | **double?** | Total amount | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientDevice.md b/docs/ClientDevice.md new file mode 100644 index 00000000..6c69654f --- /dev/null +++ b/docs/ClientDevice.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ClientDevice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **string** | Device Model | [optional] +**DeviceId** | **string** | Device Id | [optional] +**DeviceName** | **string** | Device Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientDeviceAssignEnrolledDevice.md b/docs/ClientDeviceAssignEnrolledDevice.md new file mode 100644 index 00000000..a3f24d9b --- /dev/null +++ b/docs/ClientDeviceAssignEnrolledDevice.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ClientDeviceAssignEnrolledDevice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **string** | Device Model | [optional] +**PinCode** | **string** | Pin Code | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientDeviceEnroll.md b/docs/ClientDeviceEnroll.md new file mode 100644 index 00000000..5fb9deeb --- /dev/null +++ b/docs/ClientDeviceEnroll.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ClientDeviceEnroll +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **string** | Device model | [optional] +**DeviceId** | **string** | Device Id | [optional] +**DeviceName** | **string** | Device Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientDeviceEnrollmentResult.md b/docs/ClientDeviceEnrollmentResult.md new file mode 100644 index 00000000..014572e3 --- /dev/null +++ b/docs/ClientDeviceEnrollmentResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.ClientDeviceEnrollmentResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PinCode** | **string** | PIN Code for assigning | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientDeviceSummary.md b/docs/ClientDeviceSummary.md new file mode 100644 index 00000000..9a54bf3b --- /dev/null +++ b/docs/ClientDeviceSummary.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ClientDeviceSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **string** | Device Model | [optional] +**DeviceId** | **string** | Device Id | [optional] +**DeviceName** | **string** | Device Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md new file mode 100644 index 00000000..ff3652e0 --- /dev/null +++ b/docs/ClientsApi.md @@ -0,0 +1,195 @@ +# Flipdish.Api.ClientsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetClient**](ClientsApi.md#getclient) | **GET** /api/v1.0/clients/{clientId} | +[**SetSalesForceContactId**](ClientsApi.md#setsalesforcecontactid) | **POST** /api/v1.0/clients/{clientId}/salesforcecontactid | +[**SetStripeCustomerId**](ClientsApi.md#setstripecustomerid) | **POST** /api/v1.0/clients/{clientId}/stripecustomerid | + + + +# **GetClient** +> void GetClient (int? clientId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetClientExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ClientsApi(); + var clientId = 56; // int? | + + try + { + apiInstance.GetClient(clientId); + } + catch (Exception e) + { + Debug.Print("Exception when calling ClientsApi.GetClient: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetSalesForceContactId** +> void SetSalesForceContactId (int? clientId, string salesForceContactId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetSalesForceContactIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ClientsApi(); + var clientId = 56; // int? | + var salesForceContactId = salesForceContactId_example; // string | + + try + { + apiInstance.SetSalesForceContactId(clientId, salesForceContactId); + } + catch (Exception e) + { + Debug.Print("Exception when calling ClientsApi.SetSalesForceContactId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **int?**| | + **salesForceContactId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetStripeCustomerId** +> void SetStripeCustomerId (int? clientId, string stripeCustomerId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetStripeCustomerIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ClientsApi(); + var clientId = 56; // int? | + var stripeCustomerId = stripeCustomerId_example; // string | + + try + { + apiInstance.SetStripeCustomerId(clientId, stripeCustomerId); + } + catch (Exception e) + { + Debug.Print("Exception when calling ClientsApi.SetStripeCustomerId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **int?**| | + **stripeCustomerId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ConfiguredStore.md b/docs/ConfiguredStore.md new file mode 100644 index 00000000..7ebde6f3 --- /dev/null +++ b/docs/ConfiguredStore.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ConfiguredStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | | [optional] +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ContentSecurityPolicyApi.md b/docs/ContentSecurityPolicyApi.md new file mode 100644 index 00000000..b8c59bbc --- /dev/null +++ b/docs/ContentSecurityPolicyApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.ContentSecurityPolicyApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ContentSecurityPolicyReport**](ContentSecurityPolicyApi.md#contentsecuritypolicyreport) | **POST** /api/v1.0/csp/report | + + + +# **ContentSecurityPolicyReport** +> Object ContentSecurityPolicyReport (CspReportRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ContentSecurityPolicyReportExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ContentSecurityPolicyApi(); + var request = new CspReportRequest(); // CspReportRequest | + + try + { + Object result = apiInstance.ContentSecurityPolicyReport(request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ContentSecurityPolicyApi.ContentSecurityPolicyReport: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**CspReportRequest**](CspReportRequest.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Coordinates.md b/docs/Coordinates.md new file mode 100644 index 00000000..08c6c52d --- /dev/null +++ b/docs/Coordinates.md @@ -0,0 +1,10 @@ +# Flipdish.Model.Coordinates +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **double?** | Latitude | [optional] +**Longitude** | **double?** | Longitude | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CountryFormResponse.md b/docs/CountryFormResponse.md new file mode 100644 index 00000000..fdfa9ac9 --- /dev/null +++ b/docs/CountryFormResponse.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CountryFormResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **string** | ISO two letter code. | [optional] +**Label** | **string** | Label | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CountryWithAccountFieldsDefinitions.md b/docs/CountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..02244a40 --- /dev/null +++ b/docs/CountryWithAccountFieldsDefinitions.md @@ -0,0 +1,12 @@ +# Flipdish.Model.CountryWithAccountFieldsDefinitions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CountryCode** | **string** | Country 2-letter ISO code | [optional] +**DisplayName** | **string** | Display name of the country | [optional] +**SupportType** | **string** | Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) | [optional] +**FieldDefinitions** | [**List<AccountFieldDefinition>**](AccountFieldDefinition.md) | Bank Account field definitions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateAccountModel.md b/docs/CreateAccountModel.md new file mode 100644 index 00000000..a9a90ccb --- /dev/null +++ b/docs/CreateAccountModel.md @@ -0,0 +1,14 @@ +# Flipdish.Model.CreateAccountModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email address | +**StoreName** | **string** | Store name | +**LanguageId** | **string** | LanguageId | [optional] +**Rid** | **int?** | Referral ID | [optional] +**Cid** | **string** | Campaign ID | [optional] +**RecaptchaToken** | **string** | Google Recaptcha Token | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateAppParameters.md b/docs/CreateAppParameters.md new file mode 100644 index 00000000..90aed183 --- /dev/null +++ b/docs/CreateAppParameters.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CreateAppParameters +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the brand that this app/white-label represents. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateAppStoreApp.md b/docs/CreateAppStoreApp.md new file mode 100644 index 00000000..bd1bfae2 --- /dev/null +++ b/docs/CreateAppStoreApp.md @@ -0,0 +1,26 @@ +# Flipdish.Model.CreateAppStoreApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | **string** | | +**ConfigurationType** | **string** | | +**StoreSelectorType** | **string** | | +**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | | [optional] +**SetupInstructions** | **string** | | [optional] +**ExternalSetupLink** | **string** | | [optional] +**TeammateAppAccessLevel** | **string** | | [optional] +**PermissionsType** | **string** | | +**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | | [optional] +**ExternalFunctionActionUrl** | **string** | | [optional] +**ExternalFunctionSignatureKey** | **string** | | [optional] +**IsPaid** | **bool?** | | [optional] +**Name** | **string** | | +**Description** | **string** | | +**IsEnabled** | **bool?** | | [optional] +**Categories** | **List<string>** | | +**Countries** | **List<string>** | | +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateBasicAccountModel.md b/docs/CreateBasicAccountModel.md new file mode 100644 index 00000000..2986e5fd --- /dev/null +++ b/docs/CreateBasicAccountModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CreateBasicAccountModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreName** | **string** | Store name | +**LanguageId** | **string** | LanguageId | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateCatalogGroupReference.md b/docs/CreateCatalogGroupReference.md new file mode 100644 index 00000000..bb8d92b5 --- /dev/null +++ b/docs/CreateCatalogGroupReference.md @@ -0,0 +1,11 @@ +# Flipdish.Model.CreateCatalogGroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **string** | Identifier of the ProductId to use as SubProduct | +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | [optional] +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateCatalogItem.md b/docs/CreateCatalogItem.md new file mode 100644 index 00000000..acc22c36 --- /dev/null +++ b/docs/CreateCatalogItem.md @@ -0,0 +1,17 @@ +# Flipdish.Model.CreateCatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | [**List<CreateCatalogGroupReference>**](CreateCatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**ItemType** | **string** | Type of item (Product, Modifier, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Item name | +**Description** | **string** | Item description | [optional] +**Price** | **double?** | Item price | +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | item contains alcohol | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateEndUserFeeConfig.md b/docs/CreateEndUserFeeConfig.md new file mode 100644 index 00000000..4152a5aa --- /dev/null +++ b/docs/CreateEndUserFeeConfig.md @@ -0,0 +1,15 @@ +# Flipdish.Model.CreateEndUserFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | **string** | The order channel this fee config applies to | +**PaymentMethod** | **string** | The payment method this fee config applies to | +**MinOrderAmount** | **double?** | Order amount below which MinFixedFee is charged instead of the percent/fixed calculation | [optional] +**MinFixedFee** | **double?** | Fixed fee charged for orders at or below MinOrderAmount | [optional] +**PercentFee** | **double?** | Percentage fee applied to the order amount | [optional] +**FixedFee** | **double?** | Fixed fee compared against the percentage fee - the greater of the two is charged | [optional] +**Cap** | **double?** | Maximum fee that can be charged | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFulfillmentStatesConfiguration.md b/docs/CreateFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..b5346cf5 --- /dev/null +++ b/docs/CreateFulfillmentStatesConfiguration.md @@ -0,0 +1,13 @@ +# Flipdish.Model.CreateFulfillmentStatesConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **List<int?>** | Stores id's | [optional] +**StoreSelectorType** | **string** | Store Selector Type | [optional] +**States** | [**List<FulfillmentStatusConfigurationItem>**](FulfillmentStatusConfigurationItem.md) | Settings | [optional] +**AutomaticTransitionsEnabled** | **bool?** | Enable automatic transitions | [optional] +**Name** | **string** | Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFullMenu.md b/docs/CreateFullMenu.md new file mode 100644 index 00000000..959a1cee --- /dev/null +++ b/docs/CreateFullMenu.md @@ -0,0 +1,16 @@ +# Flipdish.Model.CreateFullMenu +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of Menu, only shown in portal | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuSections** | [**List<CreateFullMenuSection>**](CreateFullMenuSection.md) | Menu sections (starters, main etc) | [optional] +**TaxRates** | [**List<CreateMenuTaxRate>**](CreateMenuTaxRate.md) | Menu tax rates | [optional] +**DisplaySectionLinks** | **bool?** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **string** | Menu section behaviour | [optional] +**TaxType** | **string** | Tax type | [optional] +**IsIntegrated** | **bool?** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFullMenuItemOptionSet.md b/docs/CreateFullMenuItemOptionSet.md new file mode 100644 index 00000000..4cce8a3c --- /dev/null +++ b/docs/CreateFullMenuItemOptionSet.md @@ -0,0 +1,17 @@ +# Flipdish.Model.CreateFullMenuItemOptionSet +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetId** | **int?** | Menu item option set identifier | [optional] +**MenuItemOptionSetItems** | [**List<CreateFullMenuItemOptionSetItem>**](CreateFullMenuItemOptionSetItem.md) | Option set items | [optional] +**Name** | **string** | Menu item option set name | [optional] +**IsMasterOptionSet** | **bool?** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **int?** | Minimum items must be selected | [optional] +**MaxSelectCount** | **int?** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFullMenuItemOptionSetItem.md b/docs/CreateFullMenuItemOptionSetItem.md new file mode 100644 index 00000000..376543e3 --- /dev/null +++ b/docs/CreateFullMenuItemOptionSetItem.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CreateFullMenuItemOptionSetItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetItemId** | **int?** | Menu item option set item identifier | [optional] +**Metadata** | [**List<CreateMetadata>**](CreateMetadata.md) | List of metadata | [optional] +**TaxRateName** | **string** | Tax rate name | [optional] +**NextMenuItemOptionSetId** | **int?** | if null, next option set is next. if -1, this is the final option set | [optional] +**Name** | **string** | Name | [optional] +**Price** | **double?** | Price | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**ImageUrl** | **string** | Image url | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFullMenuSection.md b/docs/CreateFullMenuSection.md new file mode 100644 index 00000000..31c3224a --- /dev/null +++ b/docs/CreateFullMenuSection.md @@ -0,0 +1,18 @@ +# Flipdish.Model.CreateFullMenuSection +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Menu section availability | [optional] +**MenuItems** | [**List<CreateFullMenuSectionItem>**](CreateFullMenuSectionItem.md) | Menu items | [optional] +**Name** | **string** | Name | [optional] +**Description** | **string** | Description | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**IsHiddenFromCustomers** | **bool?** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuSectionId** | **int?** | Menu Section Id | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateFullMenuSectionItem.md b/docs/CreateFullMenuSectionItem.md new file mode 100644 index 00000000..80fce367 --- /dev/null +++ b/docs/CreateFullMenuSectionItem.md @@ -0,0 +1,26 @@ +# Flipdish.Model.CreateFullMenuSectionItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSets** | [**List<CreateFullMenuItemOptionSet>**](CreateFullMenuItemOptionSet.md) | Menu item option sets | [optional] +**Metadata** | [**List<CreateMetadata>**](CreateMetadata.md) | List of metadata | [optional] +**TaxRateName** | **string** | Tax rate name | [optional] +**Name** | **string** | Menu item name (like \"Korma\") | [optional] +**Description** | **string** | Description (like \"A lovely dish from the east\") | [optional] +**SpicinessRating** | **string** | Spiciness rating | [optional] +**Price** | **double?** | Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**Alcohol** | **bool?** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **bool?** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **bool?** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **string** | Image url | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuItemId** | **int?** | Menu Item Id | [optional] +**ExcludeFromVoucherDiscounting** | **bool?** | If true, the item is excluded from voucher discount calculations | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateGroup.md b/docs/CreateGroup.md new file mode 100644 index 00000000..2b8b5c38 --- /dev/null +++ b/docs/CreateGroup.md @@ -0,0 +1,17 @@ +# Flipdish.Model.CreateGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinSelectCount** | **int?** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **int?** | Maximum number of items that the user has to select | [optional] +**Products** | [**List<CreateProductReference>**](CreateProductReference.md) | Collection of items associated with this group | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**GroupType** | **string** | Type of group (ModifierGroup, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Group name | +**AutogenerateDisplayText** | **bool?** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **string** | Image File Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateGroupReference.md b/docs/CreateGroupReference.md new file mode 100644 index 00000000..33ecc52e --- /dev/null +++ b/docs/CreateGroupReference.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CreateGroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateLocation.md b/docs/CreateLocation.md new file mode 100644 index 00000000..1e297cbe --- /dev/null +++ b/docs/CreateLocation.md @@ -0,0 +1,12 @@ +# Flipdish.Model.CreateLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **int?** | Location Id | [optional] +**LocationName** | **string** | Descriptive LocationArea name | [optional] +**DisplayOrder** | **int?** | The order that the Location should be displayed on the screen | [optional] +**ExternalLocationId** | **string** | Id of the Location on an external system | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateLocationArea.md b/docs/CreateLocationArea.md new file mode 100644 index 00000000..eda62907 --- /dev/null +++ b/docs/CreateLocationArea.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CreateLocationArea +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaName** | **string** | Descriptive LocationArea name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateMenuSectionItemFromCatalogItems.md b/docs/CreateMenuSectionItemFromCatalogItems.md new file mode 100644 index 00000000..119e238f --- /dev/null +++ b/docs/CreateMenuSectionItemFromCatalogItems.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CreateMenuSectionItemFromCatalogItems +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuCatalogItems** | [**List<MenuCatalogItem>**](MenuCatalogItem.md) | List of CatalogItems to add to the section | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateMenuTaxRate.md b/docs/CreateMenuTaxRate.md new file mode 100644 index 00000000..92cccf86 --- /dev/null +++ b/docs/CreateMenuTaxRate.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CreateMenuTaxRate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of Tax Rate | [optional] +**Rate** | **double?** | In Percentage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateMetadata.md b/docs/CreateMetadata.md new file mode 100644 index 00000000..159b8a58 --- /dev/null +++ b/docs/CreateMetadata.md @@ -0,0 +1,11 @@ +# Flipdish.Model.CreateMetadata +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**Key** | **string** | Metadata key (Unique identifier) | [optional] +**Value** | **string** | Metadata value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateMetafieldDefinition.md b/docs/CreateMetafieldDefinition.md new file mode 100644 index 00000000..9c12eb2f --- /dev/null +++ b/docs/CreateMetafieldDefinition.md @@ -0,0 +1,16 @@ +# Flipdish.Model.CreateMetafieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReadOnly** | **bool?** | Indicates if a definition can be edited or not | [optional] +**OwnerEntity** | **string** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **string** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **string** | The excepted type for the Value field | [optional] +**Name** | **string** | Field Name | +**Description** | **string** | Field Description | [optional] +**Behaviors** | **List<string>** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **int?** | Metafield Recommendation Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreatePayGreenConfigurationRequest.md b/docs/CreatePayGreenConfigurationRequest.md new file mode 100644 index 00000000..41afa127 --- /dev/null +++ b/docs/CreatePayGreenConfigurationRequest.md @@ -0,0 +1,12 @@ +# Flipdish.Model.CreatePayGreenConfigurationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**PayGreenId** | **string** | PayGreenId. | [optional] +**PayGreenPrivateKey** | **string** | PayGreenPrivateKey. | [optional] +**AssignedStores** | **List<int?>** | AssignedStores. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateProduct.md b/docs/CreateProduct.md new file mode 100644 index 00000000..378278c3 --- /dev/null +++ b/docs/CreateProduct.md @@ -0,0 +1,17 @@ +# Flipdish.Model.CreateProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | [**List<CreateGroupReference>**](CreateGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**ProductType** | **string** | Type of item (Product, Modifier, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Product name | +**Description** | **string** | Product description | [optional] +**Price** | **double?** | Product price | +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | Product contains alcohol | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateProductReference.md b/docs/CreateProductReference.md new file mode 100644 index 00000000..ac8ea559 --- /dev/null +++ b/docs/CreateProductReference.md @@ -0,0 +1,11 @@ +# Flipdish.Model.CreateProductReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **string** | Type of the SupProduct | +**PreselectedQuantity** | **int?** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreatePromotion.md b/docs/CreatePromotion.md new file mode 100644 index 00000000..59bd71c4 --- /dev/null +++ b/docs/CreatePromotion.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CreatePromotion +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Promotion Name | [optional] +**MenuItemPublicIds** | **List<Guid?>** | Promotion Menu Item Awards | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateTeammate.md b/docs/CreateTeammate.md new file mode 100644 index 00000000..5ea59e8f --- /dev/null +++ b/docs/CreateTeammate.md @@ -0,0 +1,13 @@ +# Flipdish.Model.CreateTeammate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email address | [optional] +**AppAccessLevel** | **string** | App access level | [optional] +**HasAccessToAllStores** | **bool?** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **List<int?>** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **List<string>** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateUserDeliveryLocationRequest.md b/docs/CreateUserDeliveryLocationRequest.md new file mode 100644 index 00000000..ecd98fba --- /dev/null +++ b/docs/CreateUserDeliveryLocationRequest.md @@ -0,0 +1,16 @@ +# Flipdish.Model.CreateUserDeliveryLocationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Building** | **string** | Building. | [optional] +**Street** | **string** | Street. | [optional] +**Town** | **string** | Town. | [optional] +**PostCode** | **string** | PostCode. | [optional] +**FullAddressJson** | **string** | FullAddressJson. | [optional] +**DeliveryInstructions** | **string** | DeliveryInstructions. | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Coordinates. | [optional] +**IsDisplayed** | **bool?** | Passed through to the same parameter position as legacy admin MVC (maps to IsCustomAddress in map service). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateVoucher.md b/docs/CreateVoucher.md new file mode 100644 index 00000000..29dccb71 --- /dev/null +++ b/docs/CreateVoucher.md @@ -0,0 +1,38 @@ +# Flipdish.Model.CreateVoucher +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherType** | **string** | Voucher Type | [optional] +**Promotion** | [**CreatePromotion**](CreatePromotion.md) | Create Promotion details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **string** | Voucher Code | [optional] +**Description** | **string** | Voucher Description (Visible on printout) | [optional] +**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **double?** | Valid on orders on or above | [optional] +**TakesPriority** | **bool?** | Takes priority | [optional] +**IsEnabled** | **bool?** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **bool?** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **bool?** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **bool?** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **bool?** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **bool?** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **bool?** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **bool?** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **bool?** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **bool?** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **bool?** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**IsPromoted** | **bool?** | Marks the voucher as promoted | [optional] +**ForceDiscount** | **bool?** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **DateTime?** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **DateTime?** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **List<string>** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**List<ValidityPeriod>**](ValidityPeriod.md) | Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. | [optional] +**VoucherSubType** | **string** | Voucher Subtype | [optional] +**CustomerId** | **int?** | Customer UserID | [optional] +**MaxRedemptions** | **int?** | Maximum number of times the voucher can be redeemed (used) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreatedMenuSectionItems.md b/docs/CreatedMenuSectionItems.md new file mode 100644 index 00000000..c7618f2a --- /dev/null +++ b/docs/CreatedMenuSectionItems.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CreatedMenuSectionItems +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionItems** | [**List<MenuSectionItem>**](MenuSectionItem.md) | Created Menu Section Items | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreditNoteDetails.md b/docs/CreditNoteDetails.md new file mode 100644 index 00000000..13f33404 --- /dev/null +++ b/docs/CreditNoteDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CreditNoteDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemainingCredit** | **double?** | Remaining credit | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CrossSellApi.md b/docs/CrossSellApi.md new file mode 100644 index 00000000..d110031b --- /dev/null +++ b/docs/CrossSellApi.md @@ -0,0 +1,78 @@ +# Flipdish.Api.CrossSellApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCrossSellMenuItems**](CrossSellApi.md#getcrosssellmenuitems) | **GET** /api/v1.0/{appId}/crossSell/menuItems | + + + +# **GetCrossSellMenuItems** +> RestApiResultCrossSellMenuItems GetCrossSellMenuItems (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCrossSellMenuItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CrossSellApi(); + var appId = appId_example; // string | + var menuId = 56; // int? | + var menuItemId = new List(); // List | + var limit = 56; // int? | + var totalValue = 1.2; // double? | + + try + { + RestApiResultCrossSellMenuItems result = apiInstance.GetCrossSellMenuItems(appId, menuId, menuItemId, limit, totalValue); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CrossSellApi.GetCrossSellMenuItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **menuId** | **int?**| | + **menuItemId** | [**List<int?>**](int?.md)| | + **limit** | **int?**| | + **totalValue** | **double?**| | + +### Return type + +[**RestApiResultCrossSellMenuItems**](RestApiResultCrossSellMenuItems.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CrossSellMenuItems.md b/docs/CrossSellMenuItems.md new file mode 100644 index 00000000..a2f3b706 --- /dev/null +++ b/docs/CrossSellMenuItems.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CrossSellMenuItems +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemIds** | **List<int?>** | Menu Item Id's | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CspReport.md b/docs/CspReport.md new file mode 100644 index 00000000..8d893468 --- /dev/null +++ b/docs/CspReport.md @@ -0,0 +1,15 @@ +# Flipdish.Model.CspReport +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Document_uri** | **string** | | [optional] +**Referrer** | **string** | | [optional] +**Violated_directive** | **string** | | [optional] +**Effective_directive** | **string** | | [optional] +**Original_policy** | **string** | | [optional] +**Blocked_uri** | **string** | | [optional] +**Status_code** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CspReportRequest.md b/docs/CspReportRequest.md new file mode 100644 index 00000000..0a917710 --- /dev/null +++ b/docs/CspReportRequest.md @@ -0,0 +1,9 @@ +# Flipdish.Model.CspReportRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Csp_report** | [**CspReport**](CspReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CurrencyData.md b/docs/CurrencyData.md new file mode 100644 index 00000000..19ef2a63 --- /dev/null +++ b/docs/CurrencyData.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CurrencyData +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | Currency | [optional] +**Value** | **double?** | Value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Customer.md b/docs/Customer.md new file mode 100644 index 00000000..ea5fe5c3 --- /dev/null +++ b/docs/Customer.md @@ -0,0 +1,15 @@ +# Flipdish.Model.Customer +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerId** | **int?** | Id of the customer | [optional] +**Name** | **string** | Customer name | [optional] +**RegistrationDate** | **DateTime?** | Customer registration date | [optional] +**PhoneNumber** | **string** | Phone Number in international format | [optional] +**CashOrdersEnabled** | **bool?** | Customer can place cash orders | [optional] +**CardOrdersEnabled** | **bool?** | Customer can place card orders | [optional] +**MarketingEnabled** | **bool?** | Customer can receive marketing | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerConsentUpdatedEvent.md b/docs/CustomerConsentUpdatedEvent.md new file mode 100644 index 00000000..6f3b3490 --- /dev/null +++ b/docs/CustomerConsentUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.CustomerConsentUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**Enabled** | **bool?** | Enabled | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerCreateModel.md b/docs/CustomerCreateModel.md new file mode 100644 index 00000000..577de54c --- /dev/null +++ b/docs/CustomerCreateModel.md @@ -0,0 +1,12 @@ +# Flipdish.Model.CustomerCreateModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | Customer Phone Number | [optional] +**AppType** | **string** | Customer AppType | [optional] +**Name** | **string** | Customer Name | [optional] +**MarketingEnabled** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerCreatedEvent.md b/docs/CustomerCreatedEvent.md new file mode 100644 index 00000000..1a50dc2a --- /dev/null +++ b/docs/CustomerCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.CustomerCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [optional] +**Description** | **string** | Description | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerDeliveryTrackingOrder.md b/docs/CustomerDeliveryTrackingOrder.md new file mode 100644 index 00000000..8d26ca27 --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrder.md @@ -0,0 +1,27 @@ +# Flipdish.Model.CustomerDeliveryTrackingOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | Order Id | [optional] +**Address** | **string** | Pretified address string in country format | [optional] +**DeliveryNotes** | **string** | Delivery Notes | [optional] +**StorePhoneNumber** | **string** | Phone number of the store | [optional] +**AppIconUrl** | **string** | App Icon of the store | [optional] +**OrderTrackingCode** | **string** | Order Tracking Code | [optional] +**PaymentMethodDescription** | **string** | Payment method description i.e Cash/Card/iDeal/Paypal | [optional] +**LastFourDigits** | **string** | Last 4 digits of the card if applicable otherwise null | [optional] +**OrderLines** | [**List<CustomerDeliveryTrackingOrderLine>**](CustomerDeliveryTrackingOrderLine.md) | Order lines of the order | [optional] +**TotalAmount** | **double?** | Total amount for the order including tax | [optional] +**Currency** | **string** | Currency | [optional] +**Latitude** | **double?** | Customer Location Latitude | [optional] +**Longitude** | **double?** | Customer Location Longitude | [optional] +**Placed** | **DateTime?** | Order placed time | [optional] +**RequestedFor** | **DateTime?** | Order requested for | [optional] +**DriverId** | **int?** | Driver Id | [optional] +**DriverName** | **string** | Driver Name | [optional] +**DriverImage** | **string** | Driver Image | [optional] +**EstimatedMinutesForDelivery** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerDeliveryTrackingOrderLine.md b/docs/CustomerDeliveryTrackingOrderLine.md new file mode 100644 index 00000000..17aeacc5 --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrderLine.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CustomerDeliveryTrackingOrderLine +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemName** | **string** | Item name from the order | [optional] +**SelectedOptions** | **List<string>** | Selected option names | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerMessages.md b/docs/CustomerMessages.md new file mode 100644 index 00000000..bb609c2f --- /dev/null +++ b/docs/CustomerMessages.md @@ -0,0 +1,10 @@ +# Flipdish.Model.CustomerMessages +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryMenuMessage** | **string** | Delivery menu message | [optional] +**PickupMenuMessage** | **string** | Pickup menu message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerSummary.md b/docs/CustomerSummary.md new file mode 100644 index 00000000..4e6dfb9d --- /dev/null +++ b/docs/CustomerSummary.md @@ -0,0 +1,14 @@ +# Flipdish.Model.CustomerSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Customer identifier | [optional] +**Name** | **string** | Customer name | [optional] +**EmailAddress** | **string** | Customer email address | [optional] +**PhoneNumberLocalFormat** | **string** | Customer local phone number | [optional] +**PhoneNumber** | **string** | Customer phone number | [optional] +**LanguagePreference** | **string** | Preferred language of the consumer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerUpdateModel.md b/docs/CustomerUpdateModel.md new file mode 100644 index 00000000..fdafe291 --- /dev/null +++ b/docs/CustomerUpdateModel.md @@ -0,0 +1,11 @@ +# Flipdish.Model.CustomerUpdateModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CashOrdersEnabled** | **bool?** | Customer can place cash orders | [optional] +**CardOrdersEnabled** | **bool?** | Customer can place card orders | [optional] +**MarketingEnabled** | **bool?** | Customer can receive marketing | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerUpdatedEvent.md b/docs/CustomerUpdatedEvent.md new file mode 100644 index 00000000..c7b107af --- /dev/null +++ b/docs/CustomerUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.CustomerUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Customer User info | [optional] +**Description** | **string** | Description | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Customers.md b/docs/Customers.md new file mode 100644 index 00000000..2f771c5c --- /dev/null +++ b/docs/Customers.md @@ -0,0 +1,9 @@ +# Flipdish.Model.Customers +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**List<Customer>**](Customer.md) | List of customers | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md new file mode 100644 index 00000000..639f21ec --- /dev/null +++ b/docs/CustomersApi.md @@ -0,0 +1,266 @@ +# Flipdish.Api.CustomersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCustomer**](CustomersApi.md#createcustomer) | **POST** /api/v1.0/{appId}/customers | +[**GetCustomerById**](CustomersApi.md#getcustomerbyid) | **GET** /api/v1.0/{appId}/customers/{customerId} | +[**GetCustomers**](CustomersApi.md#getcustomers) | **GET** /api/v1.0/{appId}/customers | +[**UpdateCustomerById**](CustomersApi.md#updatecustomerbyid) | **POST** /api/v1.0/{appId}/customers/{customerId} | + + + +# **CreateCustomer** +> RestApiResultCustomer CreateCustomer (string appId, CustomerCreateModel customerCreateModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateCustomerExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CustomersApi(); + var appId = appId_example; // string | + var customerCreateModel = new CustomerCreateModel(); // CustomerCreateModel | + + try + { + RestApiResultCustomer result = apiInstance.CreateCustomer(appId, customerCreateModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CustomersApi.CreateCustomer: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerCreateModel** | [**CustomerCreateModel**](CustomerCreateModel.md)| | + +### Return type + +[**RestApiResultCustomer**](RestApiResultCustomer.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCustomerById** +> RestApiResultCustomer GetCustomerById (string appId, int? customerId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCustomerByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CustomersApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + + try + { + RestApiResultCustomer result = apiInstance.GetCustomerById(appId, customerId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CustomersApi.GetCustomerById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + +### Return type + +[**RestApiResultCustomer**](RestApiResultCustomer.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCustomers** +> RestApiResultCustomers GetCustomers (string appId, string phoneNumber) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCustomersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CustomersApi(); + var appId = appId_example; // string | + var phoneNumber = phoneNumber_example; // string | + + try + { + RestApiResultCustomers result = apiInstance.GetCustomers(appId, phoneNumber); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CustomersApi.GetCustomers: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **phoneNumber** | **string**| | + +### Return type + +[**RestApiResultCustomers**](RestApiResultCustomers.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateCustomerById** +> RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateCustomerByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new CustomersApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + var updateCustomer = new CustomerUpdateModel(); // CustomerUpdateModel | + + try + { + RestApiResultCustomer result = apiInstance.UpdateCustomerById(appId, customerId, updateCustomer); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CustomersApi.UpdateCustomerById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + **updateCustomer** | [**CustomerUpdateModel**](CustomerUpdateModel.md)| | + +### Return type + +[**RestApiResultCustomer**](RestApiResultCustomer.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DashboardEmbed.md b/docs/DashboardEmbed.md new file mode 100644 index 00000000..9c65184a --- /dev/null +++ b/docs/DashboardEmbed.md @@ -0,0 +1,9 @@ +# Flipdish.Model.DashboardEmbed +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmbedUrl** | **string** | SSO URL generated by Flipdish to embed Looker dashboard | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryLocation.md b/docs/DeliveryLocation.md new file mode 100644 index 00000000..57a7dfae --- /dev/null +++ b/docs/DeliveryLocation.md @@ -0,0 +1,15 @@ +# Flipdish.Model.DeliveryLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Coordinates** | [**Coordinates**](Coordinates.md) | Geo cordinate | [optional] +**Building** | **string** | Building | [optional] +**Street** | **string** | Street | [optional] +**Town** | **string** | Town | [optional] +**PostCode** | **string** | Post code | [optional] +**DeliveryInstructions** | **string** | Delivery instructions | [optional] +**PrettyAddressString** | **string** | Formatted, pretty address string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZone.md b/docs/DeliveryZone.md new file mode 100644 index 00000000..7a319b70 --- /dev/null +++ b/docs/DeliveryZone.md @@ -0,0 +1,14 @@ +# Flipdish.Model.DeliveryZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Delivery Fee Area Id | [optional] +**FeeChargedToStore** | **double?** | Delivery Fee charged to store | [optional] +**DeliveryFee** | **double?** | Delivery fee (will not be set below 0) | [optional] +**MinimumDeliveryOrderAmount** | **double?** | Minimum delivery order amount (will not be set below 0) | [optional] +**WellKnownText** | **string** | Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) | [optional] +**IsEnabled** | **bool?** | Is delivery zone enabled | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZoneApi.md b/docs/DeliveryZoneApi.md new file mode 100644 index 00000000..8eb3439b --- /dev/null +++ b/docs/DeliveryZoneApi.md @@ -0,0 +1,263 @@ +# Flipdish.Api.DeliveryZoneApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddDeliveryZone**](DeliveryZoneApi.md#adddeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | +[**GetDeliveryZones**](DeliveryZoneApi.md#getdeliveryzones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | +[**RemoveDeliveryZone**](DeliveryZoneApi.md#removedeliveryzone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +[**UpdateDeliveryZone**](DeliveryZoneApi.md#updatedeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | + + + +# **AddDeliveryZone** +> RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase deliveryZoneBase) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddDeliveryZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeliveryZoneApi(); + var storeId = 56; // int? | + var deliveryZoneBase = new DeliveryZoneBase(); // DeliveryZoneBase | + + try + { + RestApiResultDeliveryZone result = apiInstance.AddDeliveryZone(storeId, deliveryZoneBase); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeliveryZoneApi.AddDeliveryZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryZoneBase** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | + +### Return type + +[**RestApiResultDeliveryZone**](RestApiResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDeliveryZones** +> RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetDeliveryZonesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeliveryZoneApi(); + var storeId = 56; // int? | + + try + { + RestApiArrayResultDeliveryZone result = apiInstance.GetDeliveryZones(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeliveryZoneApi.GetDeliveryZones: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultDeliveryZone**](RestApiArrayResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveDeliveryZone** +> void RemoveDeliveryZone (int? storeId, int? deliveryZoneId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveDeliveryZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeliveryZoneApi(); + var storeId = 56; // int? | + var deliveryZoneId = 56; // int? | + + try + { + apiInstance.RemoveDeliveryZone(storeId, deliveryZoneId); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeliveryZoneApi.RemoveDeliveryZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryZoneId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateDeliveryZone** +> RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateDeliveryZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeliveryZoneApi(); + var storeId = 56; // int? | + var deliveryZoneId = 56; // int? | + var deliveryZone = new DeliveryZoneBase(); // DeliveryZoneBase | + + try + { + RestApiResultDeliveryZone result = apiInstance.UpdateDeliveryZone(storeId, deliveryZoneId, deliveryZone); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeliveryZoneApi.UpdateDeliveryZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryZoneId** | **int?**| | + **deliveryZone** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | + +### Return type + +[**RestApiResultDeliveryZone**](RestApiResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZoneBase.md b/docs/DeliveryZoneBase.md new file mode 100644 index 00000000..09c616bb --- /dev/null +++ b/docs/DeliveryZoneBase.md @@ -0,0 +1,12 @@ +# Flipdish.Model.DeliveryZoneBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryFee** | **double?** | Delivery fee (will not be set below 0) | [optional] +**MinimumDeliveryOrderAmount** | **double?** | Minimum delivery order amount (will not be set below 0) | [optional] +**WellKnownText** | **string** | Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) | [optional] +**IsEnabled** | **bool?** | Is delivery zone enabled | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZoneCreatedEvent.md b/docs/DeliveryZoneCreatedEvent.md new file mode 100644 index 00000000..a1950342 --- /dev/null +++ b/docs/DeliveryZoneCreatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.DeliveryZoneCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Created Delivery Zone | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZoneDeletedEvent.md b/docs/DeliveryZoneDeletedEvent.md new file mode 100644 index 00000000..9594fe6c --- /dev/null +++ b/docs/DeliveryZoneDeletedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.DeliveryZoneDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Deleted Delivery Zone | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeliveryZoneUpdatedEvent.md b/docs/DeliveryZoneUpdatedEvent.md new file mode 100644 index 00000000..7edc8fa5 --- /dev/null +++ b/docs/DeliveryZoneUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.DeliveryZoneUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | Updated Delivery Zone | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DepositReturnFeesSummary.md b/docs/DepositReturnFeesSummary.md new file mode 100644 index 00000000..478874fe --- /dev/null +++ b/docs/DepositReturnFeesSummary.md @@ -0,0 +1,11 @@ +# Flipdish.Model.DepositReturnFeesSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int?** | | [optional] +**Fee** | **double?** | | [optional] +**Total** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DeviceApi.md b/docs/DeviceApi.md new file mode 100644 index 00000000..2f939fe0 --- /dev/null +++ b/docs/DeviceApi.md @@ -0,0 +1,268 @@ +# Flipdish.Api.DeviceApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AssignDevice**](DeviceApi.md#assigndevice) | **POST** /api/v1.0/{appId}/devices/assign | +[**EnrollDevice**](DeviceApi.md#enrolldevice) | **POST** /api/v1.0/{appId}/devices/enroll | +[**GetDeviceDetails**](DeviceApi.md#getdevicedetails) | **GET** /api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId} | +[**SearchDevices**](DeviceApi.md#searchdevices) | **GET** /api/v1.0/{appId}/devices/search | + + + +# **AssignDevice** +> RestApiResultClientDeviceEnrollmentResult AssignDevice (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignDeviceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeviceApi(); + var appId = appId_example; // string | + var assignDeviceRequest = new ClientDeviceAssignEnrolledDevice(); // ClientDeviceAssignEnrolledDevice | + + try + { + RestApiResultClientDeviceEnrollmentResult result = apiInstance.AssignDevice(appId, assignDeviceRequest); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeviceApi.AssignDevice: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **assignDeviceRequest** | [**ClientDeviceAssignEnrolledDevice**](ClientDeviceAssignEnrolledDevice.md)| | + +### Return type + +[**RestApiResultClientDeviceEnrollmentResult**](RestApiResultClientDeviceEnrollmentResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **EnrollDevice** +> RestApiResultClientDeviceEnrollmentResult EnrollDevice (string appId, ClientDeviceEnroll deviceEnrollmentRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class EnrollDeviceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeviceApi(); + var appId = appId_example; // string | + var deviceEnrollmentRequest = new ClientDeviceEnroll(); // ClientDeviceEnroll | + + try + { + RestApiResultClientDeviceEnrollmentResult result = apiInstance.EnrollDevice(appId, deviceEnrollmentRequest); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeviceApi.EnrollDevice: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceEnrollmentRequest** | [**ClientDeviceEnroll**](ClientDeviceEnroll.md)| | + +### Return type + +[**RestApiResultClientDeviceEnrollmentResult**](RestApiResultClientDeviceEnrollmentResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDeviceDetails** +> RestApiResultClientDevice GetDeviceDetails (string appId, string deviceModel, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetDeviceDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeviceApi(); + var appId = appId_example; // string | + var deviceModel = deviceModel_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultClientDevice result = apiInstance.GetDeviceDetails(appId, deviceModel, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeviceApi.GetDeviceDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceModel** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultClientDevice**](RestApiResultClientDevice.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchDevices** +> RestApiArrayResultClientDeviceSummary SearchDevices (string appId, int? storeId = null, string deviceModel = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchDevicesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DeviceApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | (optional) + var deviceModel = deviceModel_example; // string | (optional) + + try + { + RestApiArrayResultClientDeviceSummary result = apiInstance.SearchDevices(appId, storeId, deviceModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DeviceApi.SearchDevices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | [optional] + **deviceModel** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultClientDeviceSummary**](RestApiArrayResultClientDeviceSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DeviceSettings.md b/docs/DeviceSettings.md new file mode 100644 index 00000000..10c133cf --- /dev/null +++ b/docs/DeviceSettings.md @@ -0,0 +1,11 @@ +# Flipdish.Model.DeviceSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Volume** | **int?** | Gets or sets the device volume | +**FontSize** | **double?** | Gets or sets the font size used on the device | +**Brightness** | **int?** | Gets or sets the display brightness on the device | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DnsRecordInformation.md b/docs/DnsRecordInformation.md new file mode 100644 index 00000000..e0c5706f --- /dev/null +++ b/docs/DnsRecordInformation.md @@ -0,0 +1,11 @@ +# Flipdish.Model.DnsRecordInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCNameReady** | **bool?** | indicates whether the CNAME record is ready or not. | [optional] +**IsAReady** | **bool?** | indicates whether the A record is ready or not. | [optional] +**IsApiCNameReady** | **bool?** | indicates whether the API CNAME record is ready or not. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DnsVerifiedEvent.md b/docs/DnsVerifiedEvent.md new file mode 100644 index 00000000..c06dd562 --- /dev/null +++ b/docs/DnsVerifiedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.DnsVerifiedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | Description | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DriverLoginModel.md b/docs/DriverLoginModel.md new file mode 100644 index 00000000..bacf01b2 --- /dev/null +++ b/docs/DriverLoginModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.DriverLoginModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | Phone number | +**Code** | **string** | Code | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DriverRequestLoginPinModel.md b/docs/DriverRequestLoginPinModel.md new file mode 100644 index 00000000..5c94b826 --- /dev/null +++ b/docs/DriverRequestLoginPinModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.DriverRequestLoginPinModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | Email address | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DriversApi.md b/docs/DriversApi.md new file mode 100644 index 00000000..2ed8a7ff --- /dev/null +++ b/docs/DriversApi.md @@ -0,0 +1,678 @@ +# Flipdish.Api.DriversApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DriversAddDriverNotificationToken**](DriversApi.md#driversadddrivernotificationtoken) | **POST** /api/v1.0/drivers/token | +[**DriversDeleteDriverProfileImage**](DriversApi.md#driversdeletedriverprofileimage) | **DELETE** /api/v1.0/drivers/profile/image | +[**DriversDriverLogin**](DriversApi.md#driversdriverlogin) | **POST** /api/v1.0/drivers/login | +[**DriversDriverRequestLoginCodeSms**](DriversApi.md#driversdriverrequestlogincodesms) | **POST** /api/v1.0/drivers/pin | +[**DriversGetDriverProfile**](DriversApi.md#driversgetdriverprofile) | **GET** /api/v1.0/drivers/profile | +[**DriversGetStoresForDriver**](DriversApi.md#driversgetstoresfordriver) | **GET** /api/v1.0/drivers/assignedstores | +[**DriversRemoveDriverNotificationToken**](DriversApi.md#driversremovedrivernotificationtoken) | **DELETE** /api/v1.0/drivers/token | +[**DriversSetDriverPresenceForStore**](DriversApi.md#driverssetdriverpresenceforstore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +[**DriversSetDriverProfileImage**](DriversApi.md#driverssetdriverprofileimage) | **POST** /api/v1.0/drivers/profile/image | +[**DriversUpdateDeliveryTrackingStatus**](DriversApi.md#driversupdatedeliverytrackingstatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | +[**DriversUpdateDriverProfile**](DriversApi.md#driversupdatedriverprofile) | **POST** /api/v1.0/drivers/profile | + + + +# **DriversAddDriverNotificationToken** +> Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversAddDriverNotificationTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var updateDriverToken = new UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | + + try + { + Object result = apiInstance.DriversAddDriverNotificationToken(updateDriverToken); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversAddDriverNotificationToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversDeleteDriverProfileImage** +> Object DriversDeleteDriverProfileImage () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversDeleteDriverProfileImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + + try + { + Object result = apiInstance.DriversDeleteDriverProfileImage(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversDeleteDriverProfileImage: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversDriverLogin** +> Object DriversDriverLogin (DriverLoginModel driverLoginModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversDriverLoginExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var driverLoginModel = new DriverLoginModel(); // DriverLoginModel | + + try + { + Object result = apiInstance.DriversDriverLogin(driverLoginModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversDriverLogin: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverLoginModel** | [**DriverLoginModel**](DriverLoginModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversDriverRequestLoginCodeSms** +> Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversDriverRequestLoginCodeSmsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var driverRequestLoginPinModel = new DriverRequestLoginPinModel(); // DriverRequestLoginPinModel | + + try + { + Object result = apiInstance.DriversDriverRequestLoginCodeSms(driverRequestLoginPinModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversDriverRequestLoginCodeSms: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverRequestLoginPinModel** | [**DriverRequestLoginPinModel**](DriverRequestLoginPinModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversGetDriverProfile** +> Object DriversGetDriverProfile () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversGetDriverProfileExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + + try + { + Object result = apiInstance.DriversGetDriverProfile(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversGetDriverProfile: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversGetStoresForDriver** +> Object DriversGetStoresForDriver () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversGetStoresForDriverExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + + try + { + Object result = apiInstance.DriversGetStoresForDriver(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversGetStoresForDriver: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversRemoveDriverNotificationToken** +> Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversRemoveDriverNotificationTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var removeDriverToken = new UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | + + try + { + Object result = apiInstance.DriversRemoveDriverNotificationToken(removeDriverToken); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversRemoveDriverNotificationToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **removeDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversSetDriverPresenceForStore** +> Object DriversSetDriverPresenceForStore (int? storeId, string presence) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversSetDriverPresenceForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var storeId = 56; // int? | + var presence = presence_example; // string | + + try + { + Object result = apiInstance.DriversSetDriverPresenceForStore(storeId, presence); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversSetDriverPresenceForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **presence** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversSetDriverProfileImage** +> Object DriversSetDriverProfileImage () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversSetDriverProfileImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + + try + { + Object result = apiInstance.DriversSetDriverProfileImage(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversSetDriverProfileImage: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversUpdateDeliveryTrackingStatus** +> Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversUpdateDeliveryTrackingStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var orderId = 56; // int? | + var deliveryTrackingStatus = deliveryTrackingStatus_example; // string | + + try + { + Object result = apiInstance.DriversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversUpdateDeliveryTrackingStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **deliveryTrackingStatus** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DriversUpdateDriverProfile** +> Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DriversUpdateDriverProfileExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new DriversApi(); + var updateDriverProfile = new UpdateDriverProfileModel(); // UpdateDriverProfileModel | + + try + { + Object result = apiInstance.DriversUpdateDriverProfile(updateDriverProfile); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DriversApi.DriversUpdateDriverProfile: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverProfile** | [**UpdateDriverProfileModel**](UpdateDriverProfileModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DynamicFormField.md b/docs/DynamicFormField.md new file mode 100644 index 00000000..19fbc0fc --- /dev/null +++ b/docs/DynamicFormField.md @@ -0,0 +1,16 @@ +# Flipdish.Model.DynamicFormField +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | | [optional] +**Label** | **string** | | [optional] +**Placeholder** | **string** | | [optional] +**Rules** | [**DynamicFormRules**](DynamicFormRules.md) | | [optional] +**Mapping** | **Dictionary<string, string>** | | [optional] +**Modifiers** | **List<string>** | | [optional] +**Value** | **Object** | | [optional] +**Scopes** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DynamicFormFieldOption.md b/docs/DynamicFormFieldOption.md new file mode 100644 index 00000000..8c3d7aba --- /dev/null +++ b/docs/DynamicFormFieldOption.md @@ -0,0 +1,10 @@ +# Flipdish.Model.DynamicFormFieldOption +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Display** | **string** | | [optional] +**Value** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DynamicFormRule.md b/docs/DynamicFormRule.md new file mode 100644 index 00000000..7a111aa1 --- /dev/null +++ b/docs/DynamicFormRule.md @@ -0,0 +1,11 @@ +# Flipdish.Model.DynamicFormRule +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **Object** | | [optional] +**Message** | **string** | | [optional] +**Scopes** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/DynamicFormRules.md b/docs/DynamicFormRules.md new file mode 100644 index 00000000..bbd0dfff --- /dev/null +++ b/docs/DynamicFormRules.md @@ -0,0 +1,13 @@ +# Flipdish.Model.DynamicFormRules +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxLength** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**MinLength** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Required** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Pattern** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Predefined** | [**List<DynamicFormFieldOption>**](DynamicFormFieldOption.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EmvNotificationEvent.md b/docs/EmvNotificationEvent.md new file mode 100644 index 00000000..c6e7eace --- /dev/null +++ b/docs/EmvNotificationEvent.md @@ -0,0 +1,27 @@ +# Flipdish.Model.EmvNotificationEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Notification** | **string** | Notification Sent | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**TerminalId** | **string** | TerminalId | [optional] +**Description** | **string** | Description | [optional] +**ExpDate** | **string** | Expirey Date | [optional] +**CardType** | **string** | Card Type | [optional] +**PaymentMethod** | **string** | Payment Method | [optional] +**AccountNumber** | **string** | Masked Account Number | [optional] +**AuthCode** | **string** | Auth Code | [optional] +**ProviderMessage** | **string** | Payment Provider Message | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EmvTerminal.md b/docs/EmvTerminal.md new file mode 100644 index 00000000..d356a3f9 --- /dev/null +++ b/docs/EmvTerminal.md @@ -0,0 +1,14 @@ +# Flipdish.Model.EmvTerminal +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmvTerminalId** | **int?** | Flipdish Identifier of Terminal | [optional] +**TerminalId** | **string** | External Identifier of Terminal | [optional] +**Url** | **string** | URL at which terminal can be accessed | [optional] +**Token** | **string** | TOKEN required to access terminal | [optional] +**SoftwareHouseId** | **string** | Identifies us to Provider | [optional] +**InstallerId** | **string** | Identifies installer of terminal | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EmvTerminalWithAssignments.md b/docs/EmvTerminalWithAssignments.md new file mode 100644 index 00000000..72aaa0aa --- /dev/null +++ b/docs/EmvTerminalWithAssignments.md @@ -0,0 +1,14 @@ +# Flipdish.Model.EmvTerminalWithAssignments +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmvTerminalId** | **string** | Flipdish Internal identifier of the Terminal | [optional] +**TerminalId** | **string** | External Identifier of the Terminal | [optional] +**IsAssignedToHydraDevice** | **bool?** | true if the terminal is assigned to a hydra device (e.g. a kiosk) | [optional] +**HydraConfigId** | **int?** | hydra device id (null if the terminal is not assigned to any hydra device) | [optional] +**HydraDeviceId** | **string** | external hydra device id (null if the terminal is not assigned to any hydra device) | [optional] +**HydraName** | **string** | hydra device name (null if the terminal is not assigned to any hydra device) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EndUserFeeConfig.md b/docs/EndUserFeeConfig.md new file mode 100644 index 00000000..10760bc7 --- /dev/null +++ b/docs/EndUserFeeConfig.md @@ -0,0 +1,15 @@ +# Flipdish.Model.EndUserFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | **string** | The order channel this fee config applies to | [optional] +**PaymentMethod** | **string** | The payment method this fee config applies to | [optional] +**MinOrderAmount** | **double?** | Order amount below which MinFixedFee is charged instead of the percent/fixed calculation | [optional] +**MinFixedFee** | **double?** | Fixed fee charged for orders at or below MinOrderAmount | [optional] +**PercentFee** | **double?** | Percentage fee applied to the order amount | [optional] +**FixedFee** | **double?** | Fixed fee compared against the percentage fee - the greater of the two is charged | [optional] +**Cap** | **double?** | Maximum fee that can be charged | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EndUserFeesApi.md b/docs/EndUserFeesApi.md new file mode 100644 index 00000000..90328cf8 --- /dev/null +++ b/docs/EndUserFeesApi.md @@ -0,0 +1,204 @@ +# Flipdish.Api.EndUserFeesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEndUserFeeConfig**](EndUserFeesApi.md#createenduserfeeconfig) | **POST** /api/v1.0/{appId}/stores/{storeId}/end-user-fees | +[**GetEndUserFeesForStore**](EndUserFeesApi.md#getenduserfeesforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/end-user-fees | +[**SetV2FeeCalculation**](EndUserFeesApi.md#setv2feecalculation) | **POST** /api/v1.0/{appId}/stores/{storeId}/end-user-fees/v2-fee-calculation | + + + +# **CreateEndUserFeeConfig** +> Object CreateEndUserFeeConfig (CreateEndUserFeeConfig input, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateEndUserFeeConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EndUserFeesApi(); + var input = new CreateEndUserFeeConfig(); // CreateEndUserFeeConfig | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.CreateEndUserFeeConfig(input, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EndUserFeesApi.CreateEndUserFeeConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**CreateEndUserFeeConfig**](CreateEndUserFeeConfig.md)| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEndUserFeesForStore** +> RestApiResultGetEndUserFeeConfigsResponse GetEndUserFeesForStore (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEndUserFeesForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EndUserFeesApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultGetEndUserFeeConfigsResponse result = apiInstance.GetEndUserFeesForStore(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EndUserFeesApi.GetEndUserFeesForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultGetEndUserFeeConfigsResponse**](RestApiResultGetEndUserFeeConfigsResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetV2FeeCalculation** +> RestApiResultSetV2FeeCalculationRequest SetV2FeeCalculation (SetV2FeeCalculationRequest input, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetV2FeeCalculationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EndUserFeesApi(); + var input = new SetV2FeeCalculationRequest(); // SetV2FeeCalculationRequest | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultSetV2FeeCalculationRequest result = apiInstance.SetV2FeeCalculation(input, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EndUserFeesApi.SetV2FeeCalculation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**SetV2FeeCalculationRequest**](SetV2FeeCalculationRequest.md)| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultSetV2FeeCalculationRequest**](RestApiResultSetV2FeeCalculationRequest.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EventSearchResult.md b/docs/EventSearchResult.md new file mode 100644 index 00000000..445020ab --- /dev/null +++ b/docs/EventSearchResult.md @@ -0,0 +1,150 @@ +# Flipdish.Model.EventSearchResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppCreatedEvent** | [**List<AppCreatedEvent>**](AppCreatedEvent.md) | App Created Event | [optional] +**AppUpdatedEvent** | [**List<AppUpdatedEvent>**](AppUpdatedEvent.md) | App Updated Event | [optional] +**AnalyticsClientEvent** | [**List<AnalyticsClientEvent>**](AnalyticsClientEvent.md) | Client Analytics events | [optional] +**OrderAcceptedEvent** | [**List<OrderAcceptedEvent>**](OrderAcceptedEvent.md) | Order accepted events | [optional] +**OrderDispatchedEvent** | [**List<OrderDispatchedEvent>**](OrderDispatchedEvent.md) | Order dispatched events | [optional] +**OrderCustomerTrackingCreatedEvent** | [**List<OrderCustomerTrackingCreatedEvent>**](OrderCustomerTrackingCreatedEvent.md) | Order delivery tracking created events | [optional] +**OrderDeliveryTrackingStatusUpdatedEvent** | [**List<OrderDeliveryTrackingStatusUpdatedEvent>**](OrderDeliveryTrackingStatusUpdatedEvent.md) | Order delivery tracking updated events | [optional] +**OrderBatchPublishedEvent** | [**List<OrderBatchPublishedEvent>**](OrderBatchPublishedEvent.md) | Order Batch published event | [optional] +**OrderCreatedEvent** | [**List<OrderCreatedEvent>**](OrderCreatedEvent.md) | Order created events | [optional] +**OrderRatingUpdatedEvent** | [**List<OrderRatingUpdatedEvent>**](OrderRatingUpdatedEvent.md) | Order rating updated events | [optional] +**OrderRefundedEvent** | [**List<OrderRefundedEvent>**](OrderRefundedEvent.md) | Order refunded events | [optional] +**OrderRejectedEvent** | [**List<OrderRejectedEvent>**](OrderRejectedEvent.md) | Order rejected events | [optional] +**OrderTipUpdatedEvent** | [**List<OrderTipUpdatedEvent>**](OrderTipUpdatedEvent.md) | Order tip updated events | [optional] +**OrderTerminalNotifications** | [**List<EmvNotificationEvent>**](EmvNotificationEvent.md) | Order Terminal Notification events | [optional] +**StoreCreatedEvent** | [**List<StoreCreatedEvent>**](StoreCreatedEvent.md) | Store created events | [optional] +**StoreDeletedEvent** | [**List<StoreDeletedEvent>**](StoreDeletedEvent.md) | Store deleted events | [optional] +**StoreAddressUpdatedEvent** | [**List<StoreAddressUpdatedEvent>**](StoreAddressUpdatedEvent.md) | Store address updated events | [optional] +**StoreKioskSettingUpdatedEvent** | [**List<StoreKioskSettingUpdatedEvent>**](StoreKioskSettingUpdatedEvent.md) | Store kiosk setting updated events | [optional] +**DeliveryZoneCreatedEvent** | [**List<DeliveryZoneCreatedEvent>**](DeliveryZoneCreatedEvent.md) | Store delivery zone created events | [optional] +**DeliveryZoneUpdatedEvent** | [**List<DeliveryZoneUpdatedEvent>**](DeliveryZoneUpdatedEvent.md) | Store delivery zone updated events | [optional] +**DeliveryZoneDeletedEvent** | [**List<DeliveryZoneDeletedEvent>**](DeliveryZoneDeletedEvent.md) | Store delivery zone deleted events | [optional] +**StoreOpeningHoursUpdatedEvent** | [**List<StoreOpeningHoursUpdatedEvent>**](StoreOpeningHoursUpdatedEvent.md) | Store opening hours updated events | [optional] +**StoreMenuAssignedEvent** | [**List<StoreMenuAssignedEvent>**](StoreMenuAssignedEvent.md) | Store opening hours updated events | [optional] +**StoreBusinessHoursOverrideCreatedEvent** | [**List<StoreBusinessHoursOverrideCreatedEvent>**](StoreBusinessHoursOverrideCreatedEvent.md) | Store business hours override created events | [optional] +**StoreBusinessHoursOverrideDeletedEvent** | [**List<StoreBusinessHoursOverrideDeletedEvent>**](StoreBusinessHoursOverrideDeletedEvent.md) | Store business hours override deleted events | [optional] +**StoreArchivedEvent** | [**List<StoreArchivedEvent>**](StoreArchivedEvent.md) | Store archived events | [optional] +**StoreUnarchivedEvent** | [**List<StoreUnarchivedEvent>**](StoreUnarchivedEvent.md) | Store unarchived events | [optional] +**StorePublishedEvent** | [**List<StorePublishedEvent>**](StorePublishedEvent.md) | Store published events | [optional] +**StoreUnpublishedEvent** | [**List<StoreUnpublishedEvent>**](StoreUnpublishedEvent.md) | Store unpublished events | [optional] +**StoreUpdatedEvent** | [**List<StoreUpdatedEvent>**](StoreUpdatedEvent.md) | Store updated events | [optional] +**StorePreOrderConfigUpdatedEvent** | [**List<StorePreOrderConfigUpdatedEvent>**](StorePreOrderConfigUpdatedEvent.md) | Store updated events | [optional] +**StoreLogoCreatedEvent** | [**List<StoreLogoCreatedEvent>**](StoreLogoCreatedEvent.md) | Store logo created events | [optional] +**StoreLogoUpdatedEvent** | [**List<StoreLogoUpdatedEvent>**](StoreLogoUpdatedEvent.md) | Store logo updated events | [optional] +**StoreLogoDeletedEvent** | [**List<StoreLogoDeletedEvent>**](StoreLogoDeletedEvent.md) | Store logo deleted events | [optional] +**MenuCreatedEvent** | [**List<MenuCreatedEvent>**](MenuCreatedEvent.md) | Menu created events | [optional] +**MenuAsyncCreationCompletedEvent** | [**List<MenuAsyncCreationCompletedEvent>**](MenuAsyncCreationCompletedEvent.md) | Menu async creation completed events | [optional] +**MenuUpdatedEvent** | [**List<MenuUpdatedEvent>**](MenuUpdatedEvent.md) | Menu updated events | [optional] +**MenuUploadedEvent** | [**List<MenuUploadedEvent>**](MenuUploadedEvent.md) | Menu uploaded events | [optional] +**MenuBulkEditEvent** | [**List<MenuBulkEditEvent>**](MenuBulkEditEvent.md) | Menu bulk events | [optional] +**MenuSectionCreatedEvent** | [**List<MenuSectionCreatedEvent>**](MenuSectionCreatedEvent.md) | Menu section created events | [optional] +**MenuSectionUpdatedEvent** | [**List<MenuSectionUpdatedEvent>**](MenuSectionUpdatedEvent.md) | Menu section updated events | [optional] +**MenuSectionDeletedEvent** | [**List<MenuSectionDeletedEvent>**](MenuSectionDeletedEvent.md) | Menu section deleted events | [optional] +**MenuSectionItemCreatedEvent** | [**List<MenuSectionItemCreatedEvent>**](MenuSectionItemCreatedEvent.md) | Menu section item created events | [optional] +**MenuSectionItemUpdatedEvent** | [**List<MenuSectionItemUpdatedEvent>**](MenuSectionItemUpdatedEvent.md) | Menu section item updated events | [optional] +**MenuSectionItemDeletedEvent** | [**List<MenuSectionItemDeletedEvent>**](MenuSectionItemDeletedEvent.md) | Menu section item deleted events | [optional] +**MenuItemOptionSetCreatedEvent** | [**List<MenuItemOptionSetCreatedEvent>**](MenuItemOptionSetCreatedEvent.md) | Menu item option set created events | [optional] +**MenuItemOptionSetUpdatedEvent** | [**List<MenuItemOptionSetUpdatedEvent>**](MenuItemOptionSetUpdatedEvent.md) | Menu item option set updated events | [optional] +**MenuItemOptionSetDeletedEvent** | [**List<MenuItemOptionSetDeletedEvent>**](MenuItemOptionSetDeletedEvent.md) | Menu item option set deleted events | [optional] +**MenuItemOptionSetItemCreatedEvent** | [**List<MenuItemOptionSetItemCreatedEvent>**](MenuItemOptionSetItemCreatedEvent.md) | Menu item option set item created events | [optional] +**MenuItemOptionSetItemUpdatedEvent** | [**List<MenuItemOptionSetItemUpdatedEvent>**](MenuItemOptionSetItemUpdatedEvent.md) | Menu item option set item updated events | [optional] +**MenuItemOptionSetItemDeletedEvent** | [**List<MenuItemOptionSetItemDeletedEvent>**](MenuItemOptionSetItemDeletedEvent.md) | Menu item option set item deleted events | [optional] +**MenuCheckpointCreatedEvent** | [**List<MenuCheckpointCreatedEvent>**](MenuCheckpointCreatedEvent.md) | Menu checkpoint created event | [optional] +**StoreGroupCreatedEvent** | [**List<StoreGroupCreatedEvent>**](StoreGroupCreatedEvent.md) | Store group created events | [optional] +**StoreGroupUpdatedEvent** | [**List<StoreGroupUpdatedEvent>**](StoreGroupUpdatedEvent.md) | Store group updated events | [optional] +**StoreGroupDeletedEvent** | [**List<StoreGroupDeletedEvent>**](StoreGroupDeletedEvent.md) | Store group deleted events | [optional] +**CustomerCreatedEvent** | [**List<CustomerCreatedEvent>**](CustomerCreatedEvent.md) | Customer created events | [optional] +**CustomerUpdatedEvent** | [**List<CustomerUpdatedEvent>**](CustomerUpdatedEvent.md) | Customer updated events | [optional] +**CustomerConsentUpdatedEvent** | [**List<CustomerConsentUpdatedEvent>**](CustomerConsentUpdatedEvent.md) | Customer consent updated events | [optional] +**WebhookSubscriptionCreatedEvent** | [**List<WebhookSubscriptionCreatedEvent>**](WebhookSubscriptionCreatedEvent.md) | Webhook subscription created events | [optional] +**WebhookSubscriptionUpdatedEvent** | [**List<WebhookSubscriptionUpdatedEvent>**](WebhookSubscriptionUpdatedEvent.md) | Webhook subscription updated events | [optional] +**WebhookSubscriptionDeletedEvent** | [**List<WebhookSubscriptionDeletedEvent>**](WebhookSubscriptionDeletedEvent.md) | Webhook subscription deleted events | [optional] +**PrinterTurnedOnEvent** | [**List<PrinterTurnedOnEvent>**](PrinterTurnedOnEvent.md) | Printer turned ON event | [optional] +**PrinterTurnedOffEvent** | [**List<PrinterTurnedOffEvent>**](PrinterTurnedOffEvent.md) | Printer turned OFF event | [optional] +**PrinterAssignedToStoreEvent** | [**List<PrinterAssignedToStoreEvent>**](PrinterAssignedToStoreEvent.md) | Printer assigned to store event | [optional] +**PrinterUnassignedFromStoreEvent** | [**List<PrinterUnassignedFromStoreEvent>**](PrinterUnassignedFromStoreEvent.md) | Printer unassigned from store event | [optional] +**PhoneCallStartedEvent** | [**List<PhoneCallStartedEvent>**](PhoneCallStartedEvent.md) | Phone call started event | [optional] +**PhoneCallEndedEvent** | [**List<PhoneCallEndedEvent>**](PhoneCallEndedEvent.md) | Phone call ended event | [optional] +**TelephonyConfigUpdatedEvent** | [**List<TelephonyConfigUpdatedEvent>**](TelephonyConfigUpdatedEvent.md) | Telephony config updated event | [optional] +**ChannelStoresUpdatedEvent** | [**List<ChannelStoresUpdatedEvent>**](ChannelStoresUpdatedEvent.md) | Channel stores updated event | [optional] +**LoyaltyCampaignCreatedEvent** | [**List<LoyaltyCampaignCreatedEvent>**](LoyaltyCampaignCreatedEvent.md) | Loyalty campaign created event | [optional] +**LoyaltyCampaignDeletedEvent** | [**List<LoyaltyCampaignDeletedEvent>**](LoyaltyCampaignDeletedEvent.md) | Loyalty campaign deleted event | [optional] +**LoyaltyCampaignUpdatedEvent** | [**List<LoyaltyCampaignUpdatedEvent>**](LoyaltyCampaignUpdatedEvent.md) | Loyalty campaign updated event | [optional] +**RetentionCampaignCreatedEvent** | [**List<RetentionCampaignCreatedEvent>**](RetentionCampaignCreatedEvent.md) | Retention campaign created event | [optional] +**RetentionCampaignDeletedEvent** | [**List<RetentionCampaignDeletedEvent>**](RetentionCampaignDeletedEvent.md) | Retention campaign deleted event | [optional] +**RetentionCampaignUpdatedEvent** | [**List<RetentionCampaignUpdatedEvent>**](RetentionCampaignUpdatedEvent.md) | Retention campaign updated event | [optional] +**SmsReceivedEvent** | [**List<SmsReceivedEvent>**](SmsReceivedEvent.md) | Sms received event | [optional] +**UserLoginEvent** | [**List<UserLoginEvent>**](UserLoginEvent.md) | User login event | [optional] +**UserCreatedEvent** | [**List<UserCreatedEvent>**](UserCreatedEvent.md) | User created event | [optional] +**UserUpdatedEvent** | [**List<UserUpdatedEvent>**](UserUpdatedEvent.md) | User updated event | [optional] +**UserDeletedEvent** | [**List<UserDeletedEvent>**](UserDeletedEvent.md) | User deleted event | [optional] +**UserCreatedPasswordEvent** | [**List<UserPasswordCreatedEvent>**](UserPasswordCreatedEvent.md) | User password created event | [optional] +**UserAnsweredSignupQuestionsEvent** | [**List<UserAnsweredSignupQuestionsEvent>**](UserAnsweredSignupQuestionsEvent.md) | User answered signup questions event | [optional] +**VoucherCreatedEvent** | [**List<VoucherCreatedEvent>**](VoucherCreatedEvent.md) | Voucher created event | [optional] +**VoucherUpdatedEvent** | [**List<VoucherUpdatedEvent>**](VoucherUpdatedEvent.md) | Voucher updated event | [optional] +**VoucherDeletedEvent** | [**List<VoucherDeletedEvent>**](VoucherDeletedEvent.md) | Voucher deleted event | [optional] +**VoucherAppliedEvent** | [**List<VoucherAppliedEvent>**](VoucherAppliedEvent.md) | Voucher applied event | [optional] +**TeammateInviteSentEvent** | [**List<TeammateInviteSentEvent>**](TeammateInviteSentEvent.md) | Teammate invite sent event | [optional] +**TeammateInviteAcceptedEvent** | [**List<TeammateInviteAcceptedEvent>**](TeammateInviteAcceptedEvent.md) | Teammate invite accepted event | [optional] +**TeammateUpdatedEvent** | [**List<TeammateUpdatedEvent>**](TeammateUpdatedEvent.md) | Teammate updated event | [optional] +**TeammateDeletedEvent** | [**List<TeammateDeletedEvent>**](TeammateDeletedEvent.md) | Teammate deleted event | [optional] +**BankAccountCreatedEvent** | [**List<BankAccountCreatedEvent>**](BankAccountCreatedEvent.md) | Bank account created event | [optional] +**BankAccountUpdatedEvent** | [**List<BankAccountUpdatedEvent>**](BankAccountUpdatedEvent.md) | Bank account updated event | [optional] +**BankAccountDeletedEvent** | [**List<BankAccountDeletedEvent>**](BankAccountDeletedEvent.md) | Bank account updated event | [optional] +**BankAccountAssignedEvent** | [**List<BankAccountAssignedEvent>**](BankAccountAssignedEvent.md) | Bank account assigned event | [optional] +**HydraAssignedEvent** | [**List<HydraAssignedEvent>**](HydraAssignedEvent.md) | Hydra assigned event | [optional] +**HydraCreatedEvent** | [**List<HydraCreatedEvent>**](HydraCreatedEvent.md) | Hydra created event | [optional] +**HydraRequestResetEvent** | [**List<HydraRequestResetEvent>**](HydraRequestResetEvent.md) | Hydra reset requested event | [optional] +**HydraStoreAssignedEvent** | [**List<HydraStoreAssignedEvent>**](HydraStoreAssignedEvent.md) | Hydra store assigned event | [optional] +**HydraStoreUnassignedEvent** | [**List<HydraStoreUnassignedEvent>**](HydraStoreUnassignedEvent.md) | Hydra store unassigned | [optional] +**HydraSettingChangedEvent** | [**List<HydraSettingChangedEvent>**](HydraSettingChangedEvent.md) | Hydra settings changed event | [optional] +**HydraUnAssignedEvent** | [**List<HydraUnAssignedEvent>**](HydraUnAssignedEvent.md) | Hydra un-assigned event | [optional] +**HydraConnectionStatusChangedEvent** | [**List<HydraConnectionStatusChangedEvent>**](HydraConnectionStatusChangedEvent.md) | Hydra connection state change | [optional] +**KioskBluetoothPairingModeEvent** | [**List<KioskBluetoothPairingModeEvent>**](KioskBluetoothPairingModeEvent.md) | Bluetooth Pairing Mode initiated | [optional] +**KioskBluetoothUnpairingModeEvent** | [**List<KioskBluetoothUnpairingModeEvent>**](KioskBluetoothUnpairingModeEvent.md) | Bluetooth Unpairing Mode initiated | [optional] +**KioskBluetoothTerminalUnpairedEvent** | [**List<KioskBluetoothTerminalUnpairedEvent>**](KioskBluetoothTerminalUnpairedEvent.md) | Bluetooth Terminal Unpaired with Kiosk | [optional] +**KioskTerminalActionStateChangedEvent** | [**List<KioskTerminalActionStateChangedEvent>**](KioskTerminalActionStateChangedEvent.md) | Terminal actionstate change | [optional] +**KioskBluetoothTerminalUpdatedEvent** | [**List<KioskBluetoothTerminalUpdatedEvent>**](KioskBluetoothTerminalUpdatedEvent.md) | Bluetooth Terminal Updated | [optional] +**KioskBluetoothTerminalInitiateUpdateCheckEvent** | [**List<KioskBluetoothTerminalInitiateUpdateCheckEvent>**](KioskBluetoothTerminalInitiateUpdateCheckEvent.md) | Trigger bluetooth payment terminal update checker | [optional] +**KioskBluetoothInstallUpdateInitiateEvent** | [**List<KioskBluetoothInstallUpdateInitiateEvent>**](KioskBluetoothInstallUpdateInitiateEvent.md) | Bluetooth Terminal Initiate Update | [optional] +**KioskBluetoothTerminalCancelUpdateEvent** | [**List<KioskBluetoothTerminalCancelUpdateEvent>**](KioskBluetoothTerminalCancelUpdateEvent.md) | Bluetooth Terminal Cancel Update Install | [optional] +**KioskBluetoothTerminalFirmwareVersionStatusEvent** | [**List<KioskBluetoothTerminalFirmwareVersionStatusEvent>**](KioskBluetoothTerminalFirmwareVersionStatusEvent.md) | Bluetooth Payment Terminal Firmware Version Status Info | [optional] +**KioskBluetoothTerminalInstallationStatusEvent** | [**List<KioskBluetoothTerminalInstallationStatusEvent>**](KioskBluetoothTerminalInstallationStatusEvent.md) | Bluetooth Terminal Update Installation Status | [optional] +**PushNotificationScheduledEvent** | [**List<PushNotificationScheduledEvent>**](PushNotificationScheduledEvent.md) | Push notification scheduled event | [optional] +**PushNotificationSentEvent** | [**List<PushNotificationSentEvent>**](PushNotificationSentEvent.md) | Push notification sent event | [optional] +**PushNotificationDeletedEvent** | [**List<PushNotificationDeletedEvent>**](PushNotificationDeletedEvent.md) | Push notification deleted event | [optional] +**DnsVerifiedEvent** | [**List<DnsVerifiedEvent>**](DnsVerifiedEvent.md) | DNS Verified | [optional] +**CertificateCreatedEvent** | [**List<CertificateCreatedEvent>**](CertificateCreatedEvent.md) | Certificate created | [optional] +**CertificateRenewedEvent** | [**List<CertificateRenewedEvent>**](CertificateRenewedEvent.md) | Certificate renewed | [optional] +**WebsiteVanityUrlUpdatedEvent** | [**List<WebsiteVanityUrlUpdatedEvent>**](WebsiteVanityUrlUpdatedEvent.md) | Panacea vanity url updated | [optional] +**WebsiteUpdatedEvent** | [**List<WebsiteUpdatedEvent>**](WebsiteUpdatedEvent.md) | Website updated | [optional] +**OrderCapacityUpdatedEvent** | [**List<OrderCapacityConfigUpdatedEvent>**](OrderCapacityConfigUpdatedEvent.md) | Order capacity config updated | [optional] +**ExternalStoreEvent** | [**List<ExternalStoreEvent>**](ExternalStoreEvent.md) | External event | [optional] +**OrderFulfillmentStatusUpdatedEvent** | [**List<OrderFulfillmentStatusUpdatedEvent>**](OrderFulfillmentStatusUpdatedEvent.md) | Fulfillment status updated event | [optional] +**AppStoreConfigCreatedEvent** | [**List<AppStoreConfigCreatedEvent>**](AppStoreConfigCreatedEvent.md) | App Store Config Created | [optional] +**AppStoreConfigUpdatedEvent** | [**List<AppStoreConfigUpdatedEvent>**](AppStoreConfigUpdatedEvent.md) | App Store Config Updated | [optional] +**AppStoreConfigDeletedEvent** | [**List<AppStoreConfigDeletedEvent>**](AppStoreConfigDeletedEvent.md) | App Store Config Deleted | [optional] +**AppStoreSubscriptionChangeJobUpdatedEvent** | [**List<AppStoreSubscriptionChangeJobUpdatedEvent>**](AppStoreSubscriptionChangeJobUpdatedEvent.md) | App Store Subscription Change Job Updated | [optional] +**CatalogItemCreatedEvent** | [**List<CatalogItemCreatedEvent>**](CatalogItemCreatedEvent.md) | Catalog Item Created | [optional] +**CatalogItemUpdatedEvent** | [**List<CatalogItemUpdatedEvent>**](CatalogItemUpdatedEvent.md) | Catalog Item Updated | [optional] +**CatalogItemArchivedEvent** | [**List<CatalogItemArchivedEvent>**](CatalogItemArchivedEvent.md) | Catalog Item Archived | [optional] +**CatalogGroupCreatedEvent** | [**List<CatalogGroupCreatedEvent>**](CatalogGroupCreatedEvent.md) | Catalog Group Created | [optional] +**CatalogGroupUpdatedEvent** | [**List<CatalogGroupUpdatedEvent>**](CatalogGroupUpdatedEvent.md) | Catalog Group Updated | [optional] +**CatalogGroupArchivedEvent** | [**List<CatalogGroupArchivedEvent>**](CatalogGroupArchivedEvent.md) | Catalog Group Archived | [optional] +**StoreTipUpdatedEvent** | [**List<StoreTipUpdatedEvent>**](StoreTipUpdatedEvent.md) | Store Tip Updated Event | [optional] +**LocationAreaCreatedEvent** | [**List<LocationAreaCreatedEvent>**](LocationAreaCreatedEvent.md) | LocationArea created event | [optional] +**LocationAreaUpdatedEvent** | [**List<LocationAreaUpdatedEvent>**](LocationAreaUpdatedEvent.md) | LocationArea updated event | [optional] +**LocationCreatedEvent** | [**List<LocationCreatedEvent>**](LocationCreatedEvent.md) | Location created event | [optional] +**LocationDeletedEvent** | [**List<LocationDeletedEvent>**](LocationDeletedEvent.md) | Location deleted event | [optional] +**StoreServiceChargeUpdatedEvent** | [**List<StoreServiceChargeUpdatedEvent>**](StoreServiceChargeUpdatedEvent.md) | Service Charge Updated Event | [optional] +**MobileAppsSubmissionStatusUpdatedEvent** | [**List<MobileAppsSubmissionStatusUpdatedEvent>**](MobileAppsSubmissionStatusUpdatedEvent.md) | Mobile Submission Status Updated Event | [optional] +**MobileAppsSubmissionUpdatedEvent** | [**List<MobileAppsSubmissionUpdatedEvent>**](MobileAppsSubmissionUpdatedEvent.md) | Mobile Submission Updated Event | [optional] +**StoreFeeConfigUpdatedEvent** | [**List<StoreFeeConfigUpdatedEvent>**](StoreFeeConfigUpdatedEvent.md) | Store Fee Config Updated Event | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EventsApi.md b/docs/EventsApi.md new file mode 100644 index 00000000..2ec3a657 --- /dev/null +++ b/docs/EventsApi.md @@ -0,0 +1,842 @@ +# Flipdish.Api.EventsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCustomerEvents**](EventsApi.md#getcustomerevents) | **GET** /api/v1.0/{appId}/events/customer/{customerId} | +[**GetEvents**](EventsApi.md#getevents) | **GET** /api/v1.0/{appId}/events | +[**GetEventsById**](EventsApi.md#geteventsbyid) | **GET** /api/v1.0/{appId}/events/{eventId} | +[**GetMenuEvents**](EventsApi.md#getmenuevents) | **GET** /api/v1.0/{appId}/events/menu/{menuId} | +[**GetOrderEvents**](EventsApi.md#getorderevents) | **GET** /api/v1.0/{appId}/events/order/{orderId} | +[**GetOrderEventsByCustomer**](EventsApi.md#getordereventsbycustomer) | **GET** /api/v1.0/{appId}/events/order | +[**GetStoreEvents**](EventsApi.md#getstoreevents) | **GET** /api/v1.0/{appId}/events/store/{storeId} | +[**GetUserEvents**](EventsApi.md#getuserevents) | **GET** /api/v1.0/{appId}/events/user/{userId} | +[**GetWhiteLabelEvents**](EventsApi.md#getwhitelabelevents) | **GET** /api/v1.0/{appId}/events/whitelabel/{whitelabelId} | + + + +# **GetCustomerEvents** +> RestApiEventSearchPaginationResult GetCustomerEvents (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCustomerEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetCustomerEvents(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetCustomerEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEvents** +> RestApiEventSearchPaginationResult GetEvents (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var whiteLabelId = 56; // int? | (optional) + var customerId = 56; // int? | (optional) + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetEvents(appId, whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **whiteLabelId** | **int?**| | [optional] + **customerId** | **int?**| | [optional] + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEventsById** +> EventSearchResult GetEventsById (Guid? eventId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEventsByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var eventId = new Guid?(); // Guid? | + var appId = appId_example; // string | + + try + { + EventSearchResult result = apiInstance.GetEventsById(eventId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetEventsById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **eventId** | [**Guid?**](Guid?.md)| | + **appId** | **string**| | + +### Return type + +[**EventSearchResult**](EventSearchResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuEvents** +> RestApiEventSearchPaginationResult GetMenuEvents (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var menuId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId2 = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetMenuEvents(appId, menuId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId2, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetMenuEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **menuId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId2** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrderEvents** +> RestApiEventSearchPaginationResult GetOrderEvents (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var orderId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId2 = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetOrderEvents(appId, orderId, limit, page, start, end, orderId2, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetOrderEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **orderId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId2** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrderEventsByCustomer** +> RestApiEventSearchPaginationResult GetOrderEventsByCustomer (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderEventsByCustomerExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetOrderEventsByCustomer(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetOrderEventsByCustomer: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreEvents** +> RestApiEventSearchPaginationResult GetStoreEvents (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId2 = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetStoreEvents(appId, storeId, limit, page, start, end, orderId, storeId2, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetStoreEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId2** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserEvents** +> RestApiEventSearchPaginationResult GetUserEvents (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var userId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId2 = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetUserEvents(appId, userId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId2, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetUserEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **userId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId2** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWhiteLabelEvents** +> RestApiEventSearchPaginationResult GetWhiteLabelEvents (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWhiteLabelEventsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new EventsApi(); + var appId = appId_example; // string | + var whitelabelId = 56; // int? | + var limit = 56; // int? | The maximum elements to return (optional) + var page = 56; // int? | The index of the page to return, starting by 1 (optional) + var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date (optional) + var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date (optional) + var orderId = 56; // int? | Events that have Order Id (optional) + var storeId = 56; // int? | Events that have Store Id (optional) + var storeIdList = new List(); // List | Events that have Store Id List (optional) + var storeGroupId = 56; // int? | Events that have Store Group Id (optional) + var userId = 56; // int? | Events that have User Id (optional) + var menuId = 56; // int? | Events that have Menu Id (optional) + var campaignId = 56; // int? | Events that have Campaign Id (optional) + var userEmail = userEmail_example; // string | Events that have User Email (optional) + var userName = userName_example; // string | Events that have User Name (optional) + var voucherCode = voucherCode_example; // string | Events that have voucher code (optional) + var eventType = new List(); // List | Events that have event type\\s (optional) + var flipdishEventId = flipdishEventId_example; // string | Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + + try + { + RestApiEventSearchPaginationResult result = apiInstance.GetWhiteLabelEvents(appId, whitelabelId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling EventsApi.GetWhiteLabelEvents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **whitelabelId** | **int?**| | + **limit** | **int?**| The maximum elements to return | [optional] + **page** | **int?**| The index of the page to return, starting by 1 | [optional] + **start** | **DateTime?**| Start date | [optional] + **end** | **DateTime?**| End date | [optional] + **orderId** | **int?**| Events that have Order Id | [optional] + **storeId** | **int?**| Events that have Store Id | [optional] + **storeIdList** | [**List<int?>**](int?.md)| Events that have Store Id List | [optional] + **storeGroupId** | **int?**| Events that have Store Group Id | [optional] + **userId** | **int?**| Events that have User Id | [optional] + **menuId** | **int?**| Events that have Menu Id | [optional] + **campaignId** | **int?**| Events that have Campaign Id | [optional] + **userEmail** | **string**| Events that have User Email | [optional] + **userName** | **string**| Events that have User Name | [optional] + **voucherCode** | **string**| Events that have voucher code | [optional] + **eventType** | [**List<string>**](string.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **string**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ExecuteConfigurationActionRequest.md b/docs/ExecuteConfigurationActionRequest.md new file mode 100644 index 00000000..26e82ded --- /dev/null +++ b/docs/ExecuteConfigurationActionRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ExecuteConfigurationActionRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | | [optional] +**Action** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ExecuteConfigurationActionResult.md b/docs/ExecuteConfigurationActionResult.md new file mode 100644 index 00000000..bae84a7c --- /dev/null +++ b/docs/ExecuteConfigurationActionResult.md @@ -0,0 +1,12 @@ +# Flipdish.Model.ExecuteConfigurationActionResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMessage** | **string** | | [optional] +**InfoMessage** | **string** | | [optional] +**RedirectUrl** | **string** | | [optional] +**RedirectTarget** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ExternalStoreAuditLog.md b/docs/ExternalStoreAuditLog.md new file mode 100644 index 00000000..41faa982 --- /dev/null +++ b/docs/ExternalStoreAuditLog.md @@ -0,0 +1,23 @@ +# Flipdish.Model.ExternalStoreAuditLog +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalCreateTime** | **DateTime?** | The time of creation of the event | [optional] +**StoreId** | **int?** | Store Id | [optional] +**Description** | **string** | Description | [optional] +**Source** | **string** | Identifies the source of the log | [optional] +**Version** | **string** | Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source} | [optional] +**DescriptionFormat** | **string** | Description with format placeholders | [optional] +**DescriptionFields** | **string** | Description with format placeholders | [optional] +**DescriptionId** | **string** | Description | [optional] +**Ref1** | **string** | Ref (reference field) | [optional] +**Ref2** | **string** | Ref2 (reference field) | [optional] +**Ref3** | **string** | Ref3 (reference field) | [optional] +**Ref4** | **string** | Ref4 (reference field) | [optional] +**OrderId** | **int?** | Order Id | [optional] +**Tags** | **List<string>** | Tags | [optional] +**FieldChanges** | [**List<AuditLogFieldChangeInformation>**](AuditLogFieldChangeInformation.md) | Field changes list | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ExternalStoreEvent.md b/docs/ExternalStoreEvent.md new file mode 100644 index 00000000..2ee27c6e --- /dev/null +++ b/docs/ExternalStoreEvent.md @@ -0,0 +1,30 @@ +# Flipdish.Model.ExternalStoreEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which did the action | [optional] +**Description** | **string** | Description | [optional] +**DescriptionFormat** | **string** | Description with format placeholders | [optional] +**DescriptionFields** | **string** | Description with format placeholders | [optional] +**DescriptionId** | **string** | Description | [optional] +**Ref1** | **string** | Ref (reference field) | [optional] +**Ref2** | **string** | Ref2 (reference field) | [optional] +**Ref3** | **string** | Ref3 (reference field) | [optional] +**Ref4** | **string** | Ref4 (reference field) | [optional] +**OrderId** | **int?** | Order Id | [optional] +**Tags** | **List<string>** | Tags | [optional] +**FieldChanges** | [**List<FieldChangeInformation>**](FieldChangeInformation.md) | Field changes list | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FeaturesApi.md b/docs/FeaturesApi.md new file mode 100644 index 00000000..256b8955 --- /dev/null +++ b/docs/FeaturesApi.md @@ -0,0 +1,136 @@ +# Flipdish.Api.FeaturesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DisableFeatures**](FeaturesApi.md#disablefeatures) | **POST** /api/v1.0/{appId}/features/disable | +[**EnableFeatures**](FeaturesApi.md#enablefeatures) | **POST** /api/v1.0/{appId}/features/enable | + + + +# **DisableFeatures** +> RestApiStringArrayResult DisableFeatures (string appId, List features) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DisableFeaturesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FeaturesApi(); + var appId = appId_example; // string | + var features = ; // List | + + try + { + RestApiStringArrayResult result = apiInstance.DisableFeatures(appId, features); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FeaturesApi.DisableFeatures: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **features** | **List<string>**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **EnableFeatures** +> RestApiStringArrayResult EnableFeatures (string appId, List features) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class EnableFeaturesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FeaturesApi(); + var appId = appId_example; // string | + var features = ; // List | + + try + { + RestApiStringArrayResult result = apiInstance.EnableFeatures(appId, features); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FeaturesApi.EnableFeatures: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **features** | **List<string>**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FeeSummary.md b/docs/FeeSummary.md new file mode 100644 index 00000000..65a66053 --- /dev/null +++ b/docs/FeeSummary.md @@ -0,0 +1,11 @@ +# Flipdish.Model.FeeSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeeAmount** | **double?** | Fee amount | [optional] +**PercentageRate** | **double?** | Percentage rate | [optional] +**PerTransactionFee** | **double?** | Per transaction fee | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Field.md b/docs/Field.md new file mode 100644 index 00000000..48632bc6 --- /dev/null +++ b/docs/Field.md @@ -0,0 +1,18 @@ +# Flipdish.Model.Field +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | +**Key** | **string** | | +**Tooltip** | **string** | | [optional] +**Position** | **int?** | | +**DefaultValue** | **string** | | [optional] +**ValidValues** | [**List<ValidValue>**](ValidValue.md) | | [optional] +**ValidationRegex** | **string** | | [optional] +**FieldType** | **string** | | +**IsFlipdishRestricted** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FieldChangeInformation.md b/docs/FieldChangeInformation.md new file mode 100644 index 00000000..21814dc9 --- /dev/null +++ b/docs/FieldChangeInformation.md @@ -0,0 +1,13 @@ +# Flipdish.Model.FieldChangeInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | Path (hierarchy) | [optional] +**Name** | **string** | Name of field | [optional] +**Key** | **string** | Key (code) of field | [optional] +**OldValue** | **string** | Old value | [optional] +**NewValue** | **string** | New value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FieldGroup.md b/docs/FieldGroup.md new file mode 100644 index 00000000..189f0b0c --- /dev/null +++ b/docs/FieldGroup.md @@ -0,0 +1,13 @@ +# Flipdish.Model.FieldGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | [optional] +**Tooltip** | **string** | | [optional] +**Position** | **int?** | | +**Fields** | [**List<Field>**](Field.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FirebaseApp.md b/docs/FirebaseApp.md new file mode 100644 index 00000000..ad12bf06 --- /dev/null +++ b/docs/FirebaseApp.md @@ -0,0 +1,12 @@ +# Flipdish.Model.FirebaseApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhitelabelId** | **int?** | WhitelabelId. | [optional] +**PackageId** | **string** | PackageId. | [optional] +**FirebaseAppId** | **string** | FirebaseAppId. | [optional] +**FirebaseProjectId** | **string** | FirebaseProjectId. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FirebaseAppsApi.md b/docs/FirebaseAppsApi.md new file mode 100644 index 00000000..9e15415f --- /dev/null +++ b/docs/FirebaseAppsApi.md @@ -0,0 +1,194 @@ +# Flipdish.Api.FirebaseAppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FirebaseAppsAddFirebaseApp**](FirebaseAppsApi.md#firebaseappsaddfirebaseapp) | **POST** /api/v1.0/FirebaseApp | +[**FirebaseAppsDeleteFirebaseApp**](FirebaseAppsApi.md#firebaseappsdeletefirebaseapp) | **DELETE** /api/v1.0/FirebaseApp/{whiteLabelId} | +[**FirebaseAppsGetFirebaseApp**](FirebaseAppsApi.md#firebaseappsgetfirebaseapp) | **GET** /api/v1.0/FirebaseApp/{whitelabelId} | + + + +# **FirebaseAppsAddFirebaseApp** +> Object FirebaseAppsAddFirebaseApp (FirebaseApp firebaseApp) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FirebaseAppsAddFirebaseAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FirebaseAppsApi(); + var firebaseApp = new FirebaseApp(); // FirebaseApp | + + try + { + Object result = apiInstance.FirebaseAppsAddFirebaseApp(firebaseApp); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FirebaseAppsApi.FirebaseAppsAddFirebaseApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **firebaseApp** | [**FirebaseApp**](FirebaseApp.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FirebaseAppsDeleteFirebaseApp** +> Object FirebaseAppsDeleteFirebaseApp (int? whiteLabelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FirebaseAppsDeleteFirebaseAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FirebaseAppsApi(); + var whiteLabelId = 56; // int? | + + try + { + Object result = apiInstance.FirebaseAppsDeleteFirebaseApp(whiteLabelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FirebaseAppsApi.FirebaseAppsDeleteFirebaseApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FirebaseAppsGetFirebaseApp** +> Object FirebaseAppsGetFirebaseApp (int? whitelabelId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FirebaseAppsGetFirebaseAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FirebaseAppsApi(); + var whitelabelId = 56; // int? | + + try + { + Object result = apiInstance.FirebaseAppsGetFirebaseApp(whitelabelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FirebaseAppsApi.FirebaseAppsGetFirebaseApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whitelabelId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FlipdishAccountName.md b/docs/FlipdishAccountName.md new file mode 100644 index 00000000..5186c0f0 --- /dev/null +++ b/docs/FlipdishAccountName.md @@ -0,0 +1,11 @@ +# Flipdish.Model.FlipdishAccountName +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayeeBankAccountDataId** | **int?** | Payee Bank Account Data Id | [optional] +**FlipdishAccountId** | **int?** | Flipdish Account Id | [optional] +**Name** | **string** | Account Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FlipdishEventBase.md b/docs/FlipdishEventBase.md new file mode 100644 index 00000000..fcd2d6dd --- /dev/null +++ b/docs/FlipdishEventBase.md @@ -0,0 +1,17 @@ +# Flipdish.Model.FlipdishEventBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FlipdishFeesDetails.md b/docs/FlipdishFeesDetails.md new file mode 100644 index 00000000..39a8d1af --- /dev/null +++ b/docs/FlipdishFeesDetails.md @@ -0,0 +1,17 @@ +# Flipdish.Model.FlipdishFeesDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesFees** | **double?** | Fees on online sales | [optional] +**CashSalesFees** | **double?** | Fees on cash sales | [optional] +**PosSalesFees** | **double?** | Fees of POS sales | [optional] +**TotalSalesFees** | **double?** | Total online and cash sales | [optional] +**OnlineSalesRefundedFees** | **double?** | Fees on refunds for online sales | [optional] +**CashSalesRefundedFees** | **double?** | Fees on refunds for cash sales | [optional] +**PosSalesRefundedFees** | **double?** | Fees on refunds for POS sales | [optional] +**SalesFeesVat** | **double?** | VAT on sales fees | [optional] +**TotalFees** | **double?** | Total fees | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FpmApi.md b/docs/FpmApi.md new file mode 100644 index 00000000..1697f332 --- /dev/null +++ b/docs/FpmApi.md @@ -0,0 +1,258 @@ +# Flipdish.Api.FpmApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateFpmForStore**](FpmApi.md#createfpmforstore) | **POST** /api/v1.0/{storeId}/fpm | +[**DeleteFpmForStore**](FpmApi.md#deletefpmforstore) | **DELETE** /api/v1.0/{storeId}/fpm | +[**EditFpmForStore**](FpmApi.md#editfpmforstore) | **POST** /api/v1.0/{storeId}/fpm/edit | +[**GetFpmForStore**](FpmApi.md#getfpmforstore) | **GET** /api/v1.0/{storeId}/fpm | + + + +# **CreateFpmForStore** +> Object CreateFpmForStore (int? storeId, string phoneNumber) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateFpmForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FpmApi(); + var storeId = 56; // int? | + var phoneNumber = phoneNumber_example; // string | + + try + { + Object result = apiInstance.CreateFpmForStore(storeId, phoneNumber); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FpmApi.CreateFpmForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **phoneNumber** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteFpmForStore** +> void DeleteFpmForStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteFpmForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FpmApi(); + var storeId = 56; // int? | + + try + { + apiInstance.DeleteFpmForStore(storeId); + } + catch (Exception e) + { + Debug.Print("Exception when calling FpmApi.DeleteFpmForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **EditFpmForStore** +> void EditFpmForStore (int? storeId, TelephonyConfig telephonyConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class EditFpmForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FpmApi(); + var storeId = 56; // int? | + var telephonyConfig = new TelephonyConfig(); // TelephonyConfig | + + try + { + apiInstance.EditFpmForStore(storeId, telephonyConfig); + } + catch (Exception e) + { + Debug.Print("Exception when calling FpmApi.EditFpmForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **telephonyConfig** | [**TelephonyConfig**](TelephonyConfig.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFpmForStore** +> TelephonyConfig GetFpmForStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFpmForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FpmApi(); + var storeId = 56; // int? | + + try + { + TelephonyConfig result = apiInstance.GetFpmForStore(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FpmApi.GetFpmForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**TelephonyConfig**](TelephonyConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FulfillentStatusActionItem.md b/docs/FulfillentStatusActionItem.md new file mode 100644 index 00000000..22f4a991 --- /dev/null +++ b/docs/FulfillentStatusActionItem.md @@ -0,0 +1,10 @@ +# Flipdish.Model.FulfillentStatusActionItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Status Id | [optional] +**Name** | **string** | Status Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FulfillmentStateConfigurationApi.md b/docs/FulfillmentStateConfigurationApi.md new file mode 100644 index 00000000..444d2595 --- /dev/null +++ b/docs/FulfillmentStateConfigurationApi.md @@ -0,0 +1,389 @@ +# Flipdish.Api.FulfillmentStateConfigurationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#createfulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states | +[**DeleteFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#deletefulfillmentstatesconfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +[**GetFulfillmentStatesConfiguration**](FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +[**GetFulfillmentStatesConfigurationTemplate**](FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfigurationtemplate) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states_template | +[**SearchFulfillmentStatesConfigurations**](FulfillmentStateConfigurationApi.md#searchfulfillmentstatesconfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | +[**UpdateFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#updatefulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | + + + +# **CreateFulfillmentStatesConfig** +> RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateFulfillmentStatesConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + var fulfillmentStateConfiguration = new CreateFulfillmentStatesConfiguration(); // CreateFulfillmentStatesConfiguration | + + try + { + RestApiResultFulfillmentStatesConfiguration result = apiInstance.CreateFulfillmentStatesConfig(appId, fulfillmentStateConfiguration); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.CreateFulfillmentStatesConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **fulfillmentStateConfiguration** | [**CreateFulfillmentStatesConfiguration**](CreateFulfillmentStatesConfiguration.md)| | + +### Return type + +[**RestApiResultFulfillmentStatesConfiguration**](RestApiResultFulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteFulfillmentStatesConfig** +> RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteFulfillmentStatesConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + var configId = configId_example; // string | + + try + { + RestApiStringResult result = apiInstance.DeleteFulfillmentStatesConfig(appId, configId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.DeleteFulfillmentStatesConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **configId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFulfillmentStatesConfiguration** +> FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFulfillmentStatesConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + var configId = configId_example; // string | + + try + { + FulfillmentStatesConfiguration result = apiInstance.GetFulfillmentStatesConfiguration(appId, configId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.GetFulfillmentStatesConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **configId** | **string**| | + +### Return type + +[**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFulfillmentStatesConfigurationTemplate** +> FulfillmentStatesConfiguration GetFulfillmentStatesConfigurationTemplate (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFulfillmentStatesConfigurationTemplateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + + try + { + FulfillmentStatesConfiguration result = apiInstance.GetFulfillmentStatesConfigurationTemplate(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.GetFulfillmentStatesConfigurationTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchFulfillmentStatesConfigurations** +> RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillmentStatesConfigurations (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchFulfillmentStatesConfigurationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultFulfillmentStatesConfigurationSummary result = apiInstance.SearchFulfillmentStatesConfigurations(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.SearchFulfillmentStatesConfigurations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultFulfillmentStatesConfigurationSummary**](RestApiArrayResultFulfillmentStatesConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateFulfillmentStatesConfig** +> void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateFulfillmentStatesConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new FulfillmentStateConfigurationApi(); + var appId = appId_example; // string | + var configId = configId_example; // string | + var updateFulfillmentStatesConfiguration = new UpdateFulfillmentStatesConfiguration(); // UpdateFulfillmentStatesConfiguration | + + try + { + apiInstance.UpdateFulfillmentStatesConfig(appId, configId, updateFulfillmentStatesConfiguration); + } + catch (Exception e) + { + Debug.Print("Exception when calling FulfillmentStateConfigurationApi.UpdateFulfillmentStatesConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **configId** | **string**| | + **updateFulfillmentStatesConfiguration** | [**UpdateFulfillmentStatesConfiguration**](UpdateFulfillmentStatesConfiguration.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FulfillmentStatesConfiguration.md b/docs/FulfillmentStatesConfiguration.md new file mode 100644 index 00000000..aeb5ed7f --- /dev/null +++ b/docs/FulfillmentStatesConfiguration.md @@ -0,0 +1,15 @@ +# Flipdish.Model.FulfillmentStatesConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**States** | [**List<FulfillmentStatusConfigurationItem>**](FulfillmentStatusConfigurationItem.md) | States | [optional] +**AutomaticTransitionsEnabled** | **bool?** | Enable automatic transitions | [optional] +**AppId** | **string** | AppId | [optional] +**ConfigurationUid** | **string** | Configuration Uid | [optional] +**StoreSelectorType** | **string** | Store Selector Type | [optional] +**StoreIds** | **List<int?>** | Store Ids | [optional] +**Name** | **string** | Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FulfillmentStatesConfigurationSummary.md b/docs/FulfillmentStatesConfigurationSummary.md new file mode 100644 index 00000000..802c4a6c --- /dev/null +++ b/docs/FulfillmentStatesConfigurationSummary.md @@ -0,0 +1,13 @@ +# Flipdish.Model.FulfillmentStatesConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | AppId | +**ConfigurationUid** | **string** | Configuration Uid | [optional] +**Name** | **string** | Name | [optional] +**StoreSelectorType** | **string** | Store selector type | [optional] +**Stores** | [**List<FulfillmentStatesConfiguredStore>**](FulfillmentStatesConfiguredStore.md) | Stores | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FulfillmentStatesConfiguredStore.md b/docs/FulfillmentStatesConfiguredStore.md new file mode 100644 index 00000000..2ac92009 --- /dev/null +++ b/docs/FulfillmentStatesConfiguredStore.md @@ -0,0 +1,10 @@ +# Flipdish.Model.FulfillmentStatesConfiguredStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store id | [optional] +**Name** | **string** | Name of store | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FulfillmentStatusConfigurationItem.md b/docs/FulfillmentStatusConfigurationItem.md new file mode 100644 index 00000000..fed91726 --- /dev/null +++ b/docs/FulfillmentStatusConfigurationItem.md @@ -0,0 +1,23 @@ +# Flipdish.Model.FulfillmentStatusConfigurationItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **string** | Status Id (no whitespaces) | [optional] +**StatusName** | **string** | Status name | [optional] +**Enabled** | **bool?** | Is status enabled | [optional] +**DisplayName** | **string** | The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead | [optional] +**Icon** | **string** | Icon/Image that represents that status visual | [optional] +**PublicDescription** | **string** | A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status) | [optional] +**Internal** | **bool?** | Is internal state (internal states not shown to customers) | [optional] +**NextStatuses** | **List<string>** | list of statuses that this status can move to (can be back or forth) | [optional] +**DefaultNextStatus** | [**List<NextStatusWithOrderType>**](NextStatusWithOrderType.md) | The default next status (on a dropdown or quick button on terminal or portal) | [optional] +**ChangeType** | **string** | How will state change (manually or automated, including timed) | [optional] +**IncludeInReports** | **bool?** | Include in reports | [optional] +**IsCustom** | **bool?** | Is custom state. If not, then it's a system state | [optional] +**OrderTypes** | **List<string>** | If empty then applies to all ordertypes, otherwise a list of order types this state applies to | [optional] +**Communication** | **bool?** | Whether state should fire off a notification to the customer | [optional] +**Image** | **string** | Image (image filename, relative, not absolute URL) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GeoPointRequest.md b/docs/GeoPointRequest.md new file mode 100644 index 00000000..f65e475f --- /dev/null +++ b/docs/GeoPointRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.GeoPointRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **double?** | Kiosk device latitude | [optional] +**Longitude** | **double?** | Kiosk device longitude | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GetEndUserFeeConfigsResponse.md b/docs/GetEndUserFeeConfigsResponse.md new file mode 100644 index 00000000..6746fc10 --- /dev/null +++ b/docs/GetEndUserFeeConfigsResponse.md @@ -0,0 +1,10 @@ +# Flipdish.Model.GetEndUserFeeConfigsResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndUserFees** | [**List<EndUserFeeConfig>**](EndUserFeeConfig.md) | The current end user fee configs for the Store, one per channel and payment method combination present | [optional] +**IsV2FeeCalculationEnabled** | **bool?** | Whether the V2 (tiered) fee calculation is enabled for this Store | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GetReceiptByOrderIdQueryResponse.md b/docs/GetReceiptByOrderIdQueryResponse.md new file mode 100644 index 00000000..e393ee42 --- /dev/null +++ b/docs/GetReceiptByOrderIdQueryResponse.md @@ -0,0 +1,18 @@ +# Flipdish.Model.GetReceiptByOrderIdQueryResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousOrder** | [**PreviousOrder**](PreviousOrder.md) | | [optional] +**DepositReturnFeesSummary** | [**List<DepositReturnFeesSummary>**](DepositReturnFeesSummary.md) | | [optional] +**TsRequestedForLocal** | **DateTime?** | | [optional] +**TsOrderPlacedLocal** | **DateTime?** | | [optional] +**LogoUrl** | **string** | | [optional] +**Address** | **string** | | [optional] +**VatNumber** | **string** | | [optional] +**PaymentMethodDescription** | **string** | | [optional] +**OrgId** | **string** | | [optional] +**CountryCode** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleAddress.md b/docs/GoogleAddress.md new file mode 100644 index 00000000..4e86059c --- /dev/null +++ b/docs/GoogleAddress.md @@ -0,0 +1,11 @@ +# Flipdish.Model.GoogleAddress +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**List<GoogleAddressResult>**](GoogleAddressResult.md) | | [optional] +**Result** | [**GoogleAddressResult**](GoogleAddressResult.md) | | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleAddressComponent.md b/docs/GoogleAddressComponent.md new file mode 100644 index 00000000..9eb7a00d --- /dev/null +++ b/docs/GoogleAddressComponent.md @@ -0,0 +1,11 @@ +# Flipdish.Model.GoogleAddressComponent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Long_name** | **string** | | [optional] +**Short_name** | **string** | | [optional] +**Types** | **List<string>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleAddressResult.md b/docs/GoogleAddressResult.md new file mode 100644 index 00000000..32a96d81 --- /dev/null +++ b/docs/GoogleAddressResult.md @@ -0,0 +1,13 @@ +# Flipdish.Model.GoogleAddressResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address_components** | [**List<GoogleAddressComponent>**](GoogleAddressComponent.md) | | [optional] +**Formatted_address** | **string** | | [optional] +**Geometry** | [**GoogleGeometry**](GoogleGeometry.md) | | [optional] +**Place_id** | **string** | | [optional] +**Types** | **List<string>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleCoordinates.md b/docs/GoogleCoordinates.md new file mode 100644 index 00000000..c356e5b0 --- /dev/null +++ b/docs/GoogleCoordinates.md @@ -0,0 +1,10 @@ +# Flipdish.Model.GoogleCoordinates +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lat** | **float?** | | [optional] +**Lng** | **float?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleGeometry.md b/docs/GoogleGeometry.md new file mode 100644 index 00000000..aff8436f --- /dev/null +++ b/docs/GoogleGeometry.md @@ -0,0 +1,11 @@ +# Flipdish.Model.GoogleGeometry +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | [**GoogleLocation**](GoogleLocation.md) | | [optional] +**Location_type** | **string** | | [optional] +**Viewport** | [**GoogleViewport**](GoogleViewport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleLocation.md b/docs/GoogleLocation.md new file mode 100644 index 00000000..a5d238f6 --- /dev/null +++ b/docs/GoogleLocation.md @@ -0,0 +1,10 @@ +# Flipdish.Model.GoogleLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lat** | **float?** | | [optional] +**Lng** | **float?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleViewport.md b/docs/GoogleViewport.md new file mode 100644 index 00000000..5d0ad6a6 --- /dev/null +++ b/docs/GoogleViewport.md @@ -0,0 +1,10 @@ +# Flipdish.Model.GoogleViewport +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Northeast** | [**GoogleCoordinates**](GoogleCoordinates.md) | | [optional] +**Southwest** | [**GoogleCoordinates**](GoogleCoordinates.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Group.md b/docs/Group.md new file mode 100644 index 00000000..8bc72d2e --- /dev/null +++ b/docs/Group.md @@ -0,0 +1,20 @@ +# Flipdish.Model.Group +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **string** | Unique catalog group id | [optional] +**CatalogItemId** | **string** | Unique catalog item id | [optional] +**IsArchived** | **bool?** | Returns true if the group is archived | [optional] +**MinSelectCount** | **int?** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **int?** | Maximum number of items that the user has to select | [optional] +**Products** | [**List<ProductReference>**](ProductReference.md) | Collection of items associated with this product | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**GroupType** | **string** | Type of group (ModifierGroup, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Group name | +**AutogenerateDisplayText** | **bool?** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **string** | Image File Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GroupReference.md b/docs/GroupReference.md new file mode 100644 index 00000000..68226842 --- /dev/null +++ b/docs/GroupReference.md @@ -0,0 +1,11 @@ +# Flipdish.Model.GroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**Group**](Group.md) | Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference.Group} | [optional] +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GroupedCoordinates.md b/docs/GroupedCoordinates.md new file mode 100644 index 00000000..3e076487 --- /dev/null +++ b/docs/GroupedCoordinates.md @@ -0,0 +1,11 @@ +# Flipdish.Model.GroupedCoordinates +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **double?** | Latitude of this coordinate | [optional] +**Longitude** | **double?** | Longitude of this coordinate | [optional] +**Count** | **int?** | Count of members in the group | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HasPaymentMethodResponse.md b/docs/HasPaymentMethodResponse.md new file mode 100644 index 00000000..2f7f60f1 --- /dev/null +++ b/docs/HasPaymentMethodResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.HasPaymentMethodResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasPaymentMethod** | **bool?** | Has Payment Method | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HeartbeatApi.md b/docs/HeartbeatApi.md new file mode 100644 index 00000000..a9a8ff66 --- /dev/null +++ b/docs/HeartbeatApi.md @@ -0,0 +1,240 @@ +# Flipdish.Api.HeartbeatApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**HeadHostname**](HeartbeatApi.md#headhostname) | **HEAD** /api/v1.0/heartbeat/Hostname | +[**HeadPing**](HeartbeatApi.md#headping) | **HEAD** /api/v1.0/heartbeat | +[**Hostname**](HeartbeatApi.md#hostname) | **GET** /api/v1.0/heartbeat/Hostname | +[**Ping**](HeartbeatApi.md#ping) | **GET** /api/v1.0/heartbeat | + + + +# **HeadHostname** +> Object HeadHostname () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HeadHostnameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HeartbeatApi(); + + try + { + Object result = apiInstance.HeadHostname(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HeartbeatApi.HeadHostname: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HeadPing** +> RestApiStringResult HeadPing () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HeadPingExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HeartbeatApi(); + + try + { + RestApiStringResult result = apiInstance.HeadPing(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HeartbeatApi.HeadPing: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Hostname** +> Object Hostname () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HostnameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HeartbeatApi(); + + try + { + Object result = apiInstance.Hostname(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HeartbeatApi.Hostname: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Ping** +> RestApiStringResult Ping () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PingExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HeartbeatApi(); + + try + { + RestApiStringResult result = apiInstance.Ping(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HeartbeatApi.Ping: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/HomeAction.md b/docs/HomeAction.md new file mode 100644 index 00000000..716042c7 --- /dev/null +++ b/docs/HomeAction.md @@ -0,0 +1,16 @@ +# Flipdish.Model.HomeAction +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HomeActionId** | **int?** | | [optional] +**HomeActionType** | **string** | Type of Action | [optional] +**Order** | **int?** | | [optional] +**TitleKey** | **string** | | [optional] +**ActionKey** | **string** | | [optional] +**DescriptionKey** | **string** | | [optional] +**Action** | **string** | | [optional] +**Dismissible** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HomeApi.md b/docs/HomeApi.md new file mode 100644 index 00000000..867a5af1 --- /dev/null +++ b/docs/HomeApi.md @@ -0,0 +1,256 @@ +# Flipdish.Api.HomeApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CompleteHomeAction**](HomeApi.md#completehomeaction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | +[**GetHomeActions**](HomeApi.md#gethomeactions) | **GET** /api/v1.0/{appId}/home | +[**GetHomeStatistics**](HomeApi.md#gethomestatistics) | **GET** /api/v1.0/{appId}/home/stats | +[**GetOktaPortalFeatureFlag**](HomeApi.md#getoktaportalfeatureflag) | **GET** /api/v1.0/home/okta-portal | + + + +# **CompleteHomeAction** +> Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismissed) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CompleteHomeActionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HomeApi(); + var appId = appId_example; // string | + var homeActionId = 56; // int? | + var isDismissed = true; // bool? | + + try + { + Object result = apiInstance.CompleteHomeAction(appId, homeActionId, isDismissed); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HomeApi.CompleteHomeAction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **homeActionId** | **int?**| | + **isDismissed** | **bool?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetHomeActions** +> RestApiArrayResultHomeAction GetHomeActions (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetHomeActionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HomeApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultHomeAction result = apiInstance.GetHomeActions(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HomeApi.GetHomeActions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultHomeAction**](RestApiArrayResultHomeAction.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetHomeStatistics** +> RestApiResultHomeStatistics GetHomeStatistics (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetHomeStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HomeApi(); + var appId = appId_example; // string | + + try + { + RestApiResultHomeStatistics result = apiInstance.GetHomeStatistics(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HomeApi.GetHomeStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultHomeStatistics**](RestApiResultHomeStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOktaPortalFeatureFlag** +> RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOktaPortalFeatureFlagExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HomeApi(); + + try + { + RestApiResultOktaPortalFeatureFlag result = apiInstance.GetOktaPortalFeatureFlag(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HomeApi.GetOktaPortalFeatureFlag: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultOktaPortalFeatureFlag**](RestApiResultOktaPortalFeatureFlag.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/HomeStatistics.md b/docs/HomeStatistics.md new file mode 100644 index 00000000..cf777402 --- /dev/null +++ b/docs/HomeStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.Model.HomeStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalMoneySaved** | [**List<CurrencyData>**](CurrencyData.md) | Money saved | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HttpPostedFileBase.md b/docs/HttpPostedFileBase.md new file mode 100644 index 00000000..3fdaa6ce --- /dev/null +++ b/docs/HttpPostedFileBase.md @@ -0,0 +1,12 @@ +# Flipdish.Model.HttpPostedFileBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentLength** | **int?** | | [optional] +**ContentType** | **string** | | [optional] +**FileName** | **string** | | [optional] +**InputStream** | [**Stream**](Stream.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraApi.md b/docs/HydraApi.md new file mode 100644 index 00000000..71eb6614 --- /dev/null +++ b/docs/HydraApi.md @@ -0,0 +1,1542 @@ +# Flipdish.Api.HydraApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AssignEmv**](HydraApi.md#assignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | +[**AttachStoreToKiosk**](HydraApi.md#attachstoretokiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | +[**AttachStoreToTerminal**](HydraApi.md#attachstoretoterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | +[**CancelEmvPayment**](HydraApi.md#cancelemvpayment) | **POST** /api/v1.0/{appId}/hydra/cancelemvpayment/{orderId} | +[**DetachStoreFromTerminal**](HydraApi.md#detachstorefromterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | +[**GetAblyToken**](HydraApi.md#getablytoken) | **GET** /api/v1.0/hydra/ably_token | +[**GetAttachedDevice**](HydraApi.md#getattacheddevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | +[**GetAttachedDevices**](HydraApi.md#getattacheddevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | +[**GetEMVTerminalDetails**](HydraApi.md#getemvterminaldetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | +[**GetEmvOrderState**](HydraApi.md#getemvorderstate) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | +[**GetKioskCashPaymentSettings**](HydraApi.md#getkioskcashpaymentsettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | +[**GetKioskSettings**](HydraApi.md#getkiosksettings) | **GET** /api/v1.0/{appId}/kiosksettings/{deviceId} | +[**GetRegistration**](HydraApi.md#getregistration) | **GET** /api/v1.0/hydra/registration | +[**GetSettings**](HydraApi.md#getsettings) | **GET** /api/v1.0/hydra/settings | +[**HydraCreateEmv**](HydraApi.md#hydracreateemv) | **POST** /api/v1.0/{appId}/emvterminals | +[**HydraDeleteEmv**](HydraApi.md#hydradeleteemv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | +[**HydraDetachStoreFromKiosk**](HydraApi.md#hydradetachstorefromkiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | +[**HydraGetEmvsForAppId**](HydraApi.md#hydragetemvsforappid) | **GET** /api/v1.0/{appId}/emvterminals | +[**LoginWithDeviceId**](HydraApi.md#loginwithdeviceid) | **POST** /api/v1.0/hydra/{deviceId}/login | +[**Register**](HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | +[**UnAssign**](HydraApi.md#unassign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | +[**UnassignEmv**](HydraApi.md#unassignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | +[**UpdateKioskCashVisibilitySettings**](HydraApi.md#updatekioskcashvisibilitysettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | +[**UpdateKioskSettings**](HydraApi.md#updatekiosksettings) | **POST** /api/v1.0/{appId}/kiosksettings/{deviceId} | + + + +# **AssignEmv** +> void AssignEmv (string appId, int? hydraConfigId, int? emvTerminalId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignEmvExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var hydraConfigId = 56; // int? | + var emvTerminalId = 56; // int? | + + try + { + apiInstance.AssignEmv(appId, hydraConfigId, emvTerminalId); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.AssignEmv: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **hydraConfigId** | **int?**| | + **emvTerminalId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AttachStoreToKiosk** +> RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AttachStoreToKioskExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultHydraStatus result = apiInstance.AttachStoreToKiosk(appId, storeId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.AttachStoreToKiosk: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AttachStoreToTerminal** +> RestApiResultHydraStatus AttachStoreToTerminal (string appId, string deviceId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AttachStoreToTerminalExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultHydraStatus result = apiInstance.AttachStoreToTerminal(appId, deviceId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.AttachStoreToTerminal: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CancelEmvPayment** +> void CancelEmvPayment (int? orderId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CancelEmvPaymentExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var orderId = 56; // int? | + var appId = appId_example; // string | + + try + { + apiInstance.CancelEmvPayment(orderId, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.CancelEmvPayment: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DetachStoreFromTerminal** +> RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string deviceId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DetachStoreFromTerminalExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultHydraStatus result = apiInstance.DetachStoreFromTerminal(appId, deviceId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.DetachStoreFromTerminal: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAblyToken** +> void GetAblyToken () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAblyTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + + try + { + apiInstance.GetAblyToken(); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetAblyToken: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAttachedDevice** +> RestApiResultHydraDeviceDetails GetAttachedDevice (string appId, string deviceType, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAttachedDeviceExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceType = deviceType_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultHydraDeviceDetails result = apiInstance.GetAttachedDevice(appId, deviceType, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetAttachedDevice: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceType** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultHydraDeviceDetails**](RestApiResultHydraDeviceDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAttachedDevices** +> RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAttachedDevicesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceType = deviceType_example; // string | + var pageIndex = 56; // int? | (optional) + var pageSize = 56; // int? | (optional) + var storeId = 56; // int? | (optional) + var deviceName = deviceName_example; // string | (optional) + var deviceSerial = deviceSerial_example; // string | (optional) + + try + { + RestApiPaginationResultHydraDeviceDetails result = apiInstance.GetAttachedDevices(appId, deviceType, pageIndex, pageSize, storeId, deviceName, deviceSerial); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetAttachedDevices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceType** | **string**| | + **pageIndex** | **int?**| | [optional] + **pageSize** | **int?**| | [optional] + **storeId** | **int?**| | [optional] + **deviceName** | **string**| | [optional] + **deviceSerial** | **string**| | [optional] + +### Return type + +[**RestApiPaginationResultHydraDeviceDetails**](RestApiPaginationResultHydraDeviceDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEMVTerminalDetails** +> RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEMVTerminalDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + + try + { + RestApiResultPaymentTerminalDetails result = apiInstance.GetEMVTerminalDetails(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetEMVTerminalDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultPaymentTerminalDetails**](RestApiResultPaymentTerminalDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEmvOrderState** +> RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? orderId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEmvOrderStateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var orderId = 56; // int? | + var appId = appId_example; // string | + + try + { + RestApiResultPaymentTerminalTransactionDetails result = apiInstance.GetEmvOrderState(orderId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetEmvOrderState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultPaymentTerminalTransactionDetails**](RestApiResultPaymentTerminalTransactionDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetKioskCashPaymentSettings** +> RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetKioskCashPaymentSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiArrayResultKioskCashPaymentSettings result = apiInstance.GetKioskCashPaymentSettings(appId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetKioskCashPaymentSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiArrayResultKioskCashPaymentSettings**](RestApiArrayResultKioskCashPaymentSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetKioskSettings** +> RestApiResultKioskSettings GetKioskSettings (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetKioskSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultKioskSettings result = apiInstance.GetKioskSettings(appId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetKioskSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultKioskSettings**](RestApiResultKioskSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRegistration** +> RestApiResultHydraStatus GetRegistration () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRegistrationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + + try + { + RestApiResultHydraStatus result = apiInstance.GetRegistration(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetRegistration: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSettings** +> RestApiResultHydraConfig GetSettings () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + + try + { + RestApiResultHydraConfig result = apiInstance.GetSettings(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.GetSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultHydraConfig**](RestApiResultHydraConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HydraCreateEmv** +> Object HydraCreateEmv (string appId, EmvTerminal emv) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HydraCreateEmvExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var emv = new EmvTerminal(); // EmvTerminal | + + try + { + Object result = apiInstance.HydraCreateEmv(appId, emv); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.HydraCreateEmv: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **emv** | [**EmvTerminal**](EmvTerminal.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HydraDeleteEmv** +> Object HydraDeleteEmv (string appId, int? id) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HydraDeleteEmvExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var id = 56; // int? | + + try + { + Object result = apiInstance.HydraDeleteEmv(appId, id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.HydraDeleteEmv: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **id** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HydraDetachStoreFromKiosk** +> RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? storeId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HydraDetachStoreFromKioskExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var deviceId = deviceId_example; // string | + + try + { + RestApiResultHydraStatus result = apiInstance.HydraDetachStoreFromKiosk(appId, storeId, deviceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.HydraDetachStoreFromKiosk: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **deviceId** | **string**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HydraGetEmvsForAppId** +> RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HydraGetEmvsForAppIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultEmvTerminalWithAssignments result = apiInstance.HydraGetEmvsForAppId(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.HydraGetEmvsForAppId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultEmvTerminalWithAssignments**](RestApiArrayResultEmvTerminalWithAssignments.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LoginWithDeviceId** +> void LoginWithDeviceId (string deviceId, string hydraUserType = null, string serialNumber = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LoginWithDeviceIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var deviceId = deviceId_example; // string | + var hydraUserType = hydraUserType_example; // string | (optional) + var serialNumber = serialNumber_example; // string | (optional) + + try + { + apiInstance.LoginWithDeviceId(deviceId, hydraUserType, serialNumber); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.LoginWithDeviceId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deviceId** | **string**| | + **hydraUserType** | **string**| | [optional] + **serialNumber** | **string**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Register** +> RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest hydraRegistration) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RegisterExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var hydraRegistration = new HydraRegistrationRequest(); // HydraRegistrationRequest | + + try + { + RestApiResultHydraStatus result = apiInstance.Register(appId, hydraRegistration); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.Register: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **hydraRegistration** | [**HydraRegistrationRequest**](HydraRegistrationRequest.md)| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnAssign** +> void UnAssign (string appId, string deviceId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnAssignExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + + try + { + apiInstance.UnAssign(appId, deviceId); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.UnAssign: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnassignEmv** +> void UnassignEmv (string appId, int? hydraConfigId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnassignEmvExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var hydraConfigId = 56; // int? | + + try + { + apiInstance.UnassignEmv(appId, hydraConfigId); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.UnassignEmv: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **hydraConfigId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateKioskCashVisibilitySettings** +> void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bool? isCashEnabled) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateKioskCashVisibilitySettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var isCashEnabled = true; // bool? | + + try + { + apiInstance.UpdateKioskCashVisibilitySettings(appId, deviceId, isCashEnabled); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.UpdateKioskCashVisibilitySettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **isCashEnabled** | **bool?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateKioskSettings** +> void UpdateKioskSettings (string appId, string deviceId, KioskSettings settings) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateKioskSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new HydraApi(); + var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var settings = new KioskSettings(); // KioskSettings | + + try + { + apiInstance.UpdateKioskSettings(appId, deviceId, settings); + } + catch (Exception e) + { + Debug.Print("Exception when calling HydraApi.UpdateKioskSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **deviceId** | **string**| | + **settings** | [**KioskSettings**](KioskSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/HydraAssignedEvent.md b/docs/HydraAssignedEvent.md new file mode 100644 index 00000000..25a63df5 --- /dev/null +++ b/docs/HydraAssignedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.HydraAssignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | Status of Hydra | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraConfig.md b/docs/HydraConfig.md new file mode 100644 index 00000000..27bfd42a --- /dev/null +++ b/docs/HydraConfig.md @@ -0,0 +1,15 @@ +# Flipdish.Model.HydraConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinimumVersion** | **string** | Minimum version | +**PaymentOptions** | **List<string>** | Payment options | +**DeviceSettings** | [**DeviceSettings**](DeviceSettings.md) | Device settings | +**Version** | **string** | Version of the device | [optional] +**BuildNumber** | **string** | Build number of the device | [optional] +**GitSha** | **string** | SHA of the commit | [optional] +**GitBranch** | **string** | Build branch | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraConnectionStatusChangedEvent.md b/docs/HydraConnectionStatusChangedEvent.md new file mode 100644 index 00000000..6f63e764 --- /dev/null +++ b/docs/HydraConnectionStatusChangedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.HydraConnectionStatusChangedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Hydra Device Id | [optional] +**HydraDeviceStatus** | **string** | Hydra Device Status | [optional] +**PollTime** | **DateTime?** | Hydra Last Poll Time | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraCreatedEvent.md b/docs/HydraCreatedEvent.md new file mode 100644 index 00000000..c8477d53 --- /dev/null +++ b/docs/HydraCreatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.HydraCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | Optional user who triggered creation (may be null for device self-create). | [optional] +**DeviceId** | **string** | Device id | [optional] +**HydraUserId** | **int?** | Zeus Hydra user id | [optional] +**UserType** | **string** | Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}. | [optional] +**DeviceType** | **string** | Hydra device type (Kiosk / Terminal), serialized as string. | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraDeviceDetails.md b/docs/HydraDeviceDetails.md new file mode 100644 index 00000000..f0215646 --- /dev/null +++ b/docs/HydraDeviceDetails.md @@ -0,0 +1,20 @@ +# Flipdish.Model.HydraDeviceDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HydraConfigId** | **int?** | Flipdish internal device identifier | [optional] +**DeviceId** | **string** | Device Id | [optional] +**SerialNumber** | **string** | Serial Number | [optional] +**DeviceType** | **string** | Type of the device | [optional] +**Status** | **string** | Status of the device | [optional] +**DeviceName** | **string** | Device Name | [optional] +**StoreNames** | [**List<HydraStoreData>**](HydraStoreData.md) | Store Names | [optional] +**LastPollUtc** | **DateTime?** | Last poll time in UTC | [optional] +**Version** | **string** | Version of the device | [optional] +**BuildNumber** | **string** | Build number of the device | [optional] +**GitSha** | **string** | SHA of the commit | [optional] +**GitBranch** | **string** | Build branch | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraRegistrationRequest.md b/docs/HydraRegistrationRequest.md new file mode 100644 index 00000000..0db64005 --- /dev/null +++ b/docs/HydraRegistrationRequest.md @@ -0,0 +1,11 @@ +# Flipdish.Model.HydraRegistrationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **List<int?>** | Stores to assign the hydra | +**DeviceName** | **string** | Hydra device name | +**PinCode** | **int?** | 6 digit PIN code (not starting with zero). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraRequestResetEvent.md b/docs/HydraRequestResetEvent.md new file mode 100644 index 00000000..610664af --- /dev/null +++ b/docs/HydraRequestResetEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.HydraRequestResetEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who initiated the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraSettingChangedEvent.md b/docs/HydraSettingChangedEvent.md new file mode 100644 index 00000000..9c276d7f --- /dev/null +++ b/docs/HydraSettingChangedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.HydraSettingChangedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraConfig** | [**HydraConfig**](HydraConfig.md) | Hydra configuration | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraStatus.md b/docs/HydraStatus.md new file mode 100644 index 00000000..f636d5d8 --- /dev/null +++ b/docs/HydraStatus.md @@ -0,0 +1,17 @@ +# Flipdish.Model.HydraStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | | +**StoreIds** | **List<int?>** | Store to assign the hydra | [optional] +**PropertyIds** | **List<string>** | AuthZ Property ids for assigned stores | [optional] +**IsRegistered** | **bool?** | The device has been already registered | +**PinCode** | **int?** | 6 digit PIN code (not starting with zero). | [optional] +**Images** | **List<string>** | Hydra images (covers) | [optional] +**UserType** | **string** | Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. | [optional] +**DeviceType** | **string** | Hydra device type (Kiosk / Terminal), serialized as string. | [optional] +**HydraUserId** | **int?** | Zeus Hydra user id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraStoreAssignedEvent.md b/docs/HydraStoreAssignedEvent.md new file mode 100644 index 00000000..8722b0e2 --- /dev/null +++ b/docs/HydraStoreAssignedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.HydraStoreAssignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**StoreIds** | **List<int?>** | Store\\s to assign hydra to | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraStoreData.md b/docs/HydraStoreData.md new file mode 100644 index 00000000..e530583d --- /dev/null +++ b/docs/HydraStoreData.md @@ -0,0 +1,10 @@ +# Flipdish.Model.HydraStoreData +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Id of the store | [optional] +**StoreName** | **string** | Name of the store | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraStoreUnassignedEvent.md b/docs/HydraStoreUnassignedEvent.md new file mode 100644 index 00000000..5f6694f1 --- /dev/null +++ b/docs/HydraStoreUnassignedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.HydraStoreUnassignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**StoreIds** | **List<int?>** | Store\\s to unassign hydra from | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/HydraUnAssignedEvent.md b/docs/HydraUnAssignedEvent.md new file mode 100644 index 00000000..ac37b5cb --- /dev/null +++ b/docs/HydraUnAssignedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.HydraUnAssignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | Status of Hydra | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/IndexPage.md b/docs/IndexPage.md new file mode 100644 index 00000000..a72bd351 --- /dev/null +++ b/docs/IndexPage.md @@ -0,0 +1,24 @@ +# Flipdish.Model.IndexPage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Testimonials** | [**List<WebsiteTestimonial>**](WebsiteTestimonial.md) | Testimonials | [optional] +**Images** | [**List<WebsiteImage>**](WebsiteImage.md) | Images | [optional] +**AboutSectionEnabled** | **bool?** | About section enabled | [optional] +**AboutSectionTitle** | **string** | About section title | [optional] +**AboutSectionSubtitle** | **string** | About section sub-title | [optional] +**AboutSectionLeftTitle** | **string** | About section title left | [optional] +**AboutSectionLeftBody** | **string** | About section text left | [optional] +**AboutSectionRightTitle** | **string** | About section title right | [optional] +**AboutSectionRightBody** | **string** | About section text right | [optional] +**OpeningHoursEnabled** | **bool?** | Opening hours section Enabled | [optional] +**MenuPreviewEnabled** | **bool?** | Menu Preview section Enabled | [optional] +**GalleryEnabled** | **bool?** | Gallery section enabled | [optional] +**TestimonialsEnabled** | **bool?** | Testimonials section Enabled | [optional] +**ContactFormEnabled** | **bool?** | Contact Form section Enabled | [optional] +**ContactFormEmail** | **string** | Contact Form Email | [optional] +**MapEnabled** | **bool?** | Map section Enabled | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/IndexPageBase.md b/docs/IndexPageBase.md new file mode 100644 index 00000000..645217af --- /dev/null +++ b/docs/IndexPageBase.md @@ -0,0 +1,22 @@ +# Flipdish.Model.IndexPageBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AboutSectionEnabled** | **bool?** | About section enabled | [optional] +**AboutSectionTitle** | **string** | About section title | [optional] +**AboutSectionSubtitle** | **string** | About section sub-title | [optional] +**AboutSectionLeftTitle** | **string** | About section title left | [optional] +**AboutSectionLeftBody** | **string** | About section text left | [optional] +**AboutSectionRightTitle** | **string** | About section title right | [optional] +**AboutSectionRightBody** | **string** | About section text right | [optional] +**OpeningHoursEnabled** | **bool?** | Opening hours section Enabled | [optional] +**MenuPreviewEnabled** | **bool?** | Menu Preview section Enabled | [optional] +**GalleryEnabled** | **bool?** | Gallery section enabled | [optional] +**TestimonialsEnabled** | **bool?** | Testimonials section Enabled | [optional] +**ContactFormEnabled** | **bool?** | Contact Form section Enabled | [optional] +**ContactFormEmail** | **string** | Contact Form Email | [optional] +**MapEnabled** | **bool?** | Map section Enabled | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/IntegrationMetadataCatalogueApi.md b/docs/IntegrationMetadataCatalogueApi.md new file mode 100644 index 00000000..25728db2 --- /dev/null +++ b/docs/IntegrationMetadataCatalogueApi.md @@ -0,0 +1,76 @@ +# Flipdish.Api.IntegrationMetadataCatalogueApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**IntegrationMetadataCatalogueGetPixelPointProducts**](IntegrationMetadataCatalogueApi.md#integrationmetadatacataloguegetpixelpointproducts) | **GET** /api/v1.0/integrationmetadatacatalogue/pixelpoint/stores/{storeId}/products | + + + +# **IntegrationMetadataCatalogueGetPixelPointProducts** +> RestApiResultPixelPointProductCatalogue IntegrationMetadataCatalogueGetPixelPointProducts (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class IntegrationMetadataCatalogueGetPixelPointProductsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new IntegrationMetadataCatalogueApi(); + var storeId = 56; // int? | + var nameContains = nameContains_example; // string | (optional) + var page = 56; // int? | (optional) + var pageSize = 56; // int? | (optional) + + try + { + RestApiResultPixelPointProductCatalogue result = apiInstance.IntegrationMetadataCatalogueGetPixelPointProducts(storeId, nameContains, page, pageSize); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling IntegrationMetadataCatalogueApi.IntegrationMetadataCatalogueGetPixelPointProducts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **nameContains** | **string**| | [optional] + **page** | **int?**| | [optional] + **pageSize** | **int?**| | [optional] + +### Return type + +[**RestApiResultPixelPointProductCatalogue**](RestApiResultPixelPointProductCatalogue.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IntercomApi.md b/docs/IntercomApi.md new file mode 100644 index 00000000..a022e0ce --- /dev/null +++ b/docs/IntercomApi.md @@ -0,0 +1,66 @@ +# Flipdish.Api.IntercomApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UserHash**](IntercomApi.md#userhash) | **GET** /api/v1.0/intercom/userHash | + + + +# **UserHash** +> RestApiResultIntercomUserHash UserHash () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UserHashExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new IntercomApi(); + + try + { + RestApiResultIntercomUserHash result = apiInstance.UserHash(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling IntercomApi.UserHash: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultIntercomUserHash**](RestApiResultIntercomUserHash.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IntercomUserHash.md b/docs/IntercomUserHash.md new file mode 100644 index 00000000..5669cd62 --- /dev/null +++ b/docs/IntercomUserHash.md @@ -0,0 +1,9 @@ +# Flipdish.Model.IntercomUserHash +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserHash** | **string** | User hash | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Invoice.md b/docs/Invoice.md new file mode 100644 index 00000000..294b5444 --- /dev/null +++ b/docs/Invoice.md @@ -0,0 +1,11 @@ +# Flipdish.Model.Invoice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvoiceNumber** | **string** | Invoice Number | [optional] +**StartDay** | **DateTime?** | The start day of the invoice period. | [optional] +**EndDay** | **DateTime?** | The end day of the invoice period. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InvoiceDiscount.md b/docs/InvoiceDiscount.md new file mode 100644 index 00000000..28fc86d4 --- /dev/null +++ b/docs/InvoiceDiscount.md @@ -0,0 +1,10 @@ +# Flipdish.Model.InvoiceDiscount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name | +**Amount** | **double?** | Amount | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InvoiceItem.md b/docs/InvoiceItem.md new file mode 100644 index 00000000..d9217270 --- /dev/null +++ b/docs/InvoiceItem.md @@ -0,0 +1,14 @@ +# Flipdish.Model.InvoiceItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Description | +**Quantity** | **long?** | Quantity | +**UnitAmountExcludingTax** | **double?** | Unit Amount Excluding Tax | +**Tax** | **double?** | Tax | +**Amount** | **double?** | Amount | +**Period** | [**InvoicePeriod**](InvoicePeriod.md) | Period | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InvoicePeriod.md b/docs/InvoicePeriod.md new file mode 100644 index 00000000..59f350dd --- /dev/null +++ b/docs/InvoicePeriod.md @@ -0,0 +1,10 @@ +# Flipdish.Model.InvoicePeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Start** | **DateTime?** | Start | [optional] +**End** | **DateTime?** | End | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InvoicesApi.md b/docs/InvoicesApi.md new file mode 100644 index 00000000..925fc8a6 --- /dev/null +++ b/docs/InvoicesApi.md @@ -0,0 +1,295 @@ +# Flipdish.Api.InvoicesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetInvoices**](InvoicesApi.md#getinvoices) | **GET** /api/v1.0/{appId}/invoices | +[**InvoicePdf**](InvoicesApi.md#invoicepdf) | **GET** /api/v1.0/{appId}/invoices/InvoicePdf | +[**ListInvoices**](InvoicesApi.md#listinvoices) | **GET** /api/v1.0/{appId}/invoices/ListInvoices | +[**ListSubscriptionInvoices**](InvoicesApi.md#listsubscriptioninvoices) | **GET** /api/v1.0/{appId}/invoices/ListSubscriptionInvoices | + + + +# **GetInvoices** +> RestApiFinanceSearchPaginationResultSubscriptionInvoice GetInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetInvoicesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new InvoicesApi(); + var appId = appId_example; // string | + var subscriptionId = subscriptionId_example; // string | (optional) + var limit = 56; // int? | (optional) + var pageId = pageId_example; // string | (optional) + var excludeNotOwnedInvoices = true; // bool? | (optional) + var dateFrom = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var dateTo = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var invoiceNumber = invoiceNumber_example; // string | (optional) + var storeId = new List(); // List | (optional) + + try + { + RestApiFinanceSearchPaginationResultSubscriptionInvoice result = apiInstance.GetInvoices(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InvoicesApi.GetInvoices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **subscriptionId** | **string**| | [optional] + **limit** | **int?**| | [optional] + **pageId** | **string**| | [optional] + **excludeNotOwnedInvoices** | **bool?**| | [optional] + **dateFrom** | **DateTime?**| | [optional] + **dateTo** | **DateTime?**| | [optional] + **invoiceNumber** | **string**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiFinanceSearchPaginationResultSubscriptionInvoice**](RestApiFinanceSearchPaginationResultSubscriptionInvoice.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InvoicePdf** +> void InvoicePdf (string invoiceNumber, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class InvoicePdfExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new InvoicesApi(); + var invoiceNumber = invoiceNumber_example; // string | + var appId = appId_example; // string | + + try + { + apiInstance.InvoicePdf(invoiceNumber, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling InvoicesApi.InvoicePdf: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invoiceNumber** | **string**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListInvoices** +> RestApiFinanceSearchPaginationResultInvoice ListInvoices (int? storeId, string appId, int? limit = null, int? page = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ListInvoicesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new InvoicesApi(); + var storeId = 56; // int? | + var appId = appId_example; // string | + var limit = 56; // int? | (optional) + var page = 56; // int? | (optional) + + try + { + RestApiFinanceSearchPaginationResultInvoice result = apiInstance.ListInvoices(storeId, appId, limit, page); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InvoicesApi.ListInvoices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **appId** | **string**| | + **limit** | **int?**| | [optional] + **page** | **int?**| | [optional] + +### Return type + +[**RestApiFinanceSearchPaginationResultInvoice**](RestApiFinanceSearchPaginationResultInvoice.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListSubscriptionInvoices** +> RestApiFinanceSearchPaginationResultSubscriptionInvoice ListSubscriptionInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ListSubscriptionInvoicesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new InvoicesApi(); + var appId = appId_example; // string | + var subscriptionId = subscriptionId_example; // string | (optional) + var limit = 56; // int? | (optional) + var pageId = pageId_example; // string | (optional) + var excludeNotOwnedInvoices = true; // bool? | (optional) + var dateFrom = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var dateTo = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var invoiceNumber = invoiceNumber_example; // string | (optional) + var storeId = new List(); // List | (optional) + + try + { + RestApiFinanceSearchPaginationResultSubscriptionInvoice result = apiInstance.ListSubscriptionInvoices(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InvoicesApi.ListSubscriptionInvoices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **subscriptionId** | **string**| | [optional] + **limit** | **int?**| | [optional] + **pageId** | **string**| | [optional] + **excludeNotOwnedInvoices** | **bool?**| | [optional] + **dateFrom** | **DateTime?**| | [optional] + **dateTo** | **DateTime?**| | [optional] + **invoiceNumber** | **string**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiFinanceSearchPaginationResultSubscriptionInvoice**](RestApiFinanceSearchPaginationResultSubscriptionInvoice.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ItemNutritionInfoAddUpdateModel.md b/docs/ItemNutritionInfoAddUpdateModel.md new file mode 100644 index 00000000..257bb0be --- /dev/null +++ b/docs/ItemNutritionInfoAddUpdateModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.ItemNutritionInfoAddUpdateModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Labels** | [**List<NutritionInfoItemAddUpdateLabelModel>**](NutritionInfoItemAddUpdateLabelModel.md) | Labels. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ItemNutritionInfoV2AddUpdateModel.md b/docs/ItemNutritionInfoV2AddUpdateModel.md new file mode 100644 index 00000000..cfa67d9e --- /dev/null +++ b/docs/ItemNutritionInfoV2AddUpdateModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.ItemNutritionInfoV2AddUpdateModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllergenIds** | **List<string>** | AllergenIds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobAddress.md b/docs/JobAddress.md new file mode 100644 index 00000000..713916f8 --- /dev/null +++ b/docs/JobAddress.md @@ -0,0 +1,14 @@ +# Flipdish.Model.JobAddress +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Street** | **string** | Street | [optional] +**Postcode** | **string** | Postcode | [optional] +**City** | **string** | City | [optional] +**Country** | **string** | Country | [optional] +**Zone** | **string** | Zone | [optional] +**FormattedAddress** | **string** | Formatted Address | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobCancellation.md b/docs/JobCancellation.md new file mode 100644 index 00000000..cbceae4f --- /dev/null +++ b/docs/JobCancellation.md @@ -0,0 +1,11 @@ +# Flipdish.Model.JobCancellation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanceledBy** | **string** | Canceled By | [optional] +**ReasonKey** | **string** | Reason Key | [optional] +**Comment** | **string** | Comment | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobContact.md b/docs/JobContact.md new file mode 100644 index 00000000..dedfaf7b --- /dev/null +++ b/docs/JobContact.md @@ -0,0 +1,14 @@ +# Flipdish.Model.JobContact +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Firstname** | **string** | Firstname | [optional] +**Lastname** | **string** | Lastname | [optional] +**Phone** | **string** | Phone | [optional] +**Email** | **string** | Email | [optional] +**Company** | **string** | Company | [optional] +**CompanyName** | **string** | Company Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobDelivery.md b/docs/JobDelivery.md new file mode 100644 index 00000000..f4d0df03 --- /dev/null +++ b/docs/JobDelivery.md @@ -0,0 +1,21 @@ +# Flipdish.Model.JobDelivery +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id | [optional] +**Status** | **string** | Status | [optional] +**PickedAt** | **string** | Picked At | [optional] +**DeliveredAt** | **string** | Delivered At | [optional] +**TrackingUrl** | **string** | Tracking Url | [optional] +**ClientReference** | **string** | Client Reference | [optional] +**PackageDescription** | **string** | Package Description | [optional] +**PackageType** | **string** | Package Type | [optional] +**Pickup** | [**JobDeliveryDetail**](JobDeliveryDetail.md) | Pickup | [optional] +**Dropoff** | [**JobDeliveryDetail**](JobDeliveryDetail.md) | Dropoff | [optional] +**Eta** | [**JobEta**](JobEta.md) | Eta | [optional] +**Cancellation** | [**JobCancellation**](JobCancellation.md) | Cancellation | [optional] +**Proof** | [**JobProof**](JobProof.md) | Proof | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobDeliveryDetail.md b/docs/JobDeliveryDetail.md new file mode 100644 index 00000000..bb626104 --- /dev/null +++ b/docs/JobDeliveryDetail.md @@ -0,0 +1,14 @@ +# Flipdish.Model.JobDeliveryDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id | [optional] +**Latitude** | **double?** | Latitude | [optional] +**Longitude** | **double?** | Longitude | [optional] +**Comment** | **string** | Comment | [optional] +**Address** | [**JobAddress**](JobAddress.md) | Address | [optional] +**Contact** | [**JobContact**](JobContact.md) | Contact | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobDriver.md b/docs/JobDriver.md new file mode 100644 index 00000000..308bdd5b --- /dev/null +++ b/docs/JobDriver.md @@ -0,0 +1,15 @@ +# Flipdish.Model.JobDriver +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id | [optional] +**DisplayName** | **string** | Display Name | [optional] +**Phone** | **string** | Phone | [optional] +**PictureUrl** | **string** | Picture Url | [optional] +**TransportType** | **string** | Transport Type | [optional] +**Latitude** | **double?** | Latitude | [optional] +**Longitude** | **double?** | Longitude | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobEta.md b/docs/JobEta.md new file mode 100644 index 00000000..4830d1f9 --- /dev/null +++ b/docs/JobEta.md @@ -0,0 +1,10 @@ +# Flipdish.Model.JobEta +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pickup** | **string** | Pickup | [optional] +**Dropoff** | **string** | Dropoff | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobPricing.md b/docs/JobPricing.md new file mode 100644 index 00000000..46db4e0c --- /dev/null +++ b/docs/JobPricing.md @@ -0,0 +1,14 @@ +# Flipdish.Model.JobPricing +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | Currency | [optional] +**TaxPercentage** | **double?** | Tax Percentage | [optional] +**PriceTaxIncluded** | **double?** | Price Tax Included | [optional] +**PriceTaxExcluded** | **double?** | Price Tax Excluded | [optional] +**TaxAmount** | **double?** | Tax Amount | [optional] +**InvoiceUrl** | **string** | Invoice Url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobProof.md b/docs/JobProof.md new file mode 100644 index 00000000..65f3398c --- /dev/null +++ b/docs/JobProof.md @@ -0,0 +1,9 @@ +# Flipdish.Model.JobProof +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignatureUrl** | **string** | Signature Url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JobResponse.md b/docs/JobResponse.md new file mode 100644 index 00000000..5b754896 --- /dev/null +++ b/docs/JobResponse.md @@ -0,0 +1,22 @@ +# Flipdish.Model.JobResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Id | [optional] +**CreatedAt** | **DateTime?** | Created At | [optional] +**Status** | **string** | Status | [optional] +**PackageType** | **string** | Package Type | [optional] +**TransportType** | **string** | Transport Type | [optional] +**AssignmentCode** | **string** | Assignment Code | [optional] +**PickupAt** | **string** | Pickup At | [optional] +**DropoffAt** | **string** | Dropoff At | [optional] +**Comment** | **string** | Comment | [optional] +**Distance** | **double?** | Distance | [optional] +**Duration** | **int?** | Duration | [optional] +**Deliveries** | [**List<JobDelivery>**](JobDelivery.md) | Deliveries | [optional] +**Pricing** | [**JobPricing**](JobPricing.md) | Pricing | [optional] +**Driver** | [**JobDriver**](JobDriver.md) | Driver | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothInstallUpdateInitiateEvent.md b/docs/KioskBluetoothInstallUpdateInitiateEvent.md new file mode 100644 index 00000000..6189294e --- /dev/null +++ b/docs/KioskBluetoothInstallUpdateInitiateEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.KioskBluetoothInstallUpdateInitiateEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothPairingModeEvent.md b/docs/KioskBluetoothPairingModeEvent.md new file mode 100644 index 00000000..5e0d07a0 --- /dev/null +++ b/docs/KioskBluetoothPairingModeEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.KioskBluetoothPairingModeEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalCancelUpdateEvent.md b/docs/KioskBluetoothTerminalCancelUpdateEvent.md new file mode 100644 index 00000000..f096eebd --- /dev/null +++ b/docs/KioskBluetoothTerminalCancelUpdateEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.KioskBluetoothTerminalCancelUpdateEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md b/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md new file mode 100644 index 00000000..492058f2 --- /dev/null +++ b/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md @@ -0,0 +1,24 @@ +# Flipdish.Model.KioskBluetoothTerminalFirmwareVersionStatusEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**SerialNumber** | **string** | Serial Number of the device | [optional] +**HasFirmwareUpdate** | **bool?** | Indicates if Payment Terminal has Firmware Update | [optional] +**HasConfigUpdate** | **bool?** | Indicates if Payment Terminal has Config Update | [optional] +**HasKeyUpdate** | **bool?** | Indicates if Payment Terminal has Key Update | [optional] +**UpdateTimeEstimate** | **string** | ETA to install the update | [optional] +**UserEventInfo** | [**UserEventInfo**](UserEventInfo.md) | User who made the changes | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md new file mode 100644 index 00000000..fb87d0d2 --- /dev/null +++ b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.KioskBluetoothTerminalInitiateUpdateCheckEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalInstallationStatusEvent.md b/docs/KioskBluetoothTerminalInstallationStatusEvent.md new file mode 100644 index 00000000..e6d630ab --- /dev/null +++ b/docs/KioskBluetoothTerminalInstallationStatusEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.KioskBluetoothTerminalInstallationStatusEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**BluetoothTerminalSerialNumber** | **string** | Serial number of the terminal | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**Progress** | **int?** | Update Install Progress for Card Reader | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalUnpairedEvent.md b/docs/KioskBluetoothTerminalUnpairedEvent.md new file mode 100644 index 00000000..16f5aa2b --- /dev/null +++ b/docs/KioskBluetoothTerminalUnpairedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.KioskBluetoothTerminalUnpairedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothTerminalUpdatedEvent.md b/docs/KioskBluetoothTerminalUpdatedEvent.md new file mode 100644 index 00000000..66301f12 --- /dev/null +++ b/docs/KioskBluetoothTerminalUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.KioskBluetoothTerminalUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**BluetoothTerminalSerialNumber** | **string** | Serial number of the terminal | [optional] +**BluetoothTerminalStatus** | [**BluetoothTerminalStatus**](BluetoothTerminalStatus.md) | Status of the connected terminal | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskBluetoothUnpairingModeEvent.md b/docs/KioskBluetoothUnpairingModeEvent.md new file mode 100644 index 00000000..b0803a7c --- /dev/null +++ b/docs/KioskBluetoothUnpairingModeEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.KioskBluetoothUnpairingModeEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **string** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who made the change | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskCashPaymentSettings.md b/docs/KioskCashPaymentSettings.md new file mode 100644 index 00000000..7b36f8eb --- /dev/null +++ b/docs/KioskCashPaymentSettings.md @@ -0,0 +1,10 @@ +# Flipdish.Model.KioskCashPaymentSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCashVisibleToCustomer** | **bool?** | false :disable cash on kiosk true :enable cash on kiosk | [optional] +**UserId** | **int?** | HydraUser ID of the Device | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskEntitlementsApi.md b/docs/KioskEntitlementsApi.md new file mode 100644 index 00000000..a9872e33 --- /dev/null +++ b/docs/KioskEntitlementsApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.KioskEntitlementsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**QueryKioskEntitlementsByOrgId**](KioskEntitlementsApi.md#querykioskentitlementsbyorgid) | **GET** /api/v1.0/orgs/{orgId}/kiosk/entitlements | + + + +# **QueryKioskEntitlementsByOrgId** +> RestApiResultKioskEntitlementsResult QueryKioskEntitlementsByOrgId (string orgId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class QueryKioskEntitlementsByOrgIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new KioskEntitlementsApi(); + var orgId = orgId_example; // string | + + try + { + RestApiResultKioskEntitlementsResult result = apiInstance.QueryKioskEntitlementsByOrgId(orgId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling KioskEntitlementsApi.QueryKioskEntitlementsByOrgId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **string**| | + +### Return type + +[**RestApiResultKioskEntitlementsResult**](RestApiResultKioskEntitlementsResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/KioskEntitlementsResult.md b/docs/KioskEntitlementsResult.md new file mode 100644 index 00000000..dbf2e5a2 --- /dev/null +++ b/docs/KioskEntitlementsResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.KioskEntitlementsResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitledQuantity** | **int?** | Number of kiosk devices entitled | [optional] +**UsedQuantity** | **int?** | The quantity of entitlements that have been used | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskIotApi.md b/docs/KioskIotApi.md new file mode 100644 index 00000000..02d9c97b --- /dev/null +++ b/docs/KioskIotApi.md @@ -0,0 +1,130 @@ +# Flipdish.Api.KioskIotApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetKioskIotConnection**](KioskIotApi.md#getkioskiotconnection) | **POST** /api/v1.0/kioskiot/connect | +[**QueryTelemetrySeries**](KioskIotApi.md#querytelemetryseries) | **POST** /api/v1.0/{appId}/kioskiot/timeseries/query | + + + +# **GetKioskIotConnection** +> RestApiResultKioskIotConnectionParameters GetKioskIotConnection () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetKioskIotConnectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new KioskIotApi(); + + try + { + RestApiResultKioskIotConnectionParameters result = apiInstance.GetKioskIotConnection(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling KioskIotApi.GetKioskIotConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultKioskIotConnectionParameters**](RestApiResultKioskIotConnectionParameters.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **QueryTelemetrySeries** +> RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, TelemetrySeriesQueryParameters queryParams) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class QueryTelemetrySeriesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new KioskIotApi(); + var appId = appId_example; // string | + var queryParams = new TelemetrySeriesQueryParameters(); // TelemetrySeriesQueryParameters | + + try + { + RestApiResultTelemetrySeriesResult result = apiInstance.QueryTelemetrySeries(appId, queryParams); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling KioskIotApi.QueryTelemetrySeries: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **queryParams** | [**TelemetrySeriesQueryParameters**](TelemetrySeriesQueryParameters.md)| | + +### Return type + +[**RestApiResultTelemetrySeriesResult**](RestApiResultTelemetrySeriesResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/KioskIotConnectionParameters.md b/docs/KioskIotConnectionParameters.md new file mode 100644 index 00000000..767795ed --- /dev/null +++ b/docs/KioskIotConnectionParameters.md @@ -0,0 +1,9 @@ +# Flipdish.Model.KioskIotConnectionParameters +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectionString** | **string** | The device connection string to the IoT server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskSettings.md b/docs/KioskSettings.md new file mode 100644 index 00000000..2e273164 --- /dev/null +++ b/docs/KioskSettings.md @@ -0,0 +1,10 @@ +# Flipdish.Model.KioskSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HideLogoFromFrontPage** | **bool?** | Hide logo from front page | [optional] +**TwoColumnMenuLayout** | **bool?** | 2 Column Menu Layout | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskStripeLocation.md b/docs/KioskStripeLocation.md new file mode 100644 index 00000000..ee50b2a3 --- /dev/null +++ b/docs/KioskStripeLocation.md @@ -0,0 +1,10 @@ +# Flipdish.Model.KioskStripeLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **string** | Kiosk device ID | [optional] +**StripeLocationId** | **string** | Stripe Terminal location ID. Null when card payments have not been set up on the kiosk. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/KioskTerminalActionStateChangedEvent.md b/docs/KioskTerminalActionStateChangedEvent.md new file mode 100644 index 00000000..885277e6 --- /dev/null +++ b/docs/KioskTerminalActionStateChangedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.KioskTerminalActionStateChangedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReaderId** | **string** | Card reader id | [optional] +**BluetoothTerminalType** | **string** | Terminal type | [optional] +**ActionState** | **string** | Action state. success or fail | [optional] +**FailureCode** | **string** | Failure code if processing is failed | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Language.md b/docs/Language.md new file mode 100644 index 00000000..3a2e0f20 --- /dev/null +++ b/docs/Language.md @@ -0,0 +1,12 @@ +# Flipdish.Model.Language +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LanguageId** | **string** | ISO 639-1 Language Code | [optional] +**DisplayOrder** | **int?** | Display Order | [optional] +**Name** | **string** | Language Name | [optional] +**Enabled** | **bool?** | Is the language enabled for use. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LastPaymentError.md b/docs/LastPaymentError.md new file mode 100644 index 00000000..d67a231d --- /dev/null +++ b/docs/LastPaymentError.md @@ -0,0 +1,11 @@ +# Flipdish.Model.LastPaymentError +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | For some errors that could be handled programmatically, a short string indicating the error code reported. | [optional] +**DeclineCode** | **string** | For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one. | [optional] +**Message** | **string** | A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LeadTime.md b/docs/LeadTime.md new file mode 100644 index 00000000..dd7cd688 --- /dev/null +++ b/docs/LeadTime.md @@ -0,0 +1,10 @@ +# Flipdish.Model.LeadTime +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DispatchType** | **string** | There are two valid values for this field - `collection` and `delivery`. | +**LeadTimeMinutes** | **int?** | This must be a positive integer. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LightspeedApi.md b/docs/LightspeedApi.md new file mode 100644 index 00000000..08d8c4e7 --- /dev/null +++ b/docs/LightspeedApi.md @@ -0,0 +1,196 @@ +# Flipdish.Api.LightspeedApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LightspeedGenerateMenu**](LightspeedApi.md#lightspeedgeneratemenu) | **POST** /api/v1.0/lightspeed/{storeId}/menu/generate | +[**LightspeedGetStoreSettings**](LightspeedApi.md#lightspeedgetstoresettings) | **GET** /api/v1.0/lightspeed/{storeId}/settings | +[**LightspeedSaveStoreSettings**](LightspeedApi.md#lightspeedsavestoresettings) | **POST** /api/v1.0/lightspeed/{storeId}/settings | + + + +# **LightspeedGenerateMenu** +> Object LightspeedGenerateMenu (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LightspeedGenerateMenuExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LightspeedApi(); + var storeId = 56; // int? | + + try + { + Object result = apiInstance.LightspeedGenerateMenu(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LightspeedApi.LightspeedGenerateMenu: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LightspeedGetStoreSettings** +> RestApiResultLightspeedSettings LightspeedGetStoreSettings (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LightspeedGetStoreSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LightspeedApi(); + var storeId = 56; // int? | + + try + { + RestApiResultLightspeedSettings result = apiInstance.LightspeedGetStoreSettings(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LightspeedApi.LightspeedGetStoreSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultLightspeedSettings**](RestApiResultLightspeedSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LightspeedSaveStoreSettings** +> RestApiResultLightspeedSettings LightspeedSaveStoreSettings (int? storeId, LightspeedSettings lightspeedSettings) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LightspeedSaveStoreSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LightspeedApi(); + var storeId = 56; // int? | + var lightspeedSettings = new LightspeedSettings(); // LightspeedSettings | + + try + { + RestApiResultLightspeedSettings result = apiInstance.LightspeedSaveStoreSettings(storeId, lightspeedSettings); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LightspeedApi.LightspeedSaveStoreSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **lightspeedSettings** | [**LightspeedSettings**](LightspeedSettings.md)| | + +### Return type + +[**RestApiResultLightspeedSettings**](RestApiResultLightspeedSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LightspeedSettings.md b/docs/LightspeedSettings.md new file mode 100644 index 00000000..3f87cc85 --- /dev/null +++ b/docs/LightspeedSettings.md @@ -0,0 +1,31 @@ +# Flipdish.Model.LightspeedSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CompanyId** | **string** | Company Id | [optional] +**UseOAuth** | **bool?** | Use OAuth for authentication | [optional] +**Enabled** | **bool?** | Enabled | [optional] +**EstimatedMinutesForDelivery** | **int?** | Estimated minutes for delivery | [optional] +**EstimatedMinutesForCollection** | **int?** | Estimated minutes for collection | [optional] +**GeographicLocation** | **string** | Geographic location (euc1, nae1, euw2, ....)) | [optional] +**Establishment** | **bool?** | Is the CompanyId an establishment (kind of the store of a group of store) | [optional] +**VoucherId** | **string** | The Lightspeed voucher identifier to map with our | [optional] +**DeliveryFeeId** | **string** | The Lightspeed delivery fee identifier to map with our | [optional] +**ProcessingFeeId** | **string** | The Lightspeed processing fee identifier to map with our | [optional] +**PriceType** | **string** | Which price to choose from Lightspeed menu | [optional] +**MenuId** | **int?** | The menu id of the store | [optional] +**CollectionTableId** | **int?** | Collection Table ID to send orders | [optional] +**DeliveryTableId** | **int?** | Delivery Table ID to send orders | [optional] +**CollectionTableIds** | **Dictionary<string, string>** | Collection Table IDs to send orders to | [optional] +**DeliveryTableIds** | **Dictionary<string, string>** | Delivery Table IDs to send orders to | [optional] +**UseTaxInclusivePrices** | **bool?** | Exclude tax | [optional] +**SkipStatusCheckAndAcceptOrderAfterSending** | **bool?** | WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! | [optional] +**SendTableNumberToTableId** | **bool?** | Send Table Number to Table Id | [optional] +**AddChefNoteToProduct** | **bool?** | Add ChefNote To Product | [optional] +**ChefNoteItemId** | **string** | The Lightspeed Chef Note Item Id to map | [optional] +**ChefNoteModifierId** | **string** | The Lightspeed Chef Note Modifier Id to map | [optional] +**ServiceChargeId** | **string** | The Lightspeed Service Charge Id to map | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocalisedTimeZone.md b/docs/LocalisedTimeZone.md new file mode 100644 index 00000000..c2bfbfc3 --- /dev/null +++ b/docs/LocalisedTimeZone.md @@ -0,0 +1,11 @@ +# Flipdish.Model.LocalisedTimeZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TimeZoneId** | **string** | Microsoft Time Zone Id | [optional] +**IanaTimeZoneId** | **string** | Iana Time Zone Id | [optional] +**DisplayName** | **string** | Display name in users language | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationApi.md b/docs/LocationApi.md new file mode 100644 index 00000000..e955f2f3 --- /dev/null +++ b/docs/LocationApi.md @@ -0,0 +1,354 @@ +# Flipdish.Api.LocationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLocation**](LocationApi.md#createlocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | +[**DeleteLocation**](LocationApi.md#deletelocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | +[**MapLocationToExternalId**](LocationApi.md#maplocationtoexternalid) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | +[**MoveLocation**](LocationApi.md#movelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | +[**UpdateLocation**](LocationApi.md#updatelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update | + + + +# **CreateLocation** +> Object CreateLocation (List createLocationInput, int? locationAreaId, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationApi(); + var createLocationInput = new List(); // List | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.CreateLocation(createLocationInput, locationAreaId, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationApi.CreateLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createLocationInput** | [**List<CreateLocation>**](CreateLocation.md)| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteLocation** +> Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationApi(); + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.DeleteLocation(locationId, locationAreaId, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationApi.DeleteLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MapLocationToExternalId** +> RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MapLocationToExternalIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationApi(); + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + var externalLocationId = externalLocationId_example; // string | (optional) + + try + { + RestApiResultMappedLocation result = apiInstance.MapLocationToExternalId(locationId, locationAreaId, appId, storeId, externalLocationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationApi.MapLocationToExternalId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + **externalLocationId** | **string**| | [optional] + +### Return type + +[**RestApiResultMappedLocation**](RestApiResultMappedLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MoveLocation** +> Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MoveLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationApi(); + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var newLocationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.MoveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationApi.MoveLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **newLocationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateLocation** +> RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationApi(); + var updateLocationInput = new CreateLocation(); // CreateLocation | + var locationAreaId = 56; // int? | + var locationId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultLocationAreaLocation result = apiInstance.UpdateLocation(updateLocationInput, locationAreaId, locationId, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationApi.UpdateLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateLocationInput** | [**CreateLocation**](CreateLocation.md)| | + **locationAreaId** | **int?**| | + **locationId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultLocationAreaLocation**](RestApiResultLocationAreaLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LocationArea.md b/docs/LocationArea.md new file mode 100644 index 00000000..7e77149f --- /dev/null +++ b/docs/LocationArea.md @@ -0,0 +1,11 @@ +# Flipdish.Model.LocationArea +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **int?** | Id of the LocationArea | [optional] +**StoreId** | **int?** | Id of the Store that this LocationArea belongs to | [optional] +**LocationAreaName** | **string** | Descriptive LocationArea name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationAreaCreatedEvent.md b/docs/LocationAreaCreatedEvent.md new file mode 100644 index 00000000..b587fab5 --- /dev/null +++ b/docs/LocationAreaCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.LocationAreaCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **string** | LocationArea Id | [optional] +**LocationAreaName** | **string** | LocationArea name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who created the LocationArea | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationAreaLocation.md b/docs/LocationAreaLocation.md new file mode 100644 index 00000000..33abd5eb --- /dev/null +++ b/docs/LocationAreaLocation.md @@ -0,0 +1,13 @@ +# Flipdish.Model.LocationAreaLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **int?** | Id of the Location | +**LocationName** | **string** | Name of the Location | +**DisplayOrder** | **int?** | The order that the Location should be displayed on the screen | +**ExternalLocationId** | **string** | Id of the Location on an external system | [optional] +**IsDeleted** | **bool?** | Shows if the Location is deleted or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationAreaUpdatedEvent.md b/docs/LocationAreaUpdatedEvent.md new file mode 100644 index 00000000..c2519e24 --- /dev/null +++ b/docs/LocationAreaUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.LocationAreaUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **string** | LocationArea Id | [optional] +**LocationAreaName** | **string** | LocationArea Name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who updated the LocationArea | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationAreaWithLocations.md b/docs/LocationAreaWithLocations.md new file mode 100644 index 00000000..c10f4bdc --- /dev/null +++ b/docs/LocationAreaWithLocations.md @@ -0,0 +1,13 @@ +# Flipdish.Model.LocationAreaWithLocations +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **int?** | Id of the LocationArea | +**StoreId** | **int?** | Id of the Store that this LocationArea belongs to | +**LocationAreaName** | **string** | Descriptive LocationArea name | +**Locations** | [**List<LocationAreaLocation>**](LocationAreaLocation.md) | List of Locations that belongs to this Location Area | [optional] +**IsDeleted** | **bool?** | Returns if the LocationArea is deleted or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationAreasApi.md b/docs/LocationAreasApi.md new file mode 100644 index 00000000..bf3a8914 --- /dev/null +++ b/docs/LocationAreasApi.md @@ -0,0 +1,272 @@ +# Flipdish.Api.LocationAreasApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLocationArea**](LocationAreasApi.md#createlocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas | +[**GetLocationArea**](LocationAreasApi.md#getlocationarea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | +[**GetLocationAreasForStore**](LocationAreasApi.md#getlocationareasforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | +[**UpdateLocationArea**](LocationAreasApi.md#updatelocationarea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update | + + + +# **CreateLocationArea** +> Object CreateLocationArea (CreateLocationArea locationAreaInput, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateLocationAreaExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationAreasApi(); + var locationAreaInput = new CreateLocationArea(); // CreateLocationArea | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.CreateLocationArea(locationAreaInput, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationAreasApi.CreateLocationArea: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaInput** | [**CreateLocationArea**](CreateLocationArea.md)| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLocationArea** +> RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetLocationAreaExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationAreasApi(); + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultLocationAreaWithLocations result = apiInstance.GetLocationArea(locationAreaId, appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationAreasApi.GetLocationArea: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultLocationAreaWithLocations**](RestApiResultLocationAreaWithLocations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLocationAreasForStore** +> RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetLocationAreasForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationAreasApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiArrayResultLocationAreaWithLocations result = apiInstance.GetLocationAreasForStore(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationAreasApi.GetLocationAreasForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultLocationAreaWithLocations**](RestApiArrayResultLocationAreaWithLocations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateLocationArea** +> RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateLocationAreaExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LocationAreasApi(); + var locationAreaInput = new UpdateLocationArea(); // UpdateLocationArea | + var appId = appId_example; // string | + var storeId = 56; // int? | + var locationAreaId = locationAreaId_example; // string | + + try + { + RestApiResultLocationArea result = apiInstance.UpdateLocationArea(locationAreaInput, appId, storeId, locationAreaId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LocationAreasApi.UpdateLocationArea: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaInput** | [**UpdateLocationArea**](UpdateLocationArea.md)| | + **appId** | **string**| | + **storeId** | **int?**| | + **locationAreaId** | **string**| | + +### Return type + +[**RestApiResultLocationArea**](RestApiResultLocationArea.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LocationCreatedEvent.md b/docs/LocationCreatedEvent.md new file mode 100644 index 00000000..75237d84 --- /dev/null +++ b/docs/LocationCreatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.LocationCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **int?** | Location Location Id | [optional] +**LocationName** | **string** | Location LocationName | [optional] +**DisplayOrder** | **int?** | Location DisplayOrder | [optional] +**ExternalLocationId** | **string** | Location ExternalLocationId | [optional] +**LocationAreaId** | **int?** | Location LocationAreaId | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LocationDeletedEvent.md b/docs/LocationDeletedEvent.md new file mode 100644 index 00000000..58fea6e5 --- /dev/null +++ b/docs/LocationDeletedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.LocationDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **int?** | Location Id | [optional] +**LocationName** | **string** | Location Name | [optional] +**DisplayOrder** | **int?** | Location DisplayOrder | [optional] +**ExternalLocationId** | **string** | Location ExternalLocationId | [optional] +**LocationAreaId** | **int?** | LocationAreaId | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LoginModel.md b/docs/LoginModel.md new file mode 100644 index 00000000..03aeb737 --- /dev/null +++ b/docs/LoginModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.LoginModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email address | +**Password** | **string** | Password | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LookerDashboardApi.md b/docs/LookerDashboardApi.md new file mode 100644 index 00000000..96a79d58 --- /dev/null +++ b/docs/LookerDashboardApi.md @@ -0,0 +1,69 @@ +# Flipdish.Api.LookerDashboardApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LookerDashboardGetAll**](LookerDashboardApi.md#lookerdashboardgetall) | **GET** /api/v1.0/{appId}/looker/dashboards | + + + +# **LookerDashboardGetAll** +> void LookerDashboardGetAll (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class LookerDashboardGetAllExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LookerDashboardApi(); + var appId = appId_example; // string | + + try + { + apiInstance.LookerDashboardGetAll(appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling LookerDashboardApi.LookerDashboardGetAll: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LookerSingleSignOnApi.md b/docs/LookerSingleSignOnApi.md new file mode 100644 index 00000000..bef44ec0 --- /dev/null +++ b/docs/LookerSingleSignOnApi.md @@ -0,0 +1,74 @@ +# Flipdish.Api.LookerSingleSignOnApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSSOEndpoint**](LookerSingleSignOnApi.md#getssoendpoint) | **GET** /api/v1.0/{appId}/looker/sso | + + + +# **GetSSOEndpoint** +> DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSSOEndpointExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new LookerSingleSignOnApi(); + var appId = appId_example; // string | + var embedPath = embedPath_example; // string | + var filters = filters_example; // string | (optional) + + try + { + DashboardEmbed result = apiInstance.GetSSOEndpoint(appId, embedPath, filters); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LookerSingleSignOnApi.GetSSOEndpoint: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **embedPath** | **string**| | + **filters** | **string**| | [optional] + +### Return type + +[**DashboardEmbed**](DashboardEmbed.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LoyaltyCampaign.md b/docs/LoyaltyCampaign.md new file mode 100644 index 00000000..2d6a40a0 --- /dev/null +++ b/docs/LoyaltyCampaign.md @@ -0,0 +1,25 @@ +# Flipdish.Model.LoyaltyCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **int?** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | Statistics of campaign | [optional] +**Stores** | [**List<StoreCampaignStartTime>**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**OrdersBeforeReceivingVoucher** | **int?** | Number of orders customer needs to make, before receiving voucher | [optional] +**PercentDiscountAmount** | **int?** | Discount amount in percents | [optional] +**MaxDiscount** | **double?** | Maximum discount for percentage discounts | [optional] +**RoundingStrategy** | **int?** | Controls how the loyalty voucher's amount is rounded | [optional] +**ShouldIncludeOrdersWithLoyaltyVoucher** | **bool?** | Controls whether we should include orders with loyalty vouchers in the campaign calculation | [optional] +**VoucherValidPeriodDays** | **int?** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **bool?** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **bool?** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **bool?** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **bool?** | Is campaign enabled | [optional] +**StoreIds** | **List<int?>** | Ids of stores this campaign applies to | [optional] +**AppId** | **string** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **bool?** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LoyaltyCampaignBase.md b/docs/LoyaltyCampaignBase.md new file mode 100644 index 00000000..f77beaed --- /dev/null +++ b/docs/LoyaltyCampaignBase.md @@ -0,0 +1,21 @@ +# Flipdish.Model.LoyaltyCampaignBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrdersBeforeReceivingVoucher** | **int?** | Number of orders customer needs to make, before receiving voucher | [optional] +**PercentDiscountAmount** | **int?** | Discount amount in percents | [optional] +**MaxDiscount** | **double?** | Maximum discount for percentage discounts | [optional] +**RoundingStrategy** | **int?** | Controls how the loyalty voucher's amount is rounded | [optional] +**ShouldIncludeOrdersWithLoyaltyVoucher** | **bool?** | Controls whether we should include orders with loyalty vouchers in the campaign calculation | [optional] +**VoucherValidPeriodDays** | **int?** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **bool?** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **bool?** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **bool?** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **bool?** | Is campaign enabled | [optional] +**StoreIds** | **List<int?>** | Ids of stores this campaign applies to | [optional] +**AppId** | **string** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **bool?** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LoyaltyCampaignCreatedEvent.md b/docs/LoyaltyCampaignCreatedEvent.md new file mode 100644 index 00000000..0191826f --- /dev/null +++ b/docs/LoyaltyCampaignCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.LoyaltyCampaignCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LoyaltyCampaignDeletedEvent.md b/docs/LoyaltyCampaignDeletedEvent.md new file mode 100644 index 00000000..a0555ddf --- /dev/null +++ b/docs/LoyaltyCampaignDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.LoyaltyCampaignDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LoyaltyCampaignUpdatedEvent.md b/docs/LoyaltyCampaignUpdatedEvent.md new file mode 100644 index 00000000..0f327bea --- /dev/null +++ b/docs/LoyaltyCampaignUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.LoyaltyCampaignUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | The loyalty campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LumpDiscountDetails.md b/docs/LumpDiscountDetails.md new file mode 100644 index 00000000..78e2d070 --- /dev/null +++ b/docs/LumpDiscountDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.LumpDiscountDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiscountAmount** | **double?** | Discount amount | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MappedLocation.md b/docs/MappedLocation.md new file mode 100644 index 00000000..0c4d7aae --- /dev/null +++ b/docs/MappedLocation.md @@ -0,0 +1,10 @@ +# Flipdish.Model.MappedLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **int?** | Id of the Location | +**ExternalLocationId** | **string** | Id of the Location on an external system | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MaskedPhoneNumber.md b/docs/MaskedPhoneNumber.md new file mode 100644 index 00000000..efeb11cb --- /dev/null +++ b/docs/MaskedPhoneNumber.md @@ -0,0 +1,11 @@ +# Flipdish.Model.MaskedPhoneNumber +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **bool?** | Defines if the feature is enabled | [optional] +**PhoneNumber** | **string** | Defines the phone number to call | [optional] +**Code** | **string** | Defines the code to enter | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Menu.md b/docs/Menu.md new file mode 100644 index 00000000..e4f03ec5 --- /dev/null +++ b/docs/Menu.md @@ -0,0 +1,22 @@ +# Flipdish.Model.Menu +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**ModifiedTime** | **DateTime?** | Last modified time | [optional] +**VersionNumber** | **int?** | Menu version | [optional] +**ImageName** | **string** | Image Name | [optional] +**ImageUrl** | **string** | Image url | [optional] +**Name** | **string** | Name of Menu, only shown in portal | [optional] +**Locked** | **bool?** | Locked: is menu locked against modifcation | [optional] +**MenuSections** | [**List<MenuSection>**](MenuSection.md) | Menu sections (startes, main etc) | [optional] +**TaxRates** | [**List<MenuTaxRate>**](MenuTaxRate.md) | Menu tax rates | [optional] +**AppId** | **string** | Identifier of App the menu is attached to | [optional] +**DisplaySectionLinks** | **bool?** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **string** | Menu section behaviour | [optional] +**TaxType** | **string** | Tax type | [optional] +**IsIntegrated** | **bool?** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuAsyncCreationCompletedEvent.md b/docs/MenuAsyncCreationCompletedEvent.md new file mode 100644 index 00000000..0434dfef --- /dev/null +++ b/docs/MenuAsyncCreationCompletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuAsyncCreationCompletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**Success** | **bool?** | Flag indicating if the menu creation was successful | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuBase.md b/docs/MenuBase.md new file mode 100644 index 00000000..7e18dde2 --- /dev/null +++ b/docs/MenuBase.md @@ -0,0 +1,12 @@ +# Flipdish.Model.MenuBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplaySectionLinks** | **bool?** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **string** | Menu section behaviour | [optional] +**TaxType** | **string** | Tax type | [optional] +**IsIntegrated** | **bool?** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuBulkEditEvent.md b/docs/MenuBulkEditEvent.md new file mode 100644 index 00000000..8f1ca5a1 --- /dev/null +++ b/docs/MenuBulkEditEvent.md @@ -0,0 +1,24 @@ +# Flipdish.Model.MenuBulkEditEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**MenuName** | **string** | Menu Name | [optional] +**Description** | **string** | Description | [optional] +**Item** | **string** | Product | [optional] +**InstanceCount** | **int?** | Quantity of product | [optional] +**IsAvailable** | **bool?** | Visibility of the item | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has uploaded the menu | [optional] +**MenuId** | **int?** | The menu Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuCatalogItem.md b/docs/MenuCatalogItem.md new file mode 100644 index 00000000..d4a119aa --- /dev/null +++ b/docs/MenuCatalogItem.md @@ -0,0 +1,10 @@ +# Flipdish.Model.MenuCatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Product Id to the product to add as Menu Item | +**CellLayoutType** | **string** | Small | Medium | Large | HiddenImage Affects the layout of the menu. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuCheckpoint.md b/docs/MenuCheckpoint.md new file mode 100644 index 00000000..24154d6e --- /dev/null +++ b/docs/MenuCheckpoint.md @@ -0,0 +1,12 @@ +# Flipdish.Model.MenuCheckpoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuCheckpointId** | **int?** | Identifier of Menu Checkpoint | [optional] +**Time** | **DateTime?** | Time of creation of checkpoint | [optional] +**Name** | **string** | Name of checkpoint | [optional] +**Url** | **string** | Url that points to Serialized Checkpoint | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuCheckpointCreatedEvent.md b/docs/MenuCheckpointCreatedEvent.md new file mode 100644 index 00000000..126ebfb8 --- /dev/null +++ b/docs/MenuCheckpointCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuCheckpointCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**Menu** | [**Menu**](Menu.md) | Menu identifier | [optional] +**MenuId** | **int?** | Menu Id | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuCreatedEvent.md b/docs/MenuCreatedEvent.md new file mode 100644 index 00000000..748c1780 --- /dev/null +++ b/docs/MenuCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.MenuCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuElementEditResponse.md b/docs/MenuElementEditResponse.md new file mode 100644 index 00000000..b8e231b0 --- /dev/null +++ b/docs/MenuElementEditResponse.md @@ -0,0 +1,15 @@ +# Flipdish.Model.MenuElementEditResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SectionName** | **string** | Section name | [optional] +**ItemName** | **string** | Item name | [optional] +**OptionSetName** | **string** | Option Set name | [optional] +**OptionSetItemName** | **string** | Element name | [optional] +**MenuElementId** | **int?** | Holds the information for the A and CNAME Records of a domain. | [optional] +**MenuElementType** | **string** | Type of menu element | [optional] +**ValidationCode** | **string** | Validation message for menu element issue | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuElementHide.md b/docs/MenuElementHide.md new file mode 100644 index 00000000..c0bd0fa6 --- /dev/null +++ b/docs/MenuElementHide.md @@ -0,0 +1,10 @@ +# Flipdish.Model.MenuElementHide +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuElementId** | **int?** | id of the menu item or menu option set item | [optional] +**MenuElementType** | **string** | Type of menu element | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuElementListItemResponse.md b/docs/MenuElementListItemResponse.md new file mode 100644 index 00000000..b2cc7a1f --- /dev/null +++ b/docs/MenuElementListItemResponse.md @@ -0,0 +1,10 @@ +# Flipdish.Model.MenuElementListItemResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuElementId** | **int?** | Holds the information for the A and CNAME Records of a domain. | [optional] +**MenuElementType** | **string** | Type of menu element | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuElementListResponse.md b/docs/MenuElementListResponse.md new file mode 100644 index 00000000..73fa0652 --- /dev/null +++ b/docs/MenuElementListResponse.md @@ -0,0 +1,13 @@ +# Flipdish.Model.MenuElementListResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuName** | **string** | Menu Name | [optional] +**MenuElementName** | **string** | Menu Item Name | [optional] +**InstanceCount** | **int?** | Menu Item Count | [optional] +**IsAvailable** | **bool?** | Menu Item is hide or unhide | [optional] +**Items** | [**List<MenuElementListItemResponse>**](MenuElementListItemResponse.md) | List of Items | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSet.md b/docs/MenuItemOptionSet.md new file mode 100644 index 00000000..f851235c --- /dev/null +++ b/docs/MenuItemOptionSet.md @@ -0,0 +1,20 @@ +# Flipdish.Model.MenuItemOptionSet +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetId** | **int?** | Menu item option set identifier | [optional] +**ImageName** | **string** | Image Name | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuItemOptionSetItems** | [**List<MenuItemOptionSetItem>**](MenuItemOptionSetItem.md) | Option set items | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**CatalogItemId** | **string** | Catalog item Id when the OptionSet is associated to a Product | [optional] +**Name** | **string** | Menu item option set name | [optional] +**IsMasterOptionSet** | **bool?** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **int?** | Minimum items must be selected | [optional] +**MaxSelectCount** | **int?** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetBase.md b/docs/MenuItemOptionSetBase.md new file mode 100644 index 00000000..6eac18dc --- /dev/null +++ b/docs/MenuItemOptionSetBase.md @@ -0,0 +1,15 @@ +# Flipdish.Model.MenuItemOptionSetBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Menu item option set name | [optional] +**IsMasterOptionSet** | **bool?** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **int?** | Minimum items must be selected | [optional] +**MaxSelectCount** | **int?** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetCreatedEvent.md b/docs/MenuItemOptionSetCreatedEvent.md new file mode 100644 index 00000000..6defe365 --- /dev/null +++ b/docs/MenuItemOptionSetCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Created menu item optionset | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetDeletedEvent.md b/docs/MenuItemOptionSetDeletedEvent.md new file mode 100644 index 00000000..fd1eb65e --- /dev/null +++ b/docs/MenuItemOptionSetDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Deleted menu item optionset | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetItem.md b/docs/MenuItemOptionSetItem.md new file mode 100644 index 00000000..423a799d --- /dev/null +++ b/docs/MenuItemOptionSetItem.md @@ -0,0 +1,23 @@ +# Flipdish.Model.MenuItemOptionSetItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetItemId** | **int?** | Menu item option set item identifier | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**Metadata** | [**List<CreateMetadata>**](CreateMetadata.md) | List of metadata | [optional] +**NextMenuItemOptionSetId** | **int?** | if null, next option set is next. if -1, this is the final option set | [optional] +**CatalogItemId** | **string** | Catalog item Id when the OptionSet is associated to a Product | [optional] +**TaxRateName** | **string** | Tax rate name | [optional] +**TaxRateId** | **int?** | TaxRateId. | [optional] +**TaxValue** | **double?** | TaxValue. | [optional] +**Name** | **string** | Name | [optional] +**Price** | **double?** | Price | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**ImageUrl** | **string** | Image url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetItemBase.md b/docs/MenuItemOptionSetItemBase.md new file mode 100644 index 00000000..7bc286d4 --- /dev/null +++ b/docs/MenuItemOptionSetItemBase.md @@ -0,0 +1,16 @@ +# Flipdish.Model.MenuItemOptionSetItemBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name | [optional] +**Price** | **double?** | Price | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**DisplayOrder** | **int?** | Display order. Displayed in ascending order. | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**ImageUrl** | **string** | Image url | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetItemCreatedEvent.md b/docs/MenuItemOptionSetItemCreatedEvent.md new file mode 100644 index 00000000..64835978 --- /dev/null +++ b/docs/MenuItemOptionSetItemCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetItemCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Created menu item optionset item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetItemDeletedEvent.md b/docs/MenuItemOptionSetItemDeletedEvent.md new file mode 100644 index 00000000..1483e496 --- /dev/null +++ b/docs/MenuItemOptionSetItemDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetItemDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Deleted menu item optionset item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetItemUpdatedEvent.md b/docs/MenuItemOptionSetItemUpdatedEvent.md new file mode 100644 index 00000000..f7e3cf91 --- /dev/null +++ b/docs/MenuItemOptionSetItemUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetItemUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Updated menu item optionset item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuItemOptionSetUpdatedEvent.md b/docs/MenuItemOptionSetUpdatedEvent.md new file mode 100644 index 00000000..74ae770f --- /dev/null +++ b/docs/MenuItemOptionSetUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuItemOptionSetUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Updated menu item optionset | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuNutritionInfoHeader.md b/docs/MenuNutritionInfoHeader.md new file mode 100644 index 00000000..6bae6cce --- /dev/null +++ b/docs/MenuNutritionInfoHeader.md @@ -0,0 +1,11 @@ +# Flipdish.Model.MenuNutritionInfoHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu Id | [optional] +**NutritionInfoVersionGuid** | **Guid?** | Nutrition information version guid (generated every time the nutrition information is updated) | [optional] +**AbsoluteUrl** | **string** | Absolute URL of the nutrition information json file | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuObjectDisplayOrders.md b/docs/MenuObjectDisplayOrders.md new file mode 100644 index 00000000..f986f50a --- /dev/null +++ b/docs/MenuObjectDisplayOrders.md @@ -0,0 +1,9 @@ +# Flipdish.Model.MenuObjectDisplayOrders +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayOrders** | [**List<ObjectDisplayOrder>**](ObjectDisplayOrder.md) | List of Objects and their new Display Orders | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuOptionSetItemsApi.md b/docs/MenuOptionSetItemsApi.md new file mode 100644 index 00000000..8297efda --- /dev/null +++ b/docs/MenuOptionSetItemsApi.md @@ -0,0 +1,578 @@ +# Flipdish.Api.MenuOptionSetItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#addmenuitemoptionsetitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Create menu item option set item +[**DeleteOptionSetItemImage**](MenuOptionSetItemsApi.md#deleteoptionsetitemimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Delete menu item option set item image +[**GetMenuItemOptionSetItemById**](MenuOptionSetItemsApi.md#getmenuitemoptionsetitembyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Get menu item option set item by identifier +[**GetMenuItemOptionSetItems**](MenuOptionSetItemsApi.md#getmenuitemoptionsetitems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Get menu item option set items +[**RemoveMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#removemenuitemoptionsetitem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Delete menu item option set item +[**SetOptionSetItemTax**](MenuOptionSetItemsApi.md#setoptionsetitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId} | Set Tax Rate on OptionSetItem +[**UpdateMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#updatemenuitemoptionsetitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Update menu item option set item +[**UploadOptionSetItemImage**](MenuOptionSetItemsApi.md#uploadoptionsetitemimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Upload menu item option set item image + + + +# **AddMenuItemOptionSetItem** +> Object AddMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem) + +Create menu item option set item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddMenuItemOptionSetItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItem = new MenuItemOptionSetItemBase(); // MenuItemOptionSetItemBase | Option set item + + try + { + // Create menu item option set item + Object result = apiInstance.AddMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.AddMenuItemOptionSetItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItem** | [**MenuItemOptionSetItemBase**](MenuItemOptionSetItemBase.md)| Option set item | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteOptionSetItemImage** +> void DeleteOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + +Delete menu item option set item image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteOptionSetItemImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + + try + { + // Delete menu item option set item image + apiInstance.DeleteOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.DeleteOptionSetItemImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemOptionSetItemById** +> RestApiResultMenuItemOptionSetItem GetMenuItemOptionSetItemById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + +Get menu item option set item by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemOptionSetItemByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + + try + { + // Get menu item option set item by identifier + RestApiResultMenuItemOptionSetItem result = apiInstance.GetMenuItemOptionSetItemById(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.GetMenuItemOptionSetItemById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + +### Return type + +[**RestApiResultMenuItemOptionSetItem**](RestApiResultMenuItemOptionSetItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemOptionSetItems** +> RestApiArrayResultMenuItemOptionSetItem GetMenuItemOptionSetItems (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + +Get menu item option set items + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemOptionSetItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + + try + { + // Get menu item option set items + RestApiArrayResultMenuItemOptionSetItem result = apiInstance.GetMenuItemOptionSetItems(menuId, menuSectionId, menuSectionItemId, optionSetId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.GetMenuItemOptionSetItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + +### Return type + +[**RestApiArrayResultMenuItemOptionSetItem**](RestApiArrayResultMenuItemOptionSetItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveMenuItemOptionSetItem** +> void RemoveMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + +Delete menu item option set item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveMenuItemOptionSetItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + + try + { + // Delete menu item option set item + apiInstance.RemoveMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.RemoveMenuItemOptionSetItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetOptionSetItemTax** +> void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) + +Set Tax Rate on OptionSetItem + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetOptionSetItemTaxExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | + var menuSectionItemId = 56; // int? | + var optionSetId = 56; // int? | + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + var taxRateId = 56; // int? | Tax Rate to use + + try + { + // Set Tax Rate on OptionSetItem + apiInstance.SetOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.SetOptionSetItemTax: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| | + **menuSectionItemId** | **int?**| | + **optionSetId** | **int?**| | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + **taxRateId** | **int?**| Tax Rate to use | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenuItemOptionSetItem** +> void UpdateMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null) + +Update menu item option set item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuItemOptionSetItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + var menuItemOptionSetItem = new MenuItemOptionSetItemBase(); // MenuItemOptionSetItemBase | Option set item (delta) + var undoAfter = 1.2; // double? | An optional time period, in hours, after which the hide-section operation will be undone. (optional) + + try + { + // Update menu item option set item + apiInstance.UpdateMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, undoAfter); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.UpdateMenuItemOptionSetItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + **menuItemOptionSetItem** | [**MenuItemOptionSetItemBase**](MenuItemOptionSetItemBase.md)| Option set item (delta) | + **undoAfter** | **double?**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadOptionSetItemImage** +> RestApiStringResult UploadOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image) + +Upload menu item option set item image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadOptionSetItemImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSetItemId = 56; // int? | Option set item identifier + var image = new System.IO.Stream(); // System.IO.Stream | Option set item image + + try + { + // Upload menu item option set item image + RestApiStringResult result = apiInstance.UploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetItemsApi.UploadOptionSetItemImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSetItemId** | **int?**| Option set item identifier | + **image** | **System.IO.Stream**| Option set item image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenuOptionSetsApi.md b/docs/MenuOptionSetsApi.md new file mode 100644 index 00000000..737b711e --- /dev/null +++ b/docs/MenuOptionSetsApi.md @@ -0,0 +1,490 @@ +# Flipdish.Api.MenuOptionSetsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMenuItemOptionSet**](MenuOptionSetsApi.md#createmenuitemoptionset) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Create menu item option set +[**DeleteMenuItemOptionSet**](MenuOptionSetsApi.md#deletemenuitemoptionset) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Delete menu item option set +[**DeleteOptionSetImage**](MenuOptionSetsApi.md#deleteoptionsetimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Delete option set image +[**GetMenuItemOptionSetById**](MenuOptionSetsApi.md#getmenuitemoptionsetbyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Get menu item option set by identifier +[**GetMenuItemOptionSets**](MenuOptionSetsApi.md#getmenuitemoptionsets) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Get menu item option sets +[**UpdateMenuItemOptionSet**](MenuOptionSetsApi.md#updatemenuitemoptionset) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Update menu item option set +[**UploadOptionSetImage**](MenuOptionSetsApi.md#uploadoptionsetimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Upload menu item option set image + + + +# **CreateMenuItemOptionSet** +> Object CreateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet) + +Create menu item option set + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuItemOptionSetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var menuItemOptionSet = new MenuItemOptionSetBase(); // MenuItemOptionSetBase | Menu item option set + + try + { + // Create menu item option set + Object result = apiInstance.CreateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.CreateMenuItemOptionSet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **menuItemOptionSet** | [**MenuItemOptionSetBase**](MenuItemOptionSetBase.md)| Menu item option set | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuItemOptionSet** +> void DeleteMenuItemOptionSet (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId) + +Delete menu item option set + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuItemOptionSetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var menuSectionId = 56; // int? | Menu section identifier + var optionSetId = 56; // int? | Option set identifier + + try + { + // Delete menu item option set + apiInstance.DeleteMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.DeleteMenuItemOptionSet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **menuSectionId** | **int?**| Menu section identifier | + **optionSetId** | **int?**| Option set identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteOptionSetImage** +> void DeleteOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + +Delete option set image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteOptionSetImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + + try + { + // Delete option set image + apiInstance.DeleteOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.DeleteOptionSetImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemOptionSetById** +> RestApiResultMenuItemOptionSet GetMenuItemOptionSetById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + +Get menu item option set by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemOptionSetByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Menu item option set identifier + + try + { + // Get menu item option set by identifier + RestApiResultMenuItemOptionSet result = apiInstance.GetMenuItemOptionSetById(menuId, menuSectionId, menuSectionItemId, optionSetId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.GetMenuItemOptionSetById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Menu item option set identifier | + +### Return type + +[**RestApiResultMenuItemOptionSet**](RestApiResultMenuItemOptionSet.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemOptionSets** +> RestApiArrayResultMenuItemOptionSet GetMenuItemOptionSets (int? menuId, int? menuSectionId, int? menuSectionItemId) + +Get menu item option sets + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemOptionSetsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + + try + { + // Get menu item option sets + RestApiArrayResultMenuItemOptionSet result = apiInstance.GetMenuItemOptionSets(menuId, menuSectionId, menuSectionItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.GetMenuItemOptionSets: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + +### Return type + +[**RestApiArrayResultMenuItemOptionSet**](RestApiArrayResultMenuItemOptionSet.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenuItemOptionSet** +> void UpdateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet) + +Update menu item option set + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuItemOptionSetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var menuItemOptionSet = new MenuItemOptionSetBase(); // MenuItemOptionSetBase | Menu item option set (delta) + + try + { + // Update menu item option set + apiInstance.UpdateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.UpdateMenuItemOptionSet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **menuItemOptionSet** | [**MenuItemOptionSetBase**](MenuItemOptionSetBase.md)| Menu item option set (delta) | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadOptionSetImage** +> RestApiStringResult UploadOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image) + +Upload menu item option set image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadOptionSetImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuOptionSetsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var optionSetId = 56; // int? | Option set identifier + var image = new System.IO.Stream(); // System.IO.Stream | Option set image + + try + { + // Upload menu item option set image + RestApiStringResult result = apiInstance.UploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuOptionSetsApi.UploadOptionSetImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **optionSetId** | **int?**| Option set identifier | + **image** | **System.IO.Stream**| Option set image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenuSection.md b/docs/MenuSection.md new file mode 100644 index 00000000..48d1ea73 --- /dev/null +++ b/docs/MenuSection.md @@ -0,0 +1,19 @@ +# Flipdish.Model.MenuSection +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionId** | **int?** | Menu section identifier | [optional] +**MenuItems** | [**List<MenuSectionItem>**](MenuSectionItem.md) | Menu items | [optional] +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Menu section availability | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**ImageName** | **string** | Image Name | [optional] +**Name** | **string** | Name | [optional] +**Description** | **string** | Description | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**IsHiddenFromCustomers** | **bool?** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **string** | Image url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionAvailability.md b/docs/MenuSectionAvailability.md new file mode 100644 index 00000000..15f41adb --- /dev/null +++ b/docs/MenuSectionAvailability.md @@ -0,0 +1,10 @@ +# Flipdish.Model.MenuSectionAvailability +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableTimes** | [**List<BusinessHoursPeriod>**](BusinessHoursPeriod.md) | Available times | [optional] +**AvailabilityMode** | **string** | Availability mode | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionAvailabilityBase.md b/docs/MenuSectionAvailabilityBase.md new file mode 100644 index 00000000..9ade1f17 --- /dev/null +++ b/docs/MenuSectionAvailabilityBase.md @@ -0,0 +1,9 @@ +# Flipdish.Model.MenuSectionAvailabilityBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityMode** | **string** | Availability mode | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionBase.md b/docs/MenuSectionBase.md new file mode 100644 index 00000000..63391483 --- /dev/null +++ b/docs/MenuSectionBase.md @@ -0,0 +1,16 @@ +# Flipdish.Model.MenuSectionBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name | [optional] +**Description** | **string** | Description | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**IsHiddenFromCustomers** | **bool?** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuSectionId** | **int?** | Menu Section Id | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionCreatedEvent.md b/docs/MenuSectionCreatedEvent.md new file mode 100644 index 00000000..4bbbf29d --- /dev/null +++ b/docs/MenuSectionCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Created menu section | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionDeletedEvent.md b/docs/MenuSectionDeletedEvent.md new file mode 100644 index 00000000..a72b5c15 --- /dev/null +++ b/docs/MenuSectionDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Deleted menu section | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItem.md b/docs/MenuSectionItem.md new file mode 100644 index 00000000..c24a3afe --- /dev/null +++ b/docs/MenuSectionItem.md @@ -0,0 +1,31 @@ +# Flipdish.Model.MenuSectionItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActualPrice** | **double?** | Actual price - the minimum price possible when all required option set items prices are included. | [optional] +**MenuItemOptionSets** | [**List<MenuItemOptionSet>**](MenuItemOptionSet.md) | Menu item option sets | [optional] +**DailySpecialHours** | [**List<BusinessHoursPeriod>**](BusinessHoursPeriod.md) | Daily special hours | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**TaxRateName** | **string** | Tax rate name | [optional] +**TaxRateId** | **int?** | TaxRate | [optional] +**TaxValue** | **double?** | TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision) | [optional] +**ExcludeFromVoucherDiscounting** | **bool?** | If true, the item is excluded from voucher discount calculations | [optional] +**Metadata** | [**List<CreateMetadata>**](CreateMetadata.md) | List of metadata | [optional] +**CatalogItemId** | **string** | Catalog item Id when the Item is associated to a Product | [optional] +**Name** | **string** | Menu item name (like \"Korma\") | [optional] +**Description** | **string** | Description (like \"A lovely dish from the east\") | [optional] +**SpicinessRating** | **string** | Spiciness rating | [optional] +**Price** | **double?** | Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**Alcohol** | **bool?** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **bool?** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **bool?** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **string** | Image url | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuItemId** | **int?** | Menu Item Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItemBase.md b/docs/MenuSectionItemBase.md new file mode 100644 index 00000000..592ea0c5 --- /dev/null +++ b/docs/MenuSectionItemBase.md @@ -0,0 +1,23 @@ +# Flipdish.Model.MenuSectionItemBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Menu item name (like \"Korma\") | [optional] +**Description** | **string** | Description (like \"A lovely dish from the east\") | [optional] +**SpicinessRating** | **string** | Spiciness rating | [optional] +**Price** | **double?** | Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. | [optional] +**DepositReturnFee** | **double?** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **int?** | Display order | [optional] +**Alcohol** | **bool?** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **bool?** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **string** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **bool?** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **string** | Image url | [optional] +**ImageUrl** | **string** | Image url | [optional] +**MenuItemId** | **int?** | Menu Item Id | [optional] +**ExcludeFromVoucherDiscounting** | **bool?** | If true, the item is excluded from voucher discount calculations | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItemCreatedEvent.md b/docs/MenuSectionItemCreatedEvent.md new file mode 100644 index 00000000..29192710 --- /dev/null +++ b/docs/MenuSectionItemCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionItemCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the menu | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Created menu section item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItemDeletedEvent.md b/docs/MenuSectionItemDeletedEvent.md new file mode 100644 index 00000000..f7dea7d8 --- /dev/null +++ b/docs/MenuSectionItemDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionItemDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Deleted by user | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Deleted menu section item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItemUpdatedEvent.md b/docs/MenuSectionItemUpdatedEvent.md new file mode 100644 index 00000000..b928535e --- /dev/null +++ b/docs/MenuSectionItemUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionItemUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | Updated menu section item | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionItemsApi.md b/docs/MenuSectionItemsApi.md new file mode 100644 index 00000000..8bf881f1 --- /dev/null +++ b/docs/MenuSectionItemsApi.md @@ -0,0 +1,750 @@ +# Flipdish.Api.MenuSectionItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CloneMenuSectionItem**](MenuSectionItemsApi.md#clonemenusectionitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone | Clone menu section item +[**CreateMenuSectionItem**](MenuSectionItemsApi.md#createmenusectionitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Create menu section item +[**CreateMenuSectionItemFromCatalogItems**](MenuSectionItemsApi.md#createmenusectionitemfromcatalogitems) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems | Create menu section items from a list of Catalog Items +[**DeleteMenuSectionItem**](MenuSectionItemsApi.md#deletemenusectionitem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Delete menu section item +[**DeleteMenuSectionItemImage**](MenuSectionItemsApi.md#deletemenusectionitemimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Delete menu section item image +[**GetMenuItemById**](MenuSectionItemsApi.md#getmenuitembyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Get menu item by identifier +[**GetMenuItems**](MenuSectionItemsApi.md#getmenuitems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Get menu items +[**MoveMenuItem**](MenuSectionItemsApi.md#movemenuitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder} | Move an Item within a menu +[**SetSectionItemTax**](MenuSectionItemsApi.md#setsectionitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | Set tax rate for menu item +[**UpdateMenuSectionItem**](MenuSectionItemsApi.md#updatemenusectionitem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Update menu section item +[**UploadMenuSectionItemImage**](MenuSectionItemsApi.md#uploadmenusectionitemimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Upload menu section item image + + + +# **CloneMenuSectionItem** +> RestApiResultMenuSectionItem CloneMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId) + +Clone menu section item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CloneMenuSectionItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + + try + { + // Clone menu section item + RestApiResultMenuSectionItem result = apiInstance.CloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.CloneMenuSectionItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + +### Return type + +[**RestApiResultMenuSectionItem**](RestApiResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateMenuSectionItem** +> Object CreateMenuSectionItem (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem) + +Create menu section item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuSectionItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItem = new MenuSectionItemBase(); // MenuSectionItemBase | Menu section item + + try + { + // Create menu section item + Object result = apiInstance.CreateMenuSectionItem(menuId, menuSectionId, menuSectionItem); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.CreateMenuSectionItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItem** | [**MenuSectionItemBase**](MenuSectionItemBase.md)| Menu section item | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateMenuSectionItemFromCatalogItems** +> Object CreateMenuSectionItemFromCatalogItems (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems) + +Create menu section items from a list of Catalog Items + +BETA - this endpoint is under development, do not use it in your production system + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuSectionItemFromCatalogItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var createFromCatalogItems = new CreateMenuSectionItemFromCatalogItems(); // CreateMenuSectionItemFromCatalogItems | Information to create the new MenuSectionItems + + try + { + // Create menu section items from a list of Catalog Items + Object result = apiInstance.CreateMenuSectionItemFromCatalogItems(menuId, menuSectionId, createFromCatalogItems); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.CreateMenuSectionItemFromCatalogItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **createFromCatalogItems** | [**CreateMenuSectionItemFromCatalogItems**](CreateMenuSectionItemFromCatalogItems.md)| Information to create the new MenuSectionItems | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuSectionItem** +> void DeleteMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId) + +Delete menu section item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuSectionItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + + try + { + // Delete menu section item + apiInstance.DeleteMenuSectionItem(menuId, menuSectionId, menuSectionItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.DeleteMenuSectionItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuSectionItemImage** +> void DeleteMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId) + +Delete menu section item image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuSectionItemImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + + try + { + // Delete menu section item image + apiInstance.DeleteMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.DeleteMenuSectionItemImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemById** +> RestApiResultMenuSectionItem GetMenuItemById (int? menuId, int? menuSectionId, int? menuSectionItemId) + +Get menu item by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu item identifier + + try + { + // Get menu item by identifier + RestApiResultMenuSectionItem result = apiInstance.GetMenuItemById(menuId, menuSectionId, menuSectionItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.GetMenuItemById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu item identifier | + +### Return type + +[**RestApiResultMenuSectionItem**](RestApiResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItems** +> RestApiArrayResultMenuSectionItem GetMenuItems (int? menuId, int? menuSectionId) + +Get menu items + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + + try + { + // Get menu items + RestApiArrayResultMenuSectionItem result = apiInstance.GetMenuItems(menuId, menuSectionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.GetMenuItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + +### Return type + +[**RestApiArrayResultMenuSectionItem**](RestApiArrayResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MoveMenuItem** +> void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) + +Move an Item within a menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MoveMenuItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Section to put item in (will usually be original section) + var menuSectionItemId = 56; // int? | ID of Item to be moved + var destinationDisplayOrder = 56; // int? | New Display Order of item + + try + { + // Move an Item within a menu + apiInstance.MoveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.MoveMenuItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Section to put item in (will usually be original section) | + **menuSectionItemId** | **int?**| ID of Item to be moved | + **destinationDisplayOrder** | **int?**| New Display Order of item | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetSectionItemTax** +> void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) + +Set tax rate for menu item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetSectionItemTaxExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Section to put item in (will usually be original section) + var menuSectionItemId = 56; // int? | ID of Item to be moved + var taxRateId = 56; // int? | tax rate to be set against item + + try + { + // Set tax rate for menu item + apiInstance.SetSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.SetSectionItemTax: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Section to put item in (will usually be original section) | + **menuSectionItemId** | **int?**| ID of Item to be moved | + **taxRateId** | **int?**| tax rate to be set against item | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenuSectionItem** +> void UpdateMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null) + +Update menu section item + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuSectionItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var menuSectionItem = new MenuSectionItemBase(); // MenuSectionItemBase | Menu section item (delta) + var undoAfter = 1.2; // double? | An optional time period, in hours, after which the hide-section operation will be undone (optional) + + try + { + // Update menu section item + apiInstance.UpdateMenuSectionItem(menuId, menuSectionId, menuSectionItemId, menuSectionItem, undoAfter); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.UpdateMenuSectionItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **menuSectionItem** | [**MenuSectionItemBase**](MenuSectionItemBase.md)| Menu section item (delta) | + **undoAfter** | **double?**| An optional time period, in hours, after which the hide-section operation will be undone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadMenuSectionItemImage** +> RestApiStringResult UploadMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image) + +Upload menu section item image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadMenuSectionItemImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionItemsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionItemId = 56; // int? | Menu section item identifier + var image = new System.IO.Stream(); // System.IO.Stream | Menu section item image + + try + { + // Upload menu section item image + RestApiStringResult result = apiInstance.UploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionItemsApi.UploadMenuSectionItemImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionItemId** | **int?**| Menu section item identifier | + **image** | **System.IO.Stream**| Menu section item image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionUpdatedEvent.md b/docs/MenuSectionUpdatedEvent.md new file mode 100644 index 00000000..c71c4a4b --- /dev/null +++ b/docs/MenuSectionUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuSectionUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**Description** | **string** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Updated by user | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | Updated menu section | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSectionsApi.md b/docs/MenuSectionsApi.md new file mode 100644 index 00000000..15688c42 --- /dev/null +++ b/docs/MenuSectionsApi.md @@ -0,0 +1,731 @@ +# Flipdish.Api.MenuSectionsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CloneMenuSection**](MenuSectionsApi.md#clonemenusection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone | Clone menu section +[**CreateMenuAvailabilityForDay**](MenuSectionsApi.md#createmenuavailabilityforday) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek} | Set/update menu section availability hours. +[**CreateMenuSection**](MenuSectionsApi.md#createmenusection) | **POST** /api/v1.0/menus/{menuId}/sections | Create menu section +[**CreateMenuSectionAvailability**](MenuSectionsApi.md#createmenusectionavailability) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability | Create menu availability type +[**DeleteMenuSection**](MenuSectionsApi.md#deletemenusection) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Delete menu section +[**DeleteMenuSectionImage**](MenuSectionsApi.md#deletemenusectionimage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Delete menu section image +[**GetMenuSectionById**](MenuSectionsApi.md#getmenusectionbyid) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Get menu section by identifier +[**GetMenuSections**](MenuSectionsApi.md#getmenusections) | **GET** /api/v1.0/menus/{menuId}/sections | Get menu sections +[**MenuSectionsSetItemDisplayOrders**](MenuSectionsApi.md#menusectionssetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders | Re-arrange Items within a Section +[**UpdateMenuSection**](MenuSectionsApi.md#updatemenusection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Update menu section +[**UploadMenuSectionImage**](MenuSectionsApi.md#uploadmenusectionimage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Upload menu section image + + + +# **CloneMenuSection** +> RestApiResultMenuSection CloneMenuSection (int? menuId, int? menuSectionId) + +Clone menu section + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CloneMenuSectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + + try + { + // Clone menu section + RestApiResultMenuSection result = apiInstance.CloneMenuSection(menuId, menuSectionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.CloneMenuSection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + +### Return type + +[**RestApiResultMenuSection**](RestApiResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateMenuAvailabilityForDay** +> Object CreateMenuAvailabilityForDay (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod) + +Set/update menu section availability hours. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuAvailabilityForDayExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var dayOfWeek = dayOfWeek_example; // string | Day of the week + var businessHoursPeriod = new BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + + try + { + // Set/update menu section availability hours. + Object result = apiInstance.CreateMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.CreateMenuAvailabilityForDay: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **dayOfWeek** | **string**| Day of the week | + **businessHoursPeriod** | [**BusinessHoursPeriodBase**](BusinessHoursPeriodBase.md)| Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateMenuSection** +> Object CreateMenuSection (int? menuId, MenuSectionBase menuSection) + +Create menu section + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuSectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSection = new MenuSectionBase(); // MenuSectionBase | Menu section + + try + { + // Create menu section + Object result = apiInstance.CreateMenuSection(menuId, menuSection); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.CreateMenuSection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSection** | [**MenuSectionBase**](MenuSectionBase.md)| Menu section | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateMenuSectionAvailability** +> Object CreateMenuSectionAvailability (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability) + +Create menu availability type + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMenuSectionAvailabilityExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSectionAvailability = new MenuSectionAvailabilityBase(); // MenuSectionAvailabilityBase | DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + + try + { + // Create menu availability type + Object result = apiInstance.CreateMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.CreateMenuSectionAvailability: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSectionAvailability** | [**MenuSectionAvailabilityBase**](MenuSectionAvailabilityBase.md)| DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuSection** +> void DeleteMenuSection (int? menuId, int? menuSectionId) + +Delete menu section + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuSectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + + try + { + // Delete menu section + apiInstance.DeleteMenuSection(menuId, menuSectionId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.DeleteMenuSection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuSectionImage** +> void DeleteMenuSectionImage (int? menuId, int? menuSectionId) + +Delete menu section image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuSectionImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + + try + { + // Delete menu section image + apiInstance.DeleteMenuSectionImage(menuId, menuSectionId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.DeleteMenuSectionImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuSectionById** +> RestApiResultMenuSection GetMenuSectionById (int? menuId, int? menuSectionId) + +Get menu section by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuSectionByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + + try + { + // Get menu section by identifier + RestApiResultMenuSection result = apiInstance.GetMenuSectionById(menuId, menuSectionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.GetMenuSectionById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + +### Return type + +[**RestApiResultMenuSection**](RestApiResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuSections** +> RestApiArrayResultMenuSection GetMenuSections (int? menuId) + +Get menu sections + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuSectionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get menu sections + RestApiArrayResultMenuSection result = apiInstance.GetMenuSections(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.GetMenuSections: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuSection**](RestApiArrayResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenuSectionsSetItemDisplayOrders** +> void MenuSectionsSetItemDisplayOrders (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders) + +Re-arrange Items within a Section + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenuSectionsSetItemDisplayOrdersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var displayOrders = new MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Item Ids and their new display order + + try + { + // Re-arrange Items within a Section + apiInstance.MenuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.MenuSectionsSetItemDisplayOrders: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **displayOrders** | [**MenuObjectDisplayOrders**](MenuObjectDisplayOrders.md)| Item Ids and their new display order | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenuSection** +> void UpdateMenuSection (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null) + +Update menu section + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuSectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var menuSection = new MenuSectionBase(); // MenuSectionBase | Menu section changes (delta) + var undoAfter = 1.2; // double? | An optional time period, in hours, after which the hide-section operation will be undone. (optional) + + try + { + // Update menu section + apiInstance.UpdateMenuSection(menuId, menuSectionId, menuSection, undoAfter); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.UpdateMenuSection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **menuSection** | [**MenuSectionBase**](MenuSectionBase.md)| Menu section changes (delta) | + **undoAfter** | **double?**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadMenuSectionImage** +> RestApiStringResult UploadMenuSectionImage (int? menuId, int? menuSectionId, System.IO.Stream image) + +Upload menu section image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadMenuSectionImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuSectionsApi(); + var menuId = 56; // int? | Menu identifier + var menuSectionId = 56; // int? | Menu section identifier + var image = new System.IO.Stream(); // System.IO.Stream | Menu section image + + try + { + // Upload menu section image + RestApiStringResult result = apiInstance.UploadMenuSectionImage(menuId, menuSectionId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuSectionsApi.UploadMenuSectionImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menuSectionId** | **int?**| Menu section identifier | + **image** | **System.IO.Stream**| Menu section image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenuStoreNames.md b/docs/MenuStoreNames.md new file mode 100644 index 00000000..9aaba002 --- /dev/null +++ b/docs/MenuStoreNames.md @@ -0,0 +1,9 @@ +# Flipdish.Model.MenuStoreNames +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreNames** | **List<string>** | Names of stores associated with menu | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuSummary.md b/docs/MenuSummary.md new file mode 100644 index 00000000..95869403 --- /dev/null +++ b/docs/MenuSummary.md @@ -0,0 +1,16 @@ +# Flipdish.Model.MenuSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu identifier | [optional] +**ModifiedTime** | **DateTime?** | Last modified time | [optional] +**VersionNumber** | **int?** | Menu version | [optional] +**MenuUrl** | **string** | Menu Url | [optional] +**Name** | **string** | Name of Menu, only shown in portal | [optional] +**Locked** | **bool?** | Locked: is menu locked against modifcation | [optional] +**StoreNames** | **List<string>** | List of stores names which are associated with this menu | [optional] +**IsIntegrated** | **bool?** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuTaxDetails.md b/docs/MenuTaxDetails.md new file mode 100644 index 00000000..cbae2be7 --- /dev/null +++ b/docs/MenuTaxDetails.md @@ -0,0 +1,13 @@ +# Flipdish.Model.MenuTaxDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaxRates** | [**List<MenuTaxRate>**](MenuTaxRate.md) | Tax Rates | [optional] +**DisplayTax** | **bool?** | Display tax for Menu | [optional] +**TaxType** | **string** | TaxType | [optional] +**ItemTaxes** | **Dictionary<string, int?>** | ItemIds and TaxIds | [optional] +**SetItemTaxes** | **Dictionary<string, int?>** | SetItemIds and TaxIds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuTaxRate.md b/docs/MenuTaxRate.md new file mode 100644 index 00000000..4ee3ecd3 --- /dev/null +++ b/docs/MenuTaxRate.md @@ -0,0 +1,11 @@ +# Flipdish.Model.MenuTaxRate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaxRateId** | **int?** | Id of Tax Rate | [optional] +**Name** | **string** | Name of Tax Rate | [optional] +**Rate** | **double?** | In Percentage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuUpdatedEvent.md b/docs/MenuUpdatedEvent.md new file mode 100644 index 00000000..933681ab --- /dev/null +++ b/docs/MenuUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.MenuUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has updated the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**MenuId** | **int?** | Menu Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuUploadedEvent.md b/docs/MenuUploadedEvent.md new file mode 100644 index 00000000..8c8a150d --- /dev/null +++ b/docs/MenuUploadedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.MenuUploadedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has uploaded the menu | [optional] +**Menu** | [**Menu**](Menu.md) | The menu | [optional] +**InstanceEventCount** | **string** | Quantity of events | [optional] +**MenuId** | **int?** | The menu Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuZone.md b/docs/MenuZone.md new file mode 100644 index 00000000..bbbbff93 --- /dev/null +++ b/docs/MenuZone.md @@ -0,0 +1,15 @@ +# Flipdish.Model.MenuZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuZoneId** | **int?** | MenuZoneId. | [optional] +**MenuId** | **int?** | MenuId. | [optional] +**Name** | **string** | Name. | [optional] +**Description** | **string** | Description. | [optional] +**ImageName** | **string** | ImageName. | [optional] +**DisplayOrder** | **int?** | DisplayOrder. | [optional] +**ImageUrl** | **string** | ImageUrl. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MenuZonesApi.md b/docs/MenuZonesApi.md new file mode 100644 index 00000000..61a7b46b --- /dev/null +++ b/docs/MenuZonesApi.md @@ -0,0 +1,725 @@ +# Flipdish.Api.MenuZonesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddMenuZone**](MenuZonesApi.md#addmenuzone) | **POST** /api/v1.0/menus/{menuId}/zones | Adds a new menu zone to a menu. +[**DeleteMenuZone**](MenuZonesApi.md#deletemenuzone) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Deletes a menu zone. +[**DeleteMenuZoneImage**](MenuZonesApi.md#deletemenuzoneimage) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Deletes a menu zone image. +[**FlipMenuZones**](MenuZonesApi.md#flipmenuzones) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2} | Flips the order of two menu zones. +[**GetMenuZone**](MenuZonesApi.md#getmenuzone) | **GET** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Gets a specific menu zone for a given zone id +[**GetMenuZonesForMenuId**](MenuZonesApi.md#getmenuzonesformenuid) | **GET** /api/v1.0/menus/{menuId}/zones | Gets all the menu zones for a menu +[**SetMenuSectionMenuZone**](MenuZonesApi.md#setmenusectionmenuzone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId} | Assigns a zone to a menu section. +[**SetMenuZoneDescription**](MenuZonesApi.md#setmenuzonedescription) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/description | Sets the description of a menu zone. +[**SetMenuZoneName**](MenuZonesApi.md#setmenuzonename) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName} | Sets the name of a menu zone. +[**UpdateMenuZone**](MenuZonesApi.md#updatemenuzone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Updates a menu zone. +[**UploadMenuZoneImage**](MenuZonesApi.md#uploadmenuzoneimage) | **POST** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Uploads an image for a menu zone. + + + +# **AddMenuZone** +> RestApiResultMenuZone AddMenuZone (int? menuId, MenuZone menuZone) + +Adds a new menu zone to a menu. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddMenuZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | The menu id. + var menuZone = new MenuZone(); // MenuZone | The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + + try + { + // Adds a new menu zone to a menu. + RestApiResultMenuZone result = apiInstance.AddMenuZone(menuId, menuZone); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.AddMenuZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| The menu id. | + **menuZone** | [**MenuZone**](MenuZone.md)| The object containing the new zone. This is optional and not supplying it will generate an empty default zone. | + +### Return type + +[**RestApiResultMenuZone**](RestApiResultMenuZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuZone** +> void DeleteMenuZone (int? menuId, int? menuZoneId) + +Deletes a menu zone. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The menu zone id. + + try + { + // Deletes a menu zone. + apiInstance.DeleteMenuZone(menuId, menuZoneId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.DeleteMenuZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The menu zone id. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuZoneImage** +> void DeleteMenuZoneImage (int? menuId, int? menuZoneId) + +Deletes a menu zone image. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuZoneImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The zone Id/ + + try + { + // Deletes a menu zone image. + apiInstance.DeleteMenuZoneImage(menuId, menuZoneId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.DeleteMenuZoneImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The zone Id/ | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FlipMenuZones** +> void FlipMenuZones (int? menuId, int? menuZoneId, int? menuZoneI2) + +Flips the order of two menu zones. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class FlipMenuZonesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | + var menuZoneId = 56; // int? | Source. + var menuZoneI2 = 56; // int? | Destination. + + try + { + // Flips the order of two menu zones. + apiInstance.FlipMenuZones(menuId, menuZoneId, menuZoneI2); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.FlipMenuZones: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| | + **menuZoneId** | **int?**| Source. | + **menuZoneI2** | **int?**| Destination. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuZone** +> RestApiResultMenuZone GetMenuZone (int? menuId, int? menuZoneId) + +Gets a specific menu zone for a given zone id + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | The menu id. + var menuZoneId = 56; // int? | The menu zone id. + + try + { + // Gets a specific menu zone for a given zone id + RestApiResultMenuZone result = apiInstance.GetMenuZone(menuId, menuZoneId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.GetMenuZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| The menu id. | + **menuZoneId** | **int?**| The menu zone id. | + +### Return type + +[**RestApiResultMenuZone**](RestApiResultMenuZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuZonesForMenuId** +> RestApiArrayResultMenuZone GetMenuZonesForMenuId (int? menuId) + +Gets all the menu zones for a menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuZonesForMenuIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | The menu id to load zones for + + try + { + // Gets all the menu zones for a menu + RestApiArrayResultMenuZone result = apiInstance.GetMenuZonesForMenuId(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.GetMenuZonesForMenuId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| The menu id to load zones for | + +### Return type + +[**RestApiArrayResultMenuZone**](RestApiArrayResultMenuZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuSectionMenuZone** +> void SetMenuSectionMenuZone (int? menuId, int? menuZoneId, int? menuSectionId) + +Assigns a zone to a menu section. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuSectionMenuZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The menu id. + var menuSectionId = 56; // int? | The menu section id. + + try + { + // Assigns a zone to a menu section. + apiInstance.SetMenuSectionMenuZone(menuId, menuZoneId, menuSectionId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.SetMenuSectionMenuZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The menu id. | + **menuSectionId** | **int?**| The menu section id. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuZoneDescription** +> void SetMenuZoneDescription (int? menuId, int? menuZoneId, string description) + +Sets the description of a menu zone. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuZoneDescriptionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The zone id. + var description = description_example; // string | The new description. Add as a raw string in the request, without any JSON wrapper. + + try + { + // Sets the description of a menu zone. + apiInstance.SetMenuZoneDescription(menuId, menuZoneId, description); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.SetMenuZoneDescription: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The zone id. | + **description** | **string**| The new description. Add as a raw string in the request, without any JSON wrapper. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuZoneName** +> void SetMenuZoneName (int? menuId, int? menuZoneId, string menuZoneName) + +Sets the name of a menu zone. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuZoneNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The menu zone id. + var menuZoneName = menuZoneName_example; // string | The new name. + + try + { + // Sets the name of a menu zone. + apiInstance.SetMenuZoneName(menuId, menuZoneId, menuZoneName); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.SetMenuZoneName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The menu zone id. | + **menuZoneName** | **string**| The new name. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenuZone** +> void UpdateMenuZone (int? menuId, int? menuZoneId, MenuZone menuZone) + +Updates a menu zone. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuZoneExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | The menu id. + var menuZoneId = 56; // int? | The menu zone id. + var menuZone = new MenuZone(); // MenuZone | The object containing the updated values. + + try + { + // Updates a menu zone. + apiInstance.UpdateMenuZone(menuId, menuZoneId, menuZone); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.UpdateMenuZone: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| The menu id. | + **menuZoneId** | **int?**| The menu zone id. | + **menuZone** | [**MenuZone**](MenuZone.md)| The object containing the updated values. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadMenuZoneImage** +> void UploadMenuZoneImage (int? menuId, int? menuZoneId, List _file) + +Uploads an image for a menu zone. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadMenuZoneImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenuZonesApi(); + var menuId = 56; // int? | Menu id. + var menuZoneId = 56; // int? | The zone id. + var _file = new List(); // List | The file to upload. + + try + { + // Uploads an image for a menu zone. + apiInstance.UploadMenuZoneImage(menuId, menuZoneId, _file); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenuZonesApi.UploadMenuZoneImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id. | + **menuZoneId** | **int?**| The zone id. | + **_file** | [**List<HttpPostedFileBase>**](HttpPostedFileBase.md)| The file to upload. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenusApi.md b/docs/MenusApi.md new file mode 100644 index 00000000..a25b0ee9 --- /dev/null +++ b/docs/MenusApi.md @@ -0,0 +1,2022 @@ +# Flipdish.Api.MenusApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateDraftMenuFromExistingMenu**](MenusApi.md#createdraftmenufromexistingmenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | Clone a menu, (without attaching stores) +[**CreateNewMenuAsync**](MenusApi.md#createnewmenuasync) | **POST** /api/v1.0/{appId}/menus/async | Create a new menu asynchronously +[**CreateNewMenuForApp**](MenusApi.md#createnewmenuforapp) | **POST** /api/v1.0/{appId}/menus | Create a new menu +[**DeleteMenu**](MenusApi.md#deletemenu) | **DELETE** /api/v1.0/menus/{menuId} | Mark a Menu as Deleted +[**DeleteMenuImage**](MenusApi.md#deletemenuimage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image +[**DeleteMenuItemMetadata**](MenusApi.md#deletemenuitemmetadata) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Delete menu item metadata +[**GetAllMenuMetadataByMenuIdAndStoreId**](MenusApi.md#getallmenumetadatabymenuidandstoreid) | **GET** /api/v1.0/menus/{menuId}/metadata/store/{storeId} | Get all menu metadata by menu ID and store ID +[**GetMenuById**](MenusApi.md#getmenubyid) | **GET** /api/v1.0/menus/{menuId} | Get menu by identifier +[**GetMenuItemMetadata**](MenusApi.md#getmenuitemmetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Get menu item metadata +[**GetMenuItemMetadataByKey**](MenusApi.md#getmenuitemmetadatabykey) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get menu item metadata by key +[**GetMenuItemOptionSetItemMetadata**](MenusApi.md#getmenuitemoptionsetitemmetadata) | **GET** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Get menu item option set item metadata by key +[**GetMenuName**](MenusApi.md#getmenuname) | **GET** /api/v1.0/menus/{menuId}/name | Get Menus Name +[**GetMenuStoreNames**](MenusApi.md#getmenustorenames) | **GET** /api/v1.0/menus/{menuId}/stores | Get menus store names +[**GetMenuTaxDetails**](MenusApi.md#getmenutaxdetails) | **GET** /api/v1.0/menus/{menuId}/tax | Get menus tax details +[**GetMenusByAppId**](MenusApi.md#getmenusbyappid) | **GET** /api/v1.0/{appId}/menus | Get menus by appId +[**GetMenusCheckpoints**](MenusApi.md#getmenuscheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | Get a Menus Checkpoints +[**MenusDeleteTaxRate**](MenusApi.md#menusdeletetaxrate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +[**MenusGetMenuBulkShowHide**](MenusApi.md#menusgetmenubulkshowhide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | Get bulk show/hide menu items and option set items +[**MenusSetDisplayOnMenuTax**](MenusApi.md#menussetdisplayonmenutax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | Set if tax shows for a Menu +[**MenusSetItemDisplayOrders**](MenusApi.md#menussetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | Re-arrange Sections within a Menu +[**MenusShowHideBulkItems**](MenusApi.md#menusshowhidebulkitems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | Bulk show/hide menu items or option set items +[**MenusUpdateTaxType**](MenusApi.md#menusupdatetaxtype) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | Set the type of Tax on a Menu +[**MenusUpsertTaxRate**](MenusApi.md#menusupserttaxrate) | **POST** /api/v1.0/menus/{menuId}/taxrate | Add/Update a Tax Rate +[**RestoreAMenuCheckpoint**](MenusApi.md#restoreamenucheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | Restore a Menu to a checkpoint +[**SetMenuItemMetadata**](MenusApi.md#setmenuitemmetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update menu item metadata +[**SetMenuItemOptionSetItemMetadata**](MenusApi.md#setmenuitemoptionsetitemmetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update menu item option set item metadata +[**SetMenuLock**](MenusApi.md#setmenulock) | **POST** /api/v1.0/menus/{menuId}/lock | Lock/Unlock a Menu for Editing +[**SetMenuName**](MenusApi.md#setmenuname) | **POST** /api/v1.0/menus/{menuId}/name | Set Menus Name +[**UpdateMenu**](MenusApi.md#updatemenu) | **POST** /api/v1.0/menus/{menuId} | Update menu +[**UploadMenuImage**](MenusApi.md#uploadmenuimage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image +[**UploadNewMenuForApp**](MenusApi.md#uploadnewmenuforapp) | **POST** /api/v1.0/{appId}/menus/xlsx | Create a new menu from xlsx file. + + + +# **CreateDraftMenuFromExistingMenu** +> RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string newName) + +Clone a menu, (without attaching stores) + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateDraftMenuFromExistingMenuExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var newName = newName_example; // string | Name of the new Menu + + try + { + // Clone a menu, (without attaching stores) + RestApiResultMenu result = apiInstance.CreateDraftMenuFromExistingMenu(menuId, newName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.CreateDraftMenuFromExistingMenu: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **newName** | **string**| Name of the new Menu | + +### Return type + +[**RestApiResultMenu**](RestApiResultMenu.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateNewMenuAsync** +> Object CreateNewMenuAsync (string appId, CreateFullMenu menu, string orgId = null) + +Create a new menu asynchronously + +You must listen to the webhook menu.async_creation.completed to know when the menu is ready + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateNewMenuAsyncExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var appId = appId_example; // string | App id + var menu = new CreateFullMenu(); // CreateFullMenu | Menu + var orgId = orgId_example; // string | Org id (optional) + + try + { + // Create a new menu asynchronously + Object result = apiInstance.CreateNewMenuAsync(appId, menu, orgId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.CreateNewMenuAsync: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| App id | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu | + **orgId** | **string**| Org id | [optional] + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateNewMenuForApp** +> int? CreateNewMenuForApp (string appId, CreateFullMenu menu) + +Create a new menu + +[DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateNewMenuForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var appId = appId_example; // string | App identifier + var menu = new CreateFullMenu(); // CreateFullMenu | Menu. If empty the system will create a menu with default items + + try + { + // Create a new menu + int? result = apiInstance.CreateNewMenuForApp(appId, menu); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.CreateNewMenuForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| App identifier | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu. If empty the system will create a menu with default items | + +### Return type + +**int?** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenu** +> void DeleteMenu (int? menuId) + +Mark a Menu as Deleted + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu Identifier + + try + { + // Mark a Menu as Deleted + apiInstance.DeleteMenu(menuId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.DeleteMenu: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu Identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuImage** +> void DeleteMenuImage (int? menuId) + +Delete menu image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Delete menu image + apiInstance.DeleteMenuImage(menuId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.DeleteMenuImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuItemMetadata** +> void DeleteMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, string key) + +Delete menu item metadata + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuItemMetadataExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var menuItemId = 56; // int? | Menu item identifier + var key = key_example; // string | Metadata key + + try + { + // Delete menu item metadata + apiInstance.DeleteMenuItemMetadata(menuId, storeId, menuItemId, key); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.DeleteMenuItemMetadata: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **menuItemId** | **int?**| Menu item identifier | + **key** | **string**| Metadata key | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAllMenuMetadataByMenuIdAndStoreId** +> RestApiArrayResultAllMetadataResult GetAllMenuMetadataByMenuIdAndStoreId (int? menuId, int? storeId) + +Get all menu metadata by menu ID and store ID + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAllMenuMetadataByMenuIdAndStoreIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + + try + { + // Get all menu metadata by menu ID and store ID + RestApiArrayResultAllMetadataResult result = apiInstance.GetAllMenuMetadataByMenuIdAndStoreId(menuId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetAllMenuMetadataByMenuIdAndStoreId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + +### Return type + +[**RestApiArrayResultAllMetadataResult**](RestApiArrayResultAllMetadataResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuById** +> RestApiResultMenu GetMenuById (int? menuId) + +Get menu by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get menu by identifier + RestApiResultMenu result = apiInstance.GetMenuById(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiResultMenu**](RestApiResultMenu.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemMetadata** +> RestApiArrayResultMetadata GetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId) + +Get menu item metadata + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemMetadataExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var menuItemId = 56; // int? | Menu item identifier + + try + { + // Get menu item metadata + RestApiArrayResultMetadata result = apiInstance.GetMenuItemMetadata(menuId, storeId, menuItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuItemMetadata: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **menuItemId** | **int?**| Menu item identifier | + +### Return type + +[**RestApiArrayResultMetadata**](RestApiArrayResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemMetadataByKey** +> RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) + +Get menu item metadata by key + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemMetadataByKeyExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var menuItemId = 56; // int? | Menu item identifier + var key = key_example; // string | Metadata key + + try + { + // Get menu item metadata by key + RestApiResultMetadata result = apiInstance.GetMenuItemMetadataByKey(menuId, storeId, menuItemId, key); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuItemMetadataByKey: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **menuItemId** | **int?**| Menu item identifier | + **key** | **string**| Metadata key | + +### Return type + +[**RestApiResultMetadata**](RestApiResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuItemOptionSetItemMetadata** +> RestApiResultMetadata GetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId) + +Get menu item option set item metadata by key + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuItemOptionSetItemMetadataExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var optionSetItemId = 56; // int? | Menu item option set item identifier + + try + { + // Get menu item option set item metadata by key + RestApiResultMetadata result = apiInstance.GetMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuItemOptionSetItemMetadata: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **optionSetItemId** | **int?**| Menu item option set item identifier | + +### Return type + +[**RestApiResultMetadata**](RestApiResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuName** +> string GetMenuName (int? menuId) + +Get Menus Name + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get Menus Name + string result = apiInstance.GetMenuName(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +**string** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuStoreNames** +> RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId) + +Get menus store names + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuStoreNamesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get menus store names + RestApiArrayResultMenuStoreNames result = apiInstance.GetMenuStoreNames(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuStoreNames: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuStoreNames**](RestApiArrayResultMenuStoreNames.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuTaxDetails** +> RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId) + +Get menus tax details + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuTaxDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get menus tax details + RestApiArrayResultMenuTaxDetails result = apiInstance.GetMenuTaxDetails(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenuTaxDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuTaxDetails**](RestApiArrayResultMenuTaxDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenusByAppId** +> RestApiArrayResultMenuSummary GetMenusByAppId (string appId) + +Get menus by appId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenusByAppIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var appId = appId_example; // string | Get Menus for this appId + + try + { + // Get menus by appId + RestApiArrayResultMenuSummary result = apiInstance.GetMenusByAppId(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenusByAppId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| Get Menus for this appId | + +### Return type + +[**RestApiArrayResultMenuSummary**](RestApiArrayResultMenuSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenusCheckpoints** +> RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId) + +Get a Menus Checkpoints + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenusCheckpointsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get a Menus Checkpoints + RestApiArrayResultMenuCheckpoint result = apiInstance.GetMenusCheckpoints(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.GetMenusCheckpoints: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuCheckpoint**](RestApiArrayResultMenuCheckpoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusDeleteTaxRate** +> void MenusDeleteTaxRate (int? menuId, int? taxId) + +Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusDeleteTaxRateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var taxId = 56; // int? | Id of Menu Tax to be removed + + try + { + // Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + apiInstance.MenusDeleteTaxRate(menuId, taxId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusDeleteTaxRate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **taxId** | **int?**| Id of Menu Tax to be removed | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusGetMenuBulkShowHide** +> RestApiArrayResultMenuElementListResponse MenusGetMenuBulkShowHide (int? menuId, bool? isAvailable) + +Get bulk show/hide menu items and option set items + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusGetMenuBulkShowHideExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu id + var isAvailable = true; // bool? | Is available flag + + try + { + // Get bulk show/hide menu items and option set items + RestApiArrayResultMenuElementListResponse result = apiInstance.MenusGetMenuBulkShowHide(menuId, isAvailable); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusGetMenuBulkShowHide: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id | + **isAvailable** | **bool?**| Is available flag | + +### Return type + +[**RestApiArrayResultMenuElementListResponse**](RestApiArrayResultMenuElementListResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusSetDisplayOnMenuTax** +> void MenusSetDisplayOnMenuTax (int? menuId, bool? show) + +Set if tax shows for a Menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusSetDisplayOnMenuTaxExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var show = true; // bool? | Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + + try + { + // Set if tax shows for a Menu + apiInstance.MenusSetDisplayOnMenuTax(menuId, show); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusSetDisplayOnMenuTax: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **show** | **bool?**| Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusSetItemDisplayOrders** +> void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders displayOrders) + +Re-arrange Sections within a Menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusSetItemDisplayOrdersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var displayOrders = new MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Section Ids and their new display order + + try + { + // Re-arrange Sections within a Menu + apiInstance.MenusSetItemDisplayOrders(menuId, displayOrders); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusSetItemDisplayOrders: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **displayOrders** | [**MenuObjectDisplayOrders**](MenuObjectDisplayOrders.md)| Section Ids and their new display order | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusShowHideBulkItems** +> RestApiArrayResultMenuElementEditResponse MenusShowHideBulkItems (int? menuId, List menuElements, bool? isAvailable) + +Bulk show/hide menu items or option set items + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusShowHideBulkItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu id + var menuElements = new List(); // List | Elements to be show/hide + var isAvailable = true; // bool? | Is available flag + + try + { + // Bulk show/hide menu items or option set items + RestApiArrayResultMenuElementEditResponse result = apiInstance.MenusShowHideBulkItems(menuId, menuElements, isAvailable); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusShowHideBulkItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu id | + **menuElements** | [**List<MenuElementHide>**](MenuElementHide.md)| Elements to be show/hide | + **isAvailable** | **bool?**| Is available flag | + +### Return type + +[**RestApiArrayResultMenuElementEditResponse**](RestApiArrayResultMenuElementEditResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusUpdateTaxType** +> void MenusUpdateTaxType (int? menuId, string type) + +Set the type of Tax on a Menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusUpdateTaxTypeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var type = type_example; // string | Type of Tax + + try + { + // Set the type of Tax on a Menu + apiInstance.MenusUpdateTaxType(menuId, type); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusUpdateTaxType: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **type** | **string**| Type of Tax | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MenusUpsertTaxRate** +> MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate) + +Add/Update a Tax Rate + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MenusUpsertTaxRateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var taxRate = new MenuTaxRate(); // MenuTaxRate | Tax rate to add/update + + try + { + // Add/Update a Tax Rate + MenuTaxRate result = apiInstance.MenusUpsertTaxRate(menuId, taxRate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.MenusUpsertTaxRate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **taxRate** | [**MenuTaxRate**](MenuTaxRate.md)| Tax rate to add/update | + +### Return type + +[**MenuTaxRate**](MenuTaxRate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RestoreAMenuCheckpoint** +> void RestoreAMenuCheckpoint (int? menuId, int? checkpointId) + +Restore a Menu to a checkpoint + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RestoreAMenuCheckpointExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var checkpointId = 56; // int? | Checkpoint to restore menu to + + try + { + // Restore a Menu to a checkpoint + apiInstance.RestoreAMenuCheckpoint(menuId, checkpointId); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.RestoreAMenuCheckpoint: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **checkpointId** | **int?**| Checkpoint to restore menu to | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuItemMetadata** +> void SetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, Metadata metadata) + +Update menu item metadata + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuItemMetadataExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var menuItemId = 56; // int? | Menu item identifier + var metadata = new Metadata(); // Metadata | Metadata object + + try + { + // Update menu item metadata + apiInstance.SetMenuItemMetadata(menuId, storeId, menuItemId, metadata); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.SetMenuItemMetadata: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **menuItemId** | **int?**| Menu item identifier | + **metadata** | [**Metadata**](Metadata.md)| Metadata object | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuItemOptionSetItemMetadata** +> void SetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata) + +Update menu item option set item metadata + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuItemOptionSetItemMetadataExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var storeId = 56; // int? | Store identifier + var optionSetItemId = 56; // int? | Menu item option set item identifier + var metadata = new Metadata(); // Metadata | Metadata object + + try + { + // Update menu item option set item metadata + apiInstance.SetMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.SetMenuItemOptionSetItemMetadata: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **storeId** | **int?**| Store identifier | + **optionSetItemId** | **int?**| Menu item option set item identifier | + **metadata** | [**Metadata**](Metadata.md)| Metadata object | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuLock** +> void SetMenuLock (int? menuId, bool? locked) + +Lock/Unlock a Menu for Editing + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuLockExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var locked = true; // bool? | True: Locks menu for editing, False: Unlocks for editing + + try + { + // Lock/Unlock a Menu for Editing + apiInstance.SetMenuLock(menuId, locked); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.SetMenuLock: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **locked** | **bool?**| True: Locks menu for editing, False: Unlocks for editing | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetMenuName** +> void SetMenuName (int? menuId, string name) + +Set Menus Name + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetMenuNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var name = name_example; // string | Name to set for this Menu + + try + { + // Set Menus Name + apiInstance.SetMenuName(menuId, name); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.SetMenuName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **name** | **string**| Name to set for this Menu | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMenu** +> void UpdateMenu (int? menuId, MenuBase menu) + +Update menu + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMenuExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var menu = new MenuBase(); // MenuBase | Full menu data + + try + { + // Update menu + apiInstance.UpdateMenu(menuId, menu); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.UpdateMenu: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **menu** | [**MenuBase**](MenuBase.md)| Full menu data | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadMenuImage** +> RestApiStringResult UploadMenuImage (int? menuId, System.IO.Stream image) + +Upload menu image + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadMenuImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var menuId = 56; // int? | Menu identifier + var image = new System.IO.Stream(); // System.IO.Stream | Menu image + + try + { + // Upload menu image + RestApiStringResult result = apiInstance.UploadMenuImage(menuId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.UploadMenuImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **image** | **System.IO.Stream**| Menu image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadNewMenuForApp** +> int? UploadNewMenuForApp (string appId, System.IO.Stream menu) + +Create a new menu from xlsx file. + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadNewMenuForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusApi(); + var appId = appId_example; // string | App identifier + var menu = new System.IO.Stream(); // System.IO.Stream | Uploaded xlsx menu + + try + { + // Create a new menu from xlsx file. + int? result = apiInstance.UploadNewMenuForApp(appId, menu); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusApi.UploadNewMenuForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| App identifier | + **menu** | **System.IO.Stream**| Uploaded xlsx menu | + +### Return type + +**int?** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenusNutritionInfoApi.md b/docs/MenusNutritionInfoApi.md new file mode 100644 index 00000000..6c4b6244 --- /dev/null +++ b/docs/MenusNutritionInfoApi.md @@ -0,0 +1,396 @@ +# Flipdish.Api.MenusNutritionInfoApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddOrUpdateMenuItemNutritionInfo**](MenusNutritionInfoApi.md#addorupdatemenuitemnutritioninfo) | **POST** /api/v1.0/menus/{menuId}/menuItem/{publicId}/nutrition | Add or update menuitem nutrition info by menu item's publicId +[**AddOrUpdateMenuItemOptionSetItemNutritionInfo**](MenusNutritionInfoApi.md#addorupdatemenuitemoptionsetitemnutritioninfo) | **POST** /api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition | Add or update menuitem optionsetitem nutrition info its publicId +[**AddOrUpdateMenuNutritionInfoByMenuId**](MenusNutritionInfoApi.md#addorupdatemenunutritioninfobymenuid) | **POST** /api/v1.0/menus/{menuId}/nutrition | Add or update menu nutrition by identifier +[**DeleteMenuNutritionInfoByMenuId**](MenusNutritionInfoApi.md#deletemenunutritioninfobymenuid) | **DELETE** /api/v1.0/menus/{menuId}/nutrition | Delete menu nutrition information by menuId +[**GetAllergens**](MenusNutritionInfoApi.md#getallergens) | **GET** /api/v1.0/{appId}/menus/nutrition/allergens | Get allergens +[**GetMenuNutritionInfoByMenuId**](MenusNutritionInfoApi.md#getmenunutritioninfobymenuid) | **GET** /api/v1.0/menus/{menuId}/nutrition | Get menu nutrition by menuId + + + +# **AddOrUpdateMenuItemNutritionInfo** +> RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemNutritionInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + +Add or update menuitem nutrition info by menu item's publicId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrUpdateMenuItemNutritionInfoExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var menuId = 56; // int? | Menu identifier + var publicId = publicId_example; // string | Menu item's publicId + var addOrUpdateModel = new ItemNutritionInfoAddUpdateModel(); // ItemNutritionInfoAddUpdateModel | + + try + { + // Add or update menuitem nutrition info by menu item's publicId + RestApiResultMenuNutritionInfoHeader result = apiInstance.AddOrUpdateMenuItemNutritionInfo(menuId, publicId, addOrUpdateModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.AddOrUpdateMenuItemNutritionInfo: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **publicId** | **string**| Menu item's publicId | + **addOrUpdateModel** | [**ItemNutritionInfoAddUpdateModel**](ItemNutritionInfoAddUpdateModel.md)| | + +### Return type + +[**RestApiResultMenuNutritionInfoHeader**](RestApiResultMenuNutritionInfoHeader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AddOrUpdateMenuItemOptionSetItemNutritionInfo** +> RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemOptionSetItemNutritionInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + +Add or update menuitem optionsetitem nutrition info its publicId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrUpdateMenuItemOptionSetItemNutritionInfoExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var menuId = 56; // int? | Menu identifier + var publicId = new Guid?(); // Guid? | Menu item's publicId + var addOrUpdateModel = new ItemNutritionInfoAddUpdateModel(); // ItemNutritionInfoAddUpdateModel | + + try + { + // Add or update menuitem optionsetitem nutrition info its publicId + RestApiResultMenuNutritionInfoHeader result = apiInstance.AddOrUpdateMenuItemOptionSetItemNutritionInfo(menuId, publicId, addOrUpdateModel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.AddOrUpdateMenuItemOptionSetItemNutritionInfo: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **publicId** | [**Guid?**](Guid?.md)| Menu item's publicId | + **addOrUpdateModel** | [**ItemNutritionInfoAddUpdateModel**](ItemNutritionInfoAddUpdateModel.md)| | + +### Return type + +[**RestApiResultMenuNutritionInfoHeader**](RestApiResultMenuNutritionInfoHeader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AddOrUpdateMenuNutritionInfoByMenuId** +> RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuNutritionInfoByMenuId (int? menuId) + +Add or update menu nutrition by identifier + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrUpdateMenuNutritionInfoByMenuIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Add or update menu nutrition by identifier + RestApiResultMenuNutritionInfoHeader result = apiInstance.AddOrUpdateMenuNutritionInfoByMenuId(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.AddOrUpdateMenuNutritionInfoByMenuId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiResultMenuNutritionInfoHeader**](RestApiResultMenuNutritionInfoHeader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteMenuNutritionInfoByMenuId** +> Object DeleteMenuNutritionInfoByMenuId (int? menuId) + +Delete menu nutrition information by menuId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteMenuNutritionInfoByMenuIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Delete menu nutrition information by menuId + Object result = apiInstance.DeleteMenuNutritionInfoByMenuId(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.DeleteMenuNutritionInfoByMenuId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAllergens** +> RestApiArrayResultAllergen GetAllergens (string appId, string languageId = null) + +Get allergens + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAllergensExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var appId = appId_example; // string | + var languageId = languageId_example; // string | (optional) + + try + { + // Get allergens + RestApiArrayResultAllergen result = apiInstance.GetAllergens(appId, languageId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.GetAllergens: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **languageId** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultAllergen**](RestApiArrayResultAllergen.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuNutritionInfoByMenuId** +> RestApiResultNutritionInfo GetMenuNutritionInfoByMenuId (int? menuId) + +Get menu nutrition by menuId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuNutritionInfoByMenuIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoApi(); + var menuId = 56; // int? | Menu identifier + + try + { + // Get menu nutrition by menuId + RestApiResultNutritionInfo result = apiInstance.GetMenuNutritionInfoByMenuId(menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoApi.GetMenuNutritionInfoByMenuId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + +### Return type + +[**RestApiResultNutritionInfo**](RestApiResultNutritionInfo.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MenusNutritionInfoV2Api.md b/docs/MenusNutritionInfoV2Api.md new file mode 100644 index 00000000..220bf7c2 --- /dev/null +++ b/docs/MenusNutritionInfoV2Api.md @@ -0,0 +1,278 @@ +# Flipdish.Api.MenusNutritionInfoV2Api + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddOrUpdateMenuItemNutritionInfoV2**](MenusNutritionInfoV2Api.md#addorupdatemenuitemnutritioninfov2) | **POST** /api/v1.0/{appId}/menus/{menuId}/menuItem/{publicId}/nutritionv2 | Add or update menuitem nutrition info by menu item's publicId +[**AddOrUpdateMenuItemOptionSetItemNutritionInfoV2**](MenusNutritionInfoV2Api.md#addorupdatemenuitemoptionsetitemnutritioninfov2) | **POST** /api/v1.0/{appId}/menus/{menuId}/menuItemOption/{publicId}/nutritionv2 | Add or update menuitem option set item's nutrition info by its publicId +[**GetAllergensV2**](MenusNutritionInfoV2Api.md#getallergensv2) | **GET** /api/v1.0/{appId}/menus/nutritionv2/allergens | Get allergens +[**GetMenuNutritionInfoV2ByMenuId**](MenusNutritionInfoV2Api.md#getmenunutritioninfov2bymenuid) | **GET** /api/v1.0/{appId}/menus/{menuId}/nutritionv2 | Get menu nutrition by menuId + + + +# **AddOrUpdateMenuItemNutritionInfoV2** +> Object AddOrUpdateMenuItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + +Add or update menuitem nutrition info by menu item's publicId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrUpdateMenuItemNutritionInfoV2Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoV2Api(); + var menuId = 56; // int? | Menu identifier + var publicId = publicId_example; // string | Menu item's publicId + var addOrUpdateModel = new ItemNutritionInfoV2AddUpdateModel(); // ItemNutritionInfoV2AddUpdateModel | Allergen ids + var appId = appId_example; // string | + + try + { + // Add or update menuitem nutrition info by menu item's publicId + Object result = apiInstance.AddOrUpdateMenuItemNutritionInfoV2(menuId, publicId, addOrUpdateModel, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoV2Api.AddOrUpdateMenuItemNutritionInfoV2: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **publicId** | **string**| Menu item's publicId | + **addOrUpdateModel** | [**ItemNutritionInfoV2AddUpdateModel**](ItemNutritionInfoV2AddUpdateModel.md)| Allergen ids | + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AddOrUpdateMenuItemOptionSetItemNutritionInfoV2** +> Object AddOrUpdateMenuItemOptionSetItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + +Add or update menuitem option set item's nutrition info by its publicId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddOrUpdateMenuItemOptionSetItemNutritionInfoV2Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoV2Api(); + var menuId = 56; // int? | Menu identifier + var publicId = publicId_example; // string | Menu item option set item's publicId + var addOrUpdateModel = new ItemNutritionInfoV2AddUpdateModel(); // ItemNutritionInfoV2AddUpdateModel | Allergen ids + var appId = appId_example; // string | + + try + { + // Add or update menuitem option set item's nutrition info by its publicId + Object result = apiInstance.AddOrUpdateMenuItemOptionSetItemNutritionInfoV2(menuId, publicId, addOrUpdateModel, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoV2Api.AddOrUpdateMenuItemOptionSetItemNutritionInfoV2: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **int?**| Menu identifier | + **publicId** | **string**| Menu item option set item's publicId | + **addOrUpdateModel** | [**ItemNutritionInfoV2AddUpdateModel**](ItemNutritionInfoV2AddUpdateModel.md)| Allergen ids | + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAllergensV2** +> RestApiArrayResultAllergen GetAllergensV2 (string appId, string languageId = null) + +Get allergens + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAllergensV2Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoV2Api(); + var appId = appId_example; // string | + var languageId = languageId_example; // string | (optional) + + try + { + // Get allergens + RestApiArrayResultAllergen result = apiInstance.GetAllergensV2(appId, languageId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoV2Api.GetAllergensV2: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **languageId** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultAllergen**](RestApiArrayResultAllergen.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMenuNutritionInfoV2ByMenuId** +> RestApiResultNutritionInfoV2 GetMenuNutritionInfoV2ByMenuId (string appId, int? menuId, string languageId = null) + +Get menu nutrition by menuId + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMenuNutritionInfoV2ByMenuIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MenusNutritionInfoV2Api(); + var appId = appId_example; // string | + var menuId = 56; // int? | Menu identifier + var languageId = languageId_example; // string | (optional) + + try + { + // Get menu nutrition by menuId + RestApiResultNutritionInfoV2 result = apiInstance.GetMenuNutritionInfoV2ByMenuId(appId, menuId, languageId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MenusNutritionInfoV2Api.GetMenuNutritionInfoV2ByMenuId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **menuId** | **int?**| Menu identifier | + **languageId** | **string**| | [optional] + +### Return type + +[**RestApiResultNutritionInfoV2**](RestApiResultNutritionInfoV2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Metadata.md b/docs/Metadata.md new file mode 100644 index 00000000..b4caf370 --- /dev/null +++ b/docs/Metadata.md @@ -0,0 +1,11 @@ +# Flipdish.Model.Metadata +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuEntityId** | **int?** | Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId) | [optional] +**Key** | **string** | Metadata key (Unique identifier) | [optional] +**Value** | **string** | Metadata value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Metafield.md b/docs/Metafield.md new file mode 100644 index 00000000..4ee93a9a --- /dev/null +++ b/docs/Metafield.md @@ -0,0 +1,10 @@ +# Flipdish.Model.Metafield +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot | +**Value** | **string** | Value of the metafield. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MetafieldDefinition.md b/docs/MetafieldDefinition.md new file mode 100644 index 00000000..742025e0 --- /dev/null +++ b/docs/MetafieldDefinition.md @@ -0,0 +1,16 @@ +# Flipdish.Model.MetafieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReadOnly** | **bool?** | Indicates if a definition can be edited or not | [optional] +**OwnerEntity** | **string** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **string** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **string** | The excepted type for the Value field | [optional] +**Name** | **string** | Field Name | +**Description** | **string** | Field Description | [optional] +**Behaviors** | **List<string>** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **int?** | Metafield Recommendation Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MetafieldDefinitionRecommendation.md b/docs/MetafieldDefinitionRecommendation.md new file mode 100644 index 00000000..004e6e50 --- /dev/null +++ b/docs/MetafieldDefinitionRecommendation.md @@ -0,0 +1,15 @@ +# Flipdish.Model.MetafieldDefinitionRecommendation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerEntity** | **string** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **string** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **string** | The excepted type for the Value field | [optional] +**Name** | **string** | Field Name | +**Description** | **string** | Field Description | [optional] +**Behaviors** | **List<string>** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **int?** | Metafield Recommendation Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MetafieldDefinitionsApi.md b/docs/MetafieldDefinitionsApi.md new file mode 100644 index 00000000..56649322 --- /dev/null +++ b/docs/MetafieldDefinitionsApi.md @@ -0,0 +1,410 @@ +# Flipdish.Api.MetafieldDefinitionsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMetafieldDefinition**](MetafieldDefinitionsApi.md#createmetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +[**GetMetafieldDefinitionByKey**](MetafieldDefinitionsApi.md#getmetafielddefinitionbykey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +[**GetMetafieldDefinitions**](MetafieldDefinitionsApi.md#getmetafielddefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +[**GetOwnerEntityConfigurations**](MetafieldDefinitionsApi.md#getownerentityconfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | +[**GetOwnerEntityRecommendations**](MetafieldDefinitionsApi.md#getownerentityrecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | +[**UpdateMetafieldDefinition**](MetafieldDefinitionsApi.md#updatemetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | + + + +# **CreateMetafieldDefinition** +> RestApiResultMetafieldDefinition CreateMetafieldDefinition (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateMetafieldDefinitionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + var ownerEntity = ownerEntity_example; // string | + var createMetafieldDefinition = new CreateMetafieldDefinition(); // CreateMetafieldDefinition | + + try + { + RestApiResultMetafieldDefinition result = apiInstance.CreateMetafieldDefinition(appId, ownerEntity, createMetafieldDefinition); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.CreateMetafieldDefinition: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **ownerEntity** | **string**| | + **createMetafieldDefinition** | [**CreateMetafieldDefinition**](CreateMetafieldDefinition.md)| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMetafieldDefinitionByKey** +> RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appId, string ownerEntity, string key) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMetafieldDefinitionByKeyExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + var ownerEntity = ownerEntity_example; // string | + var key = key_example; // string | + + try + { + RestApiResultMetafieldDefinition result = apiInstance.GetMetafieldDefinitionByKey(appId, ownerEntity, key); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.GetMetafieldDefinitionByKey: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **ownerEntity** | **string**| | + **key** | **string**| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMetafieldDefinitions** +> RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetMetafieldDefinitionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + var ownerEntity = ownerEntity_example; // string | + var searchTerm = searchTerm_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultMetafieldDefinition result = apiInstance.GetMetafieldDefinitions(appId, ownerEntity, searchTerm, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.GetMetafieldDefinitions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **ownerEntity** | **string**| | + **searchTerm** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultMetafieldDefinition**](RestApiPaginationResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOwnerEntityConfigurations** +> OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOwnerEntityConfigurationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + + try + { + OwnerEntityConfigurations result = apiInstance.GetOwnerEntityConfigurations(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.GetOwnerEntityConfigurations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**OwnerEntityConfigurations**](OwnerEntityConfigurations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOwnerEntityRecommendations** +> RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRecommendations (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOwnerEntityRecommendationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + var ownerEntity = ownerEntity_example; // string | + var searchTerm = searchTerm_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultMetafieldDefinitionRecommendation result = apiInstance.GetOwnerEntityRecommendations(appId, ownerEntity, searchTerm, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.GetOwnerEntityRecommendations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **ownerEntity** | **string**| | + **searchTerm** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultMetafieldDefinitionRecommendation**](RestApiPaginationResultMetafieldDefinitionRecommendation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateMetafieldDefinition** +> RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateMetafieldDefinitionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MetafieldDefinitionsApi(); + var appId = appId_example; // string | + var ownerEntity = ownerEntity_example; // string | + var key = key_example; // string | + var updateMetafieldDefinition = new UpdateMetafieldDefinition(); // UpdateMetafieldDefinition | + + try + { + RestApiResultMetafieldDefinition result = apiInstance.UpdateMetafieldDefinition(appId, ownerEntity, key, updateMetafieldDefinition); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MetafieldDefinitionsApi.UpdateMetafieldDefinition: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **ownerEntity** | **string**| | + **key** | **string**| | + **updateMetafieldDefinition** | [**UpdateMetafieldDefinition**](UpdateMetafieldDefinition.md)| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsApi.md b/docs/MobileAppsApi.md new file mode 100644 index 00000000..46642074 --- /dev/null +++ b/docs/MobileAppsApi.md @@ -0,0 +1,714 @@ +# Flipdish.Api.MobileAppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAppConfigSalesChannel**](MobileAppsApi.md#getappconfigsaleschannel) | **GET** /api/v1.0/mobileapps/{appId}/saleschannel/details | +[**GetStatistics**](MobileAppsApi.md#getstatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | +[**GetSubmissionDetails**](MobileAppsApi.md#getsubmissiondetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | +[**GetSubmissionStatus**](MobileAppsApi.md#getsubmissionstatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +[**Publish**](MobileAppsApi.md#publish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish | +[**Resubmission**](MobileAppsApi.md#resubmission) | **POST** /api/v1.0/mobileapps/{appId}/resubmission | +[**Submission**](MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | +[**Unpublish**](MobileAppsApi.md#unpublish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish | +[**UpdateAppConfigSalesChannel**](MobileAppsApi.md#updateappconfigsaleschannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | +[**UpdateSubmissionStatus**](MobileAppsApi.md#updatesubmissionstatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +[**UploadImage**](MobileAppsApi.md#uploadimage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | + + + +# **GetAppConfigSalesChannel** +> RestApiResultAppConfigSalesChannel GetAppConfigSalesChannel (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppConfigSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + + try + { + RestApiResultAppConfigSalesChannel result = apiInstance.GetAppConfigSalesChannel(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.GetAppConfigSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultAppConfigSalesChannel**](RestApiResultAppConfigSalesChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStatistics** +> RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List platformTypes) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStatisticsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var platformTypes = platformTypes_example; // List | + + try + { + RestApiArrayResultMobileAppsStatistics result = apiInstance.GetStatistics(appId, platformTypes); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.GetStatistics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **platformTypes** | **List<string>**| | + +### Return type + +[**RestApiArrayResultMobileAppsStatistics**](RestApiArrayResultMobileAppsStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSubmissionDetails** +> RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSubmissionDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + + try + { + RestApiResultMobileAppsSubmissionDetails result = apiInstance.GetSubmissionDetails(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.GetSubmissionDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultMobileAppsSubmissionDetails**](RestApiResultMobileAppsSubmissionDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSubmissionStatus** +> RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSubmissionStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var submissionId = 56; // int? | + + try + { + RestApiResultMobileAppsSubmissionStatus result = apiInstance.GetSubmissionStatus(appId, submissionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.GetSubmissionStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **submissionId** | **int?**| | + +### Return type + +[**RestApiResultMobileAppsSubmissionStatus**](RestApiResultMobileAppsSubmissionStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Publish** +> RestApiResultRestApiIntegerResult Publish (string appId, int? submissionId, string platformType = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PublishExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var submissionId = 56; // int? | + var platformType = platformType_example; // string | (optional) + + try + { + RestApiResultRestApiIntegerResult result = apiInstance.Publish(appId, submissionId, platformType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.Publish: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **submissionId** | **int?**| | + **platformType** | **string**| | [optional] + +### Return type + +[**RestApiResultRestApiIntegerResult**](RestApiResultRestApiIntegerResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Resubmission** +> RestApiResultMobileAppsSubmission Resubmission (string appId, MobileAppsSubmission mobileAppsSubmission) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ResubmissionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var mobileAppsSubmission = new MobileAppsSubmission(); // MobileAppsSubmission | + + try + { + RestApiResultMobileAppsSubmission result = apiInstance.Resubmission(appId, mobileAppsSubmission); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.Resubmission: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **mobileAppsSubmission** | [**MobileAppsSubmission**](MobileAppsSubmission.md)| | + +### Return type + +[**RestApiResultMobileAppsSubmission**](RestApiResultMobileAppsSubmission.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Submission** +> RestApiResultMobileAppsSubmission Submission (string appId, MobileAppsSubmission mobileAppsSubmission) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SubmissionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var mobileAppsSubmission = new MobileAppsSubmission(); // MobileAppsSubmission | + + try + { + RestApiResultMobileAppsSubmission result = apiInstance.Submission(appId, mobileAppsSubmission); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.Submission: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **mobileAppsSubmission** | [**MobileAppsSubmission**](MobileAppsSubmission.md)| | + +### Return type + +[**RestApiResultMobileAppsSubmission**](RestApiResultMobileAppsSubmission.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Unpublish** +> RestApiIntegerResult Unpublish (string appId, int? submissionId, string platformType = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnpublishExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var submissionId = 56; // int? | + var platformType = platformType_example; // string | (optional) + + try + { + RestApiIntegerResult result = apiInstance.Unpublish(appId, submissionId, platformType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.Unpublish: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **submissionId** | **int?**| | + **platformType** | **string**| | [optional] + +### Return type + +[**RestApiIntegerResult**](RestApiIntegerResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppConfigSalesChannel** +> RestApiResultAppConfigSalesChannel UpdateAppConfigSalesChannel (string appId, AppConfigSalesChannel appConfigSalesChannel) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppConfigSalesChannelExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var appConfigSalesChannel = new AppConfigSalesChannel(); // AppConfigSalesChannel | + + try + { + RestApiResultAppConfigSalesChannel result = apiInstance.UpdateAppConfigSalesChannel(appId, appConfigSalesChannel); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.UpdateAppConfigSalesChannel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appConfigSalesChannel** | [**AppConfigSalesChannel**](AppConfigSalesChannel.md)| | + +### Return type + +[**RestApiResultAppConfigSalesChannel**](RestApiResultAppConfigSalesChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateSubmissionStatus** +> RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateSubmissionStatusExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var submissionId = 56; // int? | + var updateSubmissionStatus = new UpdateMobileAppsSubmissionStatus(); // UpdateMobileAppsSubmissionStatus | + + try + { + RestApiResultUpdateMobileAppsSubmissionStatus result = apiInstance.UpdateSubmissionStatus(appId, submissionId, updateSubmissionStatus); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.UpdateSubmissionStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **submissionId** | **int?**| | + **updateSubmissionStatus** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md)| | + +### Return type + +[**RestApiResultUpdateMobileAppsSubmissionStatus**](RestApiResultUpdateMobileAppsSubmissionStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadImage** +> RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream image) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new MobileAppsApi(); + var appId = appId_example; // string | + var image = new System.IO.Stream(); // System.IO.Stream | Mobile Apps image + + try + { + RestApiResultMobileAppsImage result = apiInstance.UploadImage(appId, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling MobileAppsApi.UploadImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **image** | **System.IO.Stream**| Mobile Apps image | + +### Return type + +[**RestApiResultMobileAppsImage**](RestApiResultMobileAppsImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsImage.md b/docs/MobileAppsImage.md new file mode 100644 index 00000000..ee83aa82 --- /dev/null +++ b/docs/MobileAppsImage.md @@ -0,0 +1,9 @@ +# Flipdish.Model.MobileAppsImage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageUri** | **string** | Unique catalog Item id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsStatistics.md b/docs/MobileAppsStatistics.md new file mode 100644 index 00000000..5304a5e2 --- /dev/null +++ b/docs/MobileAppsStatistics.md @@ -0,0 +1,17 @@ +# Flipdish.Model.MobileAppsStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NumberDownload** | **int?** | Number Download | [optional] +**CurrentRate** | **int?** | Current Rate | [optional] +**CurrentVersion** | **string** | Current Version | [optional] +**PlayStoreLink** | **string** | Play Store Link | [optional] +**AppBundleId** | **string** | App Bundle Id | [optional] +**LastUpdated** | **DateTime?** | Last Updated | [optional] +**Notes** | **string** | Last Updated | [optional] +**Published** | **bool?** | Published | [optional] +**PlatformType** | **string** | Platform Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsSubmission.md b/docs/MobileAppsSubmission.md new file mode 100644 index 00000000..a9f7ecfa --- /dev/null +++ b/docs/MobileAppsSubmission.md @@ -0,0 +1,14 @@ +# Flipdish.Model.MobileAppsSubmission +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubmissionId** | **int?** | Mobile Apps Submission Id | [optional] +**AppName** | **string** | App Name | +**AppDescription** | **string** | App Description | +**AppShortDescription** | **string** | App Description | +**Keywords** | **List<string>** | Keywords | [optional] +**AutoPublish** | **bool?** | Publish automatically | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsSubmissionDetails.md b/docs/MobileAppsSubmissionDetails.md new file mode 100644 index 00000000..82b7816d --- /dev/null +++ b/docs/MobileAppsSubmissionDetails.md @@ -0,0 +1,16 @@ +# Flipdish.Model.MobileAppsSubmissionDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionId** | **int?** | Mobile Apps Submission Id | [optional] +**AppName** | **string** | App Name | [optional] +**AppDescription** | **string** | App Description | [optional] +**AppShortDescription** | **string** | App Description | [optional] +**Keywords** | **List<string>** | Keywords | [optional] +**AppLogoUrl** | **string** | Logo URL | [optional] +**AutoPublish** | **bool?** | Publish automatically | [optional] +**Status** | [**List<MobileAppsSubmissionStatus>**](MobileAppsSubmissionStatus.md) | Mobile App Status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsSubmissionStatus.md b/docs/MobileAppsSubmissionStatus.md new file mode 100644 index 00000000..ec2d7762 --- /dev/null +++ b/docs/MobileAppsSubmissionStatus.md @@ -0,0 +1,17 @@ +# Flipdish.Model.MobileAppsSubmissionStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionStatusId** | **int?** | Mobile Apps Submission Status Id | [optional] +**MobileAppsSubmissionId** | **int?** | Mobile Apps Submission Id | [optional] +**Type** | **string** | Mobile Type | [optional] +**AppStatus** | **string** | Mobile App Status | [optional] +**UpdateStatus** | **string** | Mobile App Status | [optional] +**LastUpdateStatusTime** | **DateTime?** | Mobile LastUpdateStatusTime | [optional] +**CreateTime** | **DateTime?** | Mobile CreateTime | [optional] +**UpdateTime** | **DateTime?** | Mobile UpdateTime | [optional] +**Notes** | **string** | Mobile Notes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsSubmissionStatusUpdatedEvent.md b/docs/MobileAppsSubmissionStatusUpdatedEvent.md new file mode 100644 index 00000000..5bfb3880 --- /dev/null +++ b/docs/MobileAppsSubmissionStatusUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.MobileAppsSubmissionStatusUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the item | [optional] +**MobileAppsSubmissionStatus** | [**MobileAppsSubmissionStatus**](MobileAppsSubmissionStatus.md) | Mobile Apps Submission Status | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MobileAppsSubmissionUpdatedEvent.md b/docs/MobileAppsSubmissionUpdatedEvent.md new file mode 100644 index 00000000..d85b4a59 --- /dev/null +++ b/docs/MobileAppsSubmissionUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.MobileAppsSubmissionUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has created the item | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ModelBase.md b/docs/ModelBase.md new file mode 100644 index 00000000..f7e1cdb1 --- /dev/null +++ b/docs/ModelBase.md @@ -0,0 +1,8 @@ +# Flipdish.Model.ModelBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NextStatusWithOrderType.md b/docs/NextStatusWithOrderType.md new file mode 100644 index 00000000..4d27b3c9 --- /dev/null +++ b/docs/NextStatusWithOrderType.md @@ -0,0 +1,10 @@ +# Flipdish.Model.NextStatusWithOrderType +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderType** | **string** | Order type | [optional] +**NextStatus** | **string** | Next status id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfo.md b/docs/NutritionInfo.md new file mode 100644 index 00000000..dff2b0e0 --- /dev/null +++ b/docs/NutritionInfo.md @@ -0,0 +1,11 @@ +# Flipdish.Model.NutritionInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | Version of the nutrition information model | [optional] +**MenuItems** | [**List<NutritionInfoMenuItem>**](NutritionInfoMenuItem.md) | List of menu item nutrition infos | [optional] +**MenuItemOptionSetItems** | [**List<NutritionInfoMenuOptionSetItem>**](NutritionInfoMenuOptionSetItem.md) | List of menu item option set nutrition infos | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoItemAddUpdateLabelModel.md b/docs/NutritionInfoItemAddUpdateLabelModel.md new file mode 100644 index 00000000..808c9213 --- /dev/null +++ b/docs/NutritionInfoItemAddUpdateLabelModel.md @@ -0,0 +1,11 @@ +# Flipdish.Model.NutritionInfoItemAddUpdateLabelModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**Values** | **List<string>** | Values. | [optional] +**IconUrl** | **string** | IconUrl. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoLabel.md b/docs/NutritionInfoLabel.md new file mode 100644 index 00000000..024c5b5d --- /dev/null +++ b/docs/NutritionInfoLabel.md @@ -0,0 +1,11 @@ +# Flipdish.Model.NutritionInfoLabel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the allergen / ingredient | [optional] +**Values** | **List<string>** | Optional list of values for the allergen / ingredient | [optional] +**IconUrl** | **string** | Url to the icon for the allergen / ingredient | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoMenuItem.md b/docs/NutritionInfoMenuItem.md new file mode 100644 index 00000000..f6457b71 --- /dev/null +++ b/docs/NutritionInfoMenuItem.md @@ -0,0 +1,10 @@ +# Flipdish.Model.NutritionInfoMenuItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **Guid?** | Menu item public id | [optional] +**Labels** | [**List<NutritionInfoLabel>**](NutritionInfoLabel.md) | List of Nutrition Info Labels for this menu item | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoMenuOptionSetItem.md b/docs/NutritionInfoMenuOptionSetItem.md new file mode 100644 index 00000000..efbaee50 --- /dev/null +++ b/docs/NutritionInfoMenuOptionSetItem.md @@ -0,0 +1,10 @@ +# Flipdish.Model.NutritionInfoMenuOptionSetItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **Guid?** | Menu item option set item public id | [optional] +**Labels** | [**List<NutritionInfoLabel>**](NutritionInfoLabel.md) | List of Nutrition Info Labels for this menu item option set item | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoV2.md b/docs/NutritionInfoV2.md new file mode 100644 index 00000000..68127cda --- /dev/null +++ b/docs/NutritionInfoV2.md @@ -0,0 +1,11 @@ +# Flipdish.Model.NutritionInfoV2 +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItems** | [**List<NutritionInfoV2Item>**](NutritionInfoV2Item.md) | List of menu item nutrition infos | [optional] +**MenuItemOptionSetItems** | [**List<NutritionInfoV2Item>**](NutritionInfoV2Item.md) | List of menu item option set nutrition infos | [optional] +**ImageBaseUrl** | **string** | Base url for allergen images | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoV2Allergen.md b/docs/NutritionInfoV2Allergen.md new file mode 100644 index 00000000..fe6c8e6c --- /dev/null +++ b/docs/NutritionInfoV2Allergen.md @@ -0,0 +1,11 @@ +# Flipdish.Model.NutritionInfoV2Allergen +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllergenId** | **string** | AllergenId (unique string identifier) | [optional] +**LocalizedName** | **string** | Localized allergen name | [optional] +**ImageName** | **string** | Name of the image file. Append it to ImageBaseUrl to get the full URL | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NutritionInfoV2Item.md b/docs/NutritionInfoV2Item.md new file mode 100644 index 00000000..66c48ac1 --- /dev/null +++ b/docs/NutritionInfoV2Item.md @@ -0,0 +1,10 @@ +# Flipdish.Model.NutritionInfoV2Item +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **Guid?** | Menu item or menu item option set item public id | [optional] +**Allergens** | [**List<NutritionInfoV2Allergen>**](NutritionInfoV2Allergen.md) | List of allergens for this item | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OAuthApp.md b/docs/OAuthApp.md new file mode 100644 index 00000000..2aadfa2d --- /dev/null +++ b/docs/OAuthApp.md @@ -0,0 +1,16 @@ +# Flipdish.Model.OAuthApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OauthAppId** | **string** | OAuth App Identifier | [optional] +**OauthAppName** | **string** | OAuth App Name | [optional] +**OwnerUserId** | **int?** | OAuth App owner user identifier | [optional] +**LogoUri** | **string** | OAuth App logo uri | [optional] +**Flow** | **string** | Supported OpenID Connect flows | [optional] +**RefreshTokenUsage** | **string** | ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens | [optional] +**AccessTokenLifetime** | **int?** | Timem it takes for the IdentityToken to expire in seconds | [optional] +**AbsoluteRefreshTokenLifetime** | **int?** | Maximum lifetime of a refresh token in seconds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OAuthClientsApi.md b/docs/OAuthClientsApi.md new file mode 100644 index 00000000..e48c5393 --- /dev/null +++ b/docs/OAuthClientsApi.md @@ -0,0 +1,712 @@ +# Flipdish.Api.OAuthClientsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddRedirectUri**](OAuthClientsApi.md#addredirecturi) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +[**CreateOAuthApp**](OAuthClientsApi.md#createoauthapp) | **POST** /api/v1.0/{appId}/oauthclients | +[**DeleteOAuthApp**](OAuthClientsApi.md#deleteoauthapp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +[**GetOAuthApps**](OAuthClientsApi.md#getoauthapps) | **GET** /api/v1.0/{appId}/oauthclients | +[**GetOAuthClientByClientId**](OAuthClientsApi.md#getoauthclientbyclientid) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +[**GetOAuthClientSecret**](OAuthClientsApi.md#getoauthclientsecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | +[**GetOauthAccessToken**](OAuthClientsApi.md#getoauthaccesstoken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | +[**GetRedirectUris**](OAuthClientsApi.md#getredirecturis) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +[**OAuthClientsGetApplications**](OAuthClientsApi.md#oauthclientsgetapplications) | **GET** /api/v1.0/{appId}/oauthclients/appnames | +[**RemoveRedirectUri**](OAuthClientsApi.md#removeredirecturi) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | +[**UpdateOAuthApp**](OAuthClientsApi.md#updateoauthapp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | + + + +# **AddRedirectUri** +> RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, string uri, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddRedirectUriExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var uri = uri_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultOauthClientRedirectUri result = apiInstance.AddRedirectUri(oauthAppId, uri, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.AddRedirectUri: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **uri** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultOauthClientRedirectUri**](RestApiResultOauthClientRedirectUri.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateOAuthApp** +> void CreateOAuthApp (OAuthApp oAuthApp, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateOAuthAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oAuthApp = new OAuthApp(); // OAuthApp | + var appId = appId_example; // string | + + try + { + apiInstance.CreateOAuthApp(oAuthApp, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.CreateOAuthApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteOAuthApp** +> void DeleteOAuthApp (string oauthAppId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteOAuthAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + + try + { + apiInstance.DeleteOAuthApp(oauthAppId, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.DeleteOAuthApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOAuthApps** +> RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppName = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOAuthAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var appId = appId_example; // string | + var oauthAppName = oauthAppName_example; // string | (optional) + + try + { + RestApiArrayResultOAuthApp result = apiInstance.GetOAuthApps(appId, oauthAppName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.GetOAuthApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **oauthAppName** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultOAuthApp**](RestApiArrayResultOAuthApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOAuthClientByClientId** +> RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOAuthClientByClientIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultOAuthApp result = apiInstance.GetOAuthClientByClientId(oauthAppId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.GetOAuthClientByClientId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultOAuthApp**](RestApiResultOAuthApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOAuthClientSecret** +> RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOAuthClientSecretExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiStringResult result = apiInstance.GetOAuthClientSecret(oauthAppId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.GetOAuthClientSecret: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOauthAccessToken** +> RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOauthAccessTokenExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiStringResult result = apiInstance.GetOauthAccessToken(oauthAppId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.GetOauthAccessToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRedirectUris** +> RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRedirectUrisExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + + try + { + RestApiArrayResultOauthClientRedirectUri result = apiInstance.GetRedirectUris(oauthAppId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.GetRedirectUris: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultOauthClientRedirectUri**](RestApiArrayResultOauthClientRedirectUri.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OAuthClientsGetApplications** +> Object OAuthClientsGetApplications (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OAuthClientsGetApplicationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var appId = appId_example; // string | + + try + { + Object result = apiInstance.OAuthClientsGetApplications(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.OAuthClientsGetApplications: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveRedirectUri** +> void RemoveRedirectUri (string oauthAppId, int? uriId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveRedirectUriExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var uriId = 56; // int? | + var appId = appId_example; // string | + + try + { + apiInstance.RemoveRedirectUri(oauthAppId, uriId, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.RemoveRedirectUri: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **uriId** | **int?**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateOAuthApp** +> void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateOAuthAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OAuthClientsApi(); + var oauthAppId = oauthAppId_example; // string | + var oAuthApp = new OAuthApp(); // OAuthApp | + var appId = appId_example; // string | + + try + { + apiInstance.UpdateOAuthApp(oauthAppId, oAuthApp, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling OAuthClientsApi.UpdateOAuthApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OAuthTokenModel.md b/docs/OAuthTokenModel.md new file mode 100644 index 00000000..5f1b5a9f --- /dev/null +++ b/docs/OAuthTokenModel.md @@ -0,0 +1,13 @@ +# Flipdish.Model.OAuthTokenModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | Identitifier key | [optional] +**TokenType** | **string** | Token type | [optional] +**SubjectId** | **string** | Oauth subject identifier | [optional] +**ClientId** | **string** | Oauth client identifier | [optional] +**Expiry** | **DateTime?** | Token expiry | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OauthClientRedirectUri.md b/docs/OauthClientRedirectUri.md new file mode 100644 index 00000000..1844c34e --- /dev/null +++ b/docs/OauthClientRedirectUri.md @@ -0,0 +1,10 @@ +# Flipdish.Model.OauthClientRedirectUri +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Redirect uri identifier | [optional] +**Uri** | **string** | Redirect uri | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ObjectDisplayOrder.md b/docs/ObjectDisplayOrder.md new file mode 100644 index 00000000..c6ba2406 --- /dev/null +++ b/docs/ObjectDisplayOrder.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ObjectDisplayOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | ID of object to be ordered | [optional] +**DisplayOrder** | **int?** | New Display order | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OktaPortalFeatureFlag.md b/docs/OktaPortalFeatureFlag.md new file mode 100644 index 00000000..e917ef06 --- /dev/null +++ b/docs/OktaPortalFeatureFlag.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OktaPortalFeatureFlag +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OktaPortalEnabled** | **bool?** | Feature flag backend_portal_enableOktaWebApi value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OnboardingApi.md b/docs/OnboardingApi.md new file mode 100644 index 00000000..2cce27cd --- /dev/null +++ b/docs/OnboardingApi.md @@ -0,0 +1,530 @@ +# Flipdish.Api.OnboardingApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OnboardingGetOnboardingConfig**](OnboardingApi.md#onboardinggetonboardingconfig) | **GET** /api/v1.0/clients/{appId}/onboarding/config | +[**OnboardingGetOnboardingConfigs**](OnboardingApi.md#onboardinggetonboardingconfigs) | **GET** /api/v1.0/clients/{appId}/onboarding/configs | +[**OnboardingGetOnboardingItems**](OnboardingApi.md#onboardinggetonboardingitems) | **GET** /api/v1.0/clients/{appId}/onboarding/stores/{storeId} | +[**OnboardingGetOnboardingItemsV2**](OnboardingApi.md#onboardinggetonboardingitemsv2) | **GET** /api/v1.0/clients/{appId}/onboarding/stores | +[**OnboardingUpdateOnboardingConfig**](OnboardingApi.md#onboardingupdateonboardingconfig) | **POST** /api/v1.0/clients/{appId}/onboarding/config | +[**OnboardingUpdateOnboardingConfigById**](OnboardingApi.md#onboardingupdateonboardingconfigbyid) | **POST** /api/v1.0/clients/{appId}/onboarding/config/{configId} | +[**OnboardingUpdateOnboardingItem**](OnboardingApi.md#onboardingupdateonboardingitem) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId} | +[**OnboardingUpdateOnboardingItemV2**](OnboardingApi.md#onboardingupdateonboardingitemv2) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId} | + + + +# **OnboardingGetOnboardingConfig** +> Object OnboardingGetOnboardingConfig (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingGetOnboardingConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + + try + { + Object result = apiInstance.OnboardingGetOnboardingConfig(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingGetOnboardingConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingGetOnboardingConfigs** +> Object OnboardingGetOnboardingConfigs (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingGetOnboardingConfigsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + + try + { + Object result = apiInstance.OnboardingGetOnboardingConfigs(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingGetOnboardingConfigs: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingGetOnboardingItems** +> Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingGetOnboardingItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var milestoneId = 56; // int? | (optional) + + try + { + Object result = apiInstance.OnboardingGetOnboardingItems(appId, storeId, milestoneId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingGetOnboardingItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **milestoneId** | **int?**| | [optional] + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingGetOnboardingItemsV2** +> Object OnboardingGetOnboardingItemsV2 (string appId, int? storeId = null, int? milestoneId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingGetOnboardingItemsV2Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | (optional) + var milestoneId = 56; // int? | (optional) + + try + { + Object result = apiInstance.OnboardingGetOnboardingItemsV2(appId, storeId, milestoneId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingGetOnboardingItemsV2: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | [optional] + **milestoneId** | **int?**| | [optional] + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingUpdateOnboardingConfig** +> Object OnboardingUpdateOnboardingConfig (string appId, OnboardingConfigUpdate configUpdate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingUpdateOnboardingConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var configUpdate = new OnboardingConfigUpdate(); // OnboardingConfigUpdate | + + try + { + Object result = apiInstance.OnboardingUpdateOnboardingConfig(appId, configUpdate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingUpdateOnboardingConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **configUpdate** | [**OnboardingConfigUpdate**](OnboardingConfigUpdate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingUpdateOnboardingConfigById** +> Object OnboardingUpdateOnboardingConfigById (string appId, int? configId, OnboardingConfigUpdate configUpdate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingUpdateOnboardingConfigByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var configId = 56; // int? | + var configUpdate = new OnboardingConfigUpdate(); // OnboardingConfigUpdate | + + try + { + Object result = apiInstance.OnboardingUpdateOnboardingConfigById(appId, configId, configUpdate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingUpdateOnboardingConfigById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **configId** | **int?**| | + **configUpdate** | [**OnboardingConfigUpdate**](OnboardingConfigUpdate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingUpdateOnboardingItem** +> Object OnboardingUpdateOnboardingItem (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingUpdateOnboardingItemExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var onboardingItemId = 56; // int? | + var itemUpdate = new OnboardingItemUpdate(); // OnboardingItemUpdate | + + try + { + Object result = apiInstance.OnboardingUpdateOnboardingItem(appId, storeId, onboardingItemId, itemUpdate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingUpdateOnboardingItem: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **onboardingItemId** | **int?**| | + **itemUpdate** | [**OnboardingItemUpdate**](OnboardingItemUpdate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OnboardingUpdateOnboardingItemV2** +> Object OnboardingUpdateOnboardingItemV2 (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class OnboardingUpdateOnboardingItemV2Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OnboardingApi(); + var appId = appId_example; // string | + var onboardingItemId = 56; // int? | + var itemUpdate = new OnboardingItemUpdate(); // OnboardingItemUpdate | + var storeId = 56; // int? | (optional) + + try + { + Object result = apiInstance.OnboardingUpdateOnboardingItemV2(appId, onboardingItemId, itemUpdate, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OnboardingApi.OnboardingUpdateOnboardingItemV2: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **onboardingItemId** | **int?**| | + **itemUpdate** | [**OnboardingItemUpdate**](OnboardingItemUpdate.md)| | + **storeId** | **int?**| | [optional] + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OnboardingConfigUpdate.md b/docs/OnboardingConfigUpdate.md new file mode 100644 index 00000000..7ecd5857 --- /dev/null +++ b/docs/OnboardingConfigUpdate.md @@ -0,0 +1,11 @@ +# Flipdish.Model.OnboardingConfigUpdate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **bool?** | Gets or sets whether onboarding is enabled | [optional] +**IsWelcomeScreenEnabled** | **bool?** | Gets or sets whether welcome screen is enabled | [optional] +**ConfigType** | **string** | Onboarding config type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OnboardingItemUpdate.md b/docs/OnboardingItemUpdate.md new file mode 100644 index 00000000..2480be94 --- /dev/null +++ b/docs/OnboardingItemUpdate.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OnboardingItemUpdate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | Completion Status for Onboarding Item | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Order.md b/docs/Order.md new file mode 100644 index 00000000..546310d0 --- /dev/null +++ b/docs/Order.md @@ -0,0 +1,61 @@ +# Flipdish.Model.Order +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Store** | [**StoreSummary**](StoreSummary.md) | Store summary | [optional] +**Customer** | [**CustomerSummary**](CustomerSummary.md) | Customer summary | [optional] +**Voucher** | [**OrderVoucherSummary**](OrderVoucherSummary.md) | Voucher summary | [optional] +**Fees** | [**FeeSummary**](FeeSummary.md) | Fee summary | [optional] +**OrderItems** | [**List<OrderItem>**](OrderItem.md) | Ordered items | [optional] +**DeliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | Delivery location for delivery orders | [optional] +**CustomerLocation** | [**Coordinates**](Coordinates.md) | Customer location | [optional] +**MaskedPhoneNumber** | [**MaskedPhoneNumber**](MaskedPhoneNumber.md) | Represents customers masked phone number | [optional] +**DropOffLocationId** | **int?** | Represents table service drop off location | [optional] +**DropOffLocation** | **string** | Represents table service drop off location | [optional] +**AcceptedFor** | **DateTime?** | Time store has accepted the order for | [optional] +**InFraudZone** | **bool?** | Was order made within a fraud zone | [optional] +**UnusualHighValueOrder** | **bool?** | Is order of unusually high value | [optional] +**RejectedByUserId** | **int?** | Id of user who rejected order, if available | [optional] +**ChannelOrderId** | **string** | ChannelOrderId from external channel | [optional] +**ChannelOrderDisplayId** | **string** | ChannelOrderDisplayId from external channel | [optional] +**Channel** | [**Channel**](Channel.md) | Channel where the Order comes from | [optional] +**OrderDropOffLocation** | [**OrderDropOffLocation**](OrderDropOffLocation.md) | DropOffLocation selected for this order | [optional] +**FulfillmentStatus** | [**OrderFulfillmentStatusBase**](OrderFulfillmentStatusBase.md) | [BETA - this is a new field in development] Fulfillment status for this order | [optional] +**OrderBatchInfo** | [**OrderBatchSummary**](OrderBatchSummary.md) | OrderBatch information | [optional] +**TaxItems** | [**List<TaxItem>**](TaxItem.md) | A collection of tax items on the order. | [optional] +**CreatedCampaignVoucherId** | **int?** | The id of the campaign voucher that was created from this order | [optional] +**OrderId** | **int?** | Order identifier | [optional] +**LocalOrderId** | **string** | Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) | [optional] +**DeliveryType** | **string** | Delivery type | [optional] +**PickupLocationType** | **string** | Pickup location type | [optional] +**TableServiceCatagory** | **string** | Pickup location type | [optional] +**TipAmount** | **double?** | Tip amount | [optional] +**DeliveryAmount** | **double?** | Delivery amount | [optional] +**OrderItemsAmount** | **double?** | Ordered items amount | [optional] +**ServiceChargeAmount** | **double?** | Service Charge Amount | [optional] +**ServiceChargePercentage** | **double?** | Service Charge Percentage | [optional] +**Amount** | **double?** | This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer. | [optional] +**ProcessingFee** | **double?** | This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive. | [optional] +**PaymentAccountType** | **string** | Payment account type | [optional] +**PaymentAccountDescription** | **string** | Payment account description (like Visa ****2371 or Apple Pay. or Cash) | [optional] +**OrderState** | **string** | Order state | [optional] +**IsPreOrder** | **bool?** | Is pre-order | [optional] +**PlacedTime** | **DateTime?** | Order placed time | [optional] +**RequestedForTime** | **DateTime?** | Order requested for | [optional] +**ChefNote** | **string** | Chef note | [optional] +**AppType** | **string** | Used app type | [optional] +**UserRating** | **int?** | User rating | [optional] +**PaymentStatus** | **string** | Status of the payment | [optional] +**RejectionReason** | **string** | Rejection reason. Can have value if the order is rejected. | [optional] +**RefundedAmount** | **double?** | Amount refunded to customer. | [optional] +**DeliveryTrackingStatus** | **string** | Delivery tracking status | [optional] +**DriverId** | **int?** | Assigned driver identifier | [optional] +**TotalTax** | **double?** | Total tax applied to order | [optional] +**OrderTrackingCode** | **string** | Unique, 6 character long alpha numeric code for tracking. | [optional] +**DeliveryFeeAreaId** | **int?** | Delivery area identifier | [optional] +**ReceiptCode** | **string** | Code used to view the order's receipt | [optional] +**TotalDepositReturnFeeAmount** | **double?** | This contains the total deposit return fee amount for the order. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderAcceptedEvent.md b/docs/OrderAcceptedEvent.md new file mode 100644 index 00000000..b30be962 --- /dev/null +++ b/docs/OrderAcceptedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.OrderAcceptedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**Description** | **string** | Description | [optional] +**OrderAcceptedTime** | **DateTime?** | Order Accepted Time | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has accepted the order | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderBatch.md b/docs/OrderBatch.md new file mode 100644 index 00000000..cd84f01c --- /dev/null +++ b/docs/OrderBatch.md @@ -0,0 +1,13 @@ +# Flipdish.Model.OrderBatch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderIds** | **List<int?>** | Orders' ids on the batch | [optional] +**Id** | **int?** | Order batch id | [optional] +**DisplayCode** | **string** | Order batch 6-sign human readable code | [optional] +**CreateTime** | **DateTime?** | Batch creation date and time | [optional] +**IsPublished** | **bool?** | If the batch is already published | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderBatchPublishedEvent.md b/docs/OrderBatchPublishedEvent.md new file mode 100644 index 00000000..3841ec20 --- /dev/null +++ b/docs/OrderBatchPublishedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.OrderBatchPublishedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrderBatchId** | **int?** | Order Batch Id | [optional] +**StoreId** | **int?** | Store id the order batch belogs to | [optional] +**OrderIds** | **List<int?>** | Orders' ids on the batch | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderBatchSummary.md b/docs/OrderBatchSummary.md new file mode 100644 index 00000000..cff4f916 --- /dev/null +++ b/docs/OrderBatchSummary.md @@ -0,0 +1,12 @@ +# Flipdish.Model.OrderBatchSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Order batch id | [optional] +**DisplayCode** | **string** | Order batch 6-sign human readable code | [optional] +**CreateTime** | **DateTime?** | Batch creation date and time | [optional] +**IsPublished** | **bool?** | If the batch is already published | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderBatchesApi.md b/docs/OrderBatchesApi.md new file mode 100644 index 00000000..5cc995c2 --- /dev/null +++ b/docs/OrderBatchesApi.md @@ -0,0 +1,140 @@ +# Flipdish.Api.OrderBatchesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAllOrderBatches**](OrderBatchesApi.md#getallorderbatches) | **GET** /api/v1.0/{appId}/order-batches | +[**GetOrderBatch**](OrderBatchesApi.md#getorderbatch) | **GET** /api/v1.0/{appId}/order-batches/{orderBatchId} | + + + +# **GetAllOrderBatches** +> RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAllOrderBatchesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrderBatchesApi(); + var appId = appId_example; // string | + var storeIds = new List(); // List | (optional) + var createdFrom = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var createdTo = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + + try + { + RestApiArrayResultOrderBatch result = apiInstance.GetAllOrderBatches(appId, storeIds, createdFrom, createdTo); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrderBatchesApi.GetAllOrderBatches: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeIds** | [**List<int?>**](int?.md)| | [optional] + **createdFrom** | **DateTime?**| | [optional] + **createdTo** | **DateTime?**| | [optional] + +### Return type + +[**RestApiArrayResultOrderBatch**](RestApiArrayResultOrderBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrderBatch** +> RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderBatchExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrderBatchesApi(); + var appId = appId_example; // string | + var orderBatchId = 56; // int? | + + try + { + RestApiResultOrderBatch result = apiInstance.GetOrderBatch(appId, orderBatchId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrderBatchesApi.GetOrderBatch: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **orderBatchId** | **int?**| | + +### Return type + +[**RestApiResultOrderBatch**](RestApiResultOrderBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OrderBatchingConfiguration.md b/docs/OrderBatchingConfiguration.md new file mode 100644 index 00000000..84ec1c2a --- /dev/null +++ b/docs/OrderBatchingConfiguration.md @@ -0,0 +1,10 @@ +# Flipdish.Model.OrderBatchingConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchIntervalInSeconds** | **int?** | Batch sending interval in seconds | [optional] +**IsEnabled** | **bool?** | OrderBatching is enabled or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderBatchingConfigurationApi.md b/docs/OrderBatchingConfigurationApi.md new file mode 100644 index 00000000..b4ed4a0f --- /dev/null +++ b/docs/OrderBatchingConfigurationApi.md @@ -0,0 +1,133 @@ +# Flipdish.Api.OrderBatchingConfigurationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Get**](OrderBatchingConfigurationApi.md#get) | **GET** /api/v1.0/stores/{storeId}/order-batching-configuration | +[**Post**](OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | + + + +# **Get** +> RestApiResultOrderBatchingConfiguration Get (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrderBatchingConfigurationApi(); + var storeId = 56; // int? | + + try + { + RestApiResultOrderBatchingConfiguration result = apiInstance.Get(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrderBatchingConfigurationApi.Get: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultOrderBatchingConfiguration**](RestApiResultOrderBatchingConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Post** +> void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PostExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrderBatchingConfigurationApi(); + var storeId = 56; // int? | + var setOrderBatchingConfiguration = new SetOrderBatchingConfiguration(); // SetOrderBatchingConfiguration | + + try + { + apiInstance.Post(storeId, setOrderBatchingConfiguration); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrderBatchingConfigurationApi.Post: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **setOrderBatchingConfiguration** | [**SetOrderBatchingConfiguration**](SetOrderBatchingConfiguration.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OrderCapacityConfigUpdatedEvent.md b/docs/OrderCapacityConfigUpdatedEvent.md new file mode 100644 index 00000000..17fe14a5 --- /dev/null +++ b/docs/OrderCapacityConfigUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.OrderCapacityConfigUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Id of the store whose order capacity configuration has been updated | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated order capacity configuration for this store | [optional] +**Description** | **string** | Description | [optional] +**OrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md) | Updated order capacity configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderCreatedEvent.md b/docs/OrderCreatedEvent.md new file mode 100644 index 00000000..168821a2 --- /dev/null +++ b/docs/OrderCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.OrderCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**OrderCreatedTime** | **DateTime?** | Order Created Time | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderCustomerTrackingCreatedEvent.md b/docs/OrderCustomerTrackingCreatedEvent.md new file mode 100644 index 00000000..4068e6a2 --- /dev/null +++ b/docs/OrderCustomerTrackingCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.OrderCustomerTrackingCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**Order** | [**CustomerDeliveryTrackingOrder**](CustomerDeliveryTrackingOrder.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderDeliveryInformation.md b/docs/OrderDeliveryInformation.md new file mode 100644 index 00000000..3208d736 --- /dev/null +++ b/docs/OrderDeliveryInformation.md @@ -0,0 +1,16 @@ +# Flipdish.Model.OrderDeliveryInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | Order Id | [optional] +**ExternalReferenceId** | **string** | External Reference Id | [optional] +**TrackUrl** | **string** | Tracking Url | [optional] +**Status** | **string** | Delivery Status | [optional] +**DeliveryStatusNotes** | **string** | Delivery Status Notes | [optional] +**ErrorMessage** | **string** | Error Message | [optional] +**IntegrationCode** | **string** | Integration Code | [optional] +**IntegrationName** | **string** | Integration Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderDeliveryInformationBase.md b/docs/OrderDeliveryInformationBase.md new file mode 100644 index 00000000..39202adb --- /dev/null +++ b/docs/OrderDeliveryInformationBase.md @@ -0,0 +1,15 @@ +# Flipdish.Model.OrderDeliveryInformationBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalReferenceId** | **string** | External Reference Id | [optional] +**TrackUrl** | **string** | Tracking Url | [optional] +**Status** | **string** | Delivery Status | [optional] +**DeliveryStatusNotes** | **string** | Delivery Status Notes | [optional] +**ErrorMessage** | **string** | Error Message | [optional] +**IntegrationCode** | **string** | Integration Code | [optional] +**IntegrationName** | **string** | Integration Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderDeliveryTrackingStatusUpdatedEvent.md b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md new file mode 100644 index 00000000..7f621bae --- /dev/null +++ b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.OrderDeliveryTrackingStatusUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**DeliveryIntegrationName** | **string** | Delivery integration name | [optional] +**DeliveryErrorMessage** | **string** | Delivery error message (optional) | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderDispatchedEvent.md b/docs/OrderDispatchedEvent.md new file mode 100644 index 00000000..567a1a13 --- /dev/null +++ b/docs/OrderDispatchedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.OrderDispatchedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**OrderDispatchedTime** | **DateTime?** | Order Rejected Time | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderDropOffLocation.md b/docs/OrderDropOffLocation.md new file mode 100644 index 00000000..d66cbfd8 --- /dev/null +++ b/docs/OrderDropOffLocation.md @@ -0,0 +1,14 @@ +# Flipdish.Model.OrderDropOffLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | OrderId. | [optional] +**LocationName** | **string** | LocationName. | [optional] +**LocationAreaName** | **string** | LocationAreaName. | [optional] +**LocationId** | **int?** | LocationId. | [optional] +**LocationAreaId** | **int?** | LocationAreaId. | [optional] +**ExternalLocationId** | **string** | ExternalLocationId. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderFulfillmentStatus.md b/docs/OrderFulfillmentStatus.md new file mode 100644 index 00000000..9403c748 --- /dev/null +++ b/docs/OrderFulfillmentStatus.md @@ -0,0 +1,12 @@ +# Flipdish.Model.OrderFulfillmentStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | Order Id | [optional] +**StatusId** | **string** | Fulfillment Status Id | [optional] +**StatusName** | **string** | Fulfillment Status Name | [optional] +**Icon** | **string** | Status Icon | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderFulfillmentStatusBase.md b/docs/OrderFulfillmentStatusBase.md new file mode 100644 index 00000000..7ee00d7b --- /dev/null +++ b/docs/OrderFulfillmentStatusBase.md @@ -0,0 +1,11 @@ +# Flipdish.Model.OrderFulfillmentStatusBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **string** | Fulfillment Status Id | [optional] +**StatusName** | **string** | Fulfillment Status Name | [optional] +**Icon** | **string** | Status Icon | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderFulfillmentStatusUpdate.md b/docs/OrderFulfillmentStatusUpdate.md new file mode 100644 index 00000000..2581e862 --- /dev/null +++ b/docs/OrderFulfillmentStatusUpdate.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OrderFulfillmentStatusUpdate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **string** | Fulfillment Status Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderFulfillmentStatusUpdatedEvent.md b/docs/OrderFulfillmentStatusUpdatedEvent.md new file mode 100644 index 00000000..0cb0a8b3 --- /dev/null +++ b/docs/OrderFulfillmentStatusUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.OrderFulfillmentStatusUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**Description** | **string** | Description | [optional] +**OrderId** | **int?** | Order Id | [optional] +**StatusName** | **string** | Fulfillment status name | [optional] +**StatusId** | **string** | Fulfillment status ID | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderFulfillmentStatusWithConfigurationActions.md b/docs/OrderFulfillmentStatusWithConfigurationActions.md new file mode 100644 index 00000000..06a0879e --- /dev/null +++ b/docs/OrderFulfillmentStatusWithConfigurationActions.md @@ -0,0 +1,14 @@ +# Flipdish.Model.OrderFulfillmentStatusWithConfigurationActions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultNextStatus** | **string** | Default next status (id) | [optional] +**NextStatuses** | [**List<FulfillentStatusActionItem>**](FulfillentStatusActionItem.md) | Possible next statuses | [optional] +**OrderId** | **int?** | Order Id | [optional] +**StatusId** | **string** | Fulfillment Status Id | [optional] +**StatusName** | **string** | Fulfillment Status Name | [optional] +**Icon** | **string** | Status Icon | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderItem.md b/docs/OrderItem.md new file mode 100644 index 00000000..13b44593 --- /dev/null +++ b/docs/OrderItem.md @@ -0,0 +1,22 @@ +# Flipdish.Model.OrderItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderItemOptions** | [**List<OrderItemOption>**](OrderItemOption.md) | Option list | [optional] +**Metadata** | **Dictionary<string, string>** | Metadata | [optional] +**MenuItemPublicId** | **Guid?** | Public id of the Menu Item | [optional] +**MenuSectionName** | **string** | Menu section name | [optional] +**MenuSectionDisplayOrder** | **int?** | Menu section display order | [optional] +**Name** | **string** | Name | [optional] +**Description** | **string** | Description | [optional] +**Price** | **double?** | Price | [optional] +**TaxAmount** | **double?** | Tax currency amount | [optional] +**PriceIncludingOptionSetItems** | **double?** | Price including option set items | [optional] +**MenuItemId** | **int?** | Menu item identifier | [optional] +**MenuItemDisplayOrder** | **int?** | Menu item display order | [optional] +**IsAvailable** | **bool?** | Is available | [optional] +**DepositReturnFee** | **double?** | Deposit return fee | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderItemOption.md b/docs/OrderItemOption.md new file mode 100644 index 00000000..11023137 --- /dev/null +++ b/docs/OrderItemOption.md @@ -0,0 +1,18 @@ +# Flipdish.Model.OrderItemOption +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | **Dictionary<string, string>** | Metadata | [optional] +**MenuItemOptionPublicId** | **Guid?** | Public id of the Menu Item Option | [optional] +**MenuItemOptionId** | **int?** | Menu item option identifier | [optional] +**IsMasterOptionSetItem** | **bool?** | Is master option set item | [optional] +**Name** | **string** | Name | [optional] +**Price** | **double?** | Price | [optional] +**TaxAmount** | **double?** | Tax currency amount | [optional] +**MenuItemOptionDisplayOrder** | **int?** | Menu item option display order | [optional] +**MenuItemOptionSetDisplayOrder** | **int?** | Menu item option set display order | [optional] +**DepositReturnFee** | **double?** | Deposit return fee | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderLeadTimes.md b/docs/OrderLeadTimes.md new file mode 100644 index 00000000..e61f6741 --- /dev/null +++ b/docs/OrderLeadTimes.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OrderLeadTimes +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeadTimeMinutes** | **Dictionary<string, int?>** | Mapping from the type of order to, to the default lead time that will be applied to those orders. The lead time is an integer number of minutes. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderList.md b/docs/OrderList.md new file mode 100644 index 00000000..843cb7ea --- /dev/null +++ b/docs/OrderList.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OrderList +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Orders** | [**List<OrderReference>**](OrderReference.md) | A list of orders. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderPaymentInformation.md b/docs/OrderPaymentInformation.md new file mode 100644 index 00000000..1a24e733 --- /dev/null +++ b/docs/OrderPaymentInformation.md @@ -0,0 +1,10 @@ +# Flipdish.Model.OrderPaymentInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | ID of the Order | [optional] +**PaymentRefundable** | **bool?** | Signifies if the payment is refundable | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderRatingUpdatedEvent.md b/docs/OrderRatingUpdatedEvent.md new file mode 100644 index 00000000..5a83acfe --- /dev/null +++ b/docs/OrderRatingUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.OrderRatingUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Rating** | **int?** | New User Rating | [optional] +**Description** | **string** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderReference.md b/docs/OrderReference.md new file mode 100644 index 00000000..0bd81481 --- /dev/null +++ b/docs/OrderReference.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OrderReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | The ID of the order. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderRefundedEvent.md b/docs/OrderRefundedEvent.md new file mode 100644 index 00000000..6b837907 --- /dev/null +++ b/docs/OrderRefundedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.OrderRefundedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**RefundedAmount** | **double?** | The amount refunded | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has refunded the order | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderRejectedEvent.md b/docs/OrderRejectedEvent.md new file mode 100644 index 00000000..7026026f --- /dev/null +++ b/docs/OrderRejectedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.OrderRejectedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**OrderRejectedTime** | **DateTime?** | Order Rejected Time | [optional] +**Reason** | **string** | Reason for Rejection | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has rejected the order | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderSummary.md b/docs/OrderSummary.md new file mode 100644 index 00000000..e0151876 --- /dev/null +++ b/docs/OrderSummary.md @@ -0,0 +1,36 @@ +# Flipdish.Model.OrderSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | Order identifier | [optional] +**DeliveryType** | **string** | Delivery type | [optional] +**PickupLocationType** | **string** | Pickup location type | [optional] +**TableServiceCatagory** | **string** | Table service category | [optional] +**OrderState** | **string** | Order state | [optional] +**RequestedForTime** | **DateTime?** | Order requested for | [optional] +**StoreName** | **string** | Name of the store | [optional] +**StoreIanaTimeZone** | **string** | Store IANA time zone | [optional] +**CustomerName** | **string** | Name of the customer | [optional] +**CustomerPhoneNumber** | **string** | Phone number of customer | [optional] +**Amount** | **double?** | This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee | [optional] +**RefundedAmount** | **double?** | Refunded amount | [optional] +**PaymentAccountType** | **string** | Payment Account | [optional] +**PaymentStatus** | **string** | Status of the payment | [optional] +**Currency** | **string** | Currency of payment | [optional] +**AppType** | **string** | Type of app end user is on | [optional] +**LocalOrderId** | **string** | Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) | [optional] +**DropOffLocationId** | **int?** | id of the collection/drop off location | [optional] +**DropOffLocation** | **string** | Represents table service drop off location | [optional] +**AcceptedFor** | **DateTime?** | Time store has accepted the order for | [optional] +**Channel** | [**Channel**](Channel.md) | Channel where the Order comes from | [optional] +**InFraudZone** | **bool?** | Was order made within a fraud zone | [optional] +**UnusualHighValueOrder** | **bool?** | Is order of unusually high value | [optional] +**ChannelOrderId** | **string** | ChannelOrderId from external channel | [optional] +**ChannelOrderDisplayId** | **string** | ChannelOrderDisplayId from external channel | [optional] +**OrderDropOffLocation** | [**OrderDropOffLocation**](OrderDropOffLocation.md) | DropOffLocation selected for this order | [optional] +**OrderBatchInfo** | [**OrderBatchSummary**](OrderBatchSummary.md) | OrderBatch information | [optional] +**DeliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | Delivery location details | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderTipUpdatedEvent.md b/docs/OrderTipUpdatedEvent.md new file mode 100644 index 00000000..5b210912 --- /dev/null +++ b/docs/OrderTipUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.OrderTipUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**TipAmount** | **double?** | Tip Amount | [optional] +**Description** | **string** | Description | [optional] +**Order** | [**Order**](Order.md) | Order | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrderVoucherSummary.md b/docs/OrderVoucherSummary.md new file mode 100644 index 00000000..8d232c91 --- /dev/null +++ b/docs/OrderVoucherSummary.md @@ -0,0 +1,15 @@ +# Flipdish.Model.OrderVoucherSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher ID | [optional] +**Name** | **string** | Voucher name | [optional] +**Description** | **string** | Voucher description | [optional] +**Code** | **string** | Voucher code | [optional] +**Amount** | **double?** | Voucher amount | [optional] +**Type** | **string** | Voucher type | [optional] +**SubType** | **string** | Voucher sub type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md new file mode 100644 index 00000000..fce018bb --- /dev/null +++ b/docs/OrdersApi.md @@ -0,0 +1,1000 @@ +# Flipdish.Api.OrdersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AcceptOrder**](OrdersApi.md#acceptorder) | **POST** /api/v1.0/orders/{id}/accept | +[**DispatchOrder**](OrdersApi.md#dispatchorder) | **POST** /api/v1.0/orders/{id}/dispatch | +[**GetDeliveryInformation**](OrdersApi.md#getdeliveryinformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | +[**GetFulfillmentState**](OrdersApi.md#getfulfillmentstate) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | +[**GetFulfillmentStatusWithDetailsAndActions**](OrdersApi.md#getfulfillmentstatuswithdetailsandactions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | +[**GetOrderById**](OrdersApi.md#getorderbyid) | **GET** /api/v1.0/orders/{id} | +[**GetOrders**](OrdersApi.md#getorders) | **GET** /api/v1.0/orders | +[**GetOrdersSummary**](OrdersApi.md#getorderssummary) | **GET** /api/v1.0/{appId}/orders/summaries | +[**GetOrdersSummaryNew**](OrdersApi.md#getorderssummarynew) | **GET** /api/v1.0/{appId}/orders/summariesNew | +[**GetReadyToProcess**](OrdersApi.md#getreadytoprocess) | **GET** /api/v1.0/{appId}/orders/ready_to_process | +[**RefundOrder**](OrdersApi.md#refundorder) | **POST** /api/v1.0/orders/{id}/refund | +[**RejectOrder**](OrdersApi.md#rejectorder) | **POST** /api/v1.0/orders/{id}/reject | +[**SearchFulfillmentStatuses**](OrdersApi.md#searchfulfillmentstatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | +[**UpdateDeliveryInformation**](OrdersApi.md#updatedeliveryinformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | +[**UpdateFulfillmentState**](OrdersApi.md#updatefulfillmentstate) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | + + + +# **AcceptOrder** +> void AcceptOrder (int? id, Accept acceptObject) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AcceptOrderExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var id = 56; // int? | + var acceptObject = new Accept(); // Accept | + + try + { + apiInstance.AcceptOrder(id, acceptObject); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.AcceptOrder: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + **acceptObject** | [**Accept**](Accept.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DispatchOrder** +> void DispatchOrder (int? id) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DispatchOrderExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var id = 56; // int? | + + try + { + apiInstance.DispatchOrder(id); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.DispatchOrder: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDeliveryInformation** +> RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetDeliveryInformationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var orderId = 56; // int? | + + try + { + RestApiResultOrderDeliveryInformation result = apiInstance.GetDeliveryInformation(orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetDeliveryInformation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + +### Return type + +[**RestApiResultOrderDeliveryInformation**](RestApiResultOrderDeliveryInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFulfillmentState** +> RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFulfillmentStateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var orderId = 56; // int? | + + try + { + RestApiResultOrderFulfillmentStatus result = apiInstance.GetFulfillmentState(orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetFulfillmentState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + +### Return type + +[**RestApiResultOrderFulfillmentStatus**](RestApiResultOrderFulfillmentStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFulfillmentStatusWithDetailsAndActions** +> RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetFulfillmentStatusWithDetailsAndActionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var orderId = 56; // int? | + + try + { + RestApiResultOrderFulfillmentStatusWithConfigurationActions result = apiInstance.GetFulfillmentStatusWithDetailsAndActions(orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetFulfillmentStatusWithDetailsAndActions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + +### Return type + +[**RestApiResultOrderFulfillmentStatusWithConfigurationActions**](RestApiResultOrderFulfillmentStatusWithConfigurationActions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrderById** +> RestApiResultOrder GetOrderById (int? id) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var id = 56; // int? | + + try + { + RestApiResultOrder result = apiInstance.GetOrderById(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetOrderById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + +### Return type + +[**RestApiResultOrder**](RestApiResultOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrders** +> RestApiPaginationResultOrder GetOrders (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrdersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var physicalRestaurantId = new List(); // List | (optional) + var state = state_example; // List | (optional) + var from = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var to = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultOrder result = apiInstance.GetOrders(physicalRestaurantId, state, from, to, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetOrders: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **physicalRestaurantId** | [**List<int?>**](int?.md)| | [optional] + **state** | **List<string>**| | [optional] + **from** | **DateTime?**| | [optional] + **to** | **DateTime?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultOrder**](RestApiPaginationResultOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrdersSummary** +> RestApiPaginationResultOrderSummary GetOrdersSummary (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrdersSummaryExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var appId = appId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var physicalRestaurantId = new List(); // List | (optional) + var state = state_example; // List | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var orderByRequestedForTime = true; // bool? | (optional) + var channels = channels_example; // List | (optional) + var orderIds = new List(); // List | (optional) + var from = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var to = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var logSql = true; // bool? | (optional) + + try + { + RestApiPaginationResultOrderSummary result = apiInstance.GetOrdersSummary(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetOrdersSummary: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **searchQuery** | **string**| | [optional] + **physicalRestaurantId** | [**List<int?>**](int?.md)| | [optional] + **state** | **List<string>**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **orderByRequestedForTime** | **bool?**| | [optional] + **channels** | **List<string>**| | [optional] + **orderIds** | [**List<int?>**](int?.md)| | [optional] + **from** | **DateTime?**| | [optional] + **to** | **DateTime?**| | [optional] + **logSql** | **bool?**| | [optional] + +### Return type + +[**RestApiPaginationResultOrderSummary**](RestApiPaginationResultOrderSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOrdersSummaryNew** +> RestApiPaginationResultOrderSummary GetOrdersSummaryNew (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrdersSummaryNewExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var appId = appId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var physicalRestaurantId = new List(); // List | (optional) + var state = state_example; // List | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var orderByRequestedForTime = true; // bool? | (optional) + var channels = channels_example; // List | (optional) + var orderIds = new List(); // List | (optional) + var from = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var to = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var logSql = true; // bool? | (optional) + + try + { + RestApiPaginationResultOrderSummary result = apiInstance.GetOrdersSummaryNew(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetOrdersSummaryNew: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **searchQuery** | **string**| | [optional] + **physicalRestaurantId** | [**List<int?>**](int?.md)| | [optional] + **state** | **List<string>**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **orderByRequestedForTime** | **bool?**| | [optional] + **channels** | **List<string>**| | [optional] + **orderIds** | [**List<int?>**](int?.md)| | [optional] + **from** | **DateTime?**| | [optional] + **to** | **DateTime?**| | [optional] + **logSql** | **bool?**| | [optional] + +### Return type + +[**RestApiPaginationResultOrderSummary**](RestApiPaginationResultOrderSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetReadyToProcess** +> OrderList GetReadyToProcess (string appId, List storeId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetReadyToProcessExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var appId = appId_example; // string | + var storeId = new List(); // List | (optional) + + try + { + OrderList result = apiInstance.GetReadyToProcess(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.GetReadyToProcess: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**OrderList**](OrderList.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefundOrder** +> void RefundOrder (int? id, Refund refundObject) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RefundOrderExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var id = 56; // int? | + var refundObject = new Refund(); // Refund | + + try + { + apiInstance.RefundOrder(id, refundObject); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.RefundOrder: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + **refundObject** | [**Refund**](Refund.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RejectOrder** +> void RejectOrder (int? id, Reject rejectObject) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RejectOrderExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var id = 56; // int? | + var rejectObject = new Reject(); // Reject | + + try + { + apiInstance.RejectOrder(id, rejectObject); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.RejectOrder: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int?**| | + **rejectObject** | [**Reject**](Reject.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchFulfillmentStatuses** +> RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchFulfillmentStatusesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var appId = appId_example; // string | + var orderIds = orderIds_example; // string | + + try + { + RestApiArrayResultOrderFulfillmentStatus result = apiInstance.SearchFulfillmentStatuses(appId, orderIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.SearchFulfillmentStatuses: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **orderIds** | **string**| | + +### Return type + +[**RestApiArrayResultOrderFulfillmentStatus**](RestApiArrayResultOrderFulfillmentStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateDeliveryInformation** +> void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateDeliveryInformationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var orderId = 56; // int? | + var deliveryInformation = new OrderDeliveryInformationBase(); // OrderDeliveryInformationBase | + + try + { + apiInstance.UpdateDeliveryInformation(orderId, deliveryInformation); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.UpdateDeliveryInformation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **deliveryInformation** | [**OrderDeliveryInformationBase**](OrderDeliveryInformationBase.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateFulfillmentState** +> void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateFulfillmentStateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new OrdersApi(); + var orderId = 56; // int? | + var fulfillmentStatusRequest = new OrderFulfillmentStatusUpdate(); // OrderFulfillmentStatusUpdate | + + try + { + apiInstance.UpdateFulfillmentState(orderId, fulfillmentStatusRequest); + } + catch (Exception e) + { + Debug.Print("Exception when calling OrdersApi.UpdateFulfillmentState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + **fulfillmentStatusRequest** | [**OrderFulfillmentStatusUpdate**](OrderFulfillmentStatusUpdate.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OtherChargesDetails.md b/docs/OtherChargesDetails.md new file mode 100644 index 00000000..f6e2f903 --- /dev/null +++ b/docs/OtherChargesDetails.md @@ -0,0 +1,10 @@ +# Flipdish.Model.OtherChargesDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalOtherCharges** | **double?** | Total amount of other charges | [optional] +**ChargesCount** | **int?** | Number of other charges | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OwnerEntityConfiguration.md b/docs/OwnerEntityConfiguration.md new file mode 100644 index 00000000..bd223ff5 --- /dev/null +++ b/docs/OwnerEntityConfiguration.md @@ -0,0 +1,10 @@ +# Flipdish.Model.OwnerEntityConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerEntity** | **string** | Owner Entity | [optional] +**AllowedBehaviors** | **List<string>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/OwnerEntityConfigurations.md b/docs/OwnerEntityConfigurations.md new file mode 100644 index 00000000..251beabb --- /dev/null +++ b/docs/OwnerEntityConfigurations.md @@ -0,0 +1,9 @@ +# Flipdish.Model.OwnerEntityConfigurations +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configurations** | [**List<OwnerEntityConfiguration>**](OwnerEntityConfiguration.md) | Owner Entity Configuration | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PasswordResetModel.md b/docs/PasswordResetModel.md new file mode 100644 index 00000000..6097e780 --- /dev/null +++ b/docs/PasswordResetModel.md @@ -0,0 +1,13 @@ +# Flipdish.Model.PasswordResetModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenId** | **string** | Token Id | [optional] +**Email** | **string** | Email address | [optional] +**Password** | **string** | Password | +**PasswordConfirmation** | **string** | Password confirmation | +**Token** | **string** | Password reset token | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentAccount.md b/docs/PaymentAccount.md new file mode 100644 index 00000000..55878613 --- /dev/null +++ b/docs/PaymentAccount.md @@ -0,0 +1,17 @@ +# Flipdish.Model.PaymentAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **int?** | The user ID associated with the payment account. | [optional] +**PaymentAccountId** | **int?** | Unique identifier for the payment account. | [optional] +**CanRemoveFromCustomerView** | **bool?** | Indicates if the payment account can be removed from the customer view. | [optional] +**Bin** | **string** | Bank Identification Number (BIN) of the payment method. | [optional] +**IsDefaultPaymentMethod** | **bool?** | Indicates if this is the default payment method. | [optional] +**IsVisibleToCustomer** | **bool?** | Indicates if the payment account is visible to the customer. | [optional] +**PaymentAccountType** | **string** | The type of payment account (e.g., card, PayPal). | [optional] +**Description** | **string** | Description of the payment account. | [optional] +**CustomerId** | **string** | The customer ID associated with the payment account. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentIntent.md b/docs/PaymentIntent.md new file mode 100644 index 00000000..95d35e69 --- /dev/null +++ b/docs/PaymentIntent.md @@ -0,0 +1,14 @@ +# Flipdish.Model.PaymentIntent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Id of payment intent | [optional] +**Description** | **string** | An arbitrary string attached to the object. Often useful for displaying to users. | [optional] +**Currency** | **string** | Three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a>, in lowercase. Must be a <a href=\"https://stripe.com/docs/currencies\">supported currency</a>. | [optional] +**Status** | **string** | Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent <a href=\"https://stripe.com/docs/payments/intents#intent-statuses\">status</a>. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded. | [optional] +**Created** | **DateTime?** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional] +**LastPaymentError** | [**LastPaymentError**](LastPaymentError.md) | Failed payment intent Errors | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentIntentsApi.md b/docs/PaymentIntentsApi.md new file mode 100644 index 00000000..4b62b305 --- /dev/null +++ b/docs/PaymentIntentsApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.PaymentIntentsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPaymentIntent**](PaymentIntentsApi.md#getpaymentintent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | + + + +# **GetPaymentIntent** +> RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPaymentIntentExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PaymentIntentsApi(); + var paymentIntentId = paymentIntentId_example; // string | + + try + { + RestApiResultPaymentIntent result = apiInstance.GetPaymentIntent(paymentIntentId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PaymentIntentsApi.GetPaymentIntent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paymentIntentId** | **string**| | + +### Return type + +[**RestApiResultPaymentIntent**](RestApiResultPaymentIntent.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PaymentTerminalDetails.md b/docs/PaymentTerminalDetails.md new file mode 100644 index 00000000..6ad3a00d --- /dev/null +++ b/docs/PaymentTerminalDetails.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PaymentTerminalDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TerminalId** | **string** | Terminal Id (tid) | [optional] +**Status** | **string** | Status of Terminal | [optional] +**Currency** | **string** | Currency configured on the terminal | [optional] +**Uri** | **string** | Location to Device | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentTerminalTransactionDetails.md b/docs/PaymentTerminalTransactionDetails.md new file mode 100644 index 00000000..57b90cc0 --- /dev/null +++ b/docs/PaymentTerminalTransactionDetails.md @@ -0,0 +1,14 @@ +# Flipdish.Model.PaymentTerminalTransactionDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CardSchemeName** | **string** | Card Type | [optional] +**DateOfExpiry** | **string** | Expirey Date on Card | [optional] +**AuthCode** | **string** | AuthCode | [optional] +**TransactionResult** | **string** | State of Request, \"PENDING\" is not yet completed | [optional] +**PrimaryAccountNumber** | **string** | Masked PAN | [optional] +**CardholderVerificationMethod** | **string** | Type of Verification. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md new file mode 100644 index 00000000..18391217 --- /dev/null +++ b/docs/PaymentsApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.PaymentsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetOrderPaymentInformation**](PaymentsApi.md#getorderpaymentinformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | + + + +# **GetOrderPaymentInformation** +> RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetOrderPaymentInformationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PaymentsApi(); + var orderId = 56; // int? | + + try + { + RestApiResultOrderPaymentInformation result = apiInstance.GetOrderPaymentInformation(orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PaymentsApi.GetOrderPaymentInformation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + +### Return type + +[**RestApiResultOrderPaymentInformation**](RestApiResultOrderPaymentInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Payout.md b/docs/Payout.md new file mode 100644 index 00000000..2592d475 --- /dev/null +++ b/docs/Payout.md @@ -0,0 +1,53 @@ +# Flipdish.Model.Payout +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **int?** | The id of the payout. | [optional] +**PayeeBankAccountId** | **int?** | Bank account identifier | [optional] +**AccountName** | **string** | Account name of the payout destination | [optional] +**PayoutStatus** | **string** | Status of the payout | [optional] +**CreatedDate** | **DateTime?** | Date payout was created | [optional] +**PeriodStartTime** | **DateTime?** | This payout includes operations after at this date (inclusive) | [optional] +**PeriodEndTime** | **DateTime?** | This payout includes operations before at this date (exclusive) | [optional] +**DestinationBank** | **string** | Destination bank name | [optional] +**DestinationAccount** | **string** | Last 4 digits of the destination bank IBAN | [optional] +**Amount** | **double?** | Payout amount | [optional] +**PayoutType** | **string** | Type of payout source | [optional] +**Currency** | **string** | Payout currency | [optional] +**CutoffDate** | **DateTime?** | Payouts before this date do not have a details breakdown | [optional] +**OnlineSalesAmount** | **double?** | Payout online sales amount | [optional] +**OnlineSalesDeliveryCharges** | **double?** | Payout online sales delivery charges | [optional] +**OnlineSalesTips** | **double?** | Payout online sales tips | [optional] +**OnlineSalesServiceCharges** | **double?** | Payout online sales service charges | [optional] +**OnlineSalesRefundedFees** | **double?** | Payout online sales refunded fees | [optional] +**OnlineSalesFees** | **double?** | Payout online sales fees | [optional] +**PosSalesFees** | **double?** | Payout online sales fees | [optional] +**OnlineSalesRefundedAmount** | **double?** | Payout online sales refunded amount | [optional] +**PosSalesRefundedAmount** | **double?** | POS Payout online sales refunded amount | [optional] +**OnlineSalesTax** | **double?** | Payout online sales tax | [optional] +**TotalOnlineRevenue** | **double?** | Payout total online revenue | [optional] +**CashSalesFees** | **double?** | Payout cash sales fees | [optional] +**CashSalesRefundedFees** | **double?** | Payout cash sales refunded fees | [optional] +**CustomerCashFees** | **double?** | Payout cash fees charged to customer | [optional] +**SalesFeesVat** | **double?** | Payout sales fees vat | [optional] +**TotalFees** | **double?** | Payout total fees | [optional] +**TotalOnlineRevenueAdjustments** | **double?** | Payout total online revenue adjustments | [optional] +**ChargebackAmount** | **double?** | Payout chargeback amount | [optional] +**PosSalesChargebackAmount** | **double?** | POS Payout chargeback amount | [optional] +**ChargebackRefundedFees** | **double?** | Payout chargeback refunded fees | [optional] +**TotalChargebackCost** | **double?** | Payout chargebacks total cost | [optional] +**TotalOtherCharges** | **double?** | Payout other charges total | [optional] +**OpeningBalance** | **double?** | Payout opening balance | [optional] +**ClosingBalance** | **double?** | Payout closing balance | [optional] +**PayGreenSalesAmount** | **double?** | Amount of sales through PayGreen (restaurant vouchers) | [optional] +**DeliveryIntegrationFee** | **double?** | Third party integration delivery fee | [optional] +**DeliveryIntegrationTipFee** | **double?** | Third party integration delivery tip fee | [optional] +**TotalThirdPartyFees** | **double?** | Total third party integration fees | [optional] +**PosSalesAmount** | **double?** | POS sales amount | [optional] +**PosSalesTax** | **double?** | POS sales tax | [optional] +**TipsOnPosSales** | **double?** | Tips on POS sales | [optional] +**BankAccountHasChanged** | **bool?** | Indicates whether the bank account has changed since the previous payout | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutChargeback.md b/docs/PayoutChargeback.md new file mode 100644 index 00000000..03709422 --- /dev/null +++ b/docs/PayoutChargeback.md @@ -0,0 +1,17 @@ +# Flipdish.Model.PayoutChargeback +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | The id of the order the chargeback was for | [optional] +**OrderCurrency** | **string** | Order currency | [optional] +**PayoutId** | **int?** | The id of the payout the order is related to | [optional] +**OrderDate** | **DateTime?** | The date the order was placed | [optional] +**OrderType** | **string** | Order type (online or cash) | [optional] +**ChargebackDate** | **DateTime?** | The date the chargeback was done | [optional] +**StoreId** | **int?** | Store id | [optional] +**ChargebackAmount** | **double?** | Chargeback amount | [optional] +**RefundedFees** | **double?** | Amount of refunded fees | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutDetail.md b/docs/PayoutDetail.md new file mode 100644 index 00000000..7531a882 --- /dev/null +++ b/docs/PayoutDetail.md @@ -0,0 +1,22 @@ +# Flipdish.Model.PayoutDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **int?** | The id of the payout. | [optional] +**BankAccountId** | **int?** | Bank account identifier | [optional] +**AccountName** | **string** | Account name of the payout destination | [optional] +**PayoutStatus** | **string** | Status of the payout | [optional] +**CreatedDate** | **DateTime?** | Date payout was created | [optional] +**PeriodStartTime** | **DateTime?** | This payout includes operations after at this date (inclusive) | [optional] +**PeriodEndTime** | **DateTime?** | This payout includes operations before at this date (exclusive) | [optional] +**DestinationBank** | **string** | Destination bank name | [optional] +**DestinationAccount** | **string** | Last 4 digits of the destination bank IBAN | [optional] +**PayoutType** | **string** | Type of payout source | [optional] +**Currency** | **string** | Payout currency | [optional] +**PayoutStores** | [**List<PayoutStore>**](PayoutStore.md) | Payout information broken down by Store | [optional] +**Amount** | **double?** | Payout amount | [optional] +**CutoffDate** | **DateTime?** | Payouts before this date do not have a details breakdown | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutOrder.md b/docs/PayoutOrder.md new file mode 100644 index 00000000..2c4fc18f --- /dev/null +++ b/docs/PayoutOrder.md @@ -0,0 +1,30 @@ +# Flipdish.Model.PayoutOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | The id of the order | [optional] +**PayoutId** | **int?** | The id of the payout the order is related to | [optional] +**OrderDate** | **DateTime?** | The date the order was placed | [optional] +**OrderType** | **string** | Order type (online or cash) | [optional] +**OrderCurrency** | **string** | Order currency | [optional] +**Sales** | **double?** | Order sales amount | [optional] +**SalesTax** | **double?** | Order sales tax amount | [optional] +**DeliveryCharges** | **double?** | Order delivery charges | [optional] +**Tips** | **double?** | Order tips amount | [optional] +**Voucher** | **double?** | Order voucher amount | [optional] +**FlatFeeExcludingVat** | **double?** | Order flat fee amount excluding VAT | [optional] +**FlatFeeExcludingVAT** | **double?** | Order flat fee amount excluding VAT | [optional] +**FlatFeeIncludingVat** | **double?** | Order flat fee amount including VAT | [optional] +**PercentageFeeExcludingVat** | **double?** | Order percentage fee excluding VAT | [optional] +**PercentageFeeExcludingVAT** | **double?** | Order percentage fee excluding VAT | [optional] +**Vat** | **double?** | Order VAT amount | [optional] +**TotalFees** | **double?** | Total order fees amount | [optional] +**CashFeeChargedToCustomer** | **double?** | Cash fee charged to customer | [optional] +**NetSales** | **double?** | Order net sales amount | [optional] +**StoreId** | **int?** | Store id | [optional] +**ServiceChargeAmount** | **double?** | Order ServiceChargeAmount amount | [optional] +**ServiceChargePercentage** | **double?** | Order ServiceChargePercentage amount | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutOtherCharge.md b/docs/PayoutOtherCharge.md new file mode 100644 index 00000000..e37896a4 --- /dev/null +++ b/docs/PayoutOtherCharge.md @@ -0,0 +1,16 @@ +# Flipdish.Model.PayoutOtherCharge +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChargeId** | **int?** | The id of the charge | [optional] +**Amount** | **double?** | Charge amount | [optional] +**Currency** | **string** | Currency of the charge | [optional] +**PayoutId** | **int?** | The id of the payout the order is related to | [optional] +**ChargeDate** | **DateTime?** | The date the order was placed | [optional] +**ChargeType** | **string** | Charge type | [optional] +**ChargeDescription** | **string** | Charge description | [optional] +**StoreId** | **int?** | Store id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutRefund.md b/docs/PayoutRefund.md new file mode 100644 index 00000000..5c0357e7 --- /dev/null +++ b/docs/PayoutRefund.md @@ -0,0 +1,19 @@ +# Flipdish.Model.PayoutRefund +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | The id of the order the refund was for | [optional] +**OrderCurrency** | **string** | Order currency | [optional] +**PayoutId** | **int?** | The id of the payout the order is related to | [optional] +**OrderDate** | **DateTime?** | The date the order was placed | [optional] +**OrderType** | **string** | Order type (online or cash) | [optional] +**RefundDate** | **DateTime?** | The date the refund was done | [optional] +**StoreId** | **int?** | Store id | [optional] +**TotalRefund** | **double?** | Total refund amount | [optional] +**RefundedFees** | **double?** | Refunded fees amount | [optional] +**RefundedAmount** | **double?** | Refunded amount | [optional] +**CashFeeRefundedToCustomer** | **double?** | Cash fee refunded to customer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3Details.md b/docs/PayoutReport3Details.md new file mode 100644 index 00000000..055d430f --- /dev/null +++ b/docs/PayoutReport3Details.md @@ -0,0 +1,14 @@ +# Flipdish.Model.PayoutReport3Details +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **double?** | | [optional] +**Currency** | **string** | | [optional] +**Summary** | [**PayoutReport3DetailsSummary**](PayoutReport3DetailsSummary.md) | | [optional] +**Revenue** | [**PayoutReport3DetailsRevenue**](PayoutReport3DetailsRevenue.md) | | [optional] +**FlipdishFees** | [**PayoutReport3DetailsFlipdishFees**](PayoutReport3DetailsFlipdishFees.md) | | [optional] +**Adjustments** | [**PayoutReport3DetailsAdjustments**](PayoutReport3DetailsAdjustments.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3DetailsAdjustments.md b/docs/PayoutReport3DetailsAdjustments.md new file mode 100644 index 00000000..4eb7c3ac --- /dev/null +++ b/docs/PayoutReport3DetailsAdjustments.md @@ -0,0 +1,29 @@ +# Flipdish.Model.PayoutReport3DetailsAdjustments +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OpeningBalanceDate** | **DateTime?** | | [optional] +**ClosingBalanceDate** | **DateTime?** | | [optional] +**OpeningBalance** | **double?** | | [optional] +**RefundsOnCardOrders** | **double?** | | [optional] +**RefundsOnCashOrders** | **double?** | | [optional] +**CashCustomerFees** | **double?** | | [optional] +**Chargebacks** | **double?** | | [optional] +**OtherTransactions** | **double?** | | [optional] +**ClosingBalance** | **double?** | | [optional] +**BalanceRepaid** | **double?** | | [optional] +**RefundsOnCardOrdersBracketsAmount** | **double?** | | [optional] +**RefundsOnCardOrdersBracketsOutOfAmount** | **double?** | | [optional] +**RefundsOnCashOrdersBracketsAmount** | **double?** | | [optional] +**RefundsOnCashOrdersBracketsOutOfAmount** | **double?** | | [optional] +**CashCustomerFeesBracketsAmount** | **double?** | | [optional] +**CashCustomerFeesBracketsOutOfAmount** | **double?** | | [optional] +**BalanceChange** | **double?** | | [optional] +**PreviousPayoutId** | **int?** | | [optional] +**NextPayoutId** | **int?** | | [optional] +**RefundedFeesOnChargebacks** | **double?** | | [optional] +**TotalChargebackCost** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3DetailsFlipdishFees.md b/docs/PayoutReport3DetailsFlipdishFees.md new file mode 100644 index 00000000..45b82afc --- /dev/null +++ b/docs/PayoutReport3DetailsFlipdishFees.md @@ -0,0 +1,39 @@ +# Flipdish.Model.PayoutReport3DetailsFlipdishFees +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebAndAppCash** | **double?** | | [optional] +**WebAndAppCashRevenueIncludingTips** | **double?** | | [optional] +**WebAndAppCard** | **double?** | | [optional] +**WebAndAppCardRevenueIncludingTips** | **double?** | | [optional] +**KioskCash** | **double?** | | [optional] +**KioskCashRevenue** | **double?** | | [optional] +**KioskCard** | **double?** | | [optional] +**KioskCardRevenue** | **double?** | | [optional] +**QropCash** | **double?** | | [optional] +**QropCashRevenue** | **double?** | | [optional] +**QropCard** | **double?** | | [optional] +**QropCardRevenue** | **double?** | | [optional] +**PosCard** | **double?** | | [optional] +**PosCardRevenue** | **double?** | | [optional] +**PosCardOnFlipdishOrders** | **double?** | | [optional] +**OtherIntegrationFees** | **double?** | | [optional] +**OtherIntegrationFeesExcludingVat** | **double?** | | [optional] +**OtherIntegrationFeesVatAmount** | **double?** | | [optional] +**OtherIntegrationTips** | **double?** | | [optional] +**RefundedFeesOnRefundedSales** | **double?** | | [optional] +**Vat** | **double?** | | [optional] +**RefundedFeesOnPosSales** | **double?** | | [optional] +**Total** | **double?** | | [optional] +**ThirdPartyIntegrationFeesAndTips** | **double?** | | [optional] +**WebAndAppCardOnXOrders** | **int?** | | [optional] +**WebAndAppCashOnXOrders** | **int?** | | [optional] +**KioskCardOnXOrders** | **int?** | | [optional] +**KioskCashOnXOrders** | **int?** | | [optional] +**QropCardOnXOrders** | **int?** | | [optional] +**QropCashOnXOrders** | **int?** | | [optional] +**PosCardOnXOrders** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3DetailsRevenue.md b/docs/PayoutReport3DetailsRevenue.md new file mode 100644 index 00000000..d545e670 --- /dev/null +++ b/docs/PayoutReport3DetailsRevenue.md @@ -0,0 +1,16 @@ +# Flipdish.Model.PayoutReport3DetailsRevenue +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GrossSales** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**SalesTax** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**DeliveryCharges** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**OtherCharges** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**Tips** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**TotalRevenue** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**RevenueForFeeCalculations** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] +**DrsCharges** | [**PayoutReport3DetailsSalesLine**](PayoutReport3DetailsSalesLine.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3DetailsSalesLine.md b/docs/PayoutReport3DetailsSalesLine.md new file mode 100644 index 00000000..c691b1ad --- /dev/null +++ b/docs/PayoutReport3DetailsSalesLine.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PayoutReport3DetailsSalesLine +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Online** | **double?** | | [optional] +**Pos** | **double?** | | [optional] +**Other** | **double?** | | [optional] +**Total** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3DetailsSummary.md b/docs/PayoutReport3DetailsSummary.md new file mode 100644 index 00000000..23dfd06c --- /dev/null +++ b/docs/PayoutReport3DetailsSummary.md @@ -0,0 +1,16 @@ +# Flipdish.Model.PayoutReport3DetailsSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revenue** | **double?** | | [optional] +**RevenueOfWhichCash** | **double?** | | [optional] +**UnpaidRevenue** | **double?** | | [optional] +**RevenueForFeeCalculations** | **double?** | | [optional] +**FlipdishFees** | **double?** | | [optional] +**Adjustments** | **double?** | | [optional] +**ThirdPartyIntegrationFeesAndTips** | **double?** | | [optional] +**Total** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3Overview.md b/docs/PayoutReport3Overview.md new file mode 100644 index 00000000..446521d1 --- /dev/null +++ b/docs/PayoutReport3Overview.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PayoutReport3Overview +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutReport3OverviewHeader** | [**PayoutReport3OverviewHeader**](PayoutReport3OverviewHeader.md) | | [optional] +**PayoutStores** | [**List<PayoutReport3Store>**](PayoutReport3Store.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3OverviewHeader.md b/docs/PayoutReport3OverviewHeader.md new file mode 100644 index 00000000..c70f2f4f --- /dev/null +++ b/docs/PayoutReport3OverviewHeader.md @@ -0,0 +1,21 @@ +# Flipdish.Model.PayoutReport3OverviewHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **int?** | | [optional] +**BankAccountId** | **int?** | | [optional] +**IsManualPayout** | **bool?** | | [optional] +**AccountName** | **string** | | [optional] +**PayoutStatus** | **string** | | [optional] +**CreatedDate** | **DateTime?** | | [optional] +**PeriodStartTime** | **DateTime?** | | [optional] +**PeriodEndTime** | **DateTime?** | | [optional] +**DestinationBank** | **string** | | [optional] +**DestinationAccount** | **string** | | [optional] +**Amount** | **double?** | | [optional] +**Currency** | **string** | | [optional] +**BankAccountHasChanged** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3PropertyDetails.md b/docs/PayoutReport3PropertyDetails.md new file mode 100644 index 00000000..f6bb7a47 --- /dev/null +++ b/docs/PayoutReport3PropertyDetails.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PayoutReport3PropertyDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableProperties** | [**List<PayoutReport3PropertyFilterOption>**](PayoutReport3PropertyFilterOption.md) | | [optional] +**SelectedPropertyIds** | **List<string>** | | [optional] +**MatchedStoreIds** | **List<int?>** | | [optional] +**Details** | [**PayoutReport3Details**](PayoutReport3Details.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3PropertyFilterOption.md b/docs/PayoutReport3PropertyFilterOption.md new file mode 100644 index 00000000..d9c0f643 --- /dev/null +++ b/docs/PayoutReport3PropertyFilterOption.md @@ -0,0 +1,11 @@ +# Flipdish.Model.PayoutReport3PropertyFilterOption +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyId** | **string** | | [optional] +**PropertyName** | **string** | | [optional] +**StoreIds** | **List<int?>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3RefundedOrder.md b/docs/PayoutReport3RefundedOrder.md new file mode 100644 index 00000000..346244c4 --- /dev/null +++ b/docs/PayoutReport3RefundedOrder.md @@ -0,0 +1,17 @@ +# Flipdish.Model.PayoutReport3RefundedOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | | [optional] +**PlacedAtTime** | **DateTime?** | | [optional] +**ModifiedAtTime** | **DateTime?** | | [optional] +**StoreName** | **string** | | [optional] +**Type** | **string** | | [optional] +**RefundedAmount** | **double?** | | [optional] +**RefundedFees** | **double?** | | [optional] +**RefundType** | **string** | | [optional] +**CashFeeRefundedToCustomer** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3Store.md b/docs/PayoutReport3Store.md new file mode 100644 index 00000000..2611edb0 --- /dev/null +++ b/docs/PayoutReport3Store.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PayoutReport3Store +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | | [optional] +**StoreName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3StorePayout.md b/docs/PayoutReport3StorePayout.md new file mode 100644 index 00000000..9848a7f4 --- /dev/null +++ b/docs/PayoutReport3StorePayout.md @@ -0,0 +1,16 @@ +# Flipdish.Model.PayoutReport3StorePayout +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | | [optional] +**StoreName** | **string** | | [optional] +**SummaryTotalPayout** | **double?** | | [optional] +**SummaryRevenue** | **double?** | | [optional] +**SummaryCashRevenue** | **double?** | | [optional] +**SummaryTotalFlipdishFees** | **double?** | | [optional] +**SummaryAdjustments** | **double?** | | [optional] +**Currency** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReport3StorePayouts.md b/docs/PayoutReport3StorePayouts.md new file mode 100644 index 00000000..4c72bbd1 --- /dev/null +++ b/docs/PayoutReport3StorePayouts.md @@ -0,0 +1,9 @@ +# Flipdish.Model.PayoutReport3StorePayouts +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | [**List<PayoutReport3StorePayout>**](PayoutReport3StorePayout.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutReportsApi.md b/docs/PayoutReportsApi.md new file mode 100644 index 00000000..8ff8ea3f --- /dev/null +++ b/docs/PayoutReportsApi.md @@ -0,0 +1,352 @@ +# Flipdish.Api.PayoutReportsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPayoutReport3Details**](PayoutReportsApi.md#getpayoutreport3details) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details | +[**GetPayoutReport3Overview**](PayoutReportsApi.md#getpayoutreport3overview) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview | +[**GetPayoutReport3PropertyDetails**](PayoutReportsApi.md#getpayoutreport3propertydetails) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/properties | +[**GetPayoutReport3RefundedOrders**](PayoutReportsApi.md#getpayoutreport3refundedorders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders | +[**GetPayoutReport3Stores**](PayoutReportsApi.md#getpayoutreport3stores) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/stores | + + + +# **GetPayoutReport3Details** +> RestApiResultPayoutReport3Details GetPayoutReport3Details (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutReport3DetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutReportsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var storeIds = new List(); // List | (optional) + + try + { + RestApiResultPayoutReport3Details result = apiInstance.GetPayoutReport3Details(appId, bankAccountId, payoutId, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutReportsApi.GetPayoutReport3Details: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiResultPayoutReport3Details**](RestApiResultPayoutReport3Details.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutReport3Overview** +> RestApiResultPayoutReport3Overview GetPayoutReport3Overview (string appId, int? bankAccountId, int? payoutId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutReport3OverviewExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutReportsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + + try + { + RestApiResultPayoutReport3Overview result = apiInstance.GetPayoutReport3Overview(appId, bankAccountId, payoutId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutReportsApi.GetPayoutReport3Overview: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + +### Return type + +[**RestApiResultPayoutReport3Overview**](RestApiResultPayoutReport3Overview.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutReport3PropertyDetails** +> RestApiResultPayoutReport3PropertyDetails GetPayoutReport3PropertyDetails (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutReport3PropertyDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutReportsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var propertyIds = new List(); // List | (optional) + var storeIds = new List(); // List | (optional) + + try + { + RestApiResultPayoutReport3PropertyDetails result = apiInstance.GetPayoutReport3PropertyDetails(appId, bankAccountId, payoutId, propertyIds, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutReportsApi.GetPayoutReport3PropertyDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **propertyIds** | [**List<string>**](string.md)| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiResultPayoutReport3PropertyDetails**](RestApiResultPayoutReport3PropertyDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutReport3RefundedOrders** +> RestApiPaginationResultPayoutReport3RefundedOrder GetPayoutReport3RefundedOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutReport3RefundedOrdersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutReportsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var storeIds = new List(); // List | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultPayoutReport3RefundedOrder result = apiInstance.GetPayoutReport3RefundedOrders(appId, bankAccountId, payoutId, storeIds, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutReportsApi.GetPayoutReport3RefundedOrders: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **storeIds** | [**List<int?>**](int?.md)| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutReport3RefundedOrder**](RestApiPaginationResultPayoutReport3RefundedOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutReport3Stores** +> RestApiResultPayoutReport3StorePayouts GetPayoutReport3Stores (string appId, int? bankAccountId, int? payoutId, List stores = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutReport3StoresExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutReportsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var stores = new List(); // List | (optional) + + try + { + RestApiResultPayoutReport3StorePayouts result = apiInstance.GetPayoutReport3Stores(appId, bankAccountId, payoutId, stores); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutReportsApi.GetPayoutReport3Stores: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **stores** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiResultPayoutReport3StorePayouts**](RestApiResultPayoutReport3StorePayouts.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PayoutRequestIds.md b/docs/PayoutRequestIds.md new file mode 100644 index 00000000..b4fa6218 --- /dev/null +++ b/docs/PayoutRequestIds.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PayoutRequestIds +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccountIds** | **List<int?>** | List of bank account ids to search for | [optional] +**States** | **List<string>** | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutStore.md b/docs/PayoutStore.md new file mode 100644 index 00000000..392900a1 --- /dev/null +++ b/docs/PayoutStore.md @@ -0,0 +1,20 @@ +# Flipdish.Model.PayoutStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | The id of the Store. | [optional] +**StoreName** | **string** | Name of the store | [optional] +**Amount** | **double?** | Amount of the payout for this Store | [optional] +**OnlineRevenue** | [**RevenueDetail**](RevenueDetail.md) | Revenue details (DEPRECATED: Use Revenue) | [optional] +**Revenue** | [**RevenueDetail**](RevenueDetail.md) | Revenue details | [optional] +**RevenueAdjustments** | [**RevenueAdjustmentsDetails**](RevenueAdjustmentsDetails.md) | Revenue Adjustments breakdown | [optional] +**FlipdishFees** | [**FlipdishFeesDetails**](FlipdishFeesDetails.md) | Fees breakdown | [optional] +**Chargebacks** | [**ChargebackDetails**](ChargebackDetails.md) | Chargebacks breakdown | [optional] +**OtherCharges** | [**OtherChargesDetails**](OtherChargesDetails.md) | Breakdown of other charges | [optional] +**Balance** | [**BalanceDetails**](BalanceDetails.md) | Period opening and closing balance | [optional] +**PosRevenue** | [**PosRevenueDetails**](PosRevenueDetails.md) | Breakdown of POS charges | [optional] +**ThirdPartyFees** | [**ThirdPartyFeesDetails**](ThirdPartyFeesDetails.md) | Third party integration fees | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutSummary.md b/docs/PayoutSummary.md new file mode 100644 index 00000000..ef2e8c56 --- /dev/null +++ b/docs/PayoutSummary.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PayoutSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutStatus** | **string** | Status of the payout | [optional] +**TotalAmount** | **double?** | Total payouts amount | [optional] +**Currency** | **string** | Payout currency | [optional] +**TotalCount** | **int?** | Total payouts count | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayoutsApi.md b/docs/PayoutsApi.md new file mode 100644 index 00000000..adee5bc9 --- /dev/null +++ b/docs/PayoutsApi.md @@ -0,0 +1,506 @@ +# Flipdish.Api.PayoutsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPayout**](PayoutsApi.md#getpayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | +[**GetPayoutChargebacks**](PayoutsApi.md#getpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | +[**GetPayoutOrders**](PayoutsApi.md#getpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | +[**GetPayoutOtherCharges**](PayoutsApi.md#getpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | +[**GetPayoutRefunds**](PayoutsApi.md#getpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | +[**GetPayoutSummaries**](PayoutsApi.md#getpayoutsummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | +[**GetPayouts**](PayoutsApi.md#getpayouts) | **GET** /api/v1.0/{appId}/payouts | + + + +# **GetPayout** +> PayoutDetail GetPayout (string appId, int? bankAccountId, int? payoutId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + + try + { + PayoutDetail result = apiInstance.GetPayout(appId, bankAccountId, payoutId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayout: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + +### Return type + +[**PayoutDetail**](PayoutDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutChargebacks** +> RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutChargebacksExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeIds = new List(); // List | (optional) + + try + { + RestApiPaginationResultPayoutChargeback result = apiInstance.GetPayoutChargebacks(appId, bankAccountId, payoutId, page, limit, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayoutChargebacks: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutChargeback**](RestApiPaginationResultPayoutChargeback.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutOrders** +> RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutOrdersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeIds = new List(); // List | (optional) + + try + { + RestApiPaginationResultPayoutOrder result = apiInstance.GetPayoutOrders(appId, bankAccountId, payoutId, page, limit, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayoutOrders: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutOrder**](RestApiPaginationResultPayoutOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutOtherCharges** +> RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutOtherChargesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeIds = new List(); // List | (optional) + + try + { + RestApiPaginationResultPayoutOtherCharge result = apiInstance.GetPayoutOtherCharges(appId, bankAccountId, payoutId, page, limit, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayoutOtherCharges: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutOtherCharge**](RestApiPaginationResultPayoutOtherCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutRefunds** +> RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutRefundsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var payoutId = 56; // int? | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeIds = new List(); // List | (optional) + + try + { + RestApiPaginationResultPayoutRefund result = apiInstance.GetPayoutRefunds(appId, bankAccountId, payoutId, page, limit, storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayoutRefunds: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **payoutId** | **int?**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutRefund**](RestApiPaginationResultPayoutRefund.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayoutSummaries** +> RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutSummariesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var startDate = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var endDate = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var payoutRequestIdsBankAccountIds = new List(); // List | List of bank account ids to search for (optional) + var payoutRequestIdsStates = payoutRequestIdsStates_example; // List | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + + try + { + RestApiArrayResultPayoutSummary result = apiInstance.GetPayoutSummaries(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayoutSummaries: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **startDate** | **DateTime?**| | [optional] + **endDate** | **DateTime?**| | [optional] + **payoutRequestIdsBankAccountIds** | [**List<int?>**](int?.md)| List of bank account ids to search for | [optional] + **payoutRequestIdsStates** | **List<string>**| List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + +### Return type + +[**RestApiArrayResultPayoutSummary**](RestApiArrayResultPayoutSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayouts** +> RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayoutsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PayoutsApi(); + var appId = appId_example; // string | + var startDate = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var endDate = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var payoutRequestIdsBankAccountIds = new List(); // List | List of bank account ids to search for (optional) + var payoutRequestIdsStates = payoutRequestIdsStates_example; // List | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + + try + { + RestApiPaginationResultPayout result = apiInstance.GetPayouts(appId, startDate, endDate, page, limit, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PayoutsApi.GetPayouts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **startDate** | **DateTime?**| | [optional] + **endDate** | **DateTime?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **payoutRequestIdsBankAccountIds** | [**List<int?>**](int?.md)| List of bank account ids to search for | [optional] + **payoutRequestIdsStates** | **List<string>**| List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + +### Return type + +[**RestApiPaginationResultPayout**](RestApiPaginationResultPayout.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PendingInvitation.md b/docs/PendingInvitation.md new file mode 100644 index 00000000..00d18cef --- /dev/null +++ b/docs/PendingInvitation.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PendingInvitation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppName** | **string** | The name of the brand that you have been invited to join. | [optional] +**Email** | **string** | The email address that the invitation was sent to. | [optional] +**Otc** | **string** | The one-time code that can be used to accept the invitation. | [optional] +**CreatedAt** | **DateTime?** | The time that the invitation was created. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PendingMenuChanges.md b/docs/PendingMenuChanges.md new file mode 100644 index 00000000..3086c946 --- /dev/null +++ b/docs/PendingMenuChanges.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PendingMenuChanges +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Unique catalog item id | [optional] +**MenuId** | **int?** | Unique menu id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PendingMenuChangesSummaries.md b/docs/PendingMenuChangesSummaries.md new file mode 100644 index 00000000..2e96d1e2 --- /dev/null +++ b/docs/PendingMenuChangesSummaries.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PendingMenuChangesSummaries +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **int?** | Menu id | [optional] +**TotalPendingChanges** | **int?** | Sum of pending changes per menu id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PercentDiscountDetails.md b/docs/PercentDiscountDetails.md new file mode 100644 index 00000000..464bc63e --- /dev/null +++ b/docs/PercentDiscountDetails.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PercentDiscountDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PercentageDiscount** | **int?** | Percentage discount | [optional] +**MaxDiscountAmount** | **double?** | The maximum amount that the percentage discount value can be. If not set then there is no maximum. If set to e.g. 20 euro, and the percentage discount is 25%, and the order total is 100 euro, then the discount will be 20 euro (not 25 euro). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PhoneCall.md b/docs/PhoneCall.md new file mode 100644 index 00000000..7368370e --- /dev/null +++ b/docs/PhoneCall.md @@ -0,0 +1,19 @@ +# Flipdish.Model.PhoneCall +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneCallId** | **int?** | Phone call id | [optional] +**CallSid** | **string** | Twilio Call SID | [optional] +**TimeOfCall** | **DateTime?** | Time of the call | [optional] +**TimeOfCallLocal** | **DateTime?** | Time of the call, local to the store to which the call was made | [optional] +**StoreId** | **int?** | ID of the store that the call was TO | [optional] +**StoreName** | **string** | Name of the store that the call was TO | [optional] +**CallerName** | **string** | Name of the caller | [optional] +**CallerUserId** | **int?** | UserID of the caller | [optional] +**CallerNumber** | **string** | Phone number of the caller | [optional] +**CallLengthInSeconds** | **int?** | The amount of time the call took | [optional] +**CallStatus** | **string** | The status of the call | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PhoneCallEndedEvent.md b/docs/PhoneCallEndedEvent.md new file mode 100644 index 00000000..2f9952ac --- /dev/null +++ b/docs/PhoneCallEndedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.PhoneCallEndedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**PhoneCall** | [**PhoneCall**](PhoneCall.md) | The phone call | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PhoneCallStartedEvent.md b/docs/PhoneCallStartedEvent.md new file mode 100644 index 00000000..77fbd2de --- /dev/null +++ b/docs/PhoneCallStartedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.PhoneCallStartedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**PhoneCall** | [**PhoneCall**](PhoneCall.md) | The phone call | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PixelPointProductCatalogue.md b/docs/PixelPointProductCatalogue.md new file mode 100644 index 00000000..bf21c382 --- /dev/null +++ b/docs/PixelPointProductCatalogue.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PixelPointProductCatalogue +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Products** | **Dictionary<string, string>** | PixelPoint product number mapped to its display string. Always includes the special NOT_INCLUDED sentinel entry. | +**Page** | **int?** | Current page index (1-based) | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total number of products matching the filter (excluding the sentinel entry) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PlayStoreConfigModel.md b/docs/PlayStoreConfigModel.md new file mode 100644 index 00000000..db157b46 --- /dev/null +++ b/docs/PlayStoreConfigModel.md @@ -0,0 +1,21 @@ +# Flipdish.Model.PlayStoreConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **int?** | White label ID | [optional] +**BundleId** | **string** | Bundle ID | [optional] +**Description** | **string** | Description | [optional] +**ShortDescription** | **string** | Short description | [optional] +**Copyright** | **string** | Copyright | [optional] +**Keywords** | **string** | Keywords | [optional] +**MarketingUrl** | **string** | Marketing URL | [optional] +**PrivacyUrl** | **string** | Privacy URL | [optional] +**SupportUrl** | **string** | Support URL | [optional] +**PlayConsoleAccount** | **int?** | Play Console account: 0 = IE, 1 = UK, 2 = IE2, 3 = IE3 | [optional] +**ReleaseNotes** | **string** | Release notes | [optional] +**StoreIcon** | **string** | Store icon URL | [optional] +**ReadyToPublishAndroid** | **bool?** | Ready to publish Android | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PosRevenueDetails.md b/docs/PosRevenueDetails.md new file mode 100644 index 00000000..8a8dae02 --- /dev/null +++ b/docs/PosRevenueDetails.md @@ -0,0 +1,12 @@ +# Flipdish.Model.PosRevenueDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PosSalesAmount** | **double?** | POS sale amount for the store | [optional] +**PosSalesTax** | **double?** | POS sale Tax for the store | [optional] +**PosSalesTips** | **double?** | POS sale tips for the store | [optional] +**TotalPosRevenue** | **double?** | POS Total Revenue for the store | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PreOrderConfig.md b/docs/PreOrderConfig.md new file mode 100644 index 00000000..e43811dc --- /dev/null +++ b/docs/PreOrderConfig.md @@ -0,0 +1,18 @@ +# Flipdish.Model.PreOrderConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeadTimeMinutes** | **int?** | Lead Time in Minutes | [optional] +**IntervalMinutes** | **int?** | Interval in minutes | [optional] +**MaxOrderAheadDays** | **int?** | Max Days to order ahead | [optional] +**IncludeAsap** | **bool?** | Show ASAP as option | [optional] +**IncludeMoreGranularInitialTime** | **bool?** | Granual Init' Time | [optional] +**CutOffTimePreviousDayBasic** | **string** | Cut off time previous day | [optional] +**CutOffTimeCurrentDayBasic** | **string** | Cut off time current day | [optional] +**PreOrderTimeDisplayType** | **string** | Type of time displayed. | [optional] +**AlwaysAppearOpen** | **bool?** | Specifies whether a customer can pre-order outside the store opening hours or not. | [optional] +**RequireExplicitSelectAlways** | **bool?** | Force customer to select collection time. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PreOrderTime.md b/docs/PreOrderTime.md new file mode 100644 index 00000000..a013f371 --- /dev/null +++ b/docs/PreOrderTime.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PreOrderTime +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartTime** | **DateTime?** | Start Time | [optional] +**EndTime** | **DateTime?** | End Time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PredefinedAnswer.md b/docs/PredefinedAnswer.md new file mode 100644 index 00000000..a704f4fd --- /dev/null +++ b/docs/PredefinedAnswer.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PredefinedAnswer +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Identifier | [optional] +**Text** | **string** | Text | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PreviousOrder.md b/docs/PreviousOrder.md new file mode 100644 index 00000000..60a60bb7 --- /dev/null +++ b/docs/PreviousOrder.md @@ -0,0 +1,32 @@ +# Flipdish.Model.PreviousOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryType** | **string** | | [optional] +**DeliveryLocationAddressString** | **string** | | [optional] +**PaymentAccountType** | **string** | | [optional] +**OrderId** | **int?** | | [optional] +**ReceiptCode** | **string** | | [optional] +**RestaurantName** | **string** | | [optional] +**LocalOrderId** | **string** | | [optional] +**TableServiceCategory** | **string** | | [optional] +**PickupLocationOptionValue** | **string** | | [optional] +**CustomerName** | **string** | | [optional] +**PhoneNumberInternationalFormatString** | **string** | | [optional] +**DeliveryInstructions** | **string** | | [optional] +**Currency** | **string** | | [optional] +**ProcessingFee** | **double?** | | [optional] +**ServiceChargePercentage** | **double?** | | [optional] +**ServiceChargeAmount** | **double?** | | [optional] +**TipAmount** | **double?** | | [optional] +**DeliveryAmount** | **double?** | | [optional] +**DepositReturnFeeAmount** | **double?** | | [optional] +**TotalTax** | **double?** | | [optional] +**TotalAmount** | **double?** | | [optional] +**Items** | [**List<PreviousOrderItem>**](PreviousOrderItem.md) | | [optional] +**TaxRates** | [**List<TaxRate>**](TaxRate.md) | | [optional] +**WhiteLabelId** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PreviousOrderItem.md b/docs/PreviousOrderItem.md new file mode 100644 index 00000000..09049437 --- /dev/null +++ b/docs/PreviousOrderItem.md @@ -0,0 +1,15 @@ +# Flipdish.Model.PreviousOrderItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionDisplayOrder** | **int?** | | [optional] +**MenuSectionName** | **string** | | [optional] +**Name** | **string** | | [optional] +**PriceIncludingOptionSetItems** | **double?** | | [optional] +**DepositReturnFee** | **double?** | | [optional] +**TaxAmount** | **double?** | | [optional] +**PreviousOrderItemOptions** | [**List<PreviousOrderItemOption>**](PreviousOrderItemOption.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PreviousOrderItemOption.md b/docs/PreviousOrderItemOption.md new file mode 100644 index 00000000..36c49472 --- /dev/null +++ b/docs/PreviousOrderItemOption.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PreviousOrderItemOption +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**DepositReturnFee** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Printer.md b/docs/Printer.md new file mode 100644 index 00000000..ff86f18b --- /dev/null +++ b/docs/Printer.md @@ -0,0 +1,10 @@ +# Flipdish.Model.Printer +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | **string** | Unique serial number of the printer | [optional] +**LastPollTime** | **DateTime?** | Date and time when the printer last polled Flipdish for new orders. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PrinterAssignedToStoreEvent.md b/docs/PrinterAssignedToStoreEvent.md new file mode 100644 index 00000000..7839d1e2 --- /dev/null +++ b/docs/PrinterAssignedToStoreEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.PrinterAssignedToStoreEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PrinterTurnedOffEvent.md b/docs/PrinterTurnedOffEvent.md new file mode 100644 index 00000000..0f056106 --- /dev/null +++ b/docs/PrinterTurnedOffEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.PrinterTurnedOffEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PrinterTurnedOnEvent.md b/docs/PrinterTurnedOnEvent.md new file mode 100644 index 00000000..dcf7143a --- /dev/null +++ b/docs/PrinterTurnedOnEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.PrinterTurnedOnEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PrinterUnassignedFromStoreEvent.md b/docs/PrinterUnassignedFromStoreEvent.md new file mode 100644 index 00000000..067bdf56 --- /dev/null +++ b/docs/PrinterUnassignedFromStoreEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.PrinterUnassignedFromStoreEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**Printer** | [**Printer**](Printer.md) | The printer | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ProcessPaymentIntentRequest.md b/docs/ProcessPaymentIntentRequest.md new file mode 100644 index 00000000..e8da383c --- /dev/null +++ b/docs/ProcessPaymentIntentRequest.md @@ -0,0 +1,9 @@ +# Flipdish.Model.ProcessPaymentIntentRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PaymentIntentId** | **string** | Device card paymentIntentId | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ProcessingFeeConfig.md b/docs/ProcessingFeeConfig.md new file mode 100644 index 00000000..d29c4b1f --- /dev/null +++ b/docs/ProcessingFeeConfig.md @@ -0,0 +1,12 @@ +# Flipdish.Model.ProcessingFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store Id | [optional] +**PaymentAccountType** | **string** | Payment account type | [optional] +**PercentFee** | **double?** | Percent fee to customer, including VAT | [optional] +**FixedFee** | **double?** | Fixed fee to customer, including VAT | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ProcessingFeeConfigsApi.md b/docs/ProcessingFeeConfigsApi.md new file mode 100644 index 00000000..457406a1 --- /dev/null +++ b/docs/ProcessingFeeConfigsApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.ProcessingFeeConfigsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetProcessingFeeConfigsByStoreIds**](ProcessingFeeConfigsApi.md#getprocessingfeeconfigsbystoreids) | **GET** /api/v1.0/processingfeeconfigs | + + + +# **GetProcessingFeeConfigsByStoreIds** +> RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetProcessingFeeConfigsByStoreIdsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ProcessingFeeConfigsApi(); + var storeIds = new List(); // List | + + try + { + RestApiArrayResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreIds(storeIds); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessingFeeConfigsApi.GetProcessingFeeConfigsByStoreIds: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeIds** | [**List<int?>**](int?.md)| | + +### Return type + +[**RestApiArrayResultProcessingFeeConfig**](RestApiArrayResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Product.md b/docs/Product.md new file mode 100644 index 00000000..e5d6d46d --- /dev/null +++ b/docs/Product.md @@ -0,0 +1,19 @@ +# Flipdish.Model.Product +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Unique catalog Item id | [optional] +**IsArchived** | **bool?** | Returns true if the item is archived | [optional] +**Groups** | [**List<GroupReference>**](GroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] +**ProductType** | **string** | Type of item (Product, Modifier, etc) | +**Sku** | **string** | Stock Keeping Unit (SKU) | +**Name** | **string** | Product name | +**Description** | **string** | Product description | [optional] +**Price** | **double?** | Product price | +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | Product contains alcohol | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ProductReference.md b/docs/ProductReference.md new file mode 100644 index 00000000..f770e8cc --- /dev/null +++ b/docs/ProductReference.md @@ -0,0 +1,13 @@ +# Flipdish.Model.ProductReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | [**Product**](Product.md) | Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} | [optional] +**Product** | [**Product**](Product.md) | Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} | [optional] +**CatalogItemId** | **string** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **string** | Type of the SupProduct | +**PreselectedQuantity** | **int?** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PromotionAward.md b/docs/PromotionAward.md new file mode 100644 index 00000000..80eec1fb --- /dev/null +++ b/docs/PromotionAward.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PromotionAward +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionAwardId** | **int?** | Promotion Award Id | [optional] +**MenuItemPublicId** | **Guid?** | The public id of the menu item that will be awarded | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PromotionDetails.md b/docs/PromotionDetails.md new file mode 100644 index 00000000..d3245180 --- /dev/null +++ b/docs/PromotionDetails.md @@ -0,0 +1,11 @@ +# Flipdish.Model.PromotionDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionId** | **int?** | Promotion Id | [optional] +**Name** | **string** | The name of the promotion | [optional] +**PromotionAwards** | [**List<PromotionAward>**](PromotionAward.md) | The items that this promotion will award | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PublishMenuChanges.md b/docs/PublishMenuChanges.md new file mode 100644 index 00000000..b6f7b1ed --- /dev/null +++ b/docs/PublishMenuChanges.md @@ -0,0 +1,10 @@ +# Flipdish.Model.PublishMenuChanges +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Optional Catalog item id | [optional] +**MenuIds** | **List<int?>** | Optional Collection of Menu id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationDeletedEvent.md b/docs/PushNotificationDeletedEvent.md new file mode 100644 index 00000000..130b6873 --- /dev/null +++ b/docs/PushNotificationDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.PushNotificationDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationRequest.md b/docs/PushNotificationRequest.md new file mode 100644 index 00000000..3f88b09f --- /dev/null +++ b/docs/PushNotificationRequest.md @@ -0,0 +1,11 @@ +# Flipdish.Model.PushNotificationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScheduledTime** | **DateTime?** | UTC Time at which to send the push notification | [optional] +**Title** | **string** | Title of the notification | [optional] +**Message** | **string** | Message of the notification | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationResponse.md b/docs/PushNotificationResponse.md new file mode 100644 index 00000000..5e617b97 --- /dev/null +++ b/docs/PushNotificationResponse.md @@ -0,0 +1,13 @@ +# Flipdish.Model.PushNotificationResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sent** | **bool?** | Sent | [optional] +**ScheduledPushNotificationId** | **int?** | Push notification identifier | [optional] +**ScheduledTime** | **DateTime?** | UTC Time at which to send the push notification | [optional] +**Title** | **string** | Title of the notification | [optional] +**Message** | **string** | Message of the notification | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationScheduledEvent.md b/docs/PushNotificationScheduledEvent.md new file mode 100644 index 00000000..1b931ed7 --- /dev/null +++ b/docs/PushNotificationScheduledEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.PushNotificationScheduledEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **string** | | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationSentEvent.md b/docs/PushNotificationSentEvent.md new file mode 100644 index 00000000..f1e63124 --- /dev/null +++ b/docs/PushNotificationSentEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.PushNotificationSentEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PushNotificationsApi.md b/docs/PushNotificationsApi.md new file mode 100644 index 00000000..cbc13ebd --- /dev/null +++ b/docs/PushNotificationsApi.md @@ -0,0 +1,267 @@ +# Flipdish.Api.PushNotificationsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeletePushNotification**](PushNotificationsApi.md#deletepushnotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +[**GetPushNotifications**](PushNotificationsApi.md#getpushnotifications) | **GET** /api/v1.0/{appId}/pushnotifications | +[**SchedulePushNotification**](PushNotificationsApi.md#schedulepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications | +[**UpdatePushNotification**](PushNotificationsApi.md#updatepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | + + + +# **DeletePushNotification** +> void DeletePushNotification (string appId, int? scheduledPushNotificationId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeletePushNotificationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PushNotificationsApi(); + var appId = appId_example; // string | + var scheduledPushNotificationId = 56; // int? | + + try + { + apiInstance.DeletePushNotification(appId, scheduledPushNotificationId); + } + catch (Exception e) + { + Debug.Print("Exception when calling PushNotificationsApi.DeletePushNotification: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **scheduledPushNotificationId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPushNotifications** +> RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPushNotificationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PushNotificationsApi(); + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultPushNotificationResponse result = apiInstance.GetPushNotifications(appId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PushNotificationsApi.GetPushNotifications: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultPushNotificationResponse**](RestApiPaginationResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SchedulePushNotification** +> RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SchedulePushNotificationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PushNotificationsApi(); + var appId = appId_example; // string | + var notification = new PushNotificationRequest(); // PushNotificationRequest | + + try + { + RestApiResultPushNotificationResponse result = apiInstance.SchedulePushNotification(appId, notification); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PushNotificationsApi.SchedulePushNotification: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | + +### Return type + +[**RestApiResultPushNotificationResponse**](RestApiResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdatePushNotification** +> RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdatePushNotificationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new PushNotificationsApi(); + var appId = appId_example; // string | + var scheduledPushNotificationId = 56; // int? | + var notification = new PushNotificationRequest(); // PushNotificationRequest | + + try + { + RestApiResultPushNotificationResponse result = apiInstance.UpdatePushNotification(appId, scheduledPushNotificationId, notification); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PushNotificationsApi.UpdatePushNotification: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **scheduledPushNotificationId** | **int?**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | + +### Return type + +[**RestApiResultPushNotificationResponse**](RestApiResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Range.md b/docs/Range.md new file mode 100644 index 00000000..1fd3e12c --- /dev/null +++ b/docs/Range.md @@ -0,0 +1,11 @@ +# Flipdish.Model.Range +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartTime** | **string** | Start time | [optional] +**Period** | **string** | Period | [optional] +**DayOfWeek** | **string** | Day of week | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReaderActionStateInfo.md b/docs/ReaderActionStateInfo.md new file mode 100644 index 00000000..e9f3957a --- /dev/null +++ b/docs/ReaderActionStateInfo.md @@ -0,0 +1,12 @@ +# Flipdish.Model.ReaderActionStateInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionState** | **string** | Action state | [optional] +**FailureCode** | **string** | Failure code | [optional] +**FailureMessage** | **string** | Failure Message | [optional] +**Type** | **string** | Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReceiptsApi.md b/docs/ReceiptsApi.md new file mode 100644 index 00000000..7e703c2a --- /dev/null +++ b/docs/ReceiptsApi.md @@ -0,0 +1,70 @@ +# Flipdish.Api.ReceiptsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetReceipt**](ReceiptsApi.md#getreceipt) | **GET** /api/v1.0/receipts/{orderId} | + + + +# **GetReceipt** +> GetReceiptByOrderIdQueryResponse GetReceipt (int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetReceiptExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new ReceiptsApi(); + var orderId = 56; // int? | + + try + { + GetReceiptByOrderIdQueryResponse result = apiInstance.GetReceipt(orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReceiptsApi.GetReceipt: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **int?**| | + +### Return type + +[**GetReceiptByOrderIdQueryResponse**](GetReceiptByOrderIdQueryResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RedeemInvitationResult.md b/docs/RedeemInvitationResult.md new file mode 100644 index 00000000..c8f0c61d --- /dev/null +++ b/docs/RedeemInvitationResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.RedeemInvitationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | Access level is for this App | [optional] +**InvitationStatus** | **string** | Invitation status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Refund.md b/docs/Refund.md new file mode 100644 index 00000000..c91aa41d --- /dev/null +++ b/docs/Refund.md @@ -0,0 +1,11 @@ +# Flipdish.Model.Refund +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefundReason** | **string** | Refund reason | [optional] +**RefundAmount** | **double?** | Refund amount | +**NotifyCustomer** | **bool?** | If true, the system sends notification to the customer about the refund | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Reject.md b/docs/Reject.md new file mode 100644 index 00000000..53be46a9 --- /dev/null +++ b/docs/Reject.md @@ -0,0 +1,10 @@ +# Flipdish.Model.Reject +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RejectReason** | **string** | Reject reason. | +**DoNotNotifyCustomer** | **bool?** | Notify customer. The server will not send and SMS to the customer if the value is true. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RequestPasswordResetModel.md b/docs/RequestPasswordResetModel.md new file mode 100644 index 00000000..263ac8a1 --- /dev/null +++ b/docs/RequestPasswordResetModel.md @@ -0,0 +1,10 @@ +# Flipdish.Model.RequestPasswordResetModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email address | [optional] +**RecaptchaToken** | **string** | Google Recaptcha Token | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Response.md b/docs/Response.md new file mode 100644 index 00000000..5dffa40e --- /dev/null +++ b/docs/Response.md @@ -0,0 +1,9 @@ +# Flipdish.Model.Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | [**List<StoreItemHeader>**](StoreItemHeader.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultAllMetadataResult.md b/docs/RestApiArrayResultAllMetadataResult.md new file mode 100644 index 00000000..f6736088 --- /dev/null +++ b/docs/RestApiArrayResultAllMetadataResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultAllMetadataResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<AllMetadataResult>**](AllMetadataResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultAllergen.md b/docs/RestApiArrayResultAllergen.md new file mode 100644 index 00000000..cde3d75f --- /dev/null +++ b/docs/RestApiArrayResultAllergen.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultAllergen +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<Allergen>**](Allergen.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultApmCurrencyDataPoint.md b/docs/RestApiArrayResultApmCurrencyDataPoint.md new file mode 100644 index 00000000..8aa2840a --- /dev/null +++ b/docs/RestApiArrayResultApmCurrencyDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultApmCurrencyDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ApmCurrencyDataPoint>**](ApmCurrencyDataPoint.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultApmDataPoint.md b/docs/RestApiArrayResultApmDataPoint.md new file mode 100644 index 00000000..0e643826 --- /dev/null +++ b/docs/RestApiArrayResultApmDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultApmDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ApmDataPoint>**](ApmDataPoint.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultApmHourlyDataPoint.md b/docs/RestApiArrayResultApmHourlyDataPoint.md new file mode 100644 index 00000000..87363635 --- /dev/null +++ b/docs/RestApiArrayResultApmHourlyDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultApmHourlyDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ApmHourlyDataPoint>**](ApmHourlyDataPoint.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md b/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md new file mode 100644 index 00000000..e60bf05f --- /dev/null +++ b/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultAppStoreAppConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<AppStoreAppConfigurationSummary>**](AppStoreAppConfigurationSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultAppStoreAppSummary.md b/docs/RestApiArrayResultAppStoreAppSummary.md new file mode 100644 index 00000000..1cde9951 --- /dev/null +++ b/docs/RestApiArrayResultAppStoreAppSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultAppStoreAppSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<AppStoreAppSummary>**](AppStoreAppSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultBankAccountSummary.md b/docs/RestApiArrayResultBankAccountSummary.md new file mode 100644 index 00000000..c7859eef --- /dev/null +++ b/docs/RestApiArrayResultBankAccountSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultBankAccountSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<BankAccountSummary>**](BankAccountSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultBusinessHoursPeriod.md b/docs/RestApiArrayResultBusinessHoursPeriod.md new file mode 100644 index 00000000..05d5a5ca --- /dev/null +++ b/docs/RestApiArrayResultBusinessHoursPeriod.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultBusinessHoursPeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<BusinessHoursPeriod>**](BusinessHoursPeriod.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultChannel.md b/docs/RestApiArrayResultChannel.md new file mode 100644 index 00000000..458974c1 --- /dev/null +++ b/docs/RestApiArrayResultChannel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultChannel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<Channel>**](Channel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultClientDeviceSummary.md b/docs/RestApiArrayResultClientDeviceSummary.md new file mode 100644 index 00000000..37ef9666 --- /dev/null +++ b/docs/RestApiArrayResultClientDeviceSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultClientDeviceSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ClientDeviceSummary>**](ClientDeviceSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..b5f9f44d --- /dev/null +++ b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultCountryWithAccountFieldsDefinitions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<CountryWithAccountFieldsDefinitions>**](CountryWithAccountFieldsDefinitions.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultDeliveryZone.md b/docs/RestApiArrayResultDeliveryZone.md new file mode 100644 index 00000000..e844db9f --- /dev/null +++ b/docs/RestApiArrayResultDeliveryZone.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultDeliveryZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<DeliveryZone>**](DeliveryZone.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultEmvTerminalWithAssignments.md b/docs/RestApiArrayResultEmvTerminalWithAssignments.md new file mode 100644 index 00000000..c14bdca9 --- /dev/null +++ b/docs/RestApiArrayResultEmvTerminalWithAssignments.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultEmvTerminalWithAssignments +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<EmvTerminalWithAssignments>**](EmvTerminalWithAssignments.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultFlipdishAccountName.md b/docs/RestApiArrayResultFlipdishAccountName.md new file mode 100644 index 00000000..ce607ad6 --- /dev/null +++ b/docs/RestApiArrayResultFlipdishAccountName.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultFlipdishAccountName +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<FlipdishAccountName>**](FlipdishAccountName.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md b/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md new file mode 100644 index 00000000..0f004e1b --- /dev/null +++ b/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultFulfillmentStatesConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<FulfillmentStatesConfigurationSummary>**](FulfillmentStatesConfigurationSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultHomeAction.md b/docs/RestApiArrayResultHomeAction.md new file mode 100644 index 00000000..81d04081 --- /dev/null +++ b/docs/RestApiArrayResultHomeAction.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultHomeAction +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<HomeAction>**](HomeAction.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultKioskCashPaymentSettings.md b/docs/RestApiArrayResultKioskCashPaymentSettings.md new file mode 100644 index 00000000..acea391b --- /dev/null +++ b/docs/RestApiArrayResultKioskCashPaymentSettings.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultKioskCashPaymentSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<KioskCashPaymentSettings>**](KioskCashPaymentSettings.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultLocalisedTimeZone.md b/docs/RestApiArrayResultLocalisedTimeZone.md new file mode 100644 index 00000000..75015d5b --- /dev/null +++ b/docs/RestApiArrayResultLocalisedTimeZone.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultLocalisedTimeZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<LocalisedTimeZone>**](LocalisedTimeZone.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultLocationAreaLocation.md b/docs/RestApiArrayResultLocationAreaLocation.md new file mode 100644 index 00000000..d8f6c270 --- /dev/null +++ b/docs/RestApiArrayResultLocationAreaLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultLocationAreaLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<LocationAreaLocation>**](LocationAreaLocation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultLocationAreaWithLocations.md b/docs/RestApiArrayResultLocationAreaWithLocations.md new file mode 100644 index 00000000..db496e47 --- /dev/null +++ b/docs/RestApiArrayResultLocationAreaWithLocations.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultLocationAreaWithLocations +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<LocationAreaWithLocations>**](LocationAreaWithLocations.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultLoyaltyCampaign.md b/docs/RestApiArrayResultLoyaltyCampaign.md new file mode 100644 index 00000000..f48c3507 --- /dev/null +++ b/docs/RestApiArrayResultLoyaltyCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultLoyaltyCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<LoyaltyCampaign>**](LoyaltyCampaign.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuCheckpoint.md b/docs/RestApiArrayResultMenuCheckpoint.md new file mode 100644 index 00000000..28f672e9 --- /dev/null +++ b/docs/RestApiArrayResultMenuCheckpoint.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuCheckpoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuCheckpoint>**](MenuCheckpoint.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuElementEditResponse.md b/docs/RestApiArrayResultMenuElementEditResponse.md new file mode 100644 index 00000000..8d78f3bd --- /dev/null +++ b/docs/RestApiArrayResultMenuElementEditResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuElementEditResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuElementEditResponse>**](MenuElementEditResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuElementListResponse.md b/docs/RestApiArrayResultMenuElementListResponse.md new file mode 100644 index 00000000..6a362b7f --- /dev/null +++ b/docs/RestApiArrayResultMenuElementListResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuElementListResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuElementListResponse>**](MenuElementListResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuItemOptionSet.md b/docs/RestApiArrayResultMenuItemOptionSet.md new file mode 100644 index 00000000..741d0b0c --- /dev/null +++ b/docs/RestApiArrayResultMenuItemOptionSet.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuItemOptionSet +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuItemOptionSet>**](MenuItemOptionSet.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuItemOptionSetItem.md b/docs/RestApiArrayResultMenuItemOptionSetItem.md new file mode 100644 index 00000000..e877e341 --- /dev/null +++ b/docs/RestApiArrayResultMenuItemOptionSetItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuItemOptionSetItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuItemOptionSetItem>**](MenuItemOptionSetItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuSection.md b/docs/RestApiArrayResultMenuSection.md new file mode 100644 index 00000000..ae6c3c2c --- /dev/null +++ b/docs/RestApiArrayResultMenuSection.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuSection +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuSection>**](MenuSection.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuSectionItem.md b/docs/RestApiArrayResultMenuSectionItem.md new file mode 100644 index 00000000..5d864794 --- /dev/null +++ b/docs/RestApiArrayResultMenuSectionItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuSectionItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuSectionItem>**](MenuSectionItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuStoreNames.md b/docs/RestApiArrayResultMenuStoreNames.md new file mode 100644 index 00000000..0771d65e --- /dev/null +++ b/docs/RestApiArrayResultMenuStoreNames.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuStoreNames +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuStoreNames>**](MenuStoreNames.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuSummary.md b/docs/RestApiArrayResultMenuSummary.md new file mode 100644 index 00000000..13c65df1 --- /dev/null +++ b/docs/RestApiArrayResultMenuSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuSummary>**](MenuSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuTaxDetails.md b/docs/RestApiArrayResultMenuTaxDetails.md new file mode 100644 index 00000000..2f8e9116 --- /dev/null +++ b/docs/RestApiArrayResultMenuTaxDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuTaxDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuTaxDetails>**](MenuTaxDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMenuZone.md b/docs/RestApiArrayResultMenuZone.md new file mode 100644 index 00000000..66569a82 --- /dev/null +++ b/docs/RestApiArrayResultMenuZone.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMenuZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MenuZone>**](MenuZone.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMetadata.md b/docs/RestApiArrayResultMetadata.md new file mode 100644 index 00000000..cdf77eb9 --- /dev/null +++ b/docs/RestApiArrayResultMetadata.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMetadata +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<Metadata>**](Metadata.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultMobileAppsStatistics.md b/docs/RestApiArrayResultMobileAppsStatistics.md new file mode 100644 index 00000000..21ec076f --- /dev/null +++ b/docs/RestApiArrayResultMobileAppsStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultMobileAppsStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<MobileAppsStatistics>**](MobileAppsStatistics.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultOAuthApp.md b/docs/RestApiArrayResultOAuthApp.md new file mode 100644 index 00000000..9e2b8d30 --- /dev/null +++ b/docs/RestApiArrayResultOAuthApp.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultOAuthApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<OAuthApp>**](OAuthApp.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultOauthClientRedirectUri.md b/docs/RestApiArrayResultOauthClientRedirectUri.md new file mode 100644 index 00000000..f2ac5e39 --- /dev/null +++ b/docs/RestApiArrayResultOauthClientRedirectUri.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultOauthClientRedirectUri +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<OauthClientRedirectUri>**](OauthClientRedirectUri.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultOrderBatch.md b/docs/RestApiArrayResultOrderBatch.md new file mode 100644 index 00000000..48717901 --- /dev/null +++ b/docs/RestApiArrayResultOrderBatch.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultOrderBatch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<OrderBatch>**](OrderBatch.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultOrderFulfillmentStatus.md b/docs/RestApiArrayResultOrderFulfillmentStatus.md new file mode 100644 index 00000000..99478b76 --- /dev/null +++ b/docs/RestApiArrayResultOrderFulfillmentStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultOrderFulfillmentStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<OrderFulfillmentStatus>**](OrderFulfillmentStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultPayoutSummary.md b/docs/RestApiArrayResultPayoutSummary.md new file mode 100644 index 00000000..f20261da --- /dev/null +++ b/docs/RestApiArrayResultPayoutSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultPayoutSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PayoutSummary>**](PayoutSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultPendingInvitation.md b/docs/RestApiArrayResultPendingInvitation.md new file mode 100644 index 00000000..f86f9ee7 --- /dev/null +++ b/docs/RestApiArrayResultPendingInvitation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultPendingInvitation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PendingInvitation>**](PendingInvitation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultPendingMenuChangesSummaries.md b/docs/RestApiArrayResultPendingMenuChangesSummaries.md new file mode 100644 index 00000000..ba255e44 --- /dev/null +++ b/docs/RestApiArrayResultPendingMenuChangesSummaries.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultPendingMenuChangesSummaries +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PendingMenuChangesSummaries>**](PendingMenuChangesSummaries.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultPreOrderTime.md b/docs/RestApiArrayResultPreOrderTime.md new file mode 100644 index 00000000..d870140a --- /dev/null +++ b/docs/RestApiArrayResultPreOrderTime.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultPreOrderTime +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<PreOrderTime>**](PreOrderTime.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultProcessingFeeConfig.md b/docs/RestApiArrayResultProcessingFeeConfig.md new file mode 100644 index 00000000..39c48890 --- /dev/null +++ b/docs/RestApiArrayResultProcessingFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultProcessingFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<ProcessingFeeConfig>**](ProcessingFeeConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRedeemInvitationResult.md b/docs/RestApiArrayResultRedeemInvitationResult.md new file mode 100644 index 00000000..c2f52f51 --- /dev/null +++ b/docs/RestApiArrayResultRedeemInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRedeemInvitationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RedeemInvitationResult>**](RedeemInvitationResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRestApiDefaultResponse.md b/docs/RestApiArrayResultRestApiDefaultResponse.md new file mode 100644 index 00000000..613e5736 --- /dev/null +++ b/docs/RestApiArrayResultRestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRestApiDefaultResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RestApiDefaultResponse>**](RestApiDefaultResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md b/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md new file mode 100644 index 00000000..0c216929 --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRestaurantVoucherEligibleStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RestaurantVoucherEligibleStore>**](RestaurantVoucherEligibleStore.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..3fe09c8a --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRestaurantVoucherPayGreenConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RestaurantVoucherPayGreenConfiguration>**](RestaurantVoucherPayGreenConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md new file mode 100644 index 00000000..bf3367ba --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RestaurantVoucherPayGreenConfigurationSummary>**](RestaurantVoucherPayGreenConfigurationSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultRetentionCampaign.md b/docs/RestApiArrayResultRetentionCampaign.md new file mode 100644 index 00000000..85fa35f9 --- /dev/null +++ b/docs/RestApiArrayResultRetentionCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultRetentionCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<RetentionCampaign>**](RetentionCampaign.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultSmsProviderCredential.md b/docs/RestApiArrayResultSmsProviderCredential.md new file mode 100644 index 00000000..6b10deb5 --- /dev/null +++ b/docs/RestApiArrayResultSmsProviderCredential.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultSmsProviderCredential +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<SmsProviderCredential>**](SmsProviderCredential.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultStoreChannelAssignment.md b/docs/RestApiArrayResultStoreChannelAssignment.md new file mode 100644 index 00000000..70333fa5 --- /dev/null +++ b/docs/RestApiArrayResultStoreChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultStoreChannelAssignment +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<StoreChannelAssignment>**](StoreChannelAssignment.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md b/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md new file mode 100644 index 00000000..ba7659d3 --- /dev/null +++ b/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultStoreDeliveryZoneFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<StoreDeliveryZoneFeeConfig>**](StoreDeliveryZoneFeeConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultStoreListItem.md b/docs/RestApiArrayResultStoreListItem.md new file mode 100644 index 00000000..6eb3edf7 --- /dev/null +++ b/docs/RestApiArrayResultStoreListItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultStoreListItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<StoreListItem>**](StoreListItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultStoreStatistics.md b/docs/RestApiArrayResultStoreStatistics.md new file mode 100644 index 00000000..462afaa4 --- /dev/null +++ b/docs/RestApiArrayResultStoreStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultStoreStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<StoreStatistics>**](StoreStatistics.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultStripeCustomConnectedAccount.md b/docs/RestApiArrayResultStripeCustomConnectedAccount.md new file mode 100644 index 00000000..86db2231 --- /dev/null +++ b/docs/RestApiArrayResultStripeCustomConnectedAccount.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultStripeCustomConnectedAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<StripeCustomConnectedAccount>**](StripeCustomConnectedAccount.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultSubscriptionSummary.md b/docs/RestApiArrayResultSubscriptionSummary.md new file mode 100644 index 00000000..6a43eaa3 --- /dev/null +++ b/docs/RestApiArrayResultSubscriptionSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultSubscriptionSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<SubscriptionSummary>**](SubscriptionSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultSupportedCountry.md b/docs/RestApiArrayResultSupportedCountry.md new file mode 100644 index 00000000..6162b304 --- /dev/null +++ b/docs/RestApiArrayResultSupportedCountry.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultSupportedCountry +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<SupportedCountry>**](SupportedCountry.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultTeammate.md b/docs/RestApiArrayResultTeammate.md new file mode 100644 index 00000000..f2f18d7e --- /dev/null +++ b/docs/RestApiArrayResultTeammate.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultTeammate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<Teammate>**](Teammate.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserDeliveryLocationAdmin.md b/docs/RestApiArrayResultUserDeliveryLocationAdmin.md new file mode 100644 index 00000000..fa92de9f --- /dev/null +++ b/docs/RestApiArrayResultUserDeliveryLocationAdmin.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserDeliveryLocationAdmin +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserDeliveryLocationAdmin>**](UserDeliveryLocationAdmin.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserFlipdishAccount.md b/docs/RestApiArrayResultUserFlipdishAccount.md new file mode 100644 index 00000000..c5fd20df --- /dev/null +++ b/docs/RestApiArrayResultUserFlipdishAccount.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserFlipdishAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserFlipdishAccount>**](UserFlipdishAccount.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserNote.md b/docs/RestApiArrayResultUserNote.md new file mode 100644 index 00000000..2c75f4ea --- /dev/null +++ b/docs/RestApiArrayResultUserNote.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserNote +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserNote>**](UserNote.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserOrderSummary.md b/docs/RestApiArrayResultUserOrderSummary.md new file mode 100644 index 00000000..7e3b32e5 --- /dev/null +++ b/docs/RestApiArrayResultUserOrderSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserOrderSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserOrderSummary>**](UserOrderSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserSmsChatItem.md b/docs/RestApiArrayResultUserSmsChatItem.md new file mode 100644 index 00000000..e4ff9402 --- /dev/null +++ b/docs/RestApiArrayResultUserSmsChatItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserSmsChatItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserSmsChatItem>**](UserSmsChatItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultUserStoreInfo.md b/docs/RestApiArrayResultUserStoreInfo.md new file mode 100644 index 00000000..4b988289 --- /dev/null +++ b/docs/RestApiArrayResultUserStoreInfo.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultUserStoreInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<UserStoreInfo>**](UserStoreInfo.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultVoucherDataPoint.md b/docs/RestApiArrayResultVoucherDataPoint.md new file mode 100644 index 00000000..030dfea0 --- /dev/null +++ b/docs/RestApiArrayResultVoucherDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultVoucherDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<VoucherDataPoint>**](VoucherDataPoint.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiArrayResultVoucherSummary.md b/docs/RestApiArrayResultVoucherSummary.md new file mode 100644 index 00000000..75d8914e --- /dev/null +++ b/docs/RestApiArrayResultVoucherSummary.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiArrayResultVoucherSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**List<VoucherSummary>**](VoucherSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiDefaultResponse.md b/docs/RestApiDefaultResponse.md new file mode 100644 index 00000000..9c691c53 --- /dev/null +++ b/docs/RestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiDefaultResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **string** | Data string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiErrorResult.md b/docs/RestApiErrorResult.md new file mode 100644 index 00000000..5a184921 --- /dev/null +++ b/docs/RestApiErrorResult.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiErrorResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error message | +**ErrorCode** | **int?** | Error code | [optional] +**StackTrace** | **string** | Stack trace | [optional] +**Errors** | [**List<ValidationErrorResult>**](ValidationErrorResult.md) | List of errors grouped by field name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiEventSearchPaginationResult.md b/docs/RestApiEventSearchPaginationResult.md new file mode 100644 index 00000000..a3d5c06e --- /dev/null +++ b/docs/RestApiEventSearchPaginationResult.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiEventSearchPaginationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**EventSearchResult**](EventSearchResult.md) | Event results | +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiFinanceSearchPaginationResultInvoice.md b/docs/RestApiFinanceSearchPaginationResultInvoice.md new file mode 100644 index 00000000..3c35710d --- /dev/null +++ b/docs/RestApiFinanceSearchPaginationResultInvoice.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiFinanceSearchPaginationResultInvoice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextPage** | **string** | Next page | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Invoice>**](Invoice.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md b/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md new file mode 100644 index 00000000..4ddab500 --- /dev/null +++ b/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiFinanceSearchPaginationResultSubscriptionInvoice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextPage** | **string** | Next page | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<SubscriptionInvoice>**](SubscriptionInvoice.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiForbiddenResult.md b/docs/RestApiForbiddenResult.md new file mode 100644 index 00000000..b9eac401 --- /dev/null +++ b/docs/RestApiForbiddenResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiForbiddenResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Message | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiIntegerResult.md b/docs/RestApiIntegerResult.md new file mode 100644 index 00000000..a1354f65 --- /dev/null +++ b/docs/RestApiIntegerResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiIntegerResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **int?** | Data integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultApp.md b/docs/RestApiPaginationResultApp.md new file mode 100644 index 00000000..731ca430 --- /dev/null +++ b/docs/RestApiPaginationResultApp.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<App>**](App.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultAppStoreAppSummary.md b/docs/RestApiPaginationResultAppStoreAppSummary.md new file mode 100644 index 00000000..31549144 --- /dev/null +++ b/docs/RestApiPaginationResultAppStoreAppSummary.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultAppStoreAppSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<AppStoreAppSummary>**](AppStoreAppSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultBusinessHoursOverride.md b/docs/RestApiPaginationResultBusinessHoursOverride.md new file mode 100644 index 00000000..802dcb54 --- /dev/null +++ b/docs/RestApiPaginationResultBusinessHoursOverride.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultBusinessHoursOverride +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<BusinessHoursOverride>**](BusinessHoursOverride.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultCatalogItem.md b/docs/RestApiPaginationResultCatalogItem.md new file mode 100644 index 00000000..8b12afdf --- /dev/null +++ b/docs/RestApiPaginationResultCatalogItem.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultCatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<CatalogItem>**](CatalogItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultGroup.md b/docs/RestApiPaginationResultGroup.md new file mode 100644 index 00000000..dc78b1ea --- /dev/null +++ b/docs/RestApiPaginationResultGroup.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Group>**](Group.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultHydraDeviceDetails.md b/docs/RestApiPaginationResultHydraDeviceDetails.md new file mode 100644 index 00000000..0e154c00 --- /dev/null +++ b/docs/RestApiPaginationResultHydraDeviceDetails.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultHydraDeviceDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<HydraDeviceDetails>**](HydraDeviceDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultMetafieldDefinition.md b/docs/RestApiPaginationResultMetafieldDefinition.md new file mode 100644 index 00000000..42e656ad --- /dev/null +++ b/docs/RestApiPaginationResultMetafieldDefinition.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultMetafieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<MetafieldDefinition>**](MetafieldDefinition.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md b/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md new file mode 100644 index 00000000..70fe61e4 --- /dev/null +++ b/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultMetafieldDefinitionRecommendation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<MetafieldDefinitionRecommendation>**](MetafieldDefinitionRecommendation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultOAuthTokenModel.md b/docs/RestApiPaginationResultOAuthTokenModel.md new file mode 100644 index 00000000..1ab45fe0 --- /dev/null +++ b/docs/RestApiPaginationResultOAuthTokenModel.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultOAuthTokenModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<OAuthTokenModel>**](OAuthTokenModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultOrder.md b/docs/RestApiPaginationResultOrder.md new file mode 100644 index 00000000..ab7edbeb --- /dev/null +++ b/docs/RestApiPaginationResultOrder.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Order>**](Order.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultOrderSummary.md b/docs/RestApiPaginationResultOrderSummary.md new file mode 100644 index 00000000..c1f76825 --- /dev/null +++ b/docs/RestApiPaginationResultOrderSummary.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultOrderSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<OrderSummary>**](OrderSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayout.md b/docs/RestApiPaginationResultPayout.md new file mode 100644 index 00000000..6c0e11a4 --- /dev/null +++ b/docs/RestApiPaginationResultPayout.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayout +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Payout>**](Payout.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayoutChargeback.md b/docs/RestApiPaginationResultPayoutChargeback.md new file mode 100644 index 00000000..8c98aa6d --- /dev/null +++ b/docs/RestApiPaginationResultPayoutChargeback.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayoutChargeback +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PayoutChargeback>**](PayoutChargeback.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayoutOrder.md b/docs/RestApiPaginationResultPayoutOrder.md new file mode 100644 index 00000000..6a90b5a2 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOrder.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayoutOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PayoutOrder>**](PayoutOrder.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayoutOtherCharge.md b/docs/RestApiPaginationResultPayoutOtherCharge.md new file mode 100644 index 00000000..02d8857d --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOtherCharge.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayoutOtherCharge +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PayoutOtherCharge>**](PayoutOtherCharge.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayoutRefund.md b/docs/RestApiPaginationResultPayoutRefund.md new file mode 100644 index 00000000..0e5295b4 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutRefund.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayoutRefund +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PayoutRefund>**](PayoutRefund.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md b/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md new file mode 100644 index 00000000..8ac40bc5 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPayoutReport3RefundedOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PayoutReport3RefundedOrder>**](PayoutReport3RefundedOrder.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPendingMenuChanges.md b/docs/RestApiPaginationResultPendingMenuChanges.md new file mode 100644 index 00000000..f12d63ab --- /dev/null +++ b/docs/RestApiPaginationResultPendingMenuChanges.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPendingMenuChanges +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PendingMenuChanges>**](PendingMenuChanges.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPhoneCall.md b/docs/RestApiPaginationResultPhoneCall.md new file mode 100644 index 00000000..72f7080a --- /dev/null +++ b/docs/RestApiPaginationResultPhoneCall.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPhoneCall +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PhoneCall>**](PhoneCall.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultProduct.md b/docs/RestApiPaginationResultProduct.md new file mode 100644 index 00000000..d73ff224 --- /dev/null +++ b/docs/RestApiPaginationResultProduct.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Product>**](Product.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultPushNotificationResponse.md b/docs/RestApiPaginationResultPushNotificationResponse.md new file mode 100644 index 00000000..0f2ea02e --- /dev/null +++ b/docs/RestApiPaginationResultPushNotificationResponse.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultPushNotificationResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<PushNotificationResponse>**](PushNotificationResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultRestaurant.md b/docs/RestApiPaginationResultRestaurant.md new file mode 100644 index 00000000..65ba5794 --- /dev/null +++ b/docs/RestApiPaginationResultRestaurant.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultRestaurant +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Restaurant>**](Restaurant.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultStore.md b/docs/RestApiPaginationResultStore.md new file mode 100644 index 00000000..c0713bee --- /dev/null +++ b/docs/RestApiPaginationResultStore.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<Store>**](Store.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultStoreGroup.md b/docs/RestApiPaginationResultStoreGroup.md new file mode 100644 index 00000000..dbd1b38e --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroup.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultStoreGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<StoreGroup>**](StoreGroup.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultStoreGroupExtended.md b/docs/RestApiPaginationResultStoreGroupExtended.md new file mode 100644 index 00000000..6e8f8adf --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroupExtended.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultStoreGroupExtended +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<StoreGroupExtended>**](StoreGroupExtended.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultStoreHeader.md b/docs/RestApiPaginationResultStoreHeader.md new file mode 100644 index 00000000..03f6bf7e --- /dev/null +++ b/docs/RestApiPaginationResultStoreHeader.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultStoreHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<StoreHeader>**](StoreHeader.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultStoreValidationConfig.md b/docs/RestApiPaginationResultStoreValidationConfig.md new file mode 100644 index 00000000..49715066 --- /dev/null +++ b/docs/RestApiPaginationResultStoreValidationConfig.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultStoreValidationConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<StoreValidationConfig>**](StoreValidationConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultUserSearch.md b/docs/RestApiPaginationResultUserSearch.md new file mode 100644 index 00000000..f00b38f5 --- /dev/null +++ b/docs/RestApiPaginationResultUserSearch.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultUserSearch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<UserSearch>**](UserSearch.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultVoucherSummary.md b/docs/RestApiPaginationResultVoucherSummary.md new file mode 100644 index 00000000..771d1db7 --- /dev/null +++ b/docs/RestApiPaginationResultVoucherSummary.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultVoucherSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<VoucherSummary>**](VoucherSummary.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultWebhookLog.md b/docs/RestApiPaginationResultWebhookLog.md new file mode 100644 index 00000000..3ab9d89f --- /dev/null +++ b/docs/RestApiPaginationResultWebhookLog.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultWebhookLog +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<WebhookLog>**](WebhookLog.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiPaginationResultWebhookSubscription.md b/docs/RestApiPaginationResultWebhookSubscription.md new file mode 100644 index 00000000..4bd3cf71 --- /dev/null +++ b/docs/RestApiPaginationResultWebhookSubscription.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestApiPaginationResultWebhookSubscription +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int?** | Current page index | +**Limit** | **int?** | Current page size | +**TotalRecordCount** | **int?** | Total record count | +**Data** | [**List<WebhookSubscription>**](WebhookSubscription.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAcceptInvitationResult.md b/docs/RestApiResultAcceptInvitationResult.md new file mode 100644 index 00000000..8aa624da --- /dev/null +++ b/docs/RestApiResultAcceptInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAcceptInvitationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AcceptInvitationResult**](AcceptInvitationResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAccountDetail.md b/docs/RestApiResultAccountDetail.md new file mode 100644 index 00000000..3dad3ee0 --- /dev/null +++ b/docs/RestApiResultAccountDetail.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAccountDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountDetail**](AccountDetail.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAccountFieldsDefinitions.md b/docs/RestApiResultAccountFieldsDefinitions.md new file mode 100644 index 00000000..a953b6f1 --- /dev/null +++ b/docs/RestApiResultAccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAccountFieldsDefinitions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountFieldsDefinitions**](AccountFieldsDefinitions.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAddressFormResponse.md b/docs/RestApiResultAddressFormResponse.md new file mode 100644 index 00000000..07e1a2d5 --- /dev/null +++ b/docs/RestApiResultAddressFormResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAddressFormResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AddressFormResponse**](AddressFormResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultApmStatistics.md b/docs/RestApiResultApmStatistics.md new file mode 100644 index 00000000..9dcef427 --- /dev/null +++ b/docs/RestApiResultApmStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultApmStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatistics**](ApmStatistics.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultApmStatus.md b/docs/RestApiResultApmStatus.md new file mode 100644 index 00000000..c97cbf19 --- /dev/null +++ b/docs/RestApiResultApmStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultApmStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatus**](ApmStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultApp.md b/docs/RestApiResultApp.md new file mode 100644 index 00000000..d2a16b99 --- /dev/null +++ b/docs/RestApiResultApp.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**App**](App.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppChannelAssignment.md b/docs/RestApiResultAppChannelAssignment.md new file mode 100644 index 00000000..2077e9c0 --- /dev/null +++ b/docs/RestApiResultAppChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppChannelAssignment +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppChannelAssignment**](AppChannelAssignment.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppCompliance.md b/docs/RestApiResultAppCompliance.md new file mode 100644 index 00000000..8bb0bcee --- /dev/null +++ b/docs/RestApiResultAppCompliance.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppCompliance +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppCompliance**](AppCompliance.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppConfigSalesChannel.md b/docs/RestApiResultAppConfigSalesChannel.md new file mode 100644 index 00000000..76f0b3d7 --- /dev/null +++ b/docs/RestApiResultAppConfigSalesChannel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppConfigSalesChannel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppConfigSalesChannel**](AppConfigSalesChannel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppGeneralConfigModel.md b/docs/RestApiResultAppGeneralConfigModel.md new file mode 100644 index 00000000..5da9295f --- /dev/null +++ b/docs/RestApiResultAppGeneralConfigModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppGeneralConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppGeneralConfigModel**](AppGeneralConfigModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppStoreApp.md b/docs/RestApiResultAppStoreApp.md new file mode 100644 index 00000000..9fec8e5a --- /dev/null +++ b/docs/RestApiResultAppStoreApp.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppStoreApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreApp**](AppStoreApp.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppStoreAppConfiguration.md b/docs/RestApiResultAppStoreAppConfiguration.md new file mode 100644 index 00000000..d63c47eb --- /dev/null +++ b/docs/RestApiResultAppStoreAppConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppStoreAppConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreAppConfiguration**](AppStoreAppConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppStoreAppEntitlements.md b/docs/RestApiResultAppStoreAppEntitlements.md new file mode 100644 index 00000000..0cb98f1b --- /dev/null +++ b/docs/RestApiResultAppStoreAppEntitlements.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppStoreAppEntitlements +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreAppEntitlements**](AppStoreAppEntitlements.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAppStoreConfigModel.md b/docs/RestApiResultAppStoreConfigModel.md new file mode 100644 index 00000000..b4c1c7bf --- /dev/null +++ b/docs/RestApiResultAppStoreConfigModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAppStoreConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreConfigModel**](AppStoreConfigModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAssetResultModel.md b/docs/RestApiResultAssetResultModel.md new file mode 100644 index 00000000..dc7bcd6c --- /dev/null +++ b/docs/RestApiResultAssetResultModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAssetResultModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AssetResultModel**](AssetResultModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultAssignedBankAccount.md b/docs/RestApiResultAssignedBankAccount.md new file mode 100644 index 00000000..08615bf8 --- /dev/null +++ b/docs/RestApiResultAssignedBankAccount.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultAssignedBankAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AssignedBankAccount**](AssignedBankAccount.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultBankAccountDetail.md b/docs/RestApiResultBankAccountDetail.md new file mode 100644 index 00000000..38a03e3b --- /dev/null +++ b/docs/RestApiResultBankAccountDetail.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultBankAccountDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BankAccountDetail**](BankAccountDetail.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultBluetoothTerminalStatus.md b/docs/RestApiResultBluetoothTerminalStatus.md new file mode 100644 index 00000000..92afa073 --- /dev/null +++ b/docs/RestApiResultBluetoothTerminalStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultBluetoothTerminalStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BluetoothTerminalStatus**](BluetoothTerminalStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultBuildResultModel.md b/docs/RestApiResultBuildResultModel.md new file mode 100644 index 00000000..a7b008c8 --- /dev/null +++ b/docs/RestApiResultBuildResultModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultBuildResultModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuildResultModel**](BuildResultModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultBusinessHoursOverride.md b/docs/RestApiResultBusinessHoursOverride.md new file mode 100644 index 00000000..74f92f55 --- /dev/null +++ b/docs/RestApiResultBusinessHoursOverride.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultBusinessHoursOverride +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultBusinessHoursPeriod.md b/docs/RestApiResultBusinessHoursPeriod.md new file mode 100644 index 00000000..8990d2ee --- /dev/null +++ b/docs/RestApiResultBusinessHoursPeriod.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultBusinessHoursPeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCardReader.md b/docs/RestApiResultCardReader.md new file mode 100644 index 00000000..48fa4790 --- /dev/null +++ b/docs/RestApiResultCardReader.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCardReader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CardReader**](CardReader.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCatalogItem.md b/docs/RestApiResultCatalogItem.md new file mode 100644 index 00000000..b1a12a45 --- /dev/null +++ b/docs/RestApiResultCatalogItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CatalogItem**](CatalogItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultChannel.md b/docs/RestApiResultChannel.md new file mode 100644 index 00000000..384f8d47 --- /dev/null +++ b/docs/RestApiResultChannel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultChannel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Channel**](Channel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultClientDevice.md b/docs/RestApiResultClientDevice.md new file mode 100644 index 00000000..cacb3b56 --- /dev/null +++ b/docs/RestApiResultClientDevice.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultClientDevice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ClientDevice**](ClientDevice.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultClientDeviceEnrollmentResult.md b/docs/RestApiResultClientDeviceEnrollmentResult.md new file mode 100644 index 00000000..78b1adda --- /dev/null +++ b/docs/RestApiResultClientDeviceEnrollmentResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultClientDeviceEnrollmentResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ClientDeviceEnrollmentResult**](ClientDeviceEnrollmentResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCoordinates.md b/docs/RestApiResultCoordinates.md new file mode 100644 index 00000000..f8cc66be --- /dev/null +++ b/docs/RestApiResultCoordinates.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCoordinates +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Coordinates**](Coordinates.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCountryFormResponse.md b/docs/RestApiResultCountryFormResponse.md new file mode 100644 index 00000000..b7a35bd9 --- /dev/null +++ b/docs/RestApiResultCountryFormResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCountryFormResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CountryFormResponse**](CountryFormResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCreatedMenuSectionItems.md b/docs/RestApiResultCreatedMenuSectionItems.md new file mode 100644 index 00000000..9b1605dd --- /dev/null +++ b/docs/RestApiResultCreatedMenuSectionItems.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCreatedMenuSectionItems +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CreatedMenuSectionItems**](CreatedMenuSectionItems.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCrossSellMenuItems.md b/docs/RestApiResultCrossSellMenuItems.md new file mode 100644 index 00000000..50553d90 --- /dev/null +++ b/docs/RestApiResultCrossSellMenuItems.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCrossSellMenuItems +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CrossSellMenuItems**](CrossSellMenuItems.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCustomer.md b/docs/RestApiResultCustomer.md new file mode 100644 index 00000000..10583455 --- /dev/null +++ b/docs/RestApiResultCustomer.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCustomer +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Customer**](Customer.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultCustomers.md b/docs/RestApiResultCustomers.md new file mode 100644 index 00000000..3ea70268 --- /dev/null +++ b/docs/RestApiResultCustomers.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultCustomers +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Customers**](Customers.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultDeliveryZone.md b/docs/RestApiResultDeliveryZone.md new file mode 100644 index 00000000..c320bf62 --- /dev/null +++ b/docs/RestApiResultDeliveryZone.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultDeliveryZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DeliveryZone**](DeliveryZone.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultDnsRecordInformation.md b/docs/RestApiResultDnsRecordInformation.md new file mode 100644 index 00000000..52d5818d --- /dev/null +++ b/docs/RestApiResultDnsRecordInformation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultDnsRecordInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DnsRecordInformation**](DnsRecordInformation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultEndUserFeeConfig.md b/docs/RestApiResultEndUserFeeConfig.md new file mode 100644 index 00000000..801888bc --- /dev/null +++ b/docs/RestApiResultEndUserFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultEndUserFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**EndUserFeeConfig**](EndUserFeeConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultExecuteConfigurationActionResult.md b/docs/RestApiResultExecuteConfigurationActionResult.md new file mode 100644 index 00000000..88297a71 --- /dev/null +++ b/docs/RestApiResultExecuteConfigurationActionResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultExecuteConfigurationActionResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ExecuteConfigurationActionResult**](ExecuteConfigurationActionResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultFulfillmentStatesConfiguration.md b/docs/RestApiResultFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..156ea2b4 --- /dev/null +++ b/docs/RestApiResultFulfillmentStatesConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultFulfillmentStatesConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultGetEndUserFeeConfigsResponse.md b/docs/RestApiResultGetEndUserFeeConfigsResponse.md new file mode 100644 index 00000000..3dd23b6b --- /dev/null +++ b/docs/RestApiResultGetEndUserFeeConfigsResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultGetEndUserFeeConfigsResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**GetEndUserFeeConfigsResponse**](GetEndUserFeeConfigsResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultGroup.md b/docs/RestApiResultGroup.md new file mode 100644 index 00000000..e3af2ba3 --- /dev/null +++ b/docs/RestApiResultGroup.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Group**](Group.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultHasPaymentMethodResponse.md b/docs/RestApiResultHasPaymentMethodResponse.md new file mode 100644 index 00000000..ad1edfec --- /dev/null +++ b/docs/RestApiResultHasPaymentMethodResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultHasPaymentMethodResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HasPaymentMethodResponse**](HasPaymentMethodResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultHomeStatistics.md b/docs/RestApiResultHomeStatistics.md new file mode 100644 index 00000000..9925ccbc --- /dev/null +++ b/docs/RestApiResultHomeStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultHomeStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HomeStatistics**](HomeStatistics.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultHydraConfig.md b/docs/RestApiResultHydraConfig.md new file mode 100644 index 00000000..e6e720b0 --- /dev/null +++ b/docs/RestApiResultHydraConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultHydraConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraConfig**](HydraConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultHydraDeviceDetails.md b/docs/RestApiResultHydraDeviceDetails.md new file mode 100644 index 00000000..3f618485 --- /dev/null +++ b/docs/RestApiResultHydraDeviceDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultHydraDeviceDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraDeviceDetails**](HydraDeviceDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultHydraStatus.md b/docs/RestApiResultHydraStatus.md new file mode 100644 index 00000000..c011fd2d --- /dev/null +++ b/docs/RestApiResultHydraStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultHydraStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraStatus**](HydraStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultIndexPage.md b/docs/RestApiResultIndexPage.md new file mode 100644 index 00000000..c4d444f2 --- /dev/null +++ b/docs/RestApiResultIndexPage.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultIndexPage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPage**](IndexPage.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultIndexPageBase.md b/docs/RestApiResultIndexPageBase.md new file mode 100644 index 00000000..b8dcb9a6 --- /dev/null +++ b/docs/RestApiResultIndexPageBase.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultIndexPageBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPageBase**](IndexPageBase.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultIntercomUserHash.md b/docs/RestApiResultIntercomUserHash.md new file mode 100644 index 00000000..4e9282a6 --- /dev/null +++ b/docs/RestApiResultIntercomUserHash.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultIntercomUserHash +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IntercomUserHash**](IntercomUserHash.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultJobResponse.md b/docs/RestApiResultJobResponse.md new file mode 100644 index 00000000..87889ab9 --- /dev/null +++ b/docs/RestApiResultJobResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultJobResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**JobResponse**](JobResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultKioskEntitlementsResult.md b/docs/RestApiResultKioskEntitlementsResult.md new file mode 100644 index 00000000..2e05caf7 --- /dev/null +++ b/docs/RestApiResultKioskEntitlementsResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultKioskEntitlementsResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskEntitlementsResult**](KioskEntitlementsResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultKioskIotConnectionParameters.md b/docs/RestApiResultKioskIotConnectionParameters.md new file mode 100644 index 00000000..9a4b4935 --- /dev/null +++ b/docs/RestApiResultKioskIotConnectionParameters.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultKioskIotConnectionParameters +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskIotConnectionParameters**](KioskIotConnectionParameters.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultKioskSettings.md b/docs/RestApiResultKioskSettings.md new file mode 100644 index 00000000..f63ccb98 --- /dev/null +++ b/docs/RestApiResultKioskSettings.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultKioskSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskSettings**](KioskSettings.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultKioskStripeLocation.md b/docs/RestApiResultKioskStripeLocation.md new file mode 100644 index 00000000..6149e225 --- /dev/null +++ b/docs/RestApiResultKioskStripeLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultKioskStripeLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskStripeLocation**](KioskStripeLocation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultLightspeedSettings.md b/docs/RestApiResultLightspeedSettings.md new file mode 100644 index 00000000..a45c6580 --- /dev/null +++ b/docs/RestApiResultLightspeedSettings.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultLightspeedSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LightspeedSettings**](LightspeedSettings.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultLocationArea.md b/docs/RestApiResultLocationArea.md new file mode 100644 index 00000000..7cae9b15 --- /dev/null +++ b/docs/RestApiResultLocationArea.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultLocationArea +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationArea**](LocationArea.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultLocationAreaLocation.md b/docs/RestApiResultLocationAreaLocation.md new file mode 100644 index 00000000..cafee531 --- /dev/null +++ b/docs/RestApiResultLocationAreaLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultLocationAreaLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationAreaLocation**](LocationAreaLocation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultLocationAreaWithLocations.md b/docs/RestApiResultLocationAreaWithLocations.md new file mode 100644 index 00000000..7898bfa4 --- /dev/null +++ b/docs/RestApiResultLocationAreaWithLocations.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultLocationAreaWithLocations +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationAreaWithLocations**](LocationAreaWithLocations.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultLoyaltyCampaign.md b/docs/RestApiResultLoyaltyCampaign.md new file mode 100644 index 00000000..bc2b2cb2 --- /dev/null +++ b/docs/RestApiResultLoyaltyCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultLoyaltyCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMappedLocation.md b/docs/RestApiResultMappedLocation.md new file mode 100644 index 00000000..8a110a62 --- /dev/null +++ b/docs/RestApiResultMappedLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMappedLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MappedLocation**](MappedLocation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenu.md b/docs/RestApiResultMenu.md new file mode 100644 index 00000000..c1b555c8 --- /dev/null +++ b/docs/RestApiResultMenu.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenu +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Menu**](Menu.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuItemOptionSet.md b/docs/RestApiResultMenuItemOptionSet.md new file mode 100644 index 00000000..484a2a9b --- /dev/null +++ b/docs/RestApiResultMenuItemOptionSet.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuItemOptionSet +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuItemOptionSetItem.md b/docs/RestApiResultMenuItemOptionSetItem.md new file mode 100644 index 00000000..7d7da13d --- /dev/null +++ b/docs/RestApiResultMenuItemOptionSetItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuItemOptionSetItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuNutritionInfoHeader.md b/docs/RestApiResultMenuNutritionInfoHeader.md new file mode 100644 index 00000000..f0192b5e --- /dev/null +++ b/docs/RestApiResultMenuNutritionInfoHeader.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuNutritionInfoHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuNutritionInfoHeader**](MenuNutritionInfoHeader.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuSection.md b/docs/RestApiResultMenuSection.md new file mode 100644 index 00000000..4e5ae29f --- /dev/null +++ b/docs/RestApiResultMenuSection.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuSection +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSection**](MenuSection.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuSectionAvailability.md b/docs/RestApiResultMenuSectionAvailability.md new file mode 100644 index 00000000..b827e710 --- /dev/null +++ b/docs/RestApiResultMenuSectionAvailability.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuSectionAvailability +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuSectionItem.md b/docs/RestApiResultMenuSectionItem.md new file mode 100644 index 00000000..6b558128 --- /dev/null +++ b/docs/RestApiResultMenuSectionItem.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuSectionItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSectionItem**](MenuSectionItem.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMenuZone.md b/docs/RestApiResultMenuZone.md new file mode 100644 index 00000000..b996ad41 --- /dev/null +++ b/docs/RestApiResultMenuZone.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMenuZone +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuZone**](MenuZone.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMetadata.md b/docs/RestApiResultMetadata.md new file mode 100644 index 00000000..f6601c02 --- /dev/null +++ b/docs/RestApiResultMetadata.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMetadata +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Metadata**](Metadata.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMetafieldDefinition.md b/docs/RestApiResultMetafieldDefinition.md new file mode 100644 index 00000000..bdf1639d --- /dev/null +++ b/docs/RestApiResultMetafieldDefinition.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMetafieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MetafieldDefinition**](MetafieldDefinition.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMobileAppsImage.md b/docs/RestApiResultMobileAppsImage.md new file mode 100644 index 00000000..740355d2 --- /dev/null +++ b/docs/RestApiResultMobileAppsImage.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMobileAppsImage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsImage**](MobileAppsImage.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMobileAppsSubmission.md b/docs/RestApiResultMobileAppsSubmission.md new file mode 100644 index 00000000..d479d7d2 --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmission.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMobileAppsSubmission +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmission**](MobileAppsSubmission.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMobileAppsSubmissionDetails.md b/docs/RestApiResultMobileAppsSubmissionDetails.md new file mode 100644 index 00000000..82d4ada7 --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmissionDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMobileAppsSubmissionDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmissionDetails**](MobileAppsSubmissionDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultMobileAppsSubmissionStatus.md b/docs/RestApiResultMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..264b18b3 --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmissionStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultMobileAppsSubmissionStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmissionStatus**](MobileAppsSubmissionStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultModelBase.md b/docs/RestApiResultModelBase.md new file mode 100644 index 00000000..c53df7b7 --- /dev/null +++ b/docs/RestApiResultModelBase.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultModelBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ModelBase**](ModelBase.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultNutritionInfo.md b/docs/RestApiResultNutritionInfo.md new file mode 100644 index 00000000..a043e22c --- /dev/null +++ b/docs/RestApiResultNutritionInfo.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultNutritionInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**NutritionInfo**](NutritionInfo.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultNutritionInfoV2.md b/docs/RestApiResultNutritionInfoV2.md new file mode 100644 index 00000000..11283ab7 --- /dev/null +++ b/docs/RestApiResultNutritionInfoV2.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultNutritionInfoV2 +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**NutritionInfoV2**](NutritionInfoV2.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOAuthApp.md b/docs/RestApiResultOAuthApp.md new file mode 100644 index 00000000..0568074c --- /dev/null +++ b/docs/RestApiResultOAuthApp.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOAuthApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OAuthApp**](OAuthApp.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOauthClientRedirectUri.md b/docs/RestApiResultOauthClientRedirectUri.md new file mode 100644 index 00000000..083b4deb --- /dev/null +++ b/docs/RestApiResultOauthClientRedirectUri.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOauthClientRedirectUri +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OauthClientRedirectUri**](OauthClientRedirectUri.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOktaPortalFeatureFlag.md b/docs/RestApiResultOktaPortalFeatureFlag.md new file mode 100644 index 00000000..ccd4a9a6 --- /dev/null +++ b/docs/RestApiResultOktaPortalFeatureFlag.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOktaPortalFeatureFlag +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OktaPortalFeatureFlag**](OktaPortalFeatureFlag.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrder.md b/docs/RestApiResultOrder.md new file mode 100644 index 00000000..77761fff --- /dev/null +++ b/docs/RestApiResultOrder.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Order**](Order.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderBatch.md b/docs/RestApiResultOrderBatch.md new file mode 100644 index 00000000..8d120a34 --- /dev/null +++ b/docs/RestApiResultOrderBatch.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderBatch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderBatch**](OrderBatch.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderBatchingConfiguration.md b/docs/RestApiResultOrderBatchingConfiguration.md new file mode 100644 index 00000000..7ad7551e --- /dev/null +++ b/docs/RestApiResultOrderBatchingConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderBatchingConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderBatchingConfiguration**](OrderBatchingConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderDeliveryInformation.md b/docs/RestApiResultOrderDeliveryInformation.md new file mode 100644 index 00000000..14517169 --- /dev/null +++ b/docs/RestApiResultOrderDeliveryInformation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderDeliveryInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderDeliveryInformation**](OrderDeliveryInformation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderFulfillmentStatus.md b/docs/RestApiResultOrderFulfillmentStatus.md new file mode 100644 index 00000000..64c1349b --- /dev/null +++ b/docs/RestApiResultOrderFulfillmentStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderFulfillmentStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderFulfillmentStatus**](OrderFulfillmentStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md b/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md new file mode 100644 index 00000000..19e8d73b --- /dev/null +++ b/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderFulfillmentStatusWithConfigurationActions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderFulfillmentStatusWithConfigurationActions**](OrderFulfillmentStatusWithConfigurationActions.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderLeadTimes.md b/docs/RestApiResultOrderLeadTimes.md new file mode 100644 index 00000000..102bfe26 --- /dev/null +++ b/docs/RestApiResultOrderLeadTimes.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderLeadTimes +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderLeadTimes**](OrderLeadTimes.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultOrderPaymentInformation.md b/docs/RestApiResultOrderPaymentInformation.md new file mode 100644 index 00000000..530750e4 --- /dev/null +++ b/docs/RestApiResultOrderPaymentInformation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultOrderPaymentInformation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderPaymentInformation**](OrderPaymentInformation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPaymentIntent.md b/docs/RestApiResultPaymentIntent.md new file mode 100644 index 00000000..d7406cea --- /dev/null +++ b/docs/RestApiResultPaymentIntent.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPaymentIntent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentIntent**](PaymentIntent.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPaymentTerminalDetails.md b/docs/RestApiResultPaymentTerminalDetails.md new file mode 100644 index 00000000..5f866d7c --- /dev/null +++ b/docs/RestApiResultPaymentTerminalDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPaymentTerminalDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalDetails**](PaymentTerminalDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPaymentTerminalTransactionDetails.md b/docs/RestApiResultPaymentTerminalTransactionDetails.md new file mode 100644 index 00000000..04da9cfe --- /dev/null +++ b/docs/RestApiResultPaymentTerminalTransactionDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPaymentTerminalTransactionDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalTransactionDetails**](PaymentTerminalTransactionDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPayoutReport3Details.md b/docs/RestApiResultPayoutReport3Details.md new file mode 100644 index 00000000..2805609b --- /dev/null +++ b/docs/RestApiResultPayoutReport3Details.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPayoutReport3Details +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3Details**](PayoutReport3Details.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPayoutReport3Overview.md b/docs/RestApiResultPayoutReport3Overview.md new file mode 100644 index 00000000..08b92aee --- /dev/null +++ b/docs/RestApiResultPayoutReport3Overview.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPayoutReport3Overview +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3Overview**](PayoutReport3Overview.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPayoutReport3PropertyDetails.md b/docs/RestApiResultPayoutReport3PropertyDetails.md new file mode 100644 index 00000000..a1ce3a5c --- /dev/null +++ b/docs/RestApiResultPayoutReport3PropertyDetails.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPayoutReport3PropertyDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3PropertyDetails**](PayoutReport3PropertyDetails.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPayoutReport3StorePayouts.md b/docs/RestApiResultPayoutReport3StorePayouts.md new file mode 100644 index 00000000..8a91fdf3 --- /dev/null +++ b/docs/RestApiResultPayoutReport3StorePayouts.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPayoutReport3StorePayouts +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3StorePayouts**](PayoutReport3StorePayouts.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPixelPointProductCatalogue.md b/docs/RestApiResultPixelPointProductCatalogue.md new file mode 100644 index 00000000..d9f2e575 --- /dev/null +++ b/docs/RestApiResultPixelPointProductCatalogue.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPixelPointProductCatalogue +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PixelPointProductCatalogue**](PixelPointProductCatalogue.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPlayStoreConfigModel.md b/docs/RestApiResultPlayStoreConfigModel.md new file mode 100644 index 00000000..ef035aa0 --- /dev/null +++ b/docs/RestApiResultPlayStoreConfigModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPlayStoreConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PlayStoreConfigModel**](PlayStoreConfigModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPreOrderConfig.md b/docs/RestApiResultPreOrderConfig.md new file mode 100644 index 00000000..d99c29de --- /dev/null +++ b/docs/RestApiResultPreOrderConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPreOrderConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PreOrderConfig**](PreOrderConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultProcessingFeeConfig.md b/docs/RestApiResultProcessingFeeConfig.md new file mode 100644 index 00000000..ee92eeaf --- /dev/null +++ b/docs/RestApiResultProcessingFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultProcessingFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ProcessingFeeConfig**](ProcessingFeeConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultProduct.md b/docs/RestApiResultProduct.md new file mode 100644 index 00000000..20a0a08b --- /dev/null +++ b/docs/RestApiResultProduct.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Product**](Product.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultPushNotificationResponse.md b/docs/RestApiResultPushNotificationResponse.md new file mode 100644 index 00000000..8da7faf6 --- /dev/null +++ b/docs/RestApiResultPushNotificationResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultPushNotificationResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PushNotificationResponse**](PushNotificationResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRedeemInvitationResult.md b/docs/RestApiResultRedeemInvitationResult.md new file mode 100644 index 00000000..c4dda397 --- /dev/null +++ b/docs/RestApiResultRedeemInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRedeemInvitationResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RedeemInvitationResult**](RedeemInvitationResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRestApiDefaultResponse.md b/docs/RestApiResultRestApiDefaultResponse.md new file mode 100644 index 00000000..080b939e --- /dev/null +++ b/docs/RestApiResultRestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRestApiDefaultResponse +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestApiDefaultResponse**](RestApiDefaultResponse.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRestApiIntegerResult.md b/docs/RestApiResultRestApiIntegerResult.md new file mode 100644 index 00000000..5f5cb308 --- /dev/null +++ b/docs/RestApiResultRestApiIntegerResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRestApiIntegerResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestApiIntegerResult**](RestApiIntegerResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md b/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..7d5f605a --- /dev/null +++ b/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRestaurantVoucherPayGreenConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestaurantVoucherPayGreenConfiguration**](RestaurantVoucherPayGreenConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md b/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md new file mode 100644 index 00000000..fbf1ba72 --- /dev/null +++ b/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRestaurantVoucherPayGreenStoreConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestaurantVoucherPayGreenStoreConfiguration**](RestaurantVoucherPayGreenStoreConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultRetentionCampaign.md b/docs/RestApiResultRetentionCampaign.md new file mode 100644 index 00000000..8bdffd8c --- /dev/null +++ b/docs/RestApiResultRetentionCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultRetentionCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RetentionCampaign**](RetentionCampaign.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultServiceCharge.md b/docs/RestApiResultServiceCharge.md new file mode 100644 index 00000000..0e14d4ee --- /dev/null +++ b/docs/RestApiResultServiceCharge.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultServiceCharge +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ServiceCharge**](ServiceCharge.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultSetV2FeeCalculationRequest.md b/docs/RestApiResultSetV2FeeCalculationRequest.md new file mode 100644 index 00000000..b485f40d --- /dev/null +++ b/docs/RestApiResultSetV2FeeCalculationRequest.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultSetV2FeeCalculationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SetV2FeeCalculationRequest**](SetV2FeeCalculationRequest.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultSmsProviderCredential.md b/docs/RestApiResultSmsProviderCredential.md new file mode 100644 index 00000000..415a9442 --- /dev/null +++ b/docs/RestApiResultSmsProviderCredential.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultSmsProviderCredential +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SmsProviderCredential**](SmsProviderCredential.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStore.md b/docs/RestApiResultStore.md new file mode 100644 index 00000000..d347765a --- /dev/null +++ b/docs/RestApiResultStore.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Store**](Store.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreAddress.md b/docs/RestApiResultStoreAddress.md new file mode 100644 index 00000000..40c2d37c --- /dev/null +++ b/docs/RestApiResultStoreAddress.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreAddress +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreAddress**](StoreAddress.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreChannelAssignment.md b/docs/RestApiResultStoreChannelAssignment.md new file mode 100644 index 00000000..06217b0a --- /dev/null +++ b/docs/RestApiResultStoreChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreChannelAssignment +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreChannelAssignment**](StoreChannelAssignment.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreEndOfDayReport.md b/docs/RestApiResultStoreEndOfDayReport.md new file mode 100644 index 00000000..ea9584cf --- /dev/null +++ b/docs/RestApiResultStoreEndOfDayReport.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreEndOfDayReport +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreEndOfDayReport**](StoreEndOfDayReport.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreGroup.md b/docs/RestApiResultStoreGroup.md new file mode 100644 index 00000000..374e1a00 --- /dev/null +++ b/docs/RestApiResultStoreGroup.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroup**](StoreGroup.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreGroupBase.md b/docs/RestApiResultStoreGroupBase.md new file mode 100644 index 00000000..92f753a2 --- /dev/null +++ b/docs/RestApiResultStoreGroupBase.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreGroupBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroupBase**](StoreGroupBase.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStoreOrderCapacityConfig.md b/docs/RestApiResultStoreOrderCapacityConfig.md new file mode 100644 index 00000000..22f6587c --- /dev/null +++ b/docs/RestApiResultStoreOrderCapacityConfig.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStoreOrderCapacityConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreOrderCapacityConfig**](StoreOrderCapacityConfig.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStripeConnectedAccount.md b/docs/RestApiResultStripeConnectedAccount.md new file mode 100644 index 00000000..649670ba --- /dev/null +++ b/docs/RestApiResultStripeConnectedAccount.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStripeConnectedAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeConnectedAccount**](StripeConnectedAccount.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStripeTerminalConnectionToken.md b/docs/RestApiResultStripeTerminalConnectionToken.md new file mode 100644 index 00000000..366580c0 --- /dev/null +++ b/docs/RestApiResultStripeTerminalConnectionToken.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStripeTerminalConnectionToken +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeTerminalConnectionToken**](StripeTerminalConnectionToken.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStripeTerminalLocation.md b/docs/RestApiResultStripeTerminalLocation.md new file mode 100644 index 00000000..9476d105 --- /dev/null +++ b/docs/RestApiResultStripeTerminalLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStripeTerminalLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeTerminalLocation**](StripeTerminalLocation.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultStuartSettings.md b/docs/RestApiResultStuartSettings.md new file mode 100644 index 00000000..5869236e --- /dev/null +++ b/docs/RestApiResultStuartSettings.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultStuartSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StuartSettings**](StuartSettings.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultSubscription.md b/docs/RestApiResultSubscription.md new file mode 100644 index 00000000..b3a1fc24 --- /dev/null +++ b/docs/RestApiResultSubscription.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultSubscription +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Subscription**](Subscription.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultTeammate.md b/docs/RestApiResultTeammate.md new file mode 100644 index 00000000..a6b94424 --- /dev/null +++ b/docs/RestApiResultTeammate.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultTeammate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Teammate**](Teammate.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultTelemetrySeriesResult.md b/docs/RestApiResultTelemetrySeriesResult.md new file mode 100644 index 00000000..83cdeafb --- /dev/null +++ b/docs/RestApiResultTelemetrySeriesResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultTelemetrySeriesResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TelemetrySeriesResult**](TelemetrySeriesResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultTipConfiguration.md b/docs/RestApiResultTipConfiguration.md new file mode 100644 index 00000000..b04f40b2 --- /dev/null +++ b/docs/RestApiResultTipConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultTipConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TipConfiguration**](TipConfiguration.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md b/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..588d95dd --- /dev/null +++ b/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultUpdateMobileAppsSubmissionStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultUserInfo.md b/docs/RestApiResultUserInfo.md new file mode 100644 index 00000000..b55cf9f9 --- /dev/null +++ b/docs/RestApiResultUserInfo.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultUserInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UserInfo**](UserInfo.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultUserPushNotificationSentResult.md b/docs/RestApiResultUserPushNotificationSentResult.md new file mode 100644 index 00000000..449ac991 --- /dev/null +++ b/docs/RestApiResultUserPushNotificationSentResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultUserPushNotificationSentResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UserPushNotificationSentResult**](UserPushNotificationSentResult.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultUserRole.md b/docs/RestApiResultUserRole.md new file mode 100644 index 00000000..3d2cdb93 --- /dev/null +++ b/docs/RestApiResultUserRole.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultUserRole +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UserRole**](UserRole.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultVoucher.md b/docs/RestApiResultVoucher.md new file mode 100644 index 00000000..0114737f --- /dev/null +++ b/docs/RestApiResultVoucher.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultVoucher +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Voucher**](Voucher.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultVoucherWithStats.md b/docs/RestApiResultVoucherWithStats.md new file mode 100644 index 00000000..d3f49254 --- /dev/null +++ b/docs/RestApiResultVoucherWithStats.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultVoucherWithStats +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**VoucherWithStats**](VoucherWithStats.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultWebsiteImage.md b/docs/RestApiResultWebsiteImage.md new file mode 100644 index 00000000..0c7110f6 --- /dev/null +++ b/docs/RestApiResultWebsiteImage.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultWebsiteImage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteImage**](WebsiteImage.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultWebsiteTestimonial.md b/docs/RestApiResultWebsiteTestimonial.md new file mode 100644 index 00000000..ed4b8a97 --- /dev/null +++ b/docs/RestApiResultWebsiteTestimonial.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultWebsiteTestimonial +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteTestimonial**](WebsiteTestimonial.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiResultWhiteLabelConfigModel.md b/docs/RestApiResultWhiteLabelConfigModel.md new file mode 100644 index 00000000..699c91fa --- /dev/null +++ b/docs/RestApiResultWhiteLabelConfigModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiResultWhiteLabelConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WhiteLabelConfigModel**](WhiteLabelConfigModel.md) | Generic data object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiStringArrayResult.md b/docs/RestApiStringArrayResult.md new file mode 100644 index 00000000..4fca07af --- /dev/null +++ b/docs/RestApiStringArrayResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiStringArrayResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **List<string>** | Data string array | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiStringResult.md b/docs/RestApiStringResult.md new file mode 100644 index 00000000..ef3f4bee --- /dev/null +++ b/docs/RestApiStringResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiStringResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **string** | Data string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestApiUnauthorizedResult.md b/docs/RestApiUnauthorizedResult.md new file mode 100644 index 00000000..7e3e2a01 --- /dev/null +++ b/docs/RestApiUnauthorizedResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.RestApiUnauthorizedResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Message | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Restaurant.md b/docs/Restaurant.md new file mode 100644 index 00000000..d988f172 --- /dev/null +++ b/docs/Restaurant.md @@ -0,0 +1,19 @@ +# Flipdish.Model.Restaurant +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelConfigs** | [**List<WhiteLabelConfig>**](WhiteLabelConfig.md) | Collection of white label configurations | [optional] +**VirtualRestaurantId** | **int?** | Virtual restaurant identifier | [optional] +**VirtualRestaurantName** | **string** | Virtual restaurant name | [optional] +**VirtualRestaurantUrl** | **string** | Virtual restaurant URL | [optional] +**PhysicalRestaurantId** | **int?** | Physical restaurant identifier | [optional] +**PhysicalRestaurantName** | **string** | Physical restaurant name | [optional] +**PhysicalRestaurantAddress** | **string** | Physical restaurant address | [optional] +**MenuId** | **int?** | Menu identifier | [optional] +**IsArchived** | **bool?** | Indicates if the restaurant is archived | [optional] +**IsPublished** | **bool?** | Indicates if the restaurant is published | [optional] +**FlipdishStripeCustomConnectedAccounts** | **List<int?>** | List of Flipdish Stripe custom connected account identifiers | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVoucherAssignedStore.md b/docs/RestaurantVoucherAssignedStore.md new file mode 100644 index 00000000..e042aa29 --- /dev/null +++ b/docs/RestaurantVoucherAssignedStore.md @@ -0,0 +1,11 @@ +# Flipdish.Model.RestaurantVoucherAssignedStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | StoreId. | [optional] +**Name** | **string** | Name. | [optional] +**Active** | **bool?** | Active. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVoucherEligibleStore.md b/docs/RestaurantVoucherEligibleStore.md new file mode 100644 index 00000000..145589c7 --- /dev/null +++ b/docs/RestaurantVoucherEligibleStore.md @@ -0,0 +1,10 @@ +# Flipdish.Model.RestaurantVoucherEligibleStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | StoreId. | [optional] +**Name** | **string** | Name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVoucherPayGreenConfiguration.md b/docs/RestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..81d1b0ac --- /dev/null +++ b/docs/RestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestaurantVoucherPayGreenConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**PayGreenId** | **string** | PayGreenId. | [optional] +**PayGreenConfigurationId** | **int?** | PayGreenConfigurationId. | [optional] +**AssignedStores** | [**List<RestaurantVoucherAssignedStore>**](RestaurantVoucherAssignedStore.md) | AssignedStores. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVoucherPayGreenConfigurationSummary.md b/docs/RestaurantVoucherPayGreenConfigurationSummary.md new file mode 100644 index 00000000..167057ac --- /dev/null +++ b/docs/RestaurantVoucherPayGreenConfigurationSummary.md @@ -0,0 +1,10 @@ +# Flipdish.Model.RestaurantVoucherPayGreenConfigurationSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**PayGreenConfigurationId** | **int?** | PayGreenConfigurationId. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVoucherPayGreenStoreConfiguration.md b/docs/RestaurantVoucherPayGreenStoreConfiguration.md new file mode 100644 index 00000000..0b3a32d7 --- /dev/null +++ b/docs/RestaurantVoucherPayGreenStoreConfiguration.md @@ -0,0 +1,12 @@ +# Flipdish.Model.RestaurantVoucherPayGreenStoreConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**Active** | **bool?** | Active. | [optional] +**PayGreenId** | **string** | PayGreenId. | [optional] +**PayGreenConfigurationId** | **int?** | PayGreenConfigurationId. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RestaurantVouchersPayGreenApi.md b/docs/RestaurantVouchersPayGreenApi.md new file mode 100644 index 00000000..8bfeff5e --- /dev/null +++ b/docs/RestaurantVouchersPayGreenApi.md @@ -0,0 +1,584 @@ +# Flipdish.Api.RestaurantVouchersPayGreenApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#createpaygreenconfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +[**DeletePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#deletepaygreenconfiguration) | **DELETE** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**GetElegibleStores**](RestaurantVouchersPayGreenApi.md#getelegiblestores) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores | +[**GetPayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#getpaygreenconfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +[**GetStoreAvailablePayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#getstoreavailablepaygreenconfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations | +[**GetStorePayGreenConfiguration_**](RestaurantVouchersPayGreenApi.md#getstorepaygreenconfiguration_) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | +[**ListPayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#listpaygreenconfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**UpdatePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#updatepaygreenconfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**UpdateStorePayGreenConfiguration_**](RestaurantVouchersPayGreenApi.md#updatestorepaygreenconfiguration_) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | + + + +# **CreatePayGreenConfiguration** +> RestApiResultRestaurantVoucherPayGreenConfiguration CreatePayGreenConfiguration (string appId, CreatePayGreenConfigurationRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreatePayGreenConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var request = new CreatePayGreenConfigurationRequest(); // CreatePayGreenConfigurationRequest | + + try + { + RestApiResultRestaurantVoucherPayGreenConfiguration result = apiInstance.CreatePayGreenConfiguration(appId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.CreatePayGreenConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **request** | [**CreatePayGreenConfigurationRequest**](CreatePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeletePayGreenConfiguration** +> Object DeletePayGreenConfiguration (string appId, int? paygreenConfigurationId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeletePayGreenConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var paygreenConfigurationId = 56; // int? | + + try + { + Object result = apiInstance.DeletePayGreenConfiguration(appId, paygreenConfigurationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.DeletePayGreenConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **paygreenConfigurationId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetElegibleStores** +> RestApiArrayResultRestaurantVoucherEligibleStore GetElegibleStores (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetElegibleStoresExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultRestaurantVoucherEligibleStore result = apiInstance.GetElegibleStores(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.GetElegibleStores: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherEligibleStore**](RestApiArrayResultRestaurantVoucherEligibleStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPayGreenConfigurations** +> RestApiArrayResultRestaurantVoucherPayGreenConfiguration GetPayGreenConfigurations (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPayGreenConfigurationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultRestaurantVoucherPayGreenConfiguration result = apiInstance.GetPayGreenConfigurations(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.GetPayGreenConfigurations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherPayGreenConfiguration**](RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreAvailablePayGreenConfigurations** +> RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary GetStoreAvailablePayGreenConfigurations (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreAvailablePayGreenConfigurationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary result = apiInstance.GetStoreAvailablePayGreenConfigurations(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.GetStoreAvailablePayGreenConfigurations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary**](RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStorePayGreenConfiguration_** +> RestApiResultRestaurantVoucherPayGreenStoreConfiguration GetStorePayGreenConfiguration_ (string appId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStorePayGreenConfiguration_Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + + try + { + RestApiResultRestaurantVoucherPayGreenStoreConfiguration result = apiInstance.GetStorePayGreenConfiguration_(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.GetStorePayGreenConfiguration_: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenStoreConfiguration**](RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListPayGreenConfigurations** +> RestApiResultRestaurantVoucherPayGreenConfiguration ListPayGreenConfigurations (string appId, int? paygreenConfigurationId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ListPayGreenConfigurationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var paygreenConfigurationId = 56; // int? | + + try + { + RestApiResultRestaurantVoucherPayGreenConfiguration result = apiInstance.ListPayGreenConfigurations(appId, paygreenConfigurationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.ListPayGreenConfigurations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **paygreenConfigurationId** | **int?**| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdatePayGreenConfiguration** +> RestApiResultRestaurantVoucherPayGreenConfiguration UpdatePayGreenConfiguration (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdatePayGreenConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var paygreenConfigurationId = 56; // int? | + var request = new UpdatePayGreenConfigurationRequest(); // UpdatePayGreenConfigurationRequest | + + try + { + RestApiResultRestaurantVoucherPayGreenConfiguration result = apiInstance.UpdatePayGreenConfiguration(appId, paygreenConfigurationId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.UpdatePayGreenConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **paygreenConfigurationId** | **int?**| | + **request** | [**UpdatePayGreenConfigurationRequest**](UpdatePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStorePayGreenConfiguration_** +> RestApiResultRestaurantVoucherPayGreenStoreConfiguration UpdateStorePayGreenConfiguration_ (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStorePayGreenConfiguration_Example + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new RestaurantVouchersPayGreenApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var request = new UpdateStorePayGreenConfigurationRequest(); // UpdateStorePayGreenConfigurationRequest | + + try + { + RestApiResultRestaurantVoucherPayGreenStoreConfiguration result = apiInstance.UpdateStorePayGreenConfiguration_(appId, storeId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RestaurantVouchersPayGreenApi.UpdateStorePayGreenConfiguration_: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **request** | [**UpdateStorePayGreenConfigurationRequest**](UpdateStorePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenStoreConfiguration**](RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RetentionCampaign.md b/docs/RetentionCampaign.md new file mode 100644 index 00000000..66478c37 --- /dev/null +++ b/docs/RetentionCampaign.md @@ -0,0 +1,24 @@ +# Flipdish.Model.RetentionCampaign +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **int?** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | Statistics of campaign | [optional] +**Stores** | [**List<StoreCampaignStartTime>**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [optional] +**PublicId** | **Guid?** | Permanent reference to the item. | [optional] +**NotifyCustomerAfterMinutes** | **int?** | Time in minutes, after which customer will receive retention voucher if he/she does not order | [optional] +**PercentDiscountAmount** | **int?** | Discount amount in percents | [optional] +**MaxDiscount** | **double?** | Maximum discount for percentage discounts | [optional] +**LumpDiscountAmount** | **double?** | Discount amount in sum of money | [optional] +**VoucherValidPeriodDays** | **int?** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **bool?** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **bool?** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **bool?** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **bool?** | Is campaign enabled | [optional] +**StoreIds** | **List<int?>** | Ids of stores this campaign applies to | [optional] +**AppId** | **string** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **bool?** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RetentionCampaignBase.md b/docs/RetentionCampaignBase.md new file mode 100644 index 00000000..0447bb5c --- /dev/null +++ b/docs/RetentionCampaignBase.md @@ -0,0 +1,20 @@ +# Flipdish.Model.RetentionCampaignBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NotifyCustomerAfterMinutes** | **int?** | Time in minutes, after which customer will receive retention voucher if he/she does not order | [optional] +**PercentDiscountAmount** | **int?** | Discount amount in percents | [optional] +**MaxDiscount** | **double?** | Maximum discount for percentage discounts | [optional] +**LumpDiscountAmount** | **double?** | Discount amount in sum of money | [optional] +**VoucherValidPeriodDays** | **int?** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **bool?** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **bool?** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **bool?** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **bool?** | Is campaign enabled | [optional] +**StoreIds** | **List<int?>** | Ids of stores this campaign applies to | [optional] +**AppId** | **string** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **bool?** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RetentionCampaignCreatedEvent.md b/docs/RetentionCampaignCreatedEvent.md new file mode 100644 index 00000000..4a23f77a --- /dev/null +++ b/docs/RetentionCampaignCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.RetentionCampaignCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RetentionCampaignDeletedEvent.md b/docs/RetentionCampaignDeletedEvent.md new file mode 100644 index 00000000..8c1b9b4d --- /dev/null +++ b/docs/RetentionCampaignDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.RetentionCampaignDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RetentionCampaignUpdatedEvent.md b/docs/RetentionCampaignUpdatedEvent.md new file mode 100644 index 00000000..46d97c81 --- /dev/null +++ b/docs/RetentionCampaignUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.RetentionCampaignUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | Info User | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | The retention campaign | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RevenueAdjustmentsDetails.md b/docs/RevenueAdjustmentsDetails.md new file mode 100644 index 00000000..131f25ae --- /dev/null +++ b/docs/RevenueAdjustmentsDetails.md @@ -0,0 +1,16 @@ +# Flipdish.Model.RevenueAdjustmentsDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesRefundedAmount** | **double?** | Online sales refunds | [optional] +**PosSalesRefundedAmount** | **double?** | POS Online sales refunds | [optional] +**CashSalesRefundedAmount** | **double?** | Cash sales refunds | [optional] +**CustomerCashFees** | **double?** | Customer cash fees | [optional] +**RefundsCount** | **int?** | Number of refunds | [optional] +**PayGreenSalesAmount** | **double?** | PayGreen sales | [optional] +**PayGreenProcessingFees** | **double?** | PayGreen processing fees charged to end-user | [optional] +**TotalOnlineRevenueAdjustments** | **double?** | Total revenue adjustments | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RevenueDetail.md b/docs/RevenueDetail.md new file mode 100644 index 00000000..eead07a6 --- /dev/null +++ b/docs/RevenueDetail.md @@ -0,0 +1,21 @@ +# Flipdish.Model.RevenueDetail +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesAmount** | **double?** | Online sales amount | [optional] +**OnlineSalesTax** | **double?** | Online sales tax | [optional] +**OnlineSalesIncludingTax** | **double?** | Online sales amount plus online sales tax | [optional] +**OnlineSalesFeesBaseAmount** | **double?** | Online sales base amount to calculate fees | [optional] +**CashSalesAmount** | **double?** | Cash sales amount | [optional] +**CashSalesTax** | **double?** | Cash sales tax | [optional] +**CashSalesIncludingTax** | **double?** | Cash sales amount plus online sales tax | [optional] +**CashSalesFeesBaseAmount** | **double?** | Online sales base amount to calculate fees | [optional] +**TotalSalesIncludingTax** | **double?** | Total Sales (online and cash) including tax | [optional] +**OnlineSalesDeliveryCharges** | **double?** | Delivery charges on online sales | [optional] +**OnlineSalesTips** | **double?** | Tips for online sales | [optional] +**TotalOnlineRevenue** | **double?** | Online sales plus online delivery charges and tips | [optional] +**OnlineSalesServiceCharges** | **double?** | Service charge on online sales | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SafeWaitHandle.md b/docs/SafeWaitHandle.md new file mode 100644 index 00000000..be330e86 --- /dev/null +++ b/docs/SafeWaitHandle.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SafeWaitHandle +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsInvalid** | **bool?** | | [optional] +**IsClosed** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SearchApi.md b/docs/SearchApi.md new file mode 100644 index 00000000..acd841a2 --- /dev/null +++ b/docs/SearchApi.md @@ -0,0 +1,82 @@ +# Flipdish.Api.SearchApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchRestaurants**](SearchApi.md#searchrestaurants) | **GET** /api/v1.0/search/restaurants | + + + +# **SearchRestaurants** +> RestApiPaginationResultRestaurant SearchRestaurants (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchRestaurantsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SearchApi(); + var query = query_example; // string | + var countryId = countryId_example; // string | + var includeArchivedStores = includeArchivedStores_example; // string | (optional) + var searchType = searchType_example; // string | (optional) + var publishedStatus = publishedStatus_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultRestaurant result = apiInstance.SearchRestaurants(query, countryId, includeArchivedStores, searchType, publishedStatus, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SearchApi.SearchRestaurants: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **string**| | + **countryId** | **string**| | + **includeArchivedStores** | **string**| | [optional] + **searchType** | **string**| | [optional] + **publishedStatus** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultRestaurant**](RestApiPaginationResultRestaurant.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SearchCriteria.md b/docs/SearchCriteria.md new file mode 100644 index 00000000..ceaf4743 --- /dev/null +++ b/docs/SearchCriteria.md @@ -0,0 +1,24 @@ +# Flipdish.Model.SearchCriteria +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limit** | **int?** | The maximum elements to return | [optional] +**Page** | **int?** | The index of the page to return, starting by 1 | [optional] +**Start** | **DateTime?** | Start date | [optional] +**End** | **DateTime?** | End date | [optional] +**OrderId** | **int?** | Events that have Order Id | [optional] +**StoreId** | **int?** | Events that have Store Id | [optional] +**StoreIdList** | **List<int?>** | Events that have Store Id List | [optional] +**StoreGroupId** | **int?** | Events that have Store Group Id | [optional] +**UserId** | **int?** | Events that have User Id | [optional] +**MenuId** | **int?** | Events that have Menu Id | [optional] +**CampaignId** | **int?** | Events that have Campaign Id | [optional] +**UserEmail** | **string** | Events that have User Email | [optional] +**UserName** | **string** | Events that have User Name | [optional] +**VoucherCode** | **string** | Events that have voucher code | [optional] +**EventType** | **List<string>** | Events that have event type\\s | [optional] +**FlipdishEventId** | **string** | Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SendUserPushNotificationRequest.md b/docs/SendUserPushNotificationRequest.md new file mode 100644 index 00000000..c79a3cf5 --- /dev/null +++ b/docs/SendUserPushNotificationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SendUserPushNotificationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **int?** | WhiteLabelId. | [optional] +**Message** | **string** | Message. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SendUserSmsRequest.md b/docs/SendUserSmsRequest.md new file mode 100644 index 00000000..42654109 --- /dev/null +++ b/docs/SendUserSmsRequest.md @@ -0,0 +1,11 @@ +# Flipdish.Model.SendUserSmsRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Message. | [optional] +**WhiteLabelId** | **int?** | WhiteLabelId. | [optional] +**FromNumber** | **string** | FromNumber. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ServiceCharge.md b/docs/ServiceCharge.md new file mode 100644 index 00000000..38c997c9 --- /dev/null +++ b/docs/ServiceCharge.md @@ -0,0 +1,14 @@ +# Flipdish.Model.ServiceCharge +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**PercentageValue** | **double?** | The Default Service Charge Value | [optional] +**Enabled** | **bool?** | Enable Service Charge for store true(on) / false(off) | [optional] +**IsOptional** | **bool?** | Sets the service charge to be optional | [optional] +**DisplayWithProcessingFee** | **bool?** | Display service charge together with processing fee | [optional] +**IncludesVouchers** | **bool?** | If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SetOrderBatchingConfiguration.md b/docs/SetOrderBatchingConfiguration.md new file mode 100644 index 00000000..ce6c2337 --- /dev/null +++ b/docs/SetOrderBatchingConfiguration.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SetOrderBatchingConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchIntervalInSeconds** | **int?** | Batch sending interval in seconds | [optional] +**Enabled** | **bool?** | OrderBatching is enabled or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SetUserDeliveryLocationCoordinatesRequest.md b/docs/SetUserDeliveryLocationCoordinatesRequest.md new file mode 100644 index 00000000..fa2bc44f --- /dev/null +++ b/docs/SetUserDeliveryLocationCoordinatesRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SetUserDeliveryLocationCoordinatesRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **double?** | Latitude. | [optional] +**Longitude** | **double?** | Longitude. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SetUserDeliveryLocationFieldRequest.md b/docs/SetUserDeliveryLocationFieldRequest.md new file mode 100644 index 00000000..430fed42 --- /dev/null +++ b/docs/SetUserDeliveryLocationFieldRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SetUserDeliveryLocationFieldRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | Which field to update. Omit or set to null for a validation error. | [optional] +**Value** | **string** | Value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SetV2FeeCalculationRequest.md b/docs/SetV2FeeCalculationRequest.md new file mode 100644 index 00000000..a4564938 --- /dev/null +++ b/docs/SetV2FeeCalculationRequest.md @@ -0,0 +1,9 @@ +# Flipdish.Model.SetV2FeeCalculationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **bool?** | Whether the V2 (tiered) fee calculation should be enabled for this Store. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SetVoucherValidityPeriodsSimplifiedRequest.md b/docs/SetVoucherValidityPeriodsSimplifiedRequest.md new file mode 100644 index 00000000..d7a46302 --- /dev/null +++ b/docs/SetVoucherValidityPeriodsSimplifiedRequest.md @@ -0,0 +1,11 @@ +# Flipdish.Model.SetVoucherValidityPeriodsSimplifiedRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DaysOfWeek** | **List<string>** | Days of week when the voucher is valid | [optional] +**StartTime** | **string** | Start time of the day when the voucher is valid | [optional] +**EndTime** | **string** | End time of the day when the voucher is valid. If the end time is before the start time, the end time is assumed to be the next day. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Setting.md b/docs/Setting.md new file mode 100644 index 00000000..4a5946ec --- /dev/null +++ b/docs/Setting.md @@ -0,0 +1,10 @@ +# Flipdish.Model.Setting +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | | [optional] +**Value** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SignupStep.md b/docs/SignupStep.md new file mode 100644 index 00000000..2175fea9 --- /dev/null +++ b/docs/SignupStep.md @@ -0,0 +1,11 @@ +# Flipdish.Model.SignupStep +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | Action needs to take | [optional] +**Question** | **string** | Question in case Action == Question | [optional] +**PredefinedAnswers** | [**List<PredefinedAnswer>**](PredefinedAnswer.md) | Predefined answer in case Action == Question | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SmsInfo.md b/docs/SmsInfo.md new file mode 100644 index 00000000..707aaaf1 --- /dev/null +++ b/docs/SmsInfo.md @@ -0,0 +1,11 @@ +# Flipdish.Model.SmsInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | Origin phone number | [optional] +**To** | **string** | Destination phone number | [optional] +**Text** | **string** | Text message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SmsProviderCredential.md b/docs/SmsProviderCredential.md new file mode 100644 index 00000000..b9fa995e --- /dev/null +++ b/docs/SmsProviderCredential.md @@ -0,0 +1,14 @@ +# Flipdish.Model.SmsProviderCredential +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | OrgId. | [optional] +**BrandId** | **string** | BrandId. | [optional] +**SmsServiceType** | **string** | SmsServiceType. | [optional] +**SenderId** | **string** | SenderId. | [optional] +**Username** | **string** | Username. | [optional] +**AuthToken** | **string** | AuthToken. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SmsProviderCredentialUpdateRequest.md b/docs/SmsProviderCredentialUpdateRequest.md new file mode 100644 index 00000000..a4e11a50 --- /dev/null +++ b/docs/SmsProviderCredentialUpdateRequest.md @@ -0,0 +1,11 @@ +# Flipdish.Model.SmsProviderCredentialUpdateRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderId** | **string** | SenderId. | [optional] +**Username** | **string** | Username. | [optional] +**AuthToken** | **string** | AuthToken. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SmsProviderCredentialsApi.md b/docs/SmsProviderCredentialsApi.md new file mode 100644 index 00000000..075a4938 --- /dev/null +++ b/docs/SmsProviderCredentialsApi.md @@ -0,0 +1,336 @@ +# Flipdish.Api.SmsProviderCredentialsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetBrandSmsProviderCredentialByServiceType**](SmsProviderCredentialsApi.md#getbrandsmsprovidercredentialbyservicetype) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +[**GetBrandSmsProviderCredentials**](SmsProviderCredentialsApi.md#getbrandsmsprovidercredentials) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials | +[**SmsProviderCredentialDelete**](SmsProviderCredentialsApi.md#smsprovidercredentialdelete) | **DELETE** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +[**SmsProviderCredentialUpdate**](SmsProviderCredentialsApi.md#smsprovidercredentialupdate) | **POST** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +[**SmsProviderCredentialsBulkUpsert**](SmsProviderCredentialsApi.md#smsprovidercredentialsbulkupsert) | **POST** /api/v1.0/sms-providers/bulk-upsert | + + + +# **GetBrandSmsProviderCredentialByServiceType** +> RestApiResultSmsProviderCredential GetBrandSmsProviderCredentialByServiceType (string orgId, string brandId, string serviceType, bool? withFallback = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBrandSmsProviderCredentialByServiceTypeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SmsProviderCredentialsApi(); + var orgId = orgId_example; // string | + var brandId = brandId_example; // string | + var serviceType = serviceType_example; // string | + var withFallback = true; // bool? | (optional) + + try + { + RestApiResultSmsProviderCredential result = apiInstance.GetBrandSmsProviderCredentialByServiceType(orgId, brandId, serviceType, withFallback); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SmsProviderCredentialsApi.GetBrandSmsProviderCredentialByServiceType: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **string**| | + **brandId** | **string**| | + **serviceType** | **string**| | + **withFallback** | **bool?**| | [optional] + +### Return type + +[**RestApiResultSmsProviderCredential**](RestApiResultSmsProviderCredential.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBrandSmsProviderCredentials** +> RestApiArrayResultSmsProviderCredential GetBrandSmsProviderCredentials (string orgId, string brandId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBrandSmsProviderCredentialsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SmsProviderCredentialsApi(); + var orgId = orgId_example; // string | + var brandId = brandId_example; // string | + + try + { + RestApiArrayResultSmsProviderCredential result = apiInstance.GetBrandSmsProviderCredentials(orgId, brandId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SmsProviderCredentialsApi.GetBrandSmsProviderCredentials: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **string**| | + **brandId** | **string**| | + +### Return type + +[**RestApiArrayResultSmsProviderCredential**](RestApiArrayResultSmsProviderCredential.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SmsProviderCredentialDelete** +> RestApiResultSmsProviderCredential SmsProviderCredentialDelete (string orgId, string brandId, string serviceType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SmsProviderCredentialDeleteExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SmsProviderCredentialsApi(); + var orgId = orgId_example; // string | + var brandId = brandId_example; // string | + var serviceType = serviceType_example; // string | + + try + { + RestApiResultSmsProviderCredential result = apiInstance.SmsProviderCredentialDelete(orgId, brandId, serviceType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SmsProviderCredentialsApi.SmsProviderCredentialDelete: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **string**| | + **brandId** | **string**| | + **serviceType** | **string**| | + +### Return type + +[**RestApiResultSmsProviderCredential**](RestApiResultSmsProviderCredential.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SmsProviderCredentialUpdate** +> RestApiResultSmsProviderCredential SmsProviderCredentialUpdate (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SmsProviderCredentialUpdateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SmsProviderCredentialsApi(); + var orgId = orgId_example; // string | + var brandId = brandId_example; // string | + var serviceType = serviceType_example; // string | + var credential = new SmsProviderCredentialUpdateRequest(); // SmsProviderCredentialUpdateRequest | + + try + { + RestApiResultSmsProviderCredential result = apiInstance.SmsProviderCredentialUpdate(orgId, brandId, serviceType, credential); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SmsProviderCredentialsApi.SmsProviderCredentialUpdate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **string**| | + **brandId** | **string**| | + **serviceType** | **string**| | + **credential** | [**SmsProviderCredentialUpdateRequest**](SmsProviderCredentialUpdateRequest.md)| | + +### Return type + +[**RestApiResultSmsProviderCredential**](RestApiResultSmsProviderCredential.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SmsProviderCredentialsBulkUpsert** +> RestApiArrayResultSmsProviderCredential SmsProviderCredentialsBulkUpsert (List credentials) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SmsProviderCredentialsBulkUpsertExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SmsProviderCredentialsApi(); + var credentials = new List(); // List | + + try + { + RestApiArrayResultSmsProviderCredential result = apiInstance.SmsProviderCredentialsBulkUpsert(credentials); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SmsProviderCredentialsApi.SmsProviderCredentialsBulkUpsert: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **credentials** | [**List<SmsProviderCredential>**](SmsProviderCredential.md)| | + +### Return type + +[**RestApiArrayResultSmsProviderCredential**](RestApiArrayResultSmsProviderCredential.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SmsReceivedEvent.md b/docs/SmsReceivedEvent.md new file mode 100644 index 00000000..3cb44fe6 --- /dev/null +++ b/docs/SmsReceivedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.SmsReceivedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**SmsInfo** | [**SmsInfo**](SmsInfo.md) | The sms info | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StatisticsCurrencyDataPoint.md b/docs/StatisticsCurrencyDataPoint.md new file mode 100644 index 00000000..31a1244d --- /dev/null +++ b/docs/StatisticsCurrencyDataPoint.md @@ -0,0 +1,12 @@ +# Flipdish.Model.StatisticsCurrencyDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | Currency | [optional] +**UserCount** | **int?** | Amount of users for this currency | [optional] +**OrderCount** | **int?** | Amount of orders for this currency | [optional] +**OrderValue** | **double?** | Value of orders for this currency | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Store.md b/docs/Store.md new file mode 100644 index 00000000..aae42926 --- /dev/null +++ b/docs/Store.md @@ -0,0 +1,60 @@ +# Flipdish.Model.Store +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**StoreGroupId** | **int?** | Store group id to which this store belongs | [optional] +**Address** | [**StoreAddress**](StoreAddress.md) | Store address | [optional] +**DeliveryZones** | [**List<DeliveryZone>**](DeliveryZone.md) | Delivery zones | [optional] +**ApmPhoneNumber** | **string** | Automated Phone Marketing number | [optional] +**PickupHours** | [**List<BusinessHoursPeriod>**](BusinessHoursPeriod.md) | Pickup hours | [optional] +**DeliveryHours** | [**List<BusinessHoursPeriod>**](BusinessHoursPeriod.md) | Delivery hours | [optional] +**MenuId** | **int?** | Menu identifier | [optional] +**OrderConfirmationMessageOverrideDelivery** | **string** | Overridden confirmation message for delivery orders | [optional] +**OrderConfirmationMessageOverridePickup** | **string** | Overridden confirmation message for pickup orders | [optional] +**PrintoutLayoutType** | **string** | Printout layout | [optional] +**StoreNotes** | [**List<StoreNote>**](StoreNote.md) | Store notes | [optional] +**MicrosoftTimeZone** | **string** | Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) | [optional] +**IanaTimeZone** | **string** | IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) | [optional] +**Currency** | **string** | Currency (derived from Store Group) | [optional] +**PreOrderDeliveryEnabled** | **bool?** | Is PerOrder Enabled for Delivery | [optional] +**PreOrderPickupEnabled** | **bool?** | Is PerOrder Enabled for Pickup | [optional] +**LogoUrl** | **string** | Url for logo image | [optional] +**FraudPreventionStrategy** | **string** | Fraud Prevention Strategy | [optional] +**AppIds** | **List<string>** | Store's app ids | [optional] +**PropertyId** | **string** | Property Id | [optional] +**PhoneNumber** | **string** | Phone number | [optional] +**AlwaysAppearOpen** | **bool?** | True if the store always appears open | [optional] +**PreOrderEnabled** | **bool?** | True if the store accepts pre-orders | [optional] +**TakeOutEnabled** | **bool?** | True if the store accepts take-out orders | [optional] +**TableServiceEnabled** | **bool?** | True if the store has table service | [optional] +**DineInEnabled** | **bool?** | True if the store accepts dine-in orders | [optional] +**AllowPreOrdersAndTableService** | **bool?** | True if both pre-orders and talbe service can be enabled | [optional] +**PickupEnabled** | **bool?** | True if the store accepts pickup orders | [optional] +**DeliveryEnabled** | **bool?** | True if the store accepts delivery orders | [optional] +**CardOrderDeliveryEnabled** | **bool?** | True if the store accepts card payment for delivery orders | [optional] +**CashOrdersDeliveryEnabled** | **bool?** | True if the store accepts cash payment for delivery orders | [optional] +**CardOrdersPickupEnabled** | **bool?** | True if the store accepts card payment for pickup orders | [optional] +**CashOrdersPickupEnabled** | **bool?** | True if the store accepts cash payment for pickup orders | [optional] +**TipsEnabled** | **bool?** | True if the store accepts tips | [optional] +**AutomaticallyAcceptOrders** | **bool?** | True if the stores orders are automatically accepted in Flipdish | [optional] +**OpenForDelivery** | **bool?** | True if the store is open for delivery | [optional] +**OpenForPickup** | **bool?** | True if the store is open for pickup | [optional] +**MinimumPickupOrderAmount** | **double?** | Minimum pickup order amount | [optional] +**RequireCustomerNameForPickup** | **bool?** | True if customer name required for pickup orders | [optional] +**GdprCustomerPhoneNumbers** | **bool?** | Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. | [optional] +**RequireCustomerNameForDelivery** | **bool?** | True if customer name required for delivery orders | [optional] +**AllowChefNotes** | **bool?** | True if the customer is allowed enter custom notes with their orders | [optional] +**EtaInPickupConfirmationSmsEnabled** | **bool?** | True if order confirmation sms includes estimated time when order will be ready for collection | [optional] +**EtaInDeliveryConfirmationSmsEnabled** | **bool?** | True if order confirmation sms includes estimated time when order will delivered | [optional] +**IsArchived** | **bool?** | Is the Store Archived | [optional] +**IsPublished** | **bool?** | Is the Store Published | [optional] +**Name** | **string** | Name | [optional] +**EmailAddress** | **string** | Email address (visible to customers) | [optional] +**StaffLanguage** | **string** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelTypes** | **List<string>** | Sales Channel Types | [optional] +**InheritanceConfigTypes** | **List<string>** | Inheritance Config Types | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreAddress.md b/docs/StoreAddress.md new file mode 100644 index 00000000..30b59778 --- /dev/null +++ b/docs/StoreAddress.md @@ -0,0 +1,18 @@ +# Flipdish.Model.StoreAddress +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressId** | **int?** | Address identifier | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Coordinate | [optional] +**Line1** | **string** | Address line 1 | [optional] +**Postcode** | **string** | Postcode | [optional] +**City** | **string** | City | [optional] +**CountryCode** | **string** | Country code (ISO-alpha2) | [optional] +**DisplayForCustomer** | **string** | Display for customer | [optional] +**AddressFields** | **Dictionary<string, Object>** | Dyanmic field/value pairs, defined by the form assigned to the given country code. | [optional] +**SingleLineDisplay** | **string** | Single line display i18n, may be empty for not supported countries | [optional] +**TwoLinesDisplay** | **List<string>** | Two line display i18n, may be empty for not supported countries | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreAddressBase.md b/docs/StoreAddressBase.md new file mode 100644 index 00000000..d3acb00a --- /dev/null +++ b/docs/StoreAddressBase.md @@ -0,0 +1,16 @@ +# Flipdish.Model.StoreAddressBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Line1** | **string** | Address line 1 | [optional] +**Postcode** | **string** | Postcode | [optional] +**City** | **string** | City | [optional] +**CountryCode** | **string** | Country code (ISO-alpha2) | [optional] +**DisplayForCustomer** | **string** | Display for customer | [optional] +**AddressFields** | **Dictionary<string, Object>** | Dyanmic field/value pairs, defined by the form assigned to the given country code. | [optional] +**SingleLineDisplay** | **string** | Single line display i18n, may be empty for not supported countries | [optional] +**TwoLinesDisplay** | **List<string>** | Two line display i18n, may be empty for not supported countries | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreAddressForm.md b/docs/StoreAddressForm.md new file mode 100644 index 00000000..4b6d31a7 --- /dev/null +++ b/docs/StoreAddressForm.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreAddressForm +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressFields** | **Dictionary<string, Object>** | The dynamic fields generated by the address form. | +**CountryCode** | **string** | ISO 2 letters code for the country, should be the same as the form that generates the fields. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreAddressUpdatedEvent.md b/docs/StoreAddressUpdatedEvent.md new file mode 100644 index 00000000..17065ce6 --- /dev/null +++ b/docs/StoreAddressUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreAddressUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store address | [optional] +**Description** | **string** | Description | [optional] +**StoreAddress** | [**StoreAddress**](StoreAddress.md) | Updated store address | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreArchivedEvent.md b/docs/StoreArchivedEvent.md new file mode 100644 index 00000000..bb1b8205 --- /dev/null +++ b/docs/StoreArchivedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreArchivedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which archived this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Archived Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreBase.md b/docs/StoreBase.md new file mode 100644 index 00000000..1267f209 --- /dev/null +++ b/docs/StoreBase.md @@ -0,0 +1,39 @@ +# Flipdish.Model.StoreBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | Phone number | [optional] +**AlwaysAppearOpen** | **bool?** | True if the store always appears open | [optional] +**PreOrderEnabled** | **bool?** | True if the store accepts pre-orders | [optional] +**TakeOutEnabled** | **bool?** | True if the store accepts take-out orders | [optional] +**TableServiceEnabled** | **bool?** | True if the store has table service | [optional] +**DineInEnabled** | **bool?** | True if the store accepts dine-in orders | [optional] +**AllowPreOrdersAndTableService** | **bool?** | True if both pre-orders and talbe service can be enabled | [optional] +**PickupEnabled** | **bool?** | True if the store accepts pickup orders | [optional] +**DeliveryEnabled** | **bool?** | True if the store accepts delivery orders | [optional] +**CardOrderDeliveryEnabled** | **bool?** | True if the store accepts card payment for delivery orders | [optional] +**CashOrdersDeliveryEnabled** | **bool?** | True if the store accepts cash payment for delivery orders | [optional] +**CardOrdersPickupEnabled** | **bool?** | True if the store accepts card payment for pickup orders | [optional] +**CashOrdersPickupEnabled** | **bool?** | True if the store accepts cash payment for pickup orders | [optional] +**TipsEnabled** | **bool?** | True if the store accepts tips | [optional] +**AutomaticallyAcceptOrders** | **bool?** | True if the stores orders are automatically accepted in Flipdish | [optional] +**OpenForDelivery** | **bool?** | True if the store is open for delivery | [optional] +**OpenForPickup** | **bool?** | True if the store is open for pickup | [optional] +**MinimumPickupOrderAmount** | **double?** | Minimum pickup order amount | [optional] +**RequireCustomerNameForPickup** | **bool?** | True if customer name required for pickup orders | [optional] +**GdprCustomerPhoneNumbers** | **bool?** | Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. | [optional] +**RequireCustomerNameForDelivery** | **bool?** | True if customer name required for delivery orders | [optional] +**AllowChefNotes** | **bool?** | True if the customer is allowed enter custom notes with their orders | [optional] +**EtaInPickupConfirmationSmsEnabled** | **bool?** | True if order confirmation sms includes estimated time when order will be ready for collection | [optional] +**EtaInDeliveryConfirmationSmsEnabled** | **bool?** | True if order confirmation sms includes estimated time when order will delivered | [optional] +**IsArchived** | **bool?** | Is the Store Archived | [optional] +**IsPublished** | **bool?** | Is the Store Published | [optional] +**Name** | **string** | Name | [optional] +**EmailAddress** | **string** | Email address (visible to customers) | [optional] +**StaffLanguage** | **string** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelTypes** | **List<string>** | Sales Channel Types | [optional] +**InheritanceConfigTypes** | **List<string>** | Inheritance Config Types | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreBusinessHoursOverrideCreatedEvent.md b/docs/StoreBusinessHoursOverrideCreatedEvent.md new file mode 100644 index 00000000..d03ef5d2 --- /dev/null +++ b/docs/StoreBusinessHoursOverrideCreatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreBusinessHoursOverrideCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Business Hours Override | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreBusinessHoursOverrideDeletedEvent.md b/docs/StoreBusinessHoursOverrideDeletedEvent.md new file mode 100644 index 00000000..76f4e3e1 --- /dev/null +++ b/docs/StoreBusinessHoursOverrideDeletedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreBusinessHoursOverrideDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | Business Hours Override | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreCampaignStartTime.md b/docs/StoreCampaignStartTime.md new file mode 100644 index 00000000..a920e751 --- /dev/null +++ b/docs/StoreCampaignStartTime.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreCampaignStartTime +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store Id | [optional] +**TsStart** | **DateTime?** | Campaign start time in Utc | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreChannelAssignment.md b/docs/StoreChannelAssignment.md new file mode 100644 index 00000000..a619b6d0 --- /dev/null +++ b/docs/StoreChannelAssignment.md @@ -0,0 +1,11 @@ +# Flipdish.Model.StoreChannelAssignment +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **int?** | Channel ID | [optional] +**StoreId** | **int?** | Store ID | [optional] +**StoreName** | **string** | Store Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreCloneSettings.md b/docs/StoreCloneSettings.md new file mode 100644 index 00000000..07a2717c --- /dev/null +++ b/docs/StoreCloneSettings.md @@ -0,0 +1,9 @@ +# Flipdish.Model.StoreCloneSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TargetStoreGroupId** | **int?** | If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreCollectionSettings.md b/docs/StoreCollectionSettings.md new file mode 100644 index 00000000..3de70ddb --- /dev/null +++ b/docs/StoreCollectionSettings.md @@ -0,0 +1,14 @@ +# Flipdish.Model.StoreCollectionSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PickupEnabled** | **bool?** | True if the store accepts pickup orders | +**MinimumPickupOrderAmount** | **double?** | Minimum pickup order amount | +**RequireCustomerNameForPickup** | **bool?** | True if customer name required for pickup orders | +**CashOrdersPickupEnabled** | **bool?** | True if the store accepts cash payment for pickup orders | +**LeadTimeMinutes** | **int?** | Auto accept lead time for collection orders | +**EtaInPickupConfirmationSmsEnabled** | **bool?** | True if order confirmation sms includes estimated time when order will be ready for collection | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreConfig.md b/docs/StoreConfig.md new file mode 100644 index 00000000..cd954e5e --- /dev/null +++ b/docs/StoreConfig.md @@ -0,0 +1,14 @@ +# Flipdish.Model.StoreConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PickupEnabled** | **bool?** | True if the store accepts pickup orders | [optional] +**BankAccountAttached** | **bool?** | True if the store has a Bank Account attached | [optional] +**MenuAssigned** | **bool?** | True if the store is assigned to a Menu | [optional] +**HasFullAddress** | **bool?** | True if the store has a valid Address | [optional] +**PickupHours** | **bool?** | True if the store has Pickup hours | [optional] +**IsPublished** | **bool?** | Is the Store Published | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreCreateBase.md b/docs/StoreCreateBase.md new file mode 100644 index 00000000..37f70f22 --- /dev/null +++ b/docs/StoreCreateBase.md @@ -0,0 +1,13 @@ +# Flipdish.Model.StoreCreateBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name | [optional] +**EmailAddress** | **string** | Email address (visible to customers) | [optional] +**StaffLanguage** | **string** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelType** | **string** | Sales Channel Type | [optional] +**PhoneNumber** | **string** | Phone Number | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreCreatedEvent.md b/docs/StoreCreatedEvent.md new file mode 100644 index 00000000..460f6781 --- /dev/null +++ b/docs/StoreCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Created Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreDataPoint.md b/docs/StoreDataPoint.md new file mode 100644 index 00000000..3157d680 --- /dev/null +++ b/docs/StoreDataPoint.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | **DateTime?** | Day | [optional] +**Value** | **double?** | Value for the day | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreDeletedEvent.md b/docs/StoreDeletedEvent.md new file mode 100644 index 00000000..0dee68af --- /dev/null +++ b/docs/StoreDeletedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Deleted Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreDeliveryZoneFeeConfig.md b/docs/StoreDeliveryZoneFeeConfig.md new file mode 100644 index 00000000..abcf8747 --- /dev/null +++ b/docs/StoreDeliveryZoneFeeConfig.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreDeliveryZoneFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryZoneId** | **int?** | ID of the delivery zone this fee corresponds to | [optional] +**Fee** | **double?** | Fee for delivery within this zone | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md b/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md new file mode 100644 index 00000000..9b7c8e57 --- /dev/null +++ b/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md @@ -0,0 +1,9 @@ +# Flipdish.Model.StoreDeliveryZoneFeeConfigUpdateRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryZoneFees** | [**List<StoreDeliveryZoneFeeConfig>**](StoreDeliveryZoneFeeConfig.md) | Delivery zone fees to update | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreEndOfDayReport.md b/docs/StoreEndOfDayReport.md new file mode 100644 index 00000000..b70024dc --- /dev/null +++ b/docs/StoreEndOfDayReport.md @@ -0,0 +1,34 @@ +# Flipdish.Model.StoreEndOfDayReport +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store Id | [optional] +**StoreName** | **string** | Store name | [optional] +**Currency** | **string** | Currency | [optional] +**OrderCount** | **int?** | Order Count | [optional] +**OrderValue** | **double?** | Order Value | [optional] +**OrderValueExcludingDeliveryFees** | **double?** | Order Value Excluding Delivery Fees | [optional] +**CollectionOrderCount** | **int?** | Collection Order Count | [optional] +**CollectionCashOrderCount** | **int?** | Collection Cash Order Count | [optional] +**CollectionPaidOnlineOrderCount** | **int?** | Collection Paid Online Order Count | [optional] +**CollectionOrderValue** | **double?** | Collection Order Value | [optional] +**CollectionCashOrderValue** | **double?** | Collection Cash Order Value | [optional] +**CollectionPaidOnlineOrderValue** | **double?** | Collection Paid Online Order Value | [optional] +**DeliveryOrderCount** | **int?** | Delivery Order Count | [optional] +**DeliveryCashOrderCount** | **int?** | Delivery Cash Order Count | [optional] +**DeliveryPaidOnlineOrderCount** | **int?** | Delivery Paid Online Order Count | [optional] +**DeliveryOrderValue** | **double?** | Delivery Order Value | [optional] +**DeliveryCashOrderValue** | **double?** | Delivery Cash Order Value | [optional] +**DeliveryPaidOnlineOrderValue** | **double?** | Delivery Paid Online Order Value | [optional] +**PaidOnlineOrderCount** | **int?** | Paid Online Order Count | [optional] +**CashOrderCount** | **int?** | Cash Order Count | [optional] +**PaidOnlineOrderValue** | **double?** | Paid Online Order Value | [optional] +**CashOrderValue** | **double?** | Cash Order Value | [optional] +**PaidOnlineOrderValueExcludingDeliveryFees** | **double?** | Paid Online Order Value Excluding Delivery Fees | [optional] +**CashOrderValueExcludingDeliveryFees** | **double?** | Cash Order Value Excluding Delivery Fees | [optional] +**StartTime** | **DateTime?** | Start Time | [optional] +**EndTime** | **DateTime?** | End Time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreFeeConfig.md b/docs/StoreFeeConfig.md new file mode 100644 index 00000000..9f65a3b9 --- /dev/null +++ b/docs/StoreFeeConfig.md @@ -0,0 +1,61 @@ +# Flipdish.Model.StoreFeeConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeeConfigId** | **int?** | | [optional] +**StoreId** | **int?** | | [optional] +**StartTime** | **DateTime?** | | [optional] +**PercentFeeCardOrders** | **double?** | | [optional] +**PercentFeeCashOrders** | **double?** | | [optional] +**PercentFeeCardOrdersWeb** | **double?** | | [optional] +**PercentFeeCashOrdersWeb** | **double?** | | [optional] +**PercentFeeCardOrdersKiosk** | **double?** | | [optional] +**PercentFeeCashOrdersKiosk** | **double?** | | [optional] +**FixedFeeCardOrdersKiosk** | **double?** | | [optional] +**FixedFeeCashOrdersKiosk** | **double?** | | [optional] +**PercentFeeCardOrdersKioskChargedToCustomerIncludingVat** | **double?** | | [optional] +**FixedFeeCardOrdersKioskChargedToCustomerIncludingVat** | **double?** | | [optional] +**PercentFeeCashOrdersKioskChargedToCustomerIncludingVat** | **double?** | | [optional] +**FixedFeeCashOrdersKioskChargedToCustomerIncludingVat** | **double?** | | [optional] +**FixedFeeCardOrders** | **double?** | | [optional] +**FixedFeeCashOrders** | **double?** | | [optional] +**PercentFeeCardOrdersChargedToCustomerIncludingVat** | **double?** | | [optional] +**FixedFeeCardOrdersChargedToCustomerIncludingVat** | **double?** | | [optional] +**PercentFeeCashOrdersChargedToCustomerIncludingVat** | **double?** | | [optional] +**FixedFeeCashOrdersChargedToCustomerIncludingVat** | **double?** | | [optional] +**PercentFeeTips** | **double?** | Gets or sets the percent fee tips. | [optional] +**PercentFeeTipsCollection** | **double?** | Gets or sets the percent fee tips for collection. | [optional] +**PercentFeeTipsDelivery** | **double?** | Gets or sets the percent fee tips for delivery. | [optional] +**TaxRatePercent** | **double?** | Gets or sets the tax rate percent. | [optional] +**PercentFeeCardOrdersLocationService** | **double?** | Gets or sets the percent fee card orders location service. | [optional] +**PercentFeeCashOrdersLocationService** | **double?** | Gets or sets the percent fee cash orders location service. | [optional] +**FixedFeeCardOrdersLocationService** | **double?** | Gets or sets the fixed fee card orders location service. | [optional] +**FixedFeeCashOrdersLocationService** | **double?** | Gets or sets the fixed fee cash orders location service. | [optional] +**PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat** | **double?** | Gets or sets the percent fee card orders location service charged to customer including vat. | [optional] +**PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat** | **double?** | Gets or sets the percent fee cash orders location service charged to customer including vat. | [optional] +**FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat** | **double?** | Gets or sets the fixed fee card orders location service charged to customer including vat. | [optional] +**FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat** | **double?** | Gets or sets the fixed fee cash orders location service charged to customer including vat. | [optional] +**PercentFeeCardOrdersIngest** | **double?** | Gets or sets the percent fee card orders ingest. | [optional] +**PercentFeeCashOrdersIngest** | **double?** | Gets or sets the percent fee cash orders ingest. | [optional] +**FixedFeeCardOrdersIngest** | **double?** | Gets or sets the fixed fee card orders ingest. | [optional] +**FixedFeeCashOrdersIngest** | **double?** | Gets or sets the fixed fee cash orders ingest. | [optional] +**PercentFeeDelivery** | **double?** | Gets or sets the percent fee for delivery orders. | [optional] +**FixedFeeDelivery** | **double?** | Gets or sets the fixed fee for delivery orders. | [optional] +**PercentFeeCardPosTransaction** | **double?** | Gets or sets the percent fee for POS transactions. | [optional] +**FixedFeeCardPosTransaction** | **double?** | Gets or sets the fixed fee for POS transactions. | [optional] +**PercentFeeOrderWithGoogle** | **double?** | Additional percentage fee charged on orders submitted through Order With Google | [optional] +**FixedFeeOrderWithGoogle** | **double?** | Additional fixed fee charged on orders submitted through Order With Google | [optional] +**ShouldNotAutoIncreaseBefore** | **DateTime?** | Should not auto increase fees before this date | [optional] +**Reason** | **string** | Reason for the last fee change (optional) | [optional] +**PercentFeeCardOrdersPhoneAgent** | **double?** | Gets or sets the percent fee card orders phone agent. | [optional] +**PercentFeeCashOrdersPhoneAgent** | **double?** | Gets or sets the percent fee cash orders phone agent. | [optional] +**FixedFeeCardOrdersPhoneAgent** | **double?** | Gets or sets the fixed fee card orders phone agent. | [optional] +**FixedFeeCashOrdersPhoneAgent** | **double?** | Gets or sets the fixed fee cash orders phone agent. | [optional] +**PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat** | **double?** | Gets or sets the percent fee card orders phone agent charged to customer including vat. | [optional] +**PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat** | **double?** | Gets or sets the percent fee cash orders phone agent charged to customer including vat. | [optional] +**FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat** | **double?** | Gets or sets the fixed fee card orders phone agent charged to customer including vat. | [optional] +**FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat** | **double?** | Gets or sets the fixed fee cash orders phone agent charged to customer including vat. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreFeeConfigUpdatedEvent.md b/docs/StoreFeeConfigUpdatedEvent.md new file mode 100644 index 00000000..2930498a --- /dev/null +++ b/docs/StoreFeeConfigUpdatedEvent.md @@ -0,0 +1,23 @@ +# Flipdish.Model.StoreFeeConfigUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store address | [optional] +**Description** | **string** | Description | [optional] +**Changes** | **string** | Diff between before and after | [optional] +**StoreFeeConfig** | [**StoreFeeConfig**](StoreFeeConfig.md) | Store fee config | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroup.md b/docs/StoreGroup.md new file mode 100644 index 00000000..abef4942 --- /dev/null +++ b/docs/StoreGroup.md @@ -0,0 +1,16 @@ +# Flipdish.Model.StoreGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreGroupId** | **int?** | Unique Store Group Identifier | [optional] +**GeneralRating** | **double?** | Store Group rating | [optional] +**GeneralRatingCount** | **int?** | Store Group rating count | [optional] +**DeliveryMenuMessage** | **string** | Delivery menu message | [optional] +**PickupMenuMessage** | **string** | Pickup menu message | [optional] +**BrandIds** | **List<string>** | List of brand ids (AppIds) that are associated with this store group | [optional] +**Name** | **string** | Store Group Name | [optional] +**Currency** | **string** | Currency used by the stores in this group | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupBase.md b/docs/StoreGroupBase.md new file mode 100644 index 00000000..537fbf81 --- /dev/null +++ b/docs/StoreGroupBase.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreGroupBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Store Group Name | [optional] +**Currency** | **string** | Currency used by the stores in this group | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupCreatedEvent.md b/docs/StoreGroupCreatedEvent.md new file mode 100644 index 00000000..8884a864 --- /dev/null +++ b/docs/StoreGroupCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreGroupCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreGroupId** | **int?** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this store group | [optional] +**Description** | **string** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Created store group | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupDeletedEvent.md b/docs/StoreGroupDeletedEvent.md new file mode 100644 index 00000000..18a066ae --- /dev/null +++ b/docs/StoreGroupDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreGroupDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreGroupId** | **int?** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this store group | [optional] +**Description** | **string** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Deleted store group | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupExtended.md b/docs/StoreGroupExtended.md new file mode 100644 index 00000000..1b2fbe51 --- /dev/null +++ b/docs/StoreGroupExtended.md @@ -0,0 +1,19 @@ +# Flipdish.Model.StoreGroupExtended +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalStores** | **int?** | Total Amount of Stores | [optional] +**GroupedCoordinates** | [**List<GroupedCoordinates>**](GroupedCoordinates.md) | Grouped store coordinates | [optional] +**StoreHeaders** | [**List<StoreHeader>**](StoreHeader.md) | Store Headers associated with Store Group | [optional] +**StoreGroupId** | **int?** | Unique Store Group Identifier | [optional] +**GeneralRating** | **double?** | Store Group rating | [optional] +**GeneralRatingCount** | **int?** | Store Group rating count | [optional] +**DeliveryMenuMessage** | **string** | Delivery menu message | [optional] +**PickupMenuMessage** | **string** | Pickup menu message | [optional] +**BrandIds** | **List<string>** | List of brand ids (AppIds) that are associated with this store group | [optional] +**Name** | **string** | Store Group Name | [optional] +**Currency** | **string** | Currency used by the stores in this group | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupUpdatedEvent.md b/docs/StoreGroupUpdatedEvent.md new file mode 100644 index 00000000..ebdbccdc --- /dev/null +++ b/docs/StoreGroupUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreGroupUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreGroupId** | **int?** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store group | [optional] +**Description** | **string** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | Updated store group | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreGroupsApi.md b/docs/StoreGroupsApi.md new file mode 100644 index 00000000..1e44dd2d --- /dev/null +++ b/docs/StoreGroupsApi.md @@ -0,0 +1,525 @@ +# Flipdish.Api.StoreGroupsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AssignStoresToStoreGroup**](StoreGroupsApi.md#assignstorestostoregroup) | **POST** /api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores | +[**CreateStoreGroup**](StoreGroupsApi.md#createstoregroup) | **POST** /api/v1.0/{appNameId}/storegroups | +[**GetStoreGroup**](StoreGroupsApi.md#getstoregroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | +[**GetStoreGroups**](StoreGroupsApi.md#getstoregroups) | **GET** /api/v1.0/{appNameId}/storegroups | +[**GetStoreGroupsExtended**](StoreGroupsApi.md#getstoregroupsextended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | +[**RemoveStoreGroup**](StoreGroupsApi.md#removestoregroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | +[**SetCustomerMessages**](StoreGroupsApi.md#setcustomermessages) | **POST** /api/v1.0/storegroups/{storeGroupId}/CustomerMessages | +[**UpdateStoreGroup**](StoreGroupsApi.md#updatestoregroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | + + + +# **AssignStoresToStoreGroup** +> void AssignStoresToStoreGroup (string appId, int? storeGroupId, List storeIds) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignStoresToStoreGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var appId = appId_example; // string | + var storeGroupId = 56; // int? | + var storeIds = ; // List | + + try + { + apiInstance.AssignStoresToStoreGroup(appId, storeGroupId, storeIds); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.AssignStoresToStoreGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeGroupId** | **int?**| | + **storeIds** | **List<int?>**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateStoreGroup** +> RestApiResultStoreGroup CreateStoreGroup (string appNameId, StoreGroupBase storeGroup) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateStoreGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var appNameId = appNameId_example; // string | + var storeGroup = new StoreGroupBase(); // StoreGroupBase | + + try + { + RestApiResultStoreGroup result = apiInstance.CreateStoreGroup(appNameId, storeGroup); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.CreateStoreGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **string**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | + +### Return type + +[**RestApiResultStoreGroup**](RestApiResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreGroup** +> RestApiResultStoreGroup GetStoreGroup (int? storeGroupId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var storeGroupId = 56; // int? | + + try + { + RestApiResultStoreGroup result = apiInstance.GetStoreGroup(storeGroupId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.GetStoreGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + +### Return type + +[**RestApiResultStoreGroup**](RestApiResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreGroups** +> RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreGroupsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var appNameId = appNameId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultStoreGroup result = apiInstance.GetStoreGroups(appNameId, searchQuery, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.GetStoreGroups: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **string**| | + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreGroup**](RestApiPaginationResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreGroupsExtended** +> RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreGroupsExtendedExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var appNameId = appNameId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var groupingRadius = 56; // int? | (optional) + + try + { + RestApiPaginationResultStoreGroupExtended result = apiInstance.GetStoreGroupsExtended(appNameId, searchQuery, page, limit, groupingRadius); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.GetStoreGroupsExtended: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **string**| | + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **groupingRadius** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreGroupExtended**](RestApiPaginationResultStoreGroupExtended.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveStoreGroup** +> void RemoveStoreGroup (int? storeGroupId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveStoreGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var storeGroupId = 56; // int? | + + try + { + apiInstance.RemoveStoreGroup(storeGroupId); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.RemoveStoreGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetCustomerMessages** +> void SetCustomerMessages (int? storeGroupId, CustomerMessages customerMessages) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetCustomerMessagesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var storeGroupId = 56; // int? | + var customerMessages = new CustomerMessages(); // CustomerMessages | + + try + { + apiInstance.SetCustomerMessages(storeGroupId, customerMessages); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.SetCustomerMessages: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + **customerMessages** | [**CustomerMessages**](CustomerMessages.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStoreGroup** +> RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGroupBase storeGroup) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreGroupExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreGroupsApi(); + var storeGroupId = 56; // int? | + var storeGroup = new StoreGroupBase(); // StoreGroupBase | + + try + { + RestApiResultStoreGroupBase result = apiInstance.UpdateStoreGroup(storeGroupId, storeGroup); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreGroupsApi.UpdateStoreGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | + +### Return type + +[**RestApiResultStoreGroupBase**](RestApiResultStoreGroupBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StoreHeader.md b/docs/StoreHeader.md new file mode 100644 index 00000000..16d0462d --- /dev/null +++ b/docs/StoreHeader.md @@ -0,0 +1,11 @@ +# Flipdish.Model.StoreHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**Name** | **string** | Name | [optional] +**Category** | **string** | Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreItemHeader.md b/docs/StoreItemHeader.md new file mode 100644 index 00000000..e19ca061 --- /dev/null +++ b/docs/StoreItemHeader.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreItemHeader +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | | [optional] +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreKioskSetting.md b/docs/StoreKioskSetting.md new file mode 100644 index 00000000..7719b609 --- /dev/null +++ b/docs/StoreKioskSetting.md @@ -0,0 +1,17 @@ +# Flipdish.Model.StoreKioskSetting +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KioskSettingId** | **int?** | Kiosk setting id | [optional] +**KioskName** | **string** | Store kiosk name | [optional] +**RequireCustomerName** | **bool?** | Require customer name flag | [optional] +**RequireCustomerPhoneNumber** | **bool?** | Require customer phone number flag | [optional] +**RequestCustomerPhoneNumber** | **bool?** | Request customer phone number flag (Option to Skip) | [optional] +**RequestTableNumber** | **bool?** | Request table number flag | [optional] +**OfferDineInOrTakeawayOption** | **bool?** | Offer Dine-In/Takeaway option flag | [optional] +**PhysicalRestaurantId** | **int?** | Physical restaurant id | [optional] +**HydraConfigId** | **int?** | Hydra config id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreKioskSettingUpdatedEvent.md b/docs/StoreKioskSettingUpdatedEvent.md new file mode 100644 index 00000000..d27d946e --- /dev/null +++ b/docs/StoreKioskSettingUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreKioskSettingUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**StoreKioskSetting** | [**StoreKioskSetting**](StoreKioskSetting.md) | Store kiosk settings | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreListItem.md b/docs/StoreListItem.md new file mode 100644 index 00000000..f85a8be3 --- /dev/null +++ b/docs/StoreListItem.md @@ -0,0 +1,15 @@ +# Flipdish.Model.StoreListItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store Id | [optional] +**StoreName** | **string** | Store Name | [optional] +**StoreGroupId** | **int?** | Store Group Id | [optional] +**StoreGroupName** | **string** | Store Group Name | [optional] +**HasLoyaltyCampaign** | **bool?** | Store has loyalty campaign | [optional] +**HasRetentionCampaign** | **bool?** | Store has retention campaign | [optional] +**IsPublished** | **bool?** | Is Published store | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreLogoCreatedEvent.md b/docs/StoreLogoCreatedEvent.md new file mode 100644 index 00000000..821604fa --- /dev/null +++ b/docs/StoreLogoCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreLogoCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | ID of store that the logo has been added to | [optional] +**LogoUrl** | **string** | Url of logo | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who added the logo | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreLogoDeletedEvent.md b/docs/StoreLogoDeletedEvent.md new file mode 100644 index 00000000..a11ecc36 --- /dev/null +++ b/docs/StoreLogoDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.StoreLogoDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | ID of store that the logo has been added to | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who removed the logo | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreLogoUpdatedEvent.md b/docs/StoreLogoUpdatedEvent.md new file mode 100644 index 00000000..df8e1754 --- /dev/null +++ b/docs/StoreLogoUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreLogoUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | ID of store that the logo has been added to | [optional] +**LogoUrl** | **string** | Url of logo | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who updated the logo | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreMenuAssignedEvent.md b/docs/StoreMenuAssignedEvent.md new file mode 100644 index 00000000..61cf7808 --- /dev/null +++ b/docs/StoreMenuAssignedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreMenuAssignedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**MenuId** | **int?** | MenuId Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who assigned the menu to the store | [optional] +**Description** | **string** | Description | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreNote.md b/docs/StoreNote.md new file mode 100644 index 00000000..216aba0e --- /dev/null +++ b/docs/StoreNote.md @@ -0,0 +1,11 @@ +# Flipdish.Model.StoreNote +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **int?** | User identifier | [optional] +**CreateTime** | **DateTime?** | Create time | [optional] +**Note** | **string** | Note | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreOpeningHoursUpdatedEvent.md b/docs/StoreOpeningHoursUpdatedEvent.md new file mode 100644 index 00000000..0db9e800 --- /dev/null +++ b/docs/StoreOpeningHoursUpdatedEvent.md @@ -0,0 +1,25 @@ +# Flipdish.Model.StoreOpeningHoursUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated opening hours for this store | [optional] +**DeliveryType** | **string** | Type of opening hours Delivery / Pickup | [optional] +**DeliveryTypeString** | **string** | Type of opening hours Delivery / Pickup as a string | [optional] +**BusinessHoursPeriodOld** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | The period that was updated | [optional] +**BusinessHoursPeriod** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | The new values of the period | [optional] +**Description** | **string** | Description | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreOrderCapacityApi.md b/docs/StoreOrderCapacityApi.md new file mode 100644 index 00000000..8c301235 --- /dev/null +++ b/docs/StoreOrderCapacityApi.md @@ -0,0 +1,141 @@ +# Flipdish.Api.StoreOrderCapacityApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetStoreOrderCapacity**](StoreOrderCapacityApi.md#getstoreordercapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | +[**UpdateStoreOrderCapacityConfig**](StoreOrderCapacityApi.md#updatestoreordercapacityconfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | + + + +# **GetStoreOrderCapacity** +> RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId, int? storeId, string deliveryType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreOrderCapacityExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreOrderCapacityApi(); + var appId = appId_example; // string | + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + + try + { + RestApiResultStoreOrderCapacityConfig result = apiInstance.GetStoreOrderCapacity(appId, storeId, deliveryType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreOrderCapacityApi.GetStoreOrderCapacity: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | **int?**| | + **deliveryType** | **string**| | + +### Return type + +[**RestApiResultStoreOrderCapacityConfig**](RestApiResultStoreOrderCapacityConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStoreOrderCapacityConfig** +> void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreOrderCapacityConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoreOrderCapacityApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var newOrderCapacityConfig = new StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel | + var appId = appId_example; // string | + + try + { + apiInstance.UpdateStoreOrderCapacityConfig(storeId, deliveryType, newOrderCapacityConfig, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoreOrderCapacityApi.UpdateStoreOrderCapacityConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + **newOrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md)| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StoreOrderCapacityConfig.md b/docs/StoreOrderCapacityConfig.md new file mode 100644 index 00000000..d837c201 --- /dev/null +++ b/docs/StoreOrderCapacityConfig.md @@ -0,0 +1,12 @@ +# Flipdish.Model.StoreOrderCapacityConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**DeliveryType** | **string** | Signifies whether the order capacity configuration is for Delivery / Pickup | [optional] +**StoreIntervalInMinutes** | **int?** | Store Interval - time between orders, e.g. 10 minutes between each order time available to customer | [optional] +**OrderCapacityPeriods** | [**List<StoreOrderCapacityPeriod>**](StoreOrderCapacityPeriod.md) | Order capacity periods | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreOrderCapacityConfigEditModel.md b/docs/StoreOrderCapacityConfigEditModel.md new file mode 100644 index 00000000..314c8fa2 --- /dev/null +++ b/docs/StoreOrderCapacityConfigEditModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.StoreOrderCapacityConfigEditModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderCapacityPeriods** | [**List<StoreOrderCapacityPeriod>**](StoreOrderCapacityPeriod.md) | Order capacity periods | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreOrderCapacityPeriod.md b/docs/StoreOrderCapacityPeriod.md new file mode 100644 index 00000000..12f04a6b --- /dev/null +++ b/docs/StoreOrderCapacityPeriod.md @@ -0,0 +1,14 @@ +# Flipdish.Model.StoreOrderCapacityPeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxOrderNumberPerStoreInterval** | **int?** | The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders. | [optional] +**DayOfTheWeek** | **string** | Day of the week the period pertains to | [optional] +**PeriodStartHour** | **int?** | The hour the period starts at | [optional] +**PeriodStartMinutes** | **int?** | The minutes after the hour the period starts at | [optional] +**PeriodEndHour** | **int?** | The hour the period ends at | [optional] +**PeriodEndMinutes** | **int?** | The minutes after the hour the period ends at | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StorePreOrderConfigUpdatedEvent.md b/docs/StorePreOrderConfigUpdatedEvent.md new file mode 100644 index 00000000..4e29e481 --- /dev/null +++ b/docs/StorePreOrderConfigUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StorePreOrderConfigUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted delivery zone for this store | [optional] +**Description** | **string** | Description | [optional] +**PreOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md) | Pre Order Configuration | [optional] +**OldPreOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md) | Old Pre Order Configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StorePublishedEvent.md b/docs/StorePublishedEvent.md new file mode 100644 index 00000000..b1677249 --- /dev/null +++ b/docs/StorePublishedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StorePublishedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which published this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Published Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreServiceChargeUpdatedEvent.md b/docs/StoreServiceChargeUpdatedEvent.md new file mode 100644 index 00000000..3c2f8fbd --- /dev/null +++ b/docs/StoreServiceChargeUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreServiceChargeUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which made the update | [optional] +**Description** | **string** | Description | [optional] +**ServiceCharge** | [**ServiceCharge**](ServiceCharge.md) | Service Charge Configuration | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreStatistics.md b/docs/StoreStatistics.md new file mode 100644 index 00000000..71fb0535 --- /dev/null +++ b/docs/StoreStatistics.md @@ -0,0 +1,10 @@ +# Flipdish.Model.StoreStatistics +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store Id | [optional] +**Data** | [**List<StoreDataPoint>**](StoreDataPoint.md) | Store Data Points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreSummary.md b/docs/StoreSummary.md new file mode 100644 index 00000000..eb4dc9bb --- /dev/null +++ b/docs/StoreSummary.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Store identifier | [optional] +**Name** | **string** | Store name | [optional] +**MenuId** | **int?** | Stores menu identifier | [optional] +**MenuPublishId** | **Guid?** | Stores menu publish GUID | [optional] +**Metadata** | **Dictionary<string, string>** | Store metadata | [optional] +**Currency** | **string** | Currency which used by the Store | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Latitude and longitude of the store | [optional] +**StoreTimezone** | **string** | Timezone of store | [optional] +**StoreIanaTimezone** | **string** | IANA Timezone of store | [optional] +**StoreGroupId** | **int?** | Store group id of store | [optional] +**TaxId** | **string** | VAT number or generic Tax ID of the store | [optional] +**PrettyAddress** | **string** | Address of the store | [optional] +**CountryCode** | **string** | Country code of the store address (ISO 3166-1 alpha-2) | [optional] +**PropertyId** | **string** | Property identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreTipUpdatedEvent.md b/docs/StoreTipUpdatedEvent.md new file mode 100644 index 00000000..df83918f --- /dev/null +++ b/docs/StoreTipUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.StoreTipUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which made the update | [optional] +**Description** | **string** | Description | [optional] +**Config** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md) | Configuration change | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreUnarchivedEvent.md b/docs/StoreUnarchivedEvent.md new file mode 100644 index 00000000..a6125043 --- /dev/null +++ b/docs/StoreUnarchivedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreUnarchivedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which unarchived this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Unarchived Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreUnpublishedEvent.md b/docs/StoreUnpublishedEvent.md new file mode 100644 index 00000000..c92923d6 --- /dev/null +++ b/docs/StoreUnpublishedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreUnpublishedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which unpublished this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Unpublished Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreUpdatedEvent.md b/docs/StoreUpdatedEvent.md new file mode 100644 index 00000000..86dde88a --- /dev/null +++ b/docs/StoreUpdatedEvent.md @@ -0,0 +1,22 @@ +# Flipdish.Model.StoreUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**OrgId** | **string** | Organisation Id | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this store | [optional] +**Description** | **string** | Description | [optional] +**Store** | [**Store**](Store.md) | Updated Store | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoreValidationConfig.md b/docs/StoreValidationConfig.md new file mode 100644 index 00000000..17c4ec08 --- /dev/null +++ b/docs/StoreValidationConfig.md @@ -0,0 +1,13 @@ +# Flipdish.Model.StoreValidationConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Store identifier | [optional] +**Name** | **string** | Name | [optional] +**IsValid** | **bool?** | Is Store Valid for Kiosk | [optional] +**StoreGroupId** | **int?** | Store group Id | [optional] +**ConfigValidation** | [**StoreConfig**](StoreConfig.md) | Store list of validations | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StoresApi.md b/docs/StoresApi.md new file mode 100644 index 00000000..228fc35f --- /dev/null +++ b/docs/StoresApi.md @@ -0,0 +1,2609 @@ +# Flipdish.Api.StoresApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArchiveStore**](StoresApi.md#archivestore) | **POST** /api/v1.0/stores/{storeId}/archive | +[**AssignMenu**](StoresApi.md#assignmenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | +[**CloneStore**](StoresApi.md#clonestore) | **POST** /api/v1.0/stores/{storeId}/clone | +[**ConfigureStoreServiceCharge**](StoresApi.md#configurestoreservicecharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | +[**CreateBusinessHoursOverrideByStoreId**](StoresApi.md#createbusinesshoursoverridebystoreid) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | +[**CreateStore**](StoresApi.md#createstore) | **POST** /api/v1.0/stores | +[**CreateStoreInProperty**](StoresApi.md#createstoreinproperty) | **POST** /api/v1.0/properties/{propertyId}/stores | +[**DeleteBusinessHoursOverride**](StoresApi.md#deletebusinesshoursoverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | +[**GetBankAccountForStore**](StoresApi.md#getbankaccountforstore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | +[**GetBusinessHours**](StoresApi.md#getbusinesshours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +[**GetBusinessHoursOverrideByStoreId**](StoresApi.md#getbusinesshoursoverridebystoreid) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | +[**GetEndOfDayReport**](StoresApi.md#getendofdayreport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | +[**GetPreOrderConfig**](StoresApi.md#getpreorderconfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +[**GetPreOrderPreview**](StoresApi.md#getpreorderpreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | +[**GetProcessingFeeConfigsByStoreId**](StoresApi.md#getprocessingfeeconfigsbystoreid) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | +[**GetProcessingFeeConfigsByStoreIdAndPaymentAccountType**](StoresApi.md#getprocessingfeeconfigsbystoreidandpaymentaccounttype) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | +[**GetStoreById**](StoresApi.md#getstorebyid) | **GET** /api/v1.0/stores/{storeId} | +[**GetStoreDeliveryFeeConfig**](StoresApi.md#getstoredeliveryfeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +[**GetStoreFeeConfig**](StoresApi.md#getstorefeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | +[**GetStoreHeadersByAppId**](StoresApi.md#getstoreheadersbyappid) | **GET** /api/v1.0/{appId}/stores/header | +[**GetStoreLeadTimes**](StoresApi.md#getstoreleadtimes) | **GET** /api/v1.0/stores/{storeId}/leadTimes | +[**GetStoreNetSales**](StoresApi.md#getstorenetsales) | **GET** /api/v1.0/{appId}/stores/stats | +[**GetStoreServiceCharge**](StoresApi.md#getstoreservicecharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | +[**GetStores**](StoresApi.md#getstores) | **GET** /api/v1.0/stores | +[**GetStoresByAppId**](StoresApi.md#getstoresbyappid) | **GET** /api/v1.0/{appId}/stores | +[**GetStoresByStoreIdWithValidations**](StoresApi.md#getstoresbystoreidwithvalidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | +[**PublishStore**](StoresApi.md#publishstore) | **POST** /api/v1.0/stores/{storeId}/publish | +[**PutStoreDeliveryFeeConfig**](StoresApi.md#putstoredeliveryfeeconfig) | **PUT** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +[**SetBusinessHours**](StoresApi.md#setbusinesshours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +[**SetPreOrdeEnabled**](StoresApi.md#setpreordeenabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | +[**SetStoreCollectionSettings**](StoresApi.md#setstorecollectionsettings) | **POST** /api/v1.0/stores/{storeId}/collectionsettings | +[**SetStoreLeadTimes**](StoresApi.md#setstoreleadtimes) | **POST** /api/v1.0/stores/{storeId}/leadTimes | +[**StoresSetPropertyId**](StoresApi.md#storessetpropertyid) | **POST** /api/v1.0/stores/{storeId}/propertyId/{propertyId} | +[**SupportedSalesChannelsTypes**](StoresApi.md#supportedsaleschannelstypes) | **POST** /api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels | +[**UnpublishStore**](StoresApi.md#unpublishstore) | **POST** /api/v1.0/stores/{storeId}/unpublish | +[**UpdatePreOrderConfig**](StoresApi.md#updatepreorderconfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +[**UpdateStore**](StoresApi.md#updatestore) | **POST** /api/v1.0/stores/{storeId} | +[**UpdateStoreAddress**](StoresApi.md#updatestoreaddress) | **POST** /api/v1.0/stores/{storeId}/address | +[**UpdateStoreAddressCoordinates**](StoresApi.md#updatestoreaddresscoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | +[**UpdateStoreAddressForm**](StoresApi.md#updatestoreaddressform) | **POST** /api/v1.0/stores/{storeId}/addressform | + + + +# **ArchiveStore** +> void ArchiveStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ArchiveStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + apiInstance.ArchiveStore(storeId); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.ArchiveStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AssignMenu** +> RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AssignMenuExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var menuId = 56; // int? | + + try + { + RestApiArrayResultRestApiDefaultResponse result = apiInstance.AssignMenu(storeId, menuId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.AssignMenu: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **menuId** | **int?**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CloneStore** +> RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CloneStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var settings = new StoreCloneSettings(); // StoreCloneSettings | + + try + { + RestApiResultStore result = apiInstance.CloneStore(storeId, settings); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.CloneStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **settings** | [**StoreCloneSettings**](StoreCloneSettings.md)| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ConfigureStoreServiceCharge** +> RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ConfigureStoreServiceChargeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var serviceCharge = new ServiceCharge(); // ServiceCharge | + + try + { + RestApiResultServiceCharge result = apiInstance.ConfigureStoreServiceCharge(storeId, serviceCharge); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.ConfigureStoreServiceCharge: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **serviceCharge** | [**ServiceCharge**](ServiceCharge.md)| | + +### Return type + +[**RestApiResultServiceCharge**](RestApiResultServiceCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateBusinessHoursOverrideByStoreId** +> RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateBusinessHoursOverrideByStoreIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var businessHoursOverride = new BusinessHoursOverrideBase(); // BusinessHoursOverrideBase | + + try + { + RestApiResultBusinessHoursOverride result = apiInstance.CreateBusinessHoursOverrideByStoreId(storeId, businessHoursOverride); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.CreateBusinessHoursOverrideByStoreId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **businessHoursOverride** | [**BusinessHoursOverrideBase**](BusinessHoursOverrideBase.md)| | + +### Return type + +[**RestApiResultBusinessHoursOverride**](RestApiResultBusinessHoursOverride.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateStore** +> RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeGroupId = 56; // int? | + var store = new StoreCreateBase(); // StoreCreateBase | + + try + { + RestApiResultStore result = apiInstance.CreateStore(storeGroupId, store); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.CreateStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + **store** | [**StoreCreateBase**](StoreCreateBase.md)| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateStoreInProperty** +> RestApiResultStore CreateStoreInProperty (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateStoreInPropertyExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeGroupId = 56; // int? | + var propertyId = propertyId_example; // string | + var store = new StoreCreateBase(); // StoreCreateBase | + var autoAssignMenu = true; // bool? | (optional) + + try + { + RestApiResultStore result = apiInstance.CreateStoreInProperty(storeGroupId, propertyId, store, autoAssignMenu); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.CreateStoreInProperty: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **int?**| | + **propertyId** | **string**| | + **store** | [**StoreCreateBase**](StoreCreateBase.md)| | + **autoAssignMenu** | **bool?**| | [optional] + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteBusinessHoursOverride** +> RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteBusinessHoursOverrideExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var businessHoursOverrideId = 56; // int? | + + try + { + RestApiArrayResultRestApiDefaultResponse result = apiInstance.DeleteBusinessHoursOverride(storeId, businessHoursOverrideId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.DeleteBusinessHoursOverride: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **businessHoursOverrideId** | **int?**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBankAccountForStore** +> RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBankAccountForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + RestApiResultAssignedBankAccount result = apiInstance.GetBankAccountForStore(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetBankAccountForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultAssignedBankAccount**](RestApiResultAssignedBankAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBusinessHours** +> RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBusinessHoursExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + + try + { + RestApiArrayResultBusinessHoursPeriod result = apiInstance.GetBusinessHours(storeId, deliveryType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetBusinessHours: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + +### Return type + +[**RestApiArrayResultBusinessHoursPeriod**](RestApiArrayResultBusinessHoursPeriod.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBusinessHoursOverrideByStoreId** +> RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetBusinessHoursOverrideByStoreIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var after = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultBusinessHoursOverride result = apiInstance.GetBusinessHoursOverrideByStoreId(storeId, after, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetBusinessHoursOverrideByStoreId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **after** | **DateTime?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultBusinessHoursOverride**](RestApiPaginationResultBusinessHoursOverride.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetEndOfDayReport** +> RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetEndOfDayReportExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var date = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) + + try + { + RestApiResultStoreEndOfDayReport result = apiInstance.GetEndOfDayReport(storeId, date); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetEndOfDayReport: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **date** | **DateTime?**| | [optional] + +### Return type + +[**RestApiResultStoreEndOfDayReport**](RestApiResultStoreEndOfDayReport.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPreOrderConfig** +> RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPreOrderConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + + try + { + RestApiResultPreOrderConfig result = apiInstance.GetPreOrderConfig(storeId, deliveryType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetPreOrderConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + +### Return type + +[**RestApiResultPreOrderConfig**](RestApiResultPreOrderConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPreOrderPreview** +> RestApiArrayResultPreOrderTime GetPreOrderPreview (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPreOrderPreviewExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var preOrderConfigLeadTimeMinutes = 56; // int? | Lead Time in Minutes (optional) + var preOrderConfigIntervalMinutes = 56; // int? | Interval in minutes (optional) + var preOrderConfigMaxOrderAheadDays = 56; // int? | Max Days to order ahead (optional) + var preOrderConfigIncludeAsap = true; // bool? | Show ASAP as option (optional) + var preOrderConfigIncludeMoreGranularInitialTime = true; // bool? | Granual Init' Time (optional) + var preOrderConfigCutOffTimePreviousDayBasic = preOrderConfigCutOffTimePreviousDayBasic_example; // string | Cut off time previous day (optional) + var preOrderConfigCutOffTimeCurrentDayBasic = preOrderConfigCutOffTimeCurrentDayBasic_example; // string | Cut off time current day (optional) + var preOrderConfigPreOrderTimeDisplayType = preOrderConfigPreOrderTimeDisplayType_example; // string | Type of time displayed. (optional) + var preOrderConfigAlwaysAppearOpen = true; // bool? | Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + var preOrderConfigRequireExplicitSelectAlways = true; // bool? | Force customer to select collection time. (optional) + + try + { + RestApiArrayResultPreOrderTime result = apiInstance.GetPreOrderPreview(storeId, deliveryType, preOrderConfigLeadTimeMinutes, preOrderConfigIntervalMinutes, preOrderConfigMaxOrderAheadDays, preOrderConfigIncludeAsap, preOrderConfigIncludeMoreGranularInitialTime, preOrderConfigCutOffTimePreviousDayBasic, preOrderConfigCutOffTimeCurrentDayBasic, preOrderConfigPreOrderTimeDisplayType, preOrderConfigAlwaysAppearOpen, preOrderConfigRequireExplicitSelectAlways); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetPreOrderPreview: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + **preOrderConfigLeadTimeMinutes** | **int?**| Lead Time in Minutes | [optional] + **preOrderConfigIntervalMinutes** | **int?**| Interval in minutes | [optional] + **preOrderConfigMaxOrderAheadDays** | **int?**| Max Days to order ahead | [optional] + **preOrderConfigIncludeAsap** | **bool?**| Show ASAP as option | [optional] + **preOrderConfigIncludeMoreGranularInitialTime** | **bool?**| Granual Init' Time | [optional] + **preOrderConfigCutOffTimePreviousDayBasic** | **string**| Cut off time previous day | [optional] + **preOrderConfigCutOffTimeCurrentDayBasic** | **string**| Cut off time current day | [optional] + **preOrderConfigPreOrderTimeDisplayType** | **string**| Type of time displayed. | [optional] + **preOrderConfigAlwaysAppearOpen** | **bool?**| Specifies whether a customer can pre-order outside the store opening hours or not. | [optional] + **preOrderConfigRequireExplicitSelectAlways** | **bool?**| Force customer to select collection time. | [optional] + +### Return type + +[**RestApiArrayResultPreOrderTime**](RestApiArrayResultPreOrderTime.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessingFeeConfigsByStoreId** +> RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetProcessingFeeConfigsByStoreIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var appNameId = appNameId_example; // string | (optional) + + try + { + RestApiArrayResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreId(storeId, appNameId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetProcessingFeeConfigsByStoreId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **appNameId** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultProcessingFeeConfig**](RestApiArrayResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessingFeeConfigsByStoreIdAndPaymentAccountType** +> RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var paymentAccountType = paymentAccountType_example; // string | + var appNameId = appNameId_example; // string | (optional) + + try + { + RestApiResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, appNameId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetProcessingFeeConfigsByStoreIdAndPaymentAccountType: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **paymentAccountType** | **string**| | + **appNameId** | **string**| | [optional] + +### Return type + +[**RestApiResultProcessingFeeConfig**](RestApiResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreById** +> RestApiResultStore GetStoreById (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + RestApiResultStore result = apiInstance.GetStoreById(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreDeliveryFeeConfig** +> RestApiArrayResultStoreDeliveryZoneFeeConfig GetStoreDeliveryFeeConfig (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreDeliveryFeeConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + RestApiArrayResultStoreDeliveryZoneFeeConfig result = apiInstance.GetStoreDeliveryFeeConfig(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreDeliveryFeeConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiArrayResultStoreDeliveryZoneFeeConfig**](RestApiArrayResultStoreDeliveryZoneFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreFeeConfig** +> StoreFeeConfig GetStoreFeeConfig (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreFeeConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + StoreFeeConfig result = apiInstance.GetStoreFeeConfig(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreFeeConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**StoreFeeConfig**](StoreFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreHeadersByAppId** +> RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreHeadersByAppIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var appId = appId_example; // string | + var storeNameQuery = storeNameQuery_example; // string | (optional) + var salesChannelType = salesChannelType_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultStoreHeader result = apiInstance.GetStoreHeadersByAppId(appId, storeNameQuery, salesChannelType, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreHeadersByAppId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeNameQuery** | **string**| | [optional] + **salesChannelType** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreHeader**](RestApiPaginationResultStoreHeader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreLeadTimes** +> RestApiResultOrderLeadTimes GetStoreLeadTimes (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreLeadTimesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + RestApiResultOrderLeadTimes result = apiInstance.GetStoreLeadTimes(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreLeadTimes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultOrderLeadTimes**](RestApiResultOrderLeadTimes.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreNetSales** +> RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreNetSalesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var appId = appId_example; // string | + var storeId = new List(); // List | + + try + { + RestApiArrayResultStoreStatistics result = apiInstance.GetStoreNetSales(appId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreNetSales: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | + +### Return type + +[**RestApiArrayResultStoreStatistics**](RestApiArrayResultStoreStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoreServiceCharge** +> ServiceCharge GetStoreServiceCharge (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoreServiceChargeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + ServiceCharge result = apiInstance.GetStoreServiceCharge(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoreServiceCharge: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**ServiceCharge**](ServiceCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStores** +> RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoresExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var searchQuery = searchQuery_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeGroupId = 56; // int? | (optional) + + try + { + RestApiPaginationResultStore result = apiInstance.GetStores(searchQuery, page, limit, storeGroupId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStores: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeGroupId** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStore**](RestApiPaginationResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoresByAppId** +> RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoresByAppIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var appId = appId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var salesChannelType = salesChannelType_example; // string | (optional) + var excludeUnpublished = true; // bool? | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultStore result = apiInstance.GetStoresByAppId(appId, searchQuery, salesChannelType, excludeUnpublished, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoresByAppId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **searchQuery** | **string**| | [optional] + **salesChannelType** | **string**| | [optional] + **excludeUnpublished** | **bool?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStore**](RestApiPaginationResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetStoresByStoreIdWithValidations** +> RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetStoresByStoreIdWithValidationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = new List(); // List | + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultStoreValidationConfig result = apiInstance.GetStoresByStoreIdWithValidations(storeId, appId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.GetStoresByStoreIdWithValidations: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | [**List<int?>**](int?.md)| | + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreValidationConfig**](RestApiPaginationResultStoreValidationConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **PublishStore** +> void PublishStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PublishStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + apiInstance.PublishStore(storeId); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.PublishStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **PutStoreDeliveryFeeConfig** +> void PutStoreDeliveryFeeConfig (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class PutStoreDeliveryFeeConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var feeConfigUpdateRequest = new StoreDeliveryZoneFeeConfigUpdateRequest(); // StoreDeliveryZoneFeeConfigUpdateRequest | + + try + { + apiInstance.PutStoreDeliveryFeeConfig(storeId, feeConfigUpdateRequest); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.PutStoreDeliveryFeeConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **feeConfigUpdateRequest** | [**StoreDeliveryZoneFeeConfigUpdateRequest**](StoreDeliveryZoneFeeConfigUpdateRequest.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetBusinessHours** +> RestApiResultBusinessHoursPeriod SetBusinessHours (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetBusinessHoursExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var businessHoursPeriod = new BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | + + try + { + RestApiResultBusinessHoursPeriod result = apiInstance.SetBusinessHours(storeId, deliveryType, businessHoursPeriod); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.SetBusinessHours: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + **businessHoursPeriod** | [**BusinessHoursPeriodBase**](BusinessHoursPeriodBase.md)| | + +### Return type + +[**RestApiResultBusinessHoursPeriod**](RestApiResultBusinessHoursPeriod.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetPreOrdeEnabled** +> RestApiArrayResultRestApiDefaultResponse SetPreOrdeEnabled (int? storeId, string deliveryType, bool? enabled) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetPreOrdeEnabledExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var enabled = true; // bool? | + + try + { + RestApiArrayResultRestApiDefaultResponse result = apiInstance.SetPreOrdeEnabled(storeId, deliveryType, enabled); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.SetPreOrdeEnabled: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + **enabled** | **bool?**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetStoreCollectionSettings** +> RestApiResultRestApiDefaultResponse SetStoreCollectionSettings (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetStoreCollectionSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var settings = new StoreCollectionSettings(); // StoreCollectionSettings | + var inheritFromProperty = true; // bool? | (optional) + + try + { + RestApiResultRestApiDefaultResponse result = apiInstance.SetStoreCollectionSettings(storeId, settings, inheritFromProperty); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.SetStoreCollectionSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **settings** | [**StoreCollectionSettings**](StoreCollectionSettings.md)| | + **inheritFromProperty** | **bool?**| | [optional] + +### Return type + +[**RestApiResultRestApiDefaultResponse**](RestApiResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetStoreLeadTimes** +> RestApiResultOrderLeadTimes SetStoreLeadTimes (int? storeId, LeadTime leadTime) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetStoreLeadTimesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var leadTime = new LeadTime(); // LeadTime | + + try + { + RestApiResultOrderLeadTimes result = apiInstance.SetStoreLeadTimes(storeId, leadTime); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.SetStoreLeadTimes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **leadTime** | [**LeadTime**](LeadTime.md)| | + +### Return type + +[**RestApiResultOrderLeadTimes**](RestApiResultOrderLeadTimes.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StoresSetPropertyId** +> Object StoresSetPropertyId (int? storeId, string propertyId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StoresSetPropertyIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var propertyId = propertyId_example; // string | + + try + { + Object result = apiInstance.StoresSetPropertyId(storeId, propertyId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.StoresSetPropertyId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **propertyId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SupportedSalesChannelsTypes** +> void SupportedSalesChannelsTypes (string propertyId, int? storeId, List salesChannelTypes) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SupportedSalesChannelsTypesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var propertyId = propertyId_example; // string | + var storeId = 56; // int? | + var salesChannelTypes = salesChannelTypes_example; // List | + + try + { + apiInstance.SupportedSalesChannelsTypes(propertyId, storeId, salesChannelTypes); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.SupportedSalesChannelsTypes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propertyId** | **string**| | + **storeId** | **int?**| | + **salesChannelTypes** | **List<string>**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnpublishStore** +> void UnpublishStore (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnpublishStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + + try + { + apiInstance.UnpublishStore(storeId); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UnpublishStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdatePreOrderConfig** +> RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdatePreOrderConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var preOrderConfig = new PreOrderConfig(); // PreOrderConfig | + + try + { + RestApiArrayResultRestApiDefaultResponse result = apiInstance.UpdatePreOrderConfig(storeId, deliveryType, preOrderConfig); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UpdatePreOrderConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **deliveryType** | **string**| | + **preOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md)| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStore** +> RestApiResultStore UpdateStore (int? storeId, StoreBase store) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var store = new StoreBase(); // StoreBase | + + try + { + RestApiResultStore result = apiInstance.UpdateStore(storeId, store); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UpdateStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **store** | [**StoreBase**](StoreBase.md)| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStoreAddress** +> RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreAddressExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var storeAddress = new StoreAddressBase(); // StoreAddressBase | + + try + { + RestApiResultStoreAddress result = apiInstance.UpdateStoreAddress(storeId, storeAddress); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UpdateStoreAddress: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **storeAddress** | [**StoreAddressBase**](StoreAddressBase.md)| | + +### Return type + +[**RestApiResultStoreAddress**](RestApiResultStoreAddress.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStoreAddressCoordinates** +> RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreAddressCoordinatesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var coordinates = new Coordinates(); // Coordinates | + var appNameId = appNameId_example; // string | (optional) + + try + { + RestApiResultCoordinates result = apiInstance.UpdateStoreAddressCoordinates(storeId, coordinates, appNameId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UpdateStoreAddressCoordinates: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **coordinates** | [**Coordinates**](Coordinates.md)| | + **appNameId** | **string**| | [optional] + +### Return type + +[**RestApiResultCoordinates**](RestApiResultCoordinates.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateStoreAddressForm** +> Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateStoreAddressFormExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StoresApi(); + var storeId = 56; // int? | + var address = new StoreAddressForm(); // StoreAddressForm | + + try + { + Object result = apiInstance.UpdateStoreAddressForm(storeId, address); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StoresApi.UpdateStoreAddressForm: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **address** | [**StoreAddressForm**](StoreAddressForm.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Stream.md b/docs/Stream.md new file mode 100644 index 00000000..cb34ebdb --- /dev/null +++ b/docs/Stream.md @@ -0,0 +1,16 @@ +# Flipdish.Model.Stream +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanRead** | **bool?** | | [optional] +**CanSeek** | **bool?** | | [optional] +**CanTimeout** | **bool?** | | [optional] +**CanWrite** | **bool?** | | [optional] +**Length** | **long?** | | [optional] +**Position** | **long?** | | [optional] +**ReadTimeout** | **int?** | | [optional] +**WriteTimeout** | **int?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeAccountLinkRequest.md b/docs/StripeAccountLinkRequest.md new file mode 100644 index 00000000..56e3a4dc --- /dev/null +++ b/docs/StripeAccountLinkRequest.md @@ -0,0 +1,12 @@ +# Flipdish.Model.StripeAccountLinkRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StripeId** | **string** | Stripe's own connected account identifier | [optional] +**ReturnUrl** | **string** | URL to be hit if link creation succeeds | [optional] +**Collect** | **string** | Which information to collect from users at this stage | [optional] +**Type** | **string** | Either onboarding or edit user information | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeConnectedAccount.md b/docs/StripeConnectedAccount.md new file mode 100644 index 00000000..40c5e756 --- /dev/null +++ b/docs/StripeConnectedAccount.md @@ -0,0 +1,16 @@ +# Flipdish.Model.StripeConnectedAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlipdishConnectedAccountId** | **int?** | Flipdish connected account identifier | [optional] +**StripeId** | **string** | Stripe's own connected account identifier | [optional] +**WhitelabelConfigId** | **int?** | Id of the WhitelabelConfig the connected account is assigned to | [optional] +**CardPaymentsStatus** | **string** | Card payments capability status (Inactive, Pending, Active, Unrequested) | [optional] +**TransfersStatus** | **string** | Transfers capability status (Inactive, Pending, Active, Unrequested) | [optional] +**AccountStatus** | **string** | Current status of the account | [optional] +**PayoutsEnabled** | **bool?** | Payouts Enabled status | [optional] +**PaymentsEnabled** | **bool?** | Payments Enabled status | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeConnectedAccountInfo.md b/docs/StripeConnectedAccountInfo.md new file mode 100644 index 00000000..d58e6c21 --- /dev/null +++ b/docs/StripeConnectedAccountInfo.md @@ -0,0 +1,16 @@ +# Flipdish.Model.StripeConnectedAccountInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountStatus** | **string** | Stripe connected account status | [optional] +**StripeId** | **string** | Stripe connected account id | [optional] +**CardPaymentStatus** | **string** | Current status of the Card Payment capability of the account | [optional] +**PayoutScheduleInterval** | **string** | Payouts Schedule Interval | [optional] +**PayoutsEnabled** | **bool?** | Payouts Enabled status | [optional] +**PayoutsPaused** | **bool?** | Flag indicating if payouts are paused | [optional] +**PaymentsEnabled** | **bool?** | Flag indicating if payments are enabled | [optional] +**DisabledReason** | **string** | If the Stripe connected account is disabled, this is Stripe's raw requirements.disabled_reason describing why, as last recorded from a Stripe connected-account webhook. Known values are requirements.fields_needed, requirements.past_due, requirements.pending_verification, rejected.fraud, rejected.terms_of_service, rejected.listed, rejected.other and platform_paused, but Stripe can introduce new ones, so the value is passed through unmapped (the same way CapabilityRequirementsInfo.DisabledReason is). null when the account is not disabled. Note that {Flipdish.PublicModels.V1.BankAccount.StripeConnectedAccountInfo.AccountStatus} is a deliberately lossy mapping of this value and the two can legitimately disagree - do not derive one from the other. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeCustomConnectApi.md b/docs/StripeCustomConnectApi.md new file mode 100644 index 00000000..fe9f44fb --- /dev/null +++ b/docs/StripeCustomConnectApi.md @@ -0,0 +1,528 @@ +# Flipdish.Api.StripeCustomConnectApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBankAccountAndConnectedAccount**](StripeCustomConnectApi.md#createbankaccountandconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | +[**CreateStripeConnectedAccount**](StripeCustomConnectApi.md#createstripeconnectedaccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | +[**CreateStripeConnectedAccountLink**](StripeCustomConnectApi.md#createstripeconnectedaccountlink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | +[**GetCustomConnect**](StripeCustomConnectApi.md#getcustomconnect) | **GET** /api/v1.0/{appId}/customconnect/{storeId} | +[**SetBankAccountBusinessType**](StripeCustomConnectApi.md#setbankaccountbusinesstype) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | +[**StripeCustomConnectRefresh**](StripeCustomConnectApi.md#stripecustomconnectrefresh) | **GET** /api/v1.0/{appId}/customconnect/refresh-link | +[**UpdateBankAccountDetails**](StripeCustomConnectApi.md#updatebankaccountdetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | +[**UpdatePayoutSchedule**](StripeCustomConnectApi.md#updatepayoutschedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | + + + +# **CreateBankAccountAndConnectedAccount** +> RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (string appId, BankAccountCreate account) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateBankAccountAndConnectedAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var account = new BankAccountCreate(); // BankAccountCreate | + + try + { + RestApiResultBankAccountDetail result = apiInstance.CreateBankAccountAndConnectedAccount(appId, account); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.CreateBankAccountAndConnectedAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateStripeConnectedAccount** +> RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateStripeConnectedAccountExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + + try + { + RestApiResultStripeConnectedAccount result = apiInstance.CreateStripeConnectedAccount(appId, bankAccountId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.CreateStripeConnectedAccount: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateStripeConnectedAccountLink** +> RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateStripeConnectedAccountLinkExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var stripeConnectedAccountId = stripeConnectedAccountId_example; // string | + var stripeAccountLinkRequest = new StripeAccountLinkRequest(); // StripeAccountLinkRequest | + + try + { + RestApiResultStripeConnectedAccount result = apiInstance.CreateStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.CreateStripeConnectedAccountLink: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **stripeConnectedAccountId** | **string**| | + **stripeAccountLinkRequest** | [**StripeAccountLinkRequest**](StripeAccountLinkRequest.md)| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCustomConnect** +> RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetCustomConnectExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var storeId = 56; // int? | + var appId = appId_example; // string | + + try + { + RestApiArrayResultStripeCustomConnectedAccount result = apiInstance.GetCustomConnect(storeId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.GetCustomConnect: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultStripeCustomConnectedAccount**](RestApiArrayResultStripeCustomConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetBankAccountBusinessType** +> RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetBankAccountBusinessTypeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var businessType = businessType_example; // string | + + try + { + RestApiResultBankAccountDetail result = apiInstance.SetBankAccountBusinessType(appId, bankAccountId, businessType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.SetBankAccountBusinessType: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **businessType** | **string**| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StripeCustomConnectRefresh** +> Object StripeCustomConnectRefresh (int? linkRequestId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StripeCustomConnectRefreshExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var linkRequestId = 56; // int? | + var appId = appId_example; // string | + + try + { + Object result = apiInstance.StripeCustomConnectRefresh(linkRequestId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.StripeCustomConnectRefresh: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linkRequestId** | **int?**| | + **appId** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateBankAccountDetails** +> RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateBankAccountDetailsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var updateRequest = new BankAccountDetailsUpdateRequest(); // BankAccountDetailsUpdateRequest | + + try + { + RestApiResultStripeConnectedAccount result = apiInstance.UpdateBankAccountDetails(appId, bankAccountId, updateRequest); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.UpdateBankAccountDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **bankAccountId** | **int?**| | + **updateRequest** | [**BankAccountDetailsUpdateRequest**](BankAccountDetailsUpdateRequest.md)| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdatePayoutSchedule** +> RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeConnectedAccountId, string interval) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdatePayoutScheduleExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StripeCustomConnectApi(); + var appId = appId_example; // string | + var stripeConnectedAccountId = stripeConnectedAccountId_example; // string | + var interval = interval_example; // string | + + try + { + RestApiResultModelBase result = apiInstance.UpdatePayoutSchedule(appId, stripeConnectedAccountId, interval); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StripeCustomConnectApi.UpdatePayoutSchedule: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **stripeConnectedAccountId** | **string**| | + **interval** | **string**| | + +### Return type + +[**RestApiResultModelBase**](RestApiResultModelBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StripeCustomConnectedAccount.md b/docs/StripeCustomConnectedAccount.md new file mode 100644 index 00000000..2661535f --- /dev/null +++ b/docs/StripeCustomConnectedAccount.md @@ -0,0 +1,13 @@ +# Flipdish.Model.StripeCustomConnectedAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Physical Restaurant Id | [optional] +**StripeId** | **string** | Stripe's own connected account identifier | [optional] +**CardPaymentsStatus** | **string** | Card payments capability status (Inactive, Pending, Active, Unrequested) | [optional] +**TransfersStatus** | **string** | Transfers capability status (Inactive, Pending, Active, Unrequested) | [optional] +**AccountStatus** | **string** | Current status of the account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeTerminalConnectionToken.md b/docs/StripeTerminalConnectionToken.md new file mode 100644 index 00000000..d9443045 --- /dev/null +++ b/docs/StripeTerminalConnectionToken.md @@ -0,0 +1,9 @@ +# Flipdish.Model.StripeTerminalConnectionToken +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | Connection Token | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StripeTerminalLocation.md b/docs/StripeTerminalLocation.md new file mode 100644 index 00000000..b53ccdd0 --- /dev/null +++ b/docs/StripeTerminalLocation.md @@ -0,0 +1,9 @@ +# Flipdish.Model.StripeTerminalLocation +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | **string** | Registered location of the terminal | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StuartApi.md b/docs/StuartApi.md new file mode 100644 index 00000000..5076606f --- /dev/null +++ b/docs/StuartApi.md @@ -0,0 +1,262 @@ +# Flipdish.Api.StuartApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**StuartCancelJob**](StuartApi.md#stuartcanceljob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | +[**StuartGetJob**](StuartApi.md#stuartgetjob) | **GET** /api/v1.0/stuart/jobs/{jobId} | +[**StuartGetStuartSettings**](StuartApi.md#stuartgetstuartsettings) | **GET** /api/v1.0/stuart/settings/{storeId} | +[**StuartPostStuartSettings**](StuartApi.md#stuartpoststuartsettings) | **POST** /api/v1.0/stuart/settings/{storeId} | + + + +# **StuartCancelJob** +> Object StuartCancelJob (int? jobId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StuartCancelJobExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StuartApi(); + var jobId = 56; // int? | + var storeId = 56; // int? | + + try + { + Object result = apiInstance.StuartCancelJob(jobId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StuartApi.StuartCancelJob: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **int?**| | + **storeId** | **int?**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StuartGetJob** +> RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StuartGetJobExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StuartApi(); + var jobId = 56; // int? | + var storeId = 56; // int? | + + try + { + RestApiResultJobResponse result = apiInstance.StuartGetJob(jobId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StuartApi.StuartGetJob: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **int?**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiResultJobResponse**](RestApiResultJobResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StuartGetStuartSettings** +> RestApiResultStuartSettings StuartGetStuartSettings (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StuartGetStuartSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StuartApi(); + var storeId = 56; // int? | + + try + { + RestApiResultStuartSettings result = apiInstance.StuartGetStuartSettings(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StuartApi.StuartGetStuartSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultStuartSettings**](RestApiResultStuartSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StuartPostStuartSettings** +> Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class StuartPostStuartSettingsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new StuartApi(); + var storeId = 56; // int? | + var stuartSettings = new StuartSettings(); // StuartSettings | + + try + { + Object result = apiInstance.StuartPostStuartSettings(storeId, stuartSettings); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling StuartApi.StuartPostStuartSettings: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **stuartSettings** | [**StuartSettings**](StuartSettings.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StuartSettings.md b/docs/StuartSettings.md new file mode 100644 index 00000000..a54256cc --- /dev/null +++ b/docs/StuartSettings.md @@ -0,0 +1,18 @@ +# Flipdish.Model.StuartSettings +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **string** | Client Id | [optional] +**ClientSecret** | **string** | Client Secret | [optional] +**Enabled** | **bool?** | Enabled | [optional] +**WebhookUrlBasicAuthentication** | **string** | Webhook url to settle in the Stuart portal | [optional] +**OverrideWebhookUrl** | **bool?** | Override Flipdish Webhook Url | [optional] +**MinutesToPickupBeforeThanDeliveryTime** | **int?** | MinutesToPickupBeforeThanDeliveryTime | [optional] +**PackageType** | **string** | Package type | [optional] +**TransportType** | **string** | Transport type | [optional] +**CancelOrderIfStuartCancelDelivery** | **bool?** | Determines if Flipdish order should be cancel when Stuart cancels delivery | [optional] +**TransportPrices** | [**StuartSettingsTransportPrices**](StuartSettingsTransportPrices.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/StuartSettingsTransportPrices.md b/docs/StuartSettingsTransportPrices.md new file mode 100644 index 00000000..413741bb --- /dev/null +++ b/docs/StuartSettingsTransportPrices.md @@ -0,0 +1,15 @@ +# Flipdish.Model.StuartSettingsTransportPrices +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bike** | **double?** | | [optional] +**Cargobike** | **double?** | | [optional] +**Cargobikexl** | **double?** | | [optional] +**Motorbike** | **double?** | | [optional] +**Motorbikexl** | **double?** | | [optional] +**Car** | **double?** | | [optional] +**Van** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Subscription.md b/docs/Subscription.md new file mode 100644 index 00000000..ee62dc10 --- /dev/null +++ b/docs/Subscription.md @@ -0,0 +1,22 @@ +# Flipdish.Model.Subscription +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Products** | [**List<SubscriptionProduct>**](SubscriptionProduct.md) | Products | +**NextInvoiceAmount** | **double?** | Next invoice amount | [optional] +**NextInvoiceBillingDate** | **DateTime?** | Next invoice billing date | [optional] +**UpcomingInvoiceItems** | [**List<InvoiceItem>**](InvoiceItem.md) | Upcoming invoice items | [optional] +**UpcomingInvoiceDiscounts** | [**List<InvoiceDiscount>**](InvoiceDiscount.md) | Upcoming invoice discounts | [optional] +**UpcomingInvoice** | [**UpcomingInvoice**](UpcomingInvoice.md) | Upcoming invoice | [optional] +**SubscriptionId** | **string** | The subscription identifier | +**Name** | **string** | Name | +**Status** | **string** | Status | +**Currency** | **string** | Currency | +**User** | **string** | User | +**DefaultPaymentDescription** | **string** | Default payment description | [optional] +**CancellationRequestDate** | **DateTime?** | Cancellation Date | [optional] +**CancellationDate** | **DateTime?** | Cancel Date | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionInvoice.md b/docs/SubscriptionInvoice.md new file mode 100644 index 00000000..f5f29327 --- /dev/null +++ b/docs/SubscriptionInvoice.md @@ -0,0 +1,19 @@ +# Flipdish.Model.SubscriptionInvoice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvoiceId** | **string** | The invoice identifier | +**Number** | **string** | Invoice number | +**Total** | **double?** | Total | [optional] +**Currency** | **string** | Currency | +**Status** | **string** | Status | +**SubscriptionId** | **string** | The subscription identifier | [optional] +**PaidAt** | **DateTime?** | Paid At | [optional] +**FinalisedAt** | **DateTime?** | Finalised At | [optional] +**PdfLink** | **string** | Pdf Link | +**HostedUrl** | **string** | Hosted Url | +**Overdue** | **bool?** | Overdue | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionProduct.md b/docs/SubscriptionProduct.md new file mode 100644 index 00000000..6b341a70 --- /dev/null +++ b/docs/SubscriptionProduct.md @@ -0,0 +1,15 @@ +# Flipdish.Model.SubscriptionProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProductId** | **string** | Product Identifier | +**Name** | **string** | Name | +**Quantity** | **long?** | Quantity | +**PricePerUnit** | **double?** | Price Per Unit | [optional] +**PriceTotal** | **double?** | Price Total | [optional] +**PaymentFrequency** | **string** | Payment Frequency | +**Stores** | [**List<SubscriptionStore>**](SubscriptionStore.md) | Stores | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionStore.md b/docs/SubscriptionStore.md new file mode 100644 index 00000000..c965defb --- /dev/null +++ b/docs/SubscriptionStore.md @@ -0,0 +1,10 @@ +# Flipdish.Model.SubscriptionStore +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Store Id | +**Name** | **string** | Name | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionSummary.md b/docs/SubscriptionSummary.md new file mode 100644 index 00000000..ef6cf63c --- /dev/null +++ b/docs/SubscriptionSummary.md @@ -0,0 +1,18 @@ +# Flipdish.Model.SubscriptionSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextInvoiceAmount** | **double?** | Next invoice amount | [optional] +**NextInvoiceBillingDate** | **DateTime?** | Next invoice billing date | [optional] +**SubscriptionId** | **string** | The subscription identifier | +**Name** | **string** | Name | +**Status** | **string** | Status | +**Currency** | **string** | Currency | +**User** | **string** | User | +**DefaultPaymentDescription** | **string** | Default payment description | [optional] +**CancellationRequestDate** | **DateTime?** | Cancellation Date | [optional] +**CancellationDate** | **DateTime?** | Cancel Date | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md new file mode 100644 index 00000000..10f7c93d --- /dev/null +++ b/docs/SubscriptionsApi.md @@ -0,0 +1,204 @@ +# Flipdish.Api.SubscriptionsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSubscriptionById**](SubscriptionsApi.md#getsubscriptionbyid) | **GET** /api/v1.0/{appId}/subscriptions/{subscriptionId} | +[**GetSubscriptionsForApp**](SubscriptionsApi.md#getsubscriptionsforapp) | **GET** /api/v1.0/{appId}/subscriptions | +[**HasCustomerGotPaymentMethodOnFile**](SubscriptionsApi.md#hascustomergotpaymentmethodonfile) | **GET** /api/v1.0/{appId}/subscriptions/hasPaymentMethod | + + + +# **GetSubscriptionById** +> RestApiResultSubscription GetSubscriptionById (string appId, string subscriptionId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSubscriptionByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SubscriptionsApi(); + var appId = appId_example; // string | + var subscriptionId = subscriptionId_example; // string | + + try + { + RestApiResultSubscription result = apiInstance.GetSubscriptionById(appId, subscriptionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SubscriptionsApi.GetSubscriptionById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **subscriptionId** | **string**| | + +### Return type + +[**RestApiResultSubscription**](RestApiResultSubscription.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSubscriptionsForApp** +> RestApiArrayResultSubscriptionSummary GetSubscriptionsForApp (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetSubscriptionsForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SubscriptionsApi(); + var appId = appId_example; // string | + var excludeNotOwnedSubscriptions = true; // bool? | (optional) + var storeId = new List(); // List | (optional) + var excludeCancelledSubscriptions = true; // bool? | (optional) + + try + { + RestApiArrayResultSubscriptionSummary result = apiInstance.GetSubscriptionsForApp(appId, excludeNotOwnedSubscriptions, storeId, excludeCancelledSubscriptions); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SubscriptionsApi.GetSubscriptionsForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **excludeNotOwnedSubscriptions** | **bool?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] + **excludeCancelledSubscriptions** | **bool?**| | [optional] + +### Return type + +[**RestApiArrayResultSubscriptionSummary**](RestApiArrayResultSubscriptionSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HasCustomerGotPaymentMethodOnFile** +> RestApiResultHasPaymentMethodResponse HasCustomerGotPaymentMethodOnFile (string appId, string email = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HasCustomerGotPaymentMethodOnFileExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new SubscriptionsApi(); + var appId = appId_example; // string | + var email = email_example; // string | (optional) + + try + { + RestApiResultHasPaymentMethodResponse result = apiInstance.HasCustomerGotPaymentMethodOnFile(appId, email); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SubscriptionsApi.HasCustomerGotPaymentMethodOnFile: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **email** | **string**| | [optional] + +### Return type + +[**RestApiResultHasPaymentMethodResponse**](RestApiResultHasPaymentMethodResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SupportedCountry.md b/docs/SupportedCountry.md new file mode 100644 index 00000000..7cc18fd5 --- /dev/null +++ b/docs/SupportedCountry.md @@ -0,0 +1,18 @@ +# Flipdish.Model.SupportedCountry +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CountryCode** | **string** | Country code | [optional] +**Name** | **string** | Nice display name for a country | [optional] +**PhoneCode** | **int?** | Country internatinoal phone code prefix | [optional] +**LanguageCode** | **string** | Language code | [optional] +**LanguageName** | **string** | Language name | [optional] +**OtpNumber** | **string** | The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer. | [optional] +**SupportNumber** | **string** | The store's support phone number, displayed to customers. | [optional] +**AddressLayout** | **string** | Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. | [optional] +**PostCodeType** | **string** | Post code type | [optional] +**SupportRegion** | **string** | Supported region. This is not used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaxItem.md b/docs/TaxItem.md new file mode 100644 index 00000000..6fc14f20 --- /dev/null +++ b/docs/TaxItem.md @@ -0,0 +1,11 @@ +# Flipdish.Model.TaxItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the tax item. | [optional] +**Rate** | **double?** | The tax rate applied to the item. | [optional] +**Amount** | **double?** | The amount of tax applied to the item. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaxRate.md b/docs/TaxRate.md new file mode 100644 index 00000000..9e1de5a0 --- /dev/null +++ b/docs/TaxRate.md @@ -0,0 +1,11 @@ +# Flipdish.Model.TaxRate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**Percentage** | **double?** | | [optional] +**Total** | **double?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Teammate.md b/docs/Teammate.md new file mode 100644 index 00000000..f8ca0516 --- /dev/null +++ b/docs/Teammate.md @@ -0,0 +1,19 @@ +# Flipdish.Model.Teammate +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeammateId** | **string** | Unique indentifier | [optional] +**UserId** | **int?** | User ID of the teammate | [optional] +**Name** | **string** | Name | [optional] +**LastActivity** | **DateTime?** | Last activity | [optional] +**AppId** | **string** | Access level is for this App | [optional] +**InvitationStatus** | **string** | Invitation status | [optional] +**Email** | **string** | Email address | [optional] +**AppAccessLevel** | **string** | App access level | [optional] +**HasAccessToAllStores** | **bool?** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **List<int?>** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **List<string>** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammateBase.md b/docs/TeammateBase.md new file mode 100644 index 00000000..7fa11ef9 --- /dev/null +++ b/docs/TeammateBase.md @@ -0,0 +1,12 @@ +# Flipdish.Model.TeammateBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppAccessLevel** | **string** | App access level | [optional] +**HasAccessToAllStores** | **bool?** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **List<int?>** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **List<string>** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammateDeletedEvent.md b/docs/TeammateDeletedEvent.md new file mode 100644 index 00000000..04f6e559 --- /dev/null +++ b/docs/TeammateDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.TeammateDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who deleted the teammate | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammateInviteAcceptedEvent.md b/docs/TeammateInviteAcceptedEvent.md new file mode 100644 index 00000000..bde8241f --- /dev/null +++ b/docs/TeammateInviteAcceptedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.TeammateInviteAcceptedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who accepted the invitation | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammateInviteSentEvent.md b/docs/TeammateInviteSentEvent.md new file mode 100644 index 00000000..340771aa --- /dev/null +++ b/docs/TeammateInviteSentEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.TeammateInviteSentEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who sent the invitation | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammateUpdatedEvent.md b/docs/TeammateUpdatedEvent.md new file mode 100644 index 00000000..ba0c3b41 --- /dev/null +++ b/docs/TeammateUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.TeammateUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | The deleted teammate | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who updated the teammate | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TeammatesApi.md b/docs/TeammatesApi.md new file mode 100644 index 00000000..9620d385 --- /dev/null +++ b/docs/TeammatesApi.md @@ -0,0 +1,697 @@ +# Flipdish.Api.TeammatesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateTeammate**](TeammatesApi.md#createteammate) | **POST** /api/v1.0/{appId}/teammates | +[**DeleteTeammate**](TeammatesApi.md#deleteteammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | +[**GetTeammateByAppIdAndTeammateId**](TeammatesApi.md#getteammatebyappidandteammateid) | **GET** /api/v1.0/{appId}/teammates/{id} | +[**GetTeammatesByAppId**](TeammatesApi.md#getteammatesbyappid) | **GET** /api/v1.0/{appId}/teammates | +[**Grantaccess**](TeammatesApi.md#grantaccess) | **POST** /api/v1.0/{appId}/teammates/grantaccess | +[**RedeemInvitation**](TeammatesApi.md#redeeminvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | +[**TeammateMobileRedirect**](TeammatesApi.md#teammatemobileredirect) | **GET** /api/v1.0/teammates/mobile-redirect | +[**TeammatesAcceptInvitation**](TeammatesApi.md#teammatesacceptinvitation) | **GET** /api/v1.0/{appId}/teammates/accept/{otc} | +[**TeammatesAcceptInvitations**](TeammatesApi.md#teammatesacceptinvitations) | **POST** /api/v1.0/teammates/acceptInvitations | +[**TeammatesPendingInvitations**](TeammatesApi.md#teammatespendinginvitations) | **GET** /api/v1.0/teammates/pending-invitations | +[**UpdateTeammate**](TeammatesApi.md#updateteammate) | **POST** /api/v1.0/{appId}/teammates/{id} | + + + +# **CreateTeammate** +> RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teammate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateTeammateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + var teammate = new CreateTeammate(); // CreateTeammate | + + try + { + RestApiResultTeammate result = apiInstance.CreateTeammate(appId, teammate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.CreateTeammate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **teammate** | [**CreateTeammate**](CreateTeammate.md)| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteTeammate** +> void DeleteTeammate (string appId, string id) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteTeammateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + var id = id_example; // string | + + try + { + apiInstance.DeleteTeammate(appId, id); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.DeleteTeammate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **id** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetTeammateByAppIdAndTeammateId** +> RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, string id) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetTeammateByAppIdAndTeammateIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + var id = id_example; // string | + + try + { + RestApiResultTeammate result = apiInstance.GetTeammateByAppIdAndTeammateId(appId, id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.GetTeammateByAppIdAndTeammateId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **id** | **string**| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetTeammatesByAppId** +> RestApiArrayResultTeammate GetTeammatesByAppId (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetTeammatesByAppIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + + try + { + RestApiArrayResultTeammate result = apiInstance.GetTeammatesByAppId(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.GetTeammatesByAppId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiArrayResultTeammate**](RestApiArrayResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **Grantaccess** +> Object Grantaccess (string appId, CreateTeammate teammate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GrantaccessExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + var teammate = new CreateTeammate(); // CreateTeammate | + + try + { + Object result = apiInstance.Grantaccess(appId, teammate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.Grantaccess: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **teammate** | [**CreateTeammate**](CreateTeammate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RedeemInvitation** +> RestApiResultRedeemInvitationResult RedeemInvitation (string otc, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RedeemInvitationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var otc = otc_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultRedeemInvitationResult result = apiInstance.RedeemInvitation(otc, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.RedeemInvitation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **otc** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultRedeemInvitationResult**](RestApiResultRedeemInvitationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TeammateMobileRedirect** +> Object TeammateMobileRedirect (string portalUrl) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TeammateMobileRedirectExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var portalUrl = portalUrl_example; // string | + + try + { + Object result = apiInstance.TeammateMobileRedirect(portalUrl); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.TeammateMobileRedirect: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portalUrl** | **string**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TeammatesAcceptInvitation** +> RestApiResultAcceptInvitationResult TeammatesAcceptInvitation (string otc, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TeammatesAcceptInvitationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var otc = otc_example; // string | + var appId = appId_example; // string | + + try + { + RestApiResultAcceptInvitationResult result = apiInstance.TeammatesAcceptInvitation(otc, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.TeammatesAcceptInvitation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **otc** | **string**| | + **appId** | **string**| | + +### Return type + +[**RestApiResultAcceptInvitationResult**](RestApiResultAcceptInvitationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TeammatesAcceptInvitations** +> RestApiArrayResultRedeemInvitationResult TeammatesAcceptInvitations () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TeammatesAcceptInvitationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + + try + { + RestApiArrayResultRedeemInvitationResult result = apiInstance.TeammatesAcceptInvitations(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.TeammatesAcceptInvitations: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultRedeemInvitationResult**](RestApiArrayResultRedeemInvitationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TeammatesPendingInvitations** +> RestApiArrayResultPendingInvitation TeammatesPendingInvitations () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TeammatesPendingInvitationsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + + try + { + RestApiArrayResultPendingInvitation result = apiInstance.TeammatesPendingInvitations(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.TeammatesPendingInvitations: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultPendingInvitation**](RestApiArrayResultPendingInvitation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateTeammate** +> RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBase teammate) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateTeammateExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TeammatesApi(); + var appId = appId_example; // string | + var id = id_example; // string | + var teammate = new TeammateBase(); // TeammateBase | + + try + { + RestApiResultTeammate result = apiInstance.UpdateTeammate(appId, id, teammate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TeammatesApi.UpdateTeammate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **id** | **string**| | + **teammate** | [**TeammateBase**](TeammateBase.md)| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TelemetrySeriesProperty.md b/docs/TelemetrySeriesProperty.md new file mode 100644 index 00000000..6c6c9dd3 --- /dev/null +++ b/docs/TelemetrySeriesProperty.md @@ -0,0 +1,13 @@ +# Flipdish.Model.TelemetrySeriesProperty +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**Type** | **string** | Type. | [optional] +**IntValues** | **List<int?>** | IntValues. | [optional] +**StringValues** | **List<string>** | StringValues. | [optional] +**DoubleValues** | **List<double?>** | DoubleValues. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TelemetrySeriesQueryParameters.md b/docs/TelemetrySeriesQueryParameters.md new file mode 100644 index 00000000..356dee07 --- /dev/null +++ b/docs/TelemetrySeriesQueryParameters.md @@ -0,0 +1,12 @@ +# Flipdish.Model.TelemetrySeriesQueryParameters +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KioskId** | **string** | KioskId. | [optional] +**Variables** | **List<string>** | Variables. | [optional] +**StartDate** | **DateTime?** | StartDate. | [optional] +**EndDate** | **DateTime?** | EndDate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TelemetrySeriesResult.md b/docs/TelemetrySeriesResult.md new file mode 100644 index 00000000..2cd1ac24 --- /dev/null +++ b/docs/TelemetrySeriesResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.TelemetrySeriesResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamps** | **List<DateTime?>** | Timestamps. | [optional] +**Properties** | [**List<TelemetrySeriesProperty>**](TelemetrySeriesProperty.md) | Properties. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TelephonyConfig.md b/docs/TelephonyConfig.md new file mode 100644 index 00000000..f62ddac0 --- /dev/null +++ b/docs/TelephonyConfig.md @@ -0,0 +1,18 @@ +# Flipdish.Model.TelephonyConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TelephonyConfigId** | **int?** | ID of the phone call | [optional] +**ApmEnabled** | **bool?** | APM enabled flag | [optional] +**Type** | **string** | Type of telephony service | [optional] +**ConsentEnabled** | **bool?** | Consent enabled flag | [optional] +**PhoneNumber** | **string** | APM phone number of the store | [optional] +**SendAppLinkSms** | **bool?** | Send app link SMS flag | [optional] +**UseCustomAppLinkSmsMessage** | **bool?** | Use custom app link SMS message flag | [optional] +**UseCustomVoiceMessage** | **bool?** | Use custom voice message flag | [optional] +**AppLinkSmsMessage** | **string** | App link SMS message | [optional] +**ResendApmMessageAfterDays** | **int?** | Amount of days to resend APM message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TelephonyConfigUpdatedEvent.md b/docs/TelephonyConfigUpdatedEvent.md new file mode 100644 index 00000000..72a17810 --- /dev/null +++ b/docs/TelephonyConfigUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.TelephonyConfigUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**StoreId** | **int?** | Store Id | [optional] +**TelephonyConfig** | [**TelephonyConfig**](TelephonyConfig.md) | The telephony config | [optional] +**PropertyId** | **string** | Property Id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TerminalIotApi.md b/docs/TerminalIotApi.md new file mode 100644 index 00000000..f2c45000 --- /dev/null +++ b/docs/TerminalIotApi.md @@ -0,0 +1,66 @@ +# Flipdish.Api.TerminalIotApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetTerminalIotConnection**](TerminalIotApi.md#getterminaliotconnection) | **POST** /api/v1.0/terminaliot/connect | + + + +# **GetTerminalIotConnection** +> RestApiResultKioskIotConnectionParameters GetTerminalIotConnection () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetTerminalIotConnectionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TerminalIotApi(); + + try + { + RestApiResultKioskIotConnectionParameters result = apiInstance.GetTerminalIotConnection(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TerminalIotApi.GetTerminalIotConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultKioskIotConnectionParameters**](RestApiResultKioskIotConnectionParameters.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ThirdPartyFeesDetails.md b/docs/ThirdPartyFeesDetails.md new file mode 100644 index 00000000..bdb19fd2 --- /dev/null +++ b/docs/ThirdPartyFeesDetails.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ThirdPartyFeesDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryIntegrationFee** | **double?** | Third party integration delivery fee | [optional] +**DeliveryTipFee** | **double?** | Third party integration delivery tip fee | [optional] +**TotalThirdPartyFees** | **double?** | Total third party integration fees | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TipConfiguration.md b/docs/TipConfiguration.md new file mode 100644 index 00000000..f6cefdc5 --- /dev/null +++ b/docs/TipConfiguration.md @@ -0,0 +1,15 @@ +# Flipdish.Model.TipConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **int?** | Configuration is for this StoreId | [optional] +**IsEnabled** | **bool?** | Are tips enabled? | [optional] +**AllowCustomTips** | **bool?** | Are custom tips allowed? | [optional] +**AllowRoundUp** | **bool?** | Is round up allowed? | [optional] +**AllowEmojis** | **bool?** | Are emojis allowed? | [optional] +**Percentages** | **List<double?>** | Ordered list of tip breakpoints (smallest -&gt; largest) | [optional] +**DefaultPercentage** | **double?** | Defines a default percentage, it must be in the list of Percentages | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TipsApi.md b/docs/TipsApi.md new file mode 100644 index 00000000..0bcfacd4 --- /dev/null +++ b/docs/TipsApi.md @@ -0,0 +1,134 @@ +# Flipdish.Api.TipsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**TipConfigGet**](TipsApi.md#tipconfigget) | **GET** /api/v1.0/stores/{storeId}/tipconfig | +[**TipConfigUpsert**](TipsApi.md#tipconfigupsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | + + + +# **TipConfigGet** +> RestApiResultTipConfiguration TipConfigGet (int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TipConfigGetExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TipsApi(); + var storeId = 56; // int? | + + try + { + RestApiResultTipConfiguration result = apiInstance.TipConfigGet(storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TipsApi.TipConfigGet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + +### Return type + +[**RestApiResultTipConfiguration**](RestApiResultTipConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TipConfigUpsert** +> RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class TipConfigUpsertExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new TipsApi(); + var storeId = 56; // int? | + var updateConfig = new UpdateTipConfiguration(); // UpdateTipConfiguration | + + try + { + RestApiResultTipConfiguration result = apiInstance.TipConfigUpsert(storeId, updateConfig); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TipsApi.TipConfigUpsert: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | + **updateConfig** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md)| | + +### Return type + +[**RestApiResultTipConfiguration**](RestApiResultTipConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UnRegisterCardReaderRequest.md b/docs/UnRegisterCardReaderRequest.md new file mode 100644 index 00000000..77fbefca --- /dev/null +++ b/docs/UnRegisterCardReaderRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.UnRegisterCardReaderRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReaderId** | **string** | Device card readerid | +**KioskDeviceId** | **string** | The kiosk device id | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpcomingInvoice.md b/docs/UpcomingInvoice.md new file mode 100644 index 00000000..ea917432 --- /dev/null +++ b/docs/UpcomingInvoice.md @@ -0,0 +1,16 @@ +# Flipdish.Model.UpcomingInvoice +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **double?** | Amount | [optional] +**NextBillingDate** | **DateTime?** | Next billing date | [optional] +**Subtotal** | **double?** | Subtotal | +**TotalExcludingTax** | **double?** | Total excluding tax | [optional] +**AmountDue** | **double?** | Amount due | +**Tax** | **double?** | Tax | +**Items** | [**List<InvoiceItem>**](InvoiceItem.md) | Items | [optional] +**Discounts** | [**List<InvoiceDiscount>**](InvoiceDiscount.md) | Discounts | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateAppStoreApp.md b/docs/UpdateAppStoreApp.md new file mode 100644 index 00000000..ded11e5c --- /dev/null +++ b/docs/UpdateAppStoreApp.md @@ -0,0 +1,26 @@ +# Flipdish.Model.UpdateAppStoreApp +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | **string** | | +**ConfigurationType** | **string** | | +**StoreSelectorType** | **string** | | +**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | | [optional] +**SetupInstructions** | **string** | | [optional] +**ExternalSetupLink** | **string** | | [optional] +**TeammateAppAccessLevel** | **string** | | [optional] +**PermissionsType** | **string** | | +**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | | [optional] +**ExternalFunctionActionUrl** | **string** | | [optional] +**ExternalFunctionSignatureKey** | **string** | | [optional] +**IsPaid** | **bool?** | | [optional] +**Name** | **string** | | +**Description** | **string** | | +**IsEnabled** | **bool?** | | [optional] +**Categories** | **List<string>** | | +**Countries** | **List<string>** | | +**DeveloperName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateAppStoreAppConfiguration.md b/docs/UpdateAppStoreAppConfiguration.md new file mode 100644 index 00000000..870645bb --- /dev/null +++ b/docs/UpdateAppStoreAppConfiguration.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateAppStoreAppConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **bool?** | | +**StoreIds** | **List<int?>** | | [optional] +**Settings** | [**List<Setting>**](Setting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateAppStoreAppConfigurationValuesBatch.md b/docs/UpdateAppStoreAppConfigurationValuesBatch.md new file mode 100644 index 00000000..f94aa2de --- /dev/null +++ b/docs/UpdateAppStoreAppConfigurationValuesBatch.md @@ -0,0 +1,9 @@ +# Flipdish.Model.UpdateAppStoreAppConfigurationValuesBatch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Settings** | [**List<Setting>**](Setting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateAppStoreAppConfigurationWebhookDTO.md b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md new file mode 100644 index 00000000..7d72a549 --- /dev/null +++ b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md @@ -0,0 +1,12 @@ +# Flipdish.Model.UpdateAppStoreAppConfigurationWebhookDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**IsEnabled** | **bool?** | | +**StoreIds** | **List<int?>** | | [optional] +**Settings** | [**List<Setting>**](Setting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateAppStoreAppExternalProduct.md b/docs/UpdateAppStoreAppExternalProduct.md new file mode 100644 index 00000000..ee04efaf --- /dev/null +++ b/docs/UpdateAppStoreAppExternalProduct.md @@ -0,0 +1,9 @@ +# Flipdish.Model.UpdateAppStoreAppExternalProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalProductId** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateCatalogGroupReference.md b/docs/UpdateCatalogGroupReference.md new file mode 100644 index 00000000..fbede304 --- /dev/null +++ b/docs/UpdateCatalogGroupReference.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateCatalogGroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **string** | Identifier of the ProductId to use as SubProduct | +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | [optional] +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateCatalogItem.md b/docs/UpdateCatalogItem.md new file mode 100644 index 00000000..2cb094c0 --- /dev/null +++ b/docs/UpdateCatalogItem.md @@ -0,0 +1,16 @@ +# Flipdish.Model.UpdateCatalogItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **string** | Stock Keeping Unit (SKU) | [optional] +**Name** | **string** | Product name | [optional] +**Description** | **string** | Product description | [optional] +**Price** | **double?** | Product price | [optional] +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | Product contains alcohol | [optional] +**Groups** | [**List<UpdateCatalogGroupReference>**](UpdateCatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateDriverNotificationToken.md b/docs/UpdateDriverNotificationToken.md new file mode 100644 index 00000000..e4c8886a --- /dev/null +++ b/docs/UpdateDriverNotificationToken.md @@ -0,0 +1,9 @@ +# Flipdish.Model.UpdateDriverNotificationToken +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PushNotificationsToken** | **string** | Push notifications token, cannot be null | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateDriverProfileModel.md b/docs/UpdateDriverProfileModel.md new file mode 100644 index 00000000..c4a91b7a --- /dev/null +++ b/docs/UpdateDriverProfileModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.UpdateDriverProfileModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The new name of the Driver. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateFulfillmentStatesConfiguration.md b/docs/UpdateFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..55e44848 --- /dev/null +++ b/docs/UpdateFulfillmentStatesConfiguration.md @@ -0,0 +1,14 @@ +# Flipdish.Model.UpdateFulfillmentStatesConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OverwriteSystemTemplate** | **bool?** | Set to true if a system configuration template is to be updated (permissions also needed) | [optional] +**StoreIds** | **List<int?>** | Stores id's | [optional] +**StoreSelectorType** | **string** | Store Selector Type | [optional] +**States** | [**List<FulfillmentStatusConfigurationItem>**](FulfillmentStatusConfigurationItem.md) | Settings | [optional] +**AutomaticTransitionsEnabled** | **bool?** | Enable automatic transitions | [optional] +**Name** | **string** | Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateGroup.md b/docs/UpdateGroup.md new file mode 100644 index 00000000..4cf0dcf5 --- /dev/null +++ b/docs/UpdateGroup.md @@ -0,0 +1,16 @@ +# Flipdish.Model.UpdateGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **string** | Stock Keeping Unit (SKU) | [optional] +**Name** | **string** | Group name | [optional] +**AutogenerateDisplayText** | **bool?** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **string** | Image File Name | [optional] +**MinSelectCount** | **int?** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **int?** | Maximum number of items that the user has to select | [optional] +**Products** | [**List<UpdateProductReference>**](UpdateProductReference.md) | Collection of items associated with this group | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateGroupReference.md b/docs/UpdateGroupReference.md new file mode 100644 index 00000000..9f4ad9cc --- /dev/null +++ b/docs/UpdateGroupReference.md @@ -0,0 +1,10 @@ +# Flipdish.Model.UpdateGroupReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **string** | Type of the SupProduct | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateLocationArea.md b/docs/UpdateLocationArea.md new file mode 100644 index 00000000..9dd59fda --- /dev/null +++ b/docs/UpdateLocationArea.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateLocationArea +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **int?** | Location Area Id | +**LocationAreaName** | **string** | Descriptive LocationArea name | +**IsDeleted** | **bool?** | Sets if the Location Area should be soft deleted or not | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateMetafieldDefinition.md b/docs/UpdateMetafieldDefinition.md new file mode 100644 index 00000000..3b74c0de --- /dev/null +++ b/docs/UpdateMetafieldDefinition.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateMetafieldDefinition +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Field Name | [optional] +**Description** | **string** | Field Description | [optional] +**Behaviors** | **List<string>** | Enable Metafield Behaviors | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateMobileAppsSubmissionStatus.md b/docs/UpdateMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..6d7ade43 --- /dev/null +++ b/docs/UpdateMobileAppsSubmissionStatus.md @@ -0,0 +1,14 @@ +# Flipdish.Model.UpdateMobileAppsSubmissionStatus +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionStatusId** | **int?** | Mobile Apps Submission Status Id | [optional] +**Type** | **string** | Mobile Type | [optional] +**AppStatus** | **string** | Mobile App Status | [optional] +**UpdateStatus** | **string** | Mobile App Status | [optional] +**LastUpdateStatusTime** | **DateTime?** | Mobile LastUpdateStatusTime | [optional] +**Notes** | **string** | Mobile Notes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdatePayGreenConfigurationRequest.md b/docs/UpdatePayGreenConfigurationRequest.md new file mode 100644 index 00000000..f2cfb0a1 --- /dev/null +++ b/docs/UpdatePayGreenConfigurationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.UpdatePayGreenConfigurationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name. | [optional] +**AssignedStores** | **List<int?>** | AssignedStores. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateProduct.md b/docs/UpdateProduct.md new file mode 100644 index 00000000..fef69dc1 --- /dev/null +++ b/docs/UpdateProduct.md @@ -0,0 +1,16 @@ +# Flipdish.Model.UpdateProduct +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **string** | Stock Keeping Unit (SKU) | [optional] +**Name** | **string** | Product name | [optional] +**Description** | **string** | Product description | [optional] +**Price** | **double?** | Product price | [optional] +**ImageFileName** | **string** | Image File Name | [optional] +**Alcohol** | **bool?** | Product contains alcohol | [optional] +**Groups** | [**List<UpdateGroupReference>**](UpdateGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**List<Metafield>**](Metafield.md) | Collection of metafields | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateProductReference.md b/docs/UpdateProductReference.md new file mode 100644 index 00000000..ccceed67 --- /dev/null +++ b/docs/UpdateProductReference.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateProductReference +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **string** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **string** | Type of the SupProduct | +**PreselectedQuantity** | **int?** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateStorePayGreenConfigurationRequest.md b/docs/UpdateStorePayGreenConfigurationRequest.md new file mode 100644 index 00000000..55aaada6 --- /dev/null +++ b/docs/UpdateStorePayGreenConfigurationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.Model.UpdateStorePayGreenConfigurationRequest +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | **bool?** | Active. | [optional] +**PayGreenConfigurationId** | **int?** | PayGreenConfigurationId. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateTipConfiguration.md b/docs/UpdateTipConfiguration.md new file mode 100644 index 00000000..baddda58 --- /dev/null +++ b/docs/UpdateTipConfiguration.md @@ -0,0 +1,14 @@ +# Flipdish.Model.UpdateTipConfiguration +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **bool?** | Are tips enabled? | [optional] +**AllowCustomTips** | **bool?** | Are custom tips allowed? | [optional] +**AllowRoundUp** | **bool?** | Is round up allowed? | [optional] +**AllowEmojis** | **bool?** | Are emojis allowed? | [optional] +**Percentages** | **List<double?>** | Ordered list of tip breakpoints (smallest -&gt; largest) | [optional] +**DefaultPercentage** | **double?** | Defines a default percentage, it must be in the list of Percentages | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateVoucher.md b/docs/UpdateVoucher.md new file mode 100644 index 00000000..08a26a10 --- /dev/null +++ b/docs/UpdateVoucher.md @@ -0,0 +1,36 @@ +# Flipdish.Model.UpdateVoucher +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionId** | **int?** | Promotion ID to update | [optional] +**PromotionName** | **string** | The updated name of the promotion | [optional] +**PromotionAwardMenuItemPublicIds** | **List<Guid?>** | The updated menu items that the promotion awards | [optional] +**Code** | **string** | Voucher Code | [optional] +**Description** | **string** | Voucher Description (Visible on printout) | [optional] +**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **double?** | Valid on orders on or above | [optional] +**TakesPriority** | **bool?** | Takes priority | [optional] +**IsEnabled** | **bool?** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **bool?** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **bool?** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **bool?** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **bool?** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **bool?** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **bool?** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **bool?** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **bool?** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **bool?** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **bool?** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**IsPromoted** | **bool?** | Marks the voucher as promoted | [optional] +**ForceDiscount** | **bool?** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **DateTime?** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **DateTime?** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **List<string>** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**List<ValidityPeriod>**](ValidityPeriod.md) | Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. | [optional] +**VoucherSubType** | **string** | Voucher Subtype | [optional] +**CustomerId** | **int?** | Customer UserID | [optional] +**MaxRedemptions** | **int?** | Maximum number of times the voucher can be redeemed (used) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateVoucherUsage.md b/docs/UpdateVoucherUsage.md new file mode 100644 index 00000000..591f3b29 --- /dev/null +++ b/docs/UpdateVoucherUsage.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UpdateVoucherUsage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsUsed** | **bool?** | Flag indicating whether the voucher is used | [optional] +**UsedByCustomerId** | **int?** | Indicates Customer that used the voucher. | [optional] +**TransactionKey** | **string** | An opaque string, to ensure idempotency. This allows for safely retrying requests without accidentally performing the same stamp operation twice. This will typically contain the the ID of the sale order. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserAnsweredSignupQuestionsEvent.md b/docs/UserAnsweredSignupQuestionsEvent.md new file mode 100644 index 00000000..8d5c6389 --- /dev/null +++ b/docs/UserAnsweredSignupQuestionsEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserAnsweredSignupQuestionsEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**SignupAnswers** | **string** | The users answers | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserCreatedEvent.md b/docs/UserCreatedEvent.md new file mode 100644 index 00000000..0ad10736 --- /dev/null +++ b/docs/UserCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserDeletedEvent.md b/docs/UserDeletedEvent.md new file mode 100644 index 00000000..af09e8c7 --- /dev/null +++ b/docs/UserDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserDeliveryLocationAdmin.md b/docs/UserDeliveryLocationAdmin.md new file mode 100644 index 00000000..928015b9 --- /dev/null +++ b/docs/UserDeliveryLocationAdmin.md @@ -0,0 +1,18 @@ +# Flipdish.Model.UserDeliveryLocationAdmin +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryLocationId** | **int?** | DeliveryLocationId. | [optional] +**Building** | **string** | Building. | [optional] +**Street** | **string** | Street. | [optional] +**Town** | **string** | Town. | [optional] +**PostCode** | **string** | PostCode. | [optional] +**DeliveryInstructions** | **string** | DeliveryInstructions. | [optional] +**AutoSelectThisLocation** | **bool?** | AutoSelectThisLocation. | [optional] +**IsDisplayed** | **bool?** | IsDisplayed. | [optional] +**IsConfirmed** | **bool?** | IsConfirmed. | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | Coordinates. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserEventInfo.md b/docs/UserEventInfo.md new file mode 100644 index 00000000..8bb804d8 --- /dev/null +++ b/docs/UserEventInfo.md @@ -0,0 +1,12 @@ +# Flipdish.Model.UserEventInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **int?** | User Id | [optional] +**UserName** | **string** | User Name | [optional] +**UserPhoneNumber** | **string** | User Phone Number | [optional] +**UserEmail** | **string** | User Email | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserFlipdishAccount.md b/docs/UserFlipdishAccount.md new file mode 100644 index 00000000..5d346477 --- /dev/null +++ b/docs/UserFlipdishAccount.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UserFlipdishAccount +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayeeBankAccountDataId** | **int?** | Payee Bank Account Data Id | [optional] +**FlipdishAccountId** | **int?** | Flipdish Account Id | [optional] +**Name** | **string** | Flipdish Account Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserInfo.md b/docs/UserInfo.md new file mode 100644 index 00000000..363b9b8f --- /dev/null +++ b/docs/UserInfo.md @@ -0,0 +1,35 @@ +# Flipdish.Model.UserInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | The user's phone number. | [optional] +**Email** | **string** | The user's email address. | [optional] +**EmailConfirmed** | **bool?** | Indicates if the user's email address has been confirmed. | [optional] +**PreventFromUsingCards** | **bool?** | Indicates if the user is prevented from using cards. | [optional] +**IsUserPhoneNumberBlocked** | **bool?** | Indicates if the user's phone number is blocked. | [optional] +**UserWhiteLabels** | [**List<UserWhiteLabelInfo>**](UserWhiteLabelInfo.md) | List of white label information associated with the user. | [optional] +**UserId** | **int?** | The unique identifier for the user. | [optional] +**UserName** | **string** | The user's username. | [optional] +**CustomerName** | **string** | The customer's name. | [optional] +**HasLoggedIn** | **bool?** | Indicates if the user has logged in. | [optional] +**DisableAppRatingControl** | **bool?** | Indicates if the app rating control is disabled for the user. | [optional] +**GloballyOptedOut** | **bool?** | Indicates if the user has globally opted out. | [optional] +**CompletedOrderCount** | **int?** | The number of completed orders by the user. | [optional] +**CancelledOrderCount** | **int?** | The number of cancelled orders by the user. | [optional] +**OrderTotalValue** | **double?** | The total value of orders placed by the user. | [optional] +**TsMostRecentOrder** | **DateTime?** | The timestamp of the user's most recent order. | [optional] +**TsFirstOrder** | **DateTime?** | The timestamp of the user's first order. | [optional] +**IsRestaurantUser** | **bool?** | Indicates if the user is a restaurant user. | [optional] +**Installs** | [**List<AppInstall>**](AppInstall.md) | List of app installs associated with the user. | [optional] +**DeliveryLocations** | [**List<DeliveryLocation>**](DeliveryLocation.md) | List of delivery locations associated with the user. | [optional] +**PaymentAccounts** | [**List<PaymentAccount>**](PaymentAccount.md) | List of payment accounts associated with the user. | [optional] +**LanguageId** | **string** | The language identifier for the user. | [optional] +**CurrentLanguageName** | **string** | Current language name for the user. | [optional] +**Languages** | [**List<Language>**](Language.md) | Available languages that the user can choose from. | [optional] +**SalesForceContactId** | **string** | The Salesforce contact ID for the user. | [optional] +**StripeCustomerId** | **string** | The Stripe customer ID for the user. | [optional] +**UserMonthlyCommissions** | [**List<UserMonthlyCommission>**](UserMonthlyCommission.md) | User's monthly commissions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserLoginEvent.md b/docs/UserLoginEvent.md new file mode 100644 index 00000000..de2dee6e --- /dev/null +++ b/docs/UserLoginEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserLoginEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserMonthlyCommission.md b/docs/UserMonthlyCommission.md new file mode 100644 index 00000000..9c6bcc90 --- /dev/null +++ b/docs/UserMonthlyCommission.md @@ -0,0 +1,13 @@ +# Flipdish.Model.UserMonthlyCommission +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **int?** | The unique identifier of the user. | [optional] +**MonthStart** | **DateTime?** | The start date of the month for which the commission is calculated. | [optional] +**CommissionAmount** | **double?** | The total commission amount for the user in the specified month. | [optional] +**Currency** | **string** | The currency in which the commission is paid. | [optional] +**IsoCurrency** | **string** | The ISO currency code for the commission currency. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserNote.md b/docs/UserNote.md new file mode 100644 index 00000000..6d28ff9e --- /dev/null +++ b/docs/UserNote.md @@ -0,0 +1,15 @@ +# Flipdish.Model.UserNote +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserNoteId** | **int?** | Identifier for the user note. | [optional] +**UserId** | **int?** | User identifier associated with the note. | [optional] +**Note** | **string** | Note content. | [optional] +**TsCreate** | **DateTime?** | Creation timestamp of the note. | [optional] +**CreatedByUserId** | **int?** | Identifier of the user who created the note. | [optional] +**CreatedByUserName** | **string** | Name of the user who created the note. | [optional] +**CreatedByUserEmail** | **string** | Email of the user who created the note. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserOrderSummary.md b/docs/UserOrderSummary.md new file mode 100644 index 00000000..ef82f99d --- /dev/null +++ b/docs/UserOrderSummary.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserOrderSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **int?** | OrderId. | [optional] +**TsOrderPlacedUtc** | **DateTime?** | TsOrderPlacedUtc. | [optional] +**TsUpdateUtc** | **DateTime?** | TsUpdateUtc. | [optional] +**RestaurantName** | **string** | RestaurantName. | [optional] +**FoodAmount** | **double?** | FoodAmount. | [optional] +**TipAmount** | **double?** | TipAmount. | [optional] +**TotalRestaurantAmount** | **double?** | TotalRestaurantAmount. | [optional] +**IsoCurrency** | **string** | IsoCurrency. | [optional] +**DeliveryType** | **string** | DeliveryType. | [optional] +**OrderState** | **string** | OrderState. | [optional] +**PaymentAccountDescription** | **string** | PaymentAccountDescription. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserPasswordCreatedEvent.md b/docs/UserPasswordCreatedEvent.md new file mode 100644 index 00000000..3f651663 --- /dev/null +++ b/docs/UserPasswordCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserPasswordCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserPushNotificationSentResult.md b/docs/UserPushNotificationSentResult.md new file mode 100644 index 00000000..d5d77715 --- /dev/null +++ b/docs/UserPushNotificationSentResult.md @@ -0,0 +1,9 @@ +# Flipdish.Model.UserPushNotificationSentResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenCount** | **int?** | TokenCount. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserRole.md b/docs/UserRole.md new file mode 100644 index 00000000..fb6d87e5 --- /dev/null +++ b/docs/UserRole.md @@ -0,0 +1,10 @@ +# Flipdish.Model.UserRole +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RolesUserIn** | **List<string>** | Roles the user is in | [optional] +**RolesUserNotIn** | **List<string>** | Roles the user is not in | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserSearch.md b/docs/UserSearch.md new file mode 100644 index 00000000..205cd071 --- /dev/null +++ b/docs/UserSearch.md @@ -0,0 +1,17 @@ +# Flipdish.Model.UserSearch +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | User Id | [optional] +**PhoneNumber** | **string** | Phone Number | [optional] +**Email** | **string** | Email | [optional] +**CustomerName** | **string** | Customer Name | [optional] +**HasLoggedIn** | **bool?** | Has Logged In | [optional] +**UserDiscriminator** | **string** | User Discriminator | [optional] +**TsCreate** | **DateTime?** | Timestamp Created | [optional] +**WhiteLabelConfigs** | [**List<UserWhiteLabelConfig>**](UserWhiteLabelConfig.md) | WhiteLabel Configs | [optional] +**UserType** | **string** | User Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserSmsChatItem.md b/docs/UserSmsChatItem.md new file mode 100644 index 00000000..5f79bfc6 --- /dev/null +++ b/docs/UserSmsChatItem.md @@ -0,0 +1,13 @@ +# Flipdish.Model.UserSmsChatItem +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SmsConversationItemId** | **int?** | SmsConversationItemId. | [optional] +**Direction** | **string** | Direction. | [optional] +**From** | **string** | From. | [optional] +**Text** | **string** | Text. | [optional] +**TsSentReceivedUtc** | **DateTime?** | TsSentReceivedUtc. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserStoreInfo.md b/docs/UserStoreInfo.md new file mode 100644 index 00000000..1a84f727 --- /dev/null +++ b/docs/UserStoreInfo.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UserStoreInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyId** | **string** | Property Id | [optional] +**StoreId** | **int?** | Store Id | [optional] +**StoreName** | **string** | Store Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserUpdatedEvent.md b/docs/UserUpdatedEvent.md new file mode 100644 index 00000000..98b9b218 --- /dev/null +++ b/docs/UserUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.UserUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | The user | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserWhiteLabelConfig.md b/docs/UserWhiteLabelConfig.md new file mode 100644 index 00000000..30560698 --- /dev/null +++ b/docs/UserWhiteLabelConfig.md @@ -0,0 +1,13 @@ +# Flipdish.Model.UserWhiteLabelConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Identifier | [optional] +**ConfigId** | **int?** | WlConfigId | [optional] +**AppId** | **string** | Brand Id | [optional] +**Name** | **string** | WhiteLabel Name | [optional] +**Level** | **string** | WhiteLabel Access Level | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserWhiteLabelInfo.md b/docs/UserWhiteLabelInfo.md new file mode 100644 index 00000000..01f71a4f --- /dev/null +++ b/docs/UserWhiteLabelInfo.md @@ -0,0 +1,11 @@ +# Flipdish.Model.UserWhiteLabelInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WlConfigId** | **int?** | WhiteLabelConfig Id | [optional] +**AppId** | **string** | Brand Id (AppId) | [optional] +**WhiteLabelName** | **string** | WhiteLabel Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UsersApi.md b/docs/UsersApi.md new file mode 100644 index 00000000..57745a8d --- /dev/null +++ b/docs/UsersApi.md @@ -0,0 +1,2042 @@ +# Flipdish.Api.UsersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddUserNote**](UsersApi.md#addusernote) | **POST** /api/v1.0/users/{userId}/AddUserNote | +[**AddUserToRole**](UsersApi.md#addusertorole) | **POST** /api/v1.0/users/{userId}/AddUserToRole/{roleName} | +[**AnonymizeUser**](UsersApi.md#anonymizeuser) | **POST** /api/v1.0/users/{userId}/AnonymizeUser | +[**BlockUserPhoneNumber**](UsersApi.md#blockuserphonenumber) | **POST** /api/v1.0/users/{userId}/BlockUserPhoneNumber | +[**CreateUserDeliveryLocation**](UsersApi.md#createuserdeliverylocation) | **POST** /api/v1.0/users/{userId}/deliveryLocations | +[**GetPreviousOrderCountForStore**](UsersApi.md#getpreviousordercountforstore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | +[**GetRestaurantUserAccounts**](UsersApi.md#getrestaurantuseraccounts) | **GET** /api/v1.0/users/{userId}/RestaurantUserAccounts | +[**GetRestaurantUserStores**](UsersApi.md#getrestaurantuserstores) | **GET** /api/v1.0/users/{userId}/RestaurantUserStores | +[**GetRoles**](UsersApi.md#getroles) | **GET** /api/v1.0/users/roles | +[**GetRolesAndUnassignedRoles**](UsersApi.md#getrolesandunassignedroles) | **GET** /api/v1.0/users/{userId}/roles | +[**GetUserById**](UsersApi.md#getuserbyid) | **GET** /api/v1.0/users/{userId} | +[**GetUserDeliveryLocationsForAdmin**](UsersApi.md#getuserdeliverylocationsforadmin) | **GET** /api/v1.0/users/{userId}/deliveryLocations | +[**GetUserNotes**](UsersApi.md#getusernotes) | **GET** /api/v1.0/users/{userId}/UserNotes | +[**GetUserOrderByIdForAdmin**](UsersApi.md#getuserorderbyidforadmin) | **GET** /api/v1.0/users/{userId}/orders/{orderId} | +[**GetUserOrdersForAdmin**](UsersApi.md#getuserordersforadmin) | **GET** /api/v1.0/users/{userId}/orders | +[**GetUserSmsConversationItems**](UsersApi.md#getusersmsconversationitems) | **GET** /api/v1.0/users/{userId}/smsConversationItems | +[**HideUserDeliveryLocation**](UsersApi.md#hideuserdeliverylocation) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/hide | +[**MarkUserAsFraudulent**](UsersApi.md#markuserasfraudulent) | **POST** /api/v1.0/users/{userId}/MarkUserAsFraudulent | +[**MarkUserAsSuspicious**](UsersApi.md#markuserassuspicious) | **POST** /api/v1.0/users/{userId}/MarkUserAsSuspicious | +[**RemoveFlipdishAccountIdForUser**](UsersApi.md#removeflipdishaccountidforuser) | **POST** /api/v1.0/users/{userId}/RemoveFlipdishAccountId/{accountId} | +[**RemoveUserFromRole**](UsersApi.md#removeuserfromrole) | **POST** /api/v1.0/users/{userId}/RemoveUserFromRole/{roleName} | +[**ResetMfa**](UsersApi.md#resetmfa) | **POST** /api/v1.0/users/{userId}/ResetMfa | +[**SearchFlipdishAccounts**](UsersApi.md#searchflipdishaccounts) | **GET** /api/v1.0/users/searchFlipdishAccounts | +[**SearchUsers**](UsersApi.md#searchusers) | **GET** /api/v1.0/users/search | +[**SendUserPushNotification**](UsersApi.md#senduserpushnotification) | **POST** /api/v1.0/users/{userId}/pushNotifications | +[**SendUserSms**](UsersApi.md#sendusersms) | **POST** /api/v1.0/users/{userId}/sms | +[**SetCustomerName**](UsersApi.md#setcustomername) | **POST** /api/v1.0/users/{userId}/SetCustomerName | +[**SetFlipdishAccountIdForUser**](UsersApi.md#setflipdishaccountidforuser) | **POST** /api/v1.0/users/{userId}/SetFlipdishAccountId/{accountId} | +[**SetUserDeliveryLocationCoordinates**](UsersApi.md#setuserdeliverylocationcoordinates) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/coordinates | +[**SetUserDeliveryLocationField**](UsersApi.md#setuserdeliverylocationfield) | **POST** /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/fields | +[**SetUserLanguage**](UsersApi.md#setuserlanguage) | **POST** /api/v1.0/users/{userId}/SetLanguage/{languageId} | +[**UnblockUserPhoneNumber**](UsersApi.md#unblockuserphonenumber) | **POST** /api/v1.0/users/{userId}/UnblockUserPhoneNumber | + + + +# **AddUserNote** +> RestApiDefaultResponse AddUserNote (int? userId, string note) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddUserNoteExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var note = note_example; // string | + + try + { + RestApiDefaultResponse result = apiInstance.AddUserNote(userId, note); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.AddUserNote: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **note** | **string**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AddUserToRole** +> RestApiResultUserRole AddUserToRole (int? userId, string roleName) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddUserToRoleExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var roleName = roleName_example; // string | + + try + { + RestApiResultUserRole result = apiInstance.AddUserToRole(userId, roleName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.AddUserToRole: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **roleName** | **string**| | + +### Return type + +[**RestApiResultUserRole**](RestApiResultUserRole.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **AnonymizeUser** +> RestApiDefaultResponse AnonymizeUser (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AnonymizeUserExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.AnonymizeUser(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.AnonymizeUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **BlockUserPhoneNumber** +> RestApiDefaultResponse BlockUserPhoneNumber (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class BlockUserPhoneNumberExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.BlockUserPhoneNumber(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.BlockUserPhoneNumber: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateUserDeliveryLocation** +> RestApiDefaultResponse CreateUserDeliveryLocation (int? userId, CreateUserDeliveryLocationRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateUserDeliveryLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var request = new CreateUserDeliveryLocationRequest(); // CreateUserDeliveryLocationRequest | + + try + { + RestApiDefaultResponse result = apiInstance.CreateUserDeliveryLocation(userId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.CreateUserDeliveryLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **request** | [**CreateUserDeliveryLocationRequest**](CreateUserDeliveryLocationRequest.md)| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPreviousOrderCountForStore** +> RestApiStringResult GetPreviousOrderCountForStore (int? userId, int? storeId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPreviousOrderCountForStoreExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var storeId = 56; // int? | + + try + { + RestApiStringResult result = apiInstance.GetPreviousOrderCountForStore(userId, storeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetPreviousOrderCountForStore: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **storeId** | **int?**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRestaurantUserAccounts** +> RestApiArrayResultUserFlipdishAccount GetRestaurantUserAccounts (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRestaurantUserAccountsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiArrayResultUserFlipdishAccount result = apiInstance.GetRestaurantUserAccounts(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetRestaurantUserAccounts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiArrayResultUserFlipdishAccount**](RestApiArrayResultUserFlipdishAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRestaurantUserStores** +> RestApiArrayResultUserStoreInfo GetRestaurantUserStores (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRestaurantUserStoresExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiArrayResultUserStoreInfo result = apiInstance.GetRestaurantUserStores(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetRestaurantUserStores: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiArrayResultUserStoreInfo**](RestApiArrayResultUserStoreInfo.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRoles** +> RestApiStringArrayResult GetRoles () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRolesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + + try + { + RestApiStringArrayResult result = apiInstance.GetRoles(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetRoles: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRolesAndUnassignedRoles** +> RestApiResultUserRole GetRolesAndUnassignedRoles (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetRolesAndUnassignedRolesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiResultUserRole result = apiInstance.GetRolesAndUnassignedRoles(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetRolesAndUnassignedRoles: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiResultUserRole**](RestApiResultUserRole.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserById** +> RestApiResultUserInfo GetUserById (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiResultUserInfo result = apiInstance.GetUserById(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiResultUserInfo**](RestApiResultUserInfo.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserDeliveryLocationsForAdmin** +> RestApiArrayResultUserDeliveryLocationAdmin GetUserDeliveryLocationsForAdmin (int? userId, int? whiteLabelId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserDeliveryLocationsForAdminExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var whiteLabelId = 56; // int? | (optional) + + try + { + RestApiArrayResultUserDeliveryLocationAdmin result = apiInstance.GetUserDeliveryLocationsForAdmin(userId, whiteLabelId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserDeliveryLocationsForAdmin: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **whiteLabelId** | **int?**| | [optional] + +### Return type + +[**RestApiArrayResultUserDeliveryLocationAdmin**](RestApiArrayResultUserDeliveryLocationAdmin.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserNotes** +> RestApiArrayResultUserNote GetUserNotes (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserNotesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiArrayResultUserNote result = apiInstance.GetUserNotes(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserNotes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiArrayResultUserNote**](RestApiArrayResultUserNote.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserOrderByIdForAdmin** +> RestApiResultOrder GetUserOrderByIdForAdmin (int? userId, int? orderId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserOrderByIdForAdminExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var orderId = 56; // int? | + + try + { + RestApiResultOrder result = apiInstance.GetUserOrderByIdForAdmin(userId, orderId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserOrderByIdForAdmin: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **orderId** | **int?**| | + +### Return type + +[**RestApiResultOrder**](RestApiResultOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserOrdersForAdmin** +> RestApiArrayResultUserOrderSummary GetUserOrdersForAdmin (int? userId, int? skip = null, int? take = null, string brandId = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserOrdersForAdminExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var skip = 56; // int? | (optional) + var take = 56; // int? | (optional) + var brandId = brandId_example; // string | (optional) + + try + { + RestApiArrayResultUserOrderSummary result = apiInstance.GetUserOrdersForAdmin(userId, skip, take, brandId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserOrdersForAdmin: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **skip** | **int?**| | [optional] + **take** | **int?**| | [optional] + **brandId** | **string**| | [optional] + +### Return type + +[**RestApiArrayResultUserOrderSummary**](RestApiArrayResultUserOrderSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserSmsConversationItems** +> RestApiArrayResultUserSmsChatItem GetUserSmsConversationItems (int? userId, int? mostRecentCount = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetUserSmsConversationItemsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var mostRecentCount = 56; // int? | (optional) + + try + { + RestApiArrayResultUserSmsChatItem result = apiInstance.GetUserSmsConversationItems(userId, mostRecentCount); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.GetUserSmsConversationItems: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **mostRecentCount** | **int?**| | [optional] + +### Return type + +[**RestApiArrayResultUserSmsChatItem**](RestApiArrayResultUserSmsChatItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HideUserDeliveryLocation** +> RestApiDefaultResponse HideUserDeliveryLocation (int? userId, int? deliveryLocationId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HideUserDeliveryLocationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var deliveryLocationId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.HideUserDeliveryLocation(userId, deliveryLocationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.HideUserDeliveryLocation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **deliveryLocationId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MarkUserAsFraudulent** +> RestApiDefaultResponse MarkUserAsFraudulent (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MarkUserAsFraudulentExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.MarkUserAsFraudulent(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.MarkUserAsFraudulent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **MarkUserAsSuspicious** +> RestApiDefaultResponse MarkUserAsSuspicious (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class MarkUserAsSuspiciousExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.MarkUserAsSuspicious(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.MarkUserAsSuspicious: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveFlipdishAccountIdForUser** +> RestApiDefaultResponse RemoveFlipdishAccountIdForUser (int? userId, int? accountId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveFlipdishAccountIdForUserExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var accountId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.RemoveFlipdishAccountIdForUser(userId, accountId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.RemoveFlipdishAccountIdForUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **accountId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveUserFromRole** +> RestApiResultUserRole RemoveUserFromRole (int? userId, string roleName) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class RemoveUserFromRoleExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var roleName = roleName_example; // string | + + try + { + RestApiResultUserRole result = apiInstance.RemoveUserFromRole(userId, roleName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.RemoveUserFromRole: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **roleName** | **string**| | + +### Return type + +[**RestApiResultUserRole**](RestApiResultUserRole.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ResetMfa** +> RestApiDefaultResponse ResetMfa (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class ResetMfaExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.ResetMfa(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.ResetMfa: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchFlipdishAccounts** +> RestApiArrayResultFlipdishAccountName SearchFlipdishAccounts (string searchPattern) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchFlipdishAccountsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var searchPattern = searchPattern_example; // string | + + try + { + RestApiArrayResultFlipdishAccountName result = apiInstance.SearchFlipdishAccounts(searchPattern); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SearchFlipdishAccounts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchPattern** | **string**| | + +### Return type + +[**RestApiArrayResultFlipdishAccountName**](RestApiArrayResultFlipdishAccountName.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchUsers** +> RestApiPaginationResultUserSearch SearchUsers (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SearchUsersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var searchQuery = searchQuery_example; // string | + var hasUserLoggedIn = true; // bool? | (optional) + var userDiscriminator = userDiscriminator_example; // string | (optional) + var searchIn = searchIn_example; // string | (optional) + var pageIndex = 56; // int? | (optional) + var pageSize = 56; // int? | (optional) + + try + { + RestApiPaginationResultUserSearch result = apiInstance.SearchUsers(searchQuery, hasUserLoggedIn, userDiscriminator, searchIn, pageIndex, pageSize); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SearchUsers: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchQuery** | **string**| | + **hasUserLoggedIn** | **bool?**| | [optional] + **userDiscriminator** | **string**| | [optional] + **searchIn** | **string**| | [optional] + **pageIndex** | **int?**| | [optional] + **pageSize** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultUserSearch**](RestApiPaginationResultUserSearch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SendUserPushNotification** +> RestApiResultUserPushNotificationSentResult SendUserPushNotification (int? userId, SendUserPushNotificationRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SendUserPushNotificationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var request = new SendUserPushNotificationRequest(); // SendUserPushNotificationRequest | + + try + { + RestApiResultUserPushNotificationSentResult result = apiInstance.SendUserPushNotification(userId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SendUserPushNotification: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **request** | [**SendUserPushNotificationRequest**](SendUserPushNotificationRequest.md)| | + +### Return type + +[**RestApiResultUserPushNotificationSentResult**](RestApiResultUserPushNotificationSentResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SendUserSms** +> RestApiDefaultResponse SendUserSms (int? userId, SendUserSmsRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SendUserSmsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var request = new SendUserSmsRequest(); // SendUserSmsRequest | + + try + { + RestApiDefaultResponse result = apiInstance.SendUserSms(userId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SendUserSms: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **request** | [**SendUserSmsRequest**](SendUserSmsRequest.md)| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetCustomerName** +> RestApiDefaultResponse SetCustomerName (int? userId, string customerName) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetCustomerNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var customerName = customerName_example; // string | + + try + { + RestApiDefaultResponse result = apiInstance.SetCustomerName(userId, customerName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SetCustomerName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **customerName** | **string**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetFlipdishAccountIdForUser** +> RestApiDefaultResponse SetFlipdishAccountIdForUser (int? userId, int? accountId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetFlipdishAccountIdForUserExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var accountId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.SetFlipdishAccountIdForUser(userId, accountId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SetFlipdishAccountIdForUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **accountId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetUserDeliveryLocationCoordinates** +> RestApiDefaultResponse SetUserDeliveryLocationCoordinates (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetUserDeliveryLocationCoordinatesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var deliveryLocationId = 56; // int? | + var request = new SetUserDeliveryLocationCoordinatesRequest(); // SetUserDeliveryLocationCoordinatesRequest | + + try + { + RestApiDefaultResponse result = apiInstance.SetUserDeliveryLocationCoordinates(userId, deliveryLocationId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SetUserDeliveryLocationCoordinates: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **deliveryLocationId** | **int?**| | + **request** | [**SetUserDeliveryLocationCoordinatesRequest**](SetUserDeliveryLocationCoordinatesRequest.md)| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetUserDeliveryLocationField** +> RestApiDefaultResponse SetUserDeliveryLocationField (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetUserDeliveryLocationFieldExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var deliveryLocationId = 56; // int? | + var request = new SetUserDeliveryLocationFieldRequest(); // SetUserDeliveryLocationFieldRequest | + + try + { + RestApiDefaultResponse result = apiInstance.SetUserDeliveryLocationField(userId, deliveryLocationId, request); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SetUserDeliveryLocationField: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **deliveryLocationId** | **int?**| | + **request** | [**SetUserDeliveryLocationFieldRequest**](SetUserDeliveryLocationFieldRequest.md)| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetUserLanguage** +> RestApiDefaultResponse SetUserLanguage (int? userId, string languageId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetUserLanguageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + var languageId = languageId_example; // string | + + try + { + RestApiDefaultResponse result = apiInstance.SetUserLanguage(userId, languageId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.SetUserLanguage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **languageId** | **string**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UnblockUserPhoneNumber** +> RestApiDefaultResponse UnblockUserPhoneNumber (int? userId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UnblockUserPhoneNumberExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new UsersApi(); + var userId = 56; // int? | + + try + { + RestApiDefaultResponse result = apiInstance.UnblockUserPhoneNumber(userId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling UsersApi.UnblockUserPhoneNumber: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ValidValue.md b/docs/ValidValue.md new file mode 100644 index 00000000..bb770351 --- /dev/null +++ b/docs/ValidValue.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ValidValue +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ValidationErrorResult.md b/docs/ValidationErrorResult.md new file mode 100644 index 00000000..d91f08bb --- /dev/null +++ b/docs/ValidationErrorResult.md @@ -0,0 +1,10 @@ +# Flipdish.Model.ValidationErrorResult +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldName** | **string** | Field name | [optional] +**Errors** | **List<string>** | List of errors relates to field | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ValidityPeriod.md b/docs/ValidityPeriod.md new file mode 100644 index 00000000..43fc9cbd --- /dev/null +++ b/docs/ValidityPeriod.md @@ -0,0 +1,11 @@ +# Flipdish.Model.ValidityPeriod +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DayOfWeek** | **string** | DayOfWeek. | [optional] +**StartTime** | **string** | StartTime. | [optional] +**EndTime** | **string** | EndTime. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Voucher.md b/docs/Voucher.md new file mode 100644 index 00000000..90fd082a --- /dev/null +++ b/docs/Voucher.md @@ -0,0 +1,42 @@ +# Flipdish.Model.Voucher +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**Status** | **string** | Voucher Status | [optional] +**VoucherType** | **string** | Voucher Type | [optional] +**Currency** | **string** | Currency of the voucher | [optional] +**StoreNames** | **List<string>** | Stores that this voucher applies to | [optional] +**PromotionDetails** | [**PromotionDetails**](PromotionDetails.md) | Promotion details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **string** | Voucher Code | [optional] +**Description** | **string** | Voucher Description (Visible on printout) | [optional] +**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **double?** | Valid on orders on or above | [optional] +**TakesPriority** | **bool?** | Takes priority | [optional] +**IsEnabled** | **bool?** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **bool?** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **bool?** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **bool?** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **bool?** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **bool?** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **bool?** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **bool?** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **bool?** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **bool?** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **bool?** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**IsPromoted** | **bool?** | Marks the voucher as promoted | [optional] +**ForceDiscount** | **bool?** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **DateTime?** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **DateTime?** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **List<string>** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**List<ValidityPeriod>**](ValidityPeriod.md) | Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. | [optional] +**VoucherSubType** | **string** | Voucher Subtype | [optional] +**CustomerId** | **int?** | Customer UserID | [optional] +**MaxRedemptions** | **int?** | Maximum number of times the voucher can be redeemed (used) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherAppliedEvent.md b/docs/VoucherAppliedEvent.md new file mode 100644 index 00000000..884ca858 --- /dev/null +++ b/docs/VoucherAppliedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.Model.VoucherAppliedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**EventName** | **string** | The event name | [optional] +**OrderId** | **int?** | Order id | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherCreatedEvent.md b/docs/VoucherCreatedEvent.md new file mode 100644 index 00000000..f2ca1081 --- /dev/null +++ b/docs/VoucherCreatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.VoucherCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which created this voucher | [optional] +**Description** | **string** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Created voucher | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherDataPoint.md b/docs/VoucherDataPoint.md new file mode 100644 index 00000000..5a22eca9 --- /dev/null +++ b/docs/VoucherDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.Model.VoucherDataPoint +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **DateTime?** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **int?** | The length in days that this data point covers | [optional] +**Value** | **int?** | The value of this data point | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherDeletedEvent.md b/docs/VoucherDeletedEvent.md new file mode 100644 index 00000000..10c86004 --- /dev/null +++ b/docs/VoucherDeletedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.VoucherDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which deleted this voucher | [optional] +**Description** | **string** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Deleted voucher | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherSummary.md b/docs/VoucherSummary.md new file mode 100644 index 00000000..d597a41f --- /dev/null +++ b/docs/VoucherSummary.md @@ -0,0 +1,19 @@ +# Flipdish.Model.VoucherSummary +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**Code** | **string** | Voucher Code | [optional] +**Status** | **string** | Voucher Status | [optional] +**VoucherType** | **string** | Voucher Type | [optional] +**VoucherSubType** | **string** | Voucher Sub Type | [optional] +**Description** | **string** | Voucher Description (Visible on printout) | [optional] +**IsEnabled** | **bool?** | Is voucher enabled | [optional] +**IsPromoted** | **bool?** | Marks the voucher as promoted | [optional] +**StoreNames** | **List<string>** | Store names associated with this voucher | [optional] +**IsAvailableOnAllStores** | **bool?** | True if the voucher is available on all active stores in the app | [optional] +**ChannelRestrictions** | **List<string>** | Channels the voucher is restricted to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherUpdatedEvent.md b/docs/VoucherUpdatedEvent.md new file mode 100644 index 00000000..4324a388 --- /dev/null +++ b/docs/VoucherUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.Model.VoucherUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher Id | [optional] +**EventName** | **string** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User which updated this voucher | [optional] +**Description** | **string** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | Updated voucher | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VoucherWithStats.md b/docs/VoucherWithStats.md new file mode 100644 index 00000000..c8e0d26e --- /dev/null +++ b/docs/VoucherWithStats.md @@ -0,0 +1,47 @@ +# Flipdish.Model.VoucherWithStats +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalUsed** | **int?** | Total times the voucher was used | [optional] +**TotalCustomers** | **int?** | Total amount of customers who used this voucher | [optional] +**TotalAmountFromOrders** | **double?** | Total amount of money from orders | [optional] +**TotalDiscounted** | **double?** | Total amount of money given away | [optional] +**AverageOrderSize** | **double?** | Average Order Size | [optional] +**VoucherId** | **int?** | Voucher Id | [optional] +**Status** | **string** | Voucher Status | [optional] +**VoucherType** | **string** | Voucher Type | [optional] +**Currency** | **string** | Currency of the voucher | [optional] +**StoreNames** | **List<string>** | Stores that this voucher applies to | [optional] +**PromotionDetails** | [**PromotionDetails**](PromotionDetails.md) | Promotion details | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | Credit note details | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | Lump discount details | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | Percent discount details | [optional] +**Code** | **string** | Voucher Code | [optional] +**Description** | **string** | Voucher Description (Visible on printout) | [optional] +**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **double?** | Valid on orders on or above | [optional] +**TakesPriority** | **bool?** | Takes priority | [optional] +**IsEnabled** | **bool?** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **bool?** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **bool?** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **bool?** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **bool?** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **bool?** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **bool?** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **bool?** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **bool?** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **bool?** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **bool?** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**IsPromoted** | **bool?** | Marks the voucher as promoted | [optional] +**ForceDiscount** | **bool?** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **DateTime?** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **DateTime?** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **List<string>** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**List<ValidityPeriod>**](ValidityPeriod.md) | Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. | [optional] +**VoucherSubType** | **string** | Voucher Subtype | [optional] +**CustomerId** | **int?** | Customer UserID | [optional] +**MaxRedemptions** | **int?** | Maximum number of times the voucher can be redeemed (used) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/VouchersApi.md b/docs/VouchersApi.md new file mode 100644 index 00000000..887749a2 --- /dev/null +++ b/docs/VouchersApi.md @@ -0,0 +1,671 @@ +# Flipdish.Api.VouchersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVoucher**](VouchersApi.md#createvoucher) | **POST** /api/v1.0/vouchers/{appId} | +[**GetVoucherByCode**](VouchersApi.md#getvoucherbycode) | **GET** /api/v1.0/{appId}/vouchers/code/{code} | +[**GetVoucherById**](VouchersApi.md#getvoucherbyid) | **GET** /api/v1.0/vouchers/{voucherId} | +[**GetVoucherStatsById**](VouchersApi.md#getvoucherstatsbyid) | **GET** /api/v1.0/vouchers/stats/{voucherId} | +[**GetVoucherValidityPeriods**](VouchersApi.md#getvouchervalidityperiods) | **GET** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods | +[**GetVouchers**](VouchersApi.md#getvouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | +[**GetVouchersByCustomerForApp**](VouchersApi.md#getvouchersbycustomerforapp) | **GET** /api/v1.0/vouchers/{appId}/customer/{customerId} | +[**SetVoucherValidityPeriodsSimplified**](VouchersApi.md#setvouchervalidityperiodssimplified) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified | +[**UpdateVoucher**](VouchersApi.md#updatevoucher) | **POST** /api/v1.0/vouchers/{voucherId} | +[**UpdateVoucherUsage**](VouchersApi.md#updatevoucherusage) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/usage | + + + +# **CreateVoucher** +> RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher voucher) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateVoucherExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var voucher = new CreateVoucher(); // CreateVoucher | + + try + { + RestApiResultVoucherWithStats result = apiInstance.CreateVoucher(appId, voucher); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.CreateVoucher: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **voucher** | [**CreateVoucher**](CreateVoucher.md)| | + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVoucherByCode** +> RestApiResultVoucher GetVoucherByCode (string appId, string code) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVoucherByCodeExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var code = code_example; // string | + + try + { + RestApiResultVoucher result = apiInstance.GetVoucherByCode(appId, code); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVoucherByCode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **code** | **string**| | + +### Return type + +[**RestApiResultVoucher**](RestApiResultVoucher.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVoucherById** +> RestApiResultVoucherWithStats GetVoucherById (int? voucherId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVoucherByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var voucherId = 56; // int? | + + try + { + RestApiResultVoucherWithStats result = apiInstance.GetVoucherById(voucherId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVoucherById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **int?**| | + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVoucherStatsById** +> RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVoucherStatsByIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var voucherId = 56; // int? | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) + + try + { + RestApiArrayResultVoucherDataPoint result = apiInstance.GetVoucherStatsById(voucherId, aggregateDataBy, dataPointLimit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVoucherStatsById: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **int?**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] + +### Return type + +[**RestApiArrayResultVoucherDataPoint**](RestApiArrayResultVoucherDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVoucherValidityPeriods** +> void GetVoucherValidityPeriods (string appId, int? voucherId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVoucherValidityPeriodsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var voucherId = 56; // int? | + + try + { + apiInstance.GetVoucherValidityPeriods(appId, voucherId); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVoucherValidityPeriods: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **voucherId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVouchers** +> RestApiPaginationResultVoucherSummary GetVouchers (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVouchersExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var pageIndex = 56; // int? | (optional) + var pageSize = 56; // int? | (optional) + var searchCodes = new List(); // List | (optional) + var statusSearch = statusSearch_example; // List | (optional) + var typeSearch = typeSearch_example; // List | (optional) + var subTypeSearch = subTypeSearch_example; // List | (optional) + var storeIds = new List(); // List | (optional) + var channelRestrictions = channelRestrictions_example; // List | (optional) + + try + { + RestApiPaginationResultVoucherSummary result = apiInstance.GetVouchers(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds, channelRestrictions); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVouchers: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **pageIndex** | **int?**| | [optional] + **pageSize** | **int?**| | [optional] + **searchCodes** | [**List<string>**](string.md)| | [optional] + **statusSearch** | **List<string>**| | [optional] + **typeSearch** | **List<string>**| | [optional] + **subTypeSearch** | **List<string>**| | [optional] + **storeIds** | [**List<int?>**](int?.md)| | [optional] + **channelRestrictions** | **List<string>**| | [optional] + +### Return type + +[**RestApiPaginationResultVoucherSummary**](RestApiPaginationResultVoucherSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVouchersByCustomerForApp** +> RestApiArrayResultVoucherSummary GetVouchersByCustomerForApp (string appId, int? customerId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetVouchersByCustomerForAppExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var customerId = 56; // int? | + + try + { + RestApiArrayResultVoucherSummary result = apiInstance.GetVouchersByCustomerForApp(appId, customerId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.GetVouchersByCustomerForApp: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **customerId** | **int?**| | + +### Return type + +[**RestApiArrayResultVoucherSummary**](RestApiArrayResultVoucherSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetVoucherValidityPeriodsSimplified** +> void SetVoucherValidityPeriodsSimplified (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetVoucherValidityPeriodsSimplifiedExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var voucherId = 56; // int? | + var request = new SetVoucherValidityPeriodsSimplifiedRequest(); // SetVoucherValidityPeriodsSimplifiedRequest | + + try + { + apiInstance.SetVoucherValidityPeriodsSimplified(appId, voucherId, request); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.SetVoucherValidityPeriodsSimplified: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **voucherId** | **int?**| | + **request** | [**SetVoucherValidityPeriodsSimplifiedRequest**](SetVoucherValidityPeriodsSimplifiedRequest.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateVoucher** +> RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateVoucherExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var voucherId = 56; // int? | + var voucher = new UpdateVoucher(); // UpdateVoucher | + var storeId = new List(); // List | (optional) + var percentValue = 56; // int? | (optional) + var lumpValue = 1.2; // double? | (optional) + var maxDiscountAmount = 1.2; // double? | (optional) + + try + { + RestApiResultVoucherWithStats result = apiInstance.UpdateVoucher(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.UpdateVoucher: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **int?**| | + **voucher** | [**UpdateVoucher**](UpdateVoucher.md)| | + **storeId** | [**List<int?>**](int?.md)| | [optional] + **percentValue** | **int?**| | [optional] + **lumpValue** | **double?**| | [optional] + **maxDiscountAmount** | **double?**| | [optional] + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateVoucherUsage** +> void UpdateVoucherUsage (string appId, int? voucherId, UpdateVoucherUsage voucherUsage) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateVoucherUsageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new VouchersApi(); + var appId = appId_example; // string | + var voucherId = 56; // int? | + var voucherUsage = new UpdateVoucherUsage(); // UpdateVoucherUsage | + + try + { + apiInstance.UpdateVoucherUsage(appId, voucherId, voucherUsage); + } + catch (Exception e) + { + Debug.Print("Exception when calling VouchersApi.UpdateVoucherUsage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **voucherId** | **int?**| | + **voucherUsage** | [**UpdateVoucherUsage**](UpdateVoucherUsage.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WaitHandle.md b/docs/WaitHandle.md new file mode 100644 index 00000000..258602b9 --- /dev/null +++ b/docs/WaitHandle.md @@ -0,0 +1,10 @@ +# Flipdish.Model.WaitHandle +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Handle** | **Object** | | [optional] +**SafeWaitHandle** | [**SafeWaitHandle**](SafeWaitHandle.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookEventSample.md b/docs/WebhookEventSample.md new file mode 100644 index 00000000..269c2d2c --- /dev/null +++ b/docs/WebhookEventSample.md @@ -0,0 +1,11 @@ +# Flipdish.Model.WebhookEventSample +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Event name | [optional] +**CreateTime** | **DateTime?** | Sample event creation date and time | [optional] +**Body** | [**FlipdishEventBase**](FlipdishEventBase.md) | Sample event body | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookLog.md b/docs/WebhookLog.md new file mode 100644 index 00000000..df373dce --- /dev/null +++ b/docs/WebhookLog.md @@ -0,0 +1,23 @@ +# Flipdish.Model.WebhookLog +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebhookSubscriptionOwnerUserId** | **int?** | Webhook subscription owner user identifier | [optional] +**EventCreated** | **string** | Event created | [optional] +**WebhookTriggered** | **string** | Webhook triggered | [optional] +**WebhookEventName** | **string** | Webhook event name | [optional] +**WebhookSubscriptionCallbackUrl** | **string** | Webhook subscription callback url | [optional] +**HttpResponseStatusCode** | **string** | Received HTTP repsonse status HTTP code | [optional] +**HttpResponseStatus** | **string** | Received HTTP repsonse status | [optional] +**RequestHeaders** | **string** | Request headers | [optional] +**RequestBody** | **string** | Request body | [optional] +**ResponseHeaders** | **string** | Received response headers | [optional] +**ResponseBody** | **string** | Received response body | [optional] +**Duration** | **string** | Duration of HTTP request | [optional] +**RetryCount** | **int?** | Retry count | [optional] +**FlipdishWebhookId** | **Guid?** | Flipdish webhook identifier | [optional] +**Version** | **string** | Flipdish webhook version | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookSubscription.md b/docs/WebhookSubscription.md new file mode 100644 index 00000000..60bd3775 --- /dev/null +++ b/docs/WebhookSubscription.md @@ -0,0 +1,15 @@ +# Flipdish.Model.WebhookSubscription +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | Webhook subscription identifier | [optional] +**OwnerUserId** | **int?** | Webhook subscription owner user identifier | [optional] +**Version** | **string** | Webhook subscription owner user identifier | [optional] +**EventNames** | **List<string>** | Webhook subscription event names | [optional] +**CallbackUrl** | **string** | Callback url. Flipdish system POST messages to this url. | [optional] +**Enabled** | **bool?** | Is webhook subscription enabled. | [optional] +**VerifyToken** | **string** | This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookSubscriptionCreatedEvent.md b/docs/WebhookSubscriptionCreatedEvent.md new file mode 100644 index 00000000..86369e91 --- /dev/null +++ b/docs/WebhookSubscriptionCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.WebhookSubscriptionCreatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookSubscriptionDeletedEvent.md b/docs/WebhookSubscriptionDeletedEvent.md new file mode 100644 index 00000000..8743f89c --- /dev/null +++ b/docs/WebhookSubscriptionDeletedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.WebhookSubscriptionDeletedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookSubscriptionEventInfo.md b/docs/WebhookSubscriptionEventInfo.md new file mode 100644 index 00000000..592be9b5 --- /dev/null +++ b/docs/WebhookSubscriptionEventInfo.md @@ -0,0 +1,12 @@ +# Flipdish.Model.WebhookSubscriptionEventInfo +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerUserId** | **int?** | Webhook subscription owner user identifier | [optional] +**WebhookSubscriptionId** | **int?** | Webhook subscription identifier | [optional] +**ClientId** | **string** | Oauth client identifier | [optional] +**CallbackUrl** | **string** | Webhook callback url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookSubscriptionUpdatedEvent.md b/docs/WebhookSubscriptionUpdatedEvent.md new file mode 100644 index 00000000..f818f2dc --- /dev/null +++ b/docs/WebhookSubscriptionUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.Model.WebhookSubscriptionUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | Webhook subscription details | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md new file mode 100644 index 00000000..5f1deede --- /dev/null +++ b/docs/WebhooksApi.md @@ -0,0 +1,680 @@ +# Flipdish.Api.WebhooksApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateWebhookSubscription**](WebhooksApi.md#createwebhooksubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +[**CreateWebhookSubscriptionEventNames**](WebhooksApi.md#createwebhooksubscriptioneventnames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +[**DeleteWebhookSubscription**](WebhooksApi.md#deletewebhooksubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +[**DeleteWebhookSubscriptionEventName**](WebhooksApi.md#deletewebhooksubscriptioneventname) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +[**GetWebhookEventNames**](WebhooksApi.md#getwebhookeventnames) | **GET** /api/v1.0/{appId}/webhooks/events | +[**GetWebhookEventNamesBySubscriptionId**](WebhooksApi.md#getwebhookeventnamesbysubscriptionid) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | +[**GetWebhookEventSample**](WebhooksApi.md#getwebhookeventsample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | +[**GetWebhookLogs**](WebhooksApi.md#getwebhooklogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | +[**GetWebhookSubscriptions**](WebhooksApi.md#getwebhooksubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +[**UpdateWebhookSubscription**](WebhooksApi.md#updatewebhooksubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | + + + +# **CreateWebhookSubscription** +> RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateWebhookSubscriptionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | + var appId = appId_example; // string | + + try + { + RestApiIntegerResult result = apiInstance.CreateWebhookSubscription(oauthAppId, webhookSubscription, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.CreateWebhookSubscription: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | + **appId** | **string**| | + +### Return type + +[**RestApiIntegerResult**](RestApiIntegerResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateWebhookSubscriptionEventNames** +> void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class CreateWebhookSubscriptionEventNamesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var eventName = eventName_example; // string | + var appId = appId_example; // string | + + try + { + apiInstance.CreateWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.CreateWebhookSubscriptionEventNames: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **eventName** | **string**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteWebhookSubscription** +> void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteWebhookSubscriptionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var appId = appId_example; // string | + + try + { + apiInstance.DeleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.DeleteWebhookSubscription: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteWebhookSubscriptionEventName** +> void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteWebhookSubscriptionEventNameExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var eventName = eventName_example; // string | + var appId = appId_example; // string | + + try + { + apiInstance.DeleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.DeleteWebhookSubscriptionEventName: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **eventName** | **string**| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWebhookEventNames** +> RestApiStringArrayResult GetWebhookEventNames (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWebhookEventNamesExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var appId = appId_example; // string | + + try + { + RestApiStringArrayResult result = apiInstance.GetWebhookEventNames(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.GetWebhookEventNames: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWebhookEventNamesBySubscriptionId** +> RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWebhookEventNamesBySubscriptionIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var appId = appId_example; // string | + + try + { + RestApiStringArrayResult result = apiInstance.GetWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.GetWebhookEventNamesBySubscriptionId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **appId** | **string**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWebhookEventSample** +> WebhookEventSample GetWebhookEventSample (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWebhookEventSampleExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var eventName = eventName_example; // string | + var appId = appId_example; // string | + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = webhookSubscriptionId_example; // string | + var version = version_example; // string | (optional) + + try + { + WebhookEventSample result = apiInstance.GetWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, version); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.GetWebhookEventSample: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **eventName** | **string**| | + **appId** | **string**| | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **string**| | + **version** | **string**| | [optional] + +### Return type + +[**WebhookEventSample**](WebhookEventSample.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWebhookLogs** +> RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWebhookLogsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var start = 2013-10-20T19:20:30+01:00; // DateTime? | + var end = 2013-10-20T19:20:30+01:00; // DateTime? | + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultWebhookLog result = apiInstance.GetWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.GetWebhookLogs: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **start** | **DateTime?**| | + **end** | **DateTime?**| | + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultWebhookLog**](RestApiPaginationResultWebhookLog.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWebhookSubscriptions** +> RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (string oauthAppId, string appId, int? page = null, int? limit = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWebhookSubscriptionsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + + try + { + RestApiPaginationResultWebhookSubscription result = apiInstance.GetWebhookSubscriptions(oauthAppId, appId, page, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.GetWebhookSubscriptions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + +### Return type + +[**RestApiPaginationResultWebhookSubscription**](RestApiPaginationResultWebhookSubscription.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateWebhookSubscription** +> void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateWebhookSubscriptionExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebhooksApi(); + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | + var appId = appId_example; // string | + + try + { + apiInstance.UpdateWebhookSubscription(oauthAppId, webhookSubscriptionId, webhookSubscription, appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebhooksApi.UpdateWebhookSubscription: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WebsiteApi.md b/docs/WebsiteApi.md new file mode 100644 index 00000000..ff31378d --- /dev/null +++ b/docs/WebsiteApi.md @@ -0,0 +1,517 @@ +# Flipdish.Api.WebsiteApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddTestimonial**](WebsiteApi.md#addtestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | +[**DeleteTestimonial**](WebsiteApi.md#deletetestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +[**DeleteWebsiteImage**](WebsiteApi.md#deletewebsiteimage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | +[**EditTestimonial**](WebsiteApi.md#edittestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +[**GetIndexConfiguration**](WebsiteApi.md#getindexconfiguration) | **GET** /api/v1.0/{appId}/website/index | +[**SetIndexConfiguration**](WebsiteApi.md#setindexconfiguration) | **POST** /api/v1.0/{appId}/website/index | +[**UploadWebsiteImage**](WebsiteApi.md#uploadwebsiteimage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | +[**WebsiteCheckNow**](WebsiteApi.md#websitechecknow) | **GET** /api/v1.0/{appId}/website/dnscheck | + + + +# **AddTestimonial** +> RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTestimonialBase testimonial) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class AddTestimonialExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | + + try + { + RestApiResultWebsiteTestimonial result = apiInstance.AddTestimonial(appId, testimonial); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.AddTestimonial: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | + +### Return type + +[**RestApiResultWebsiteTestimonial**](RestApiResultWebsiteTestimonial.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteTestimonial** +> void DeleteTestimonial (string appId, int? testimonialId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteTestimonialExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var testimonialId = 56; // int? | + + try + { + apiInstance.DeleteTestimonial(appId, testimonialId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.DeleteTestimonial: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **testimonialId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteWebsiteImage** +> void DeleteWebsiteImage (string appId, int? imageId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class DeleteWebsiteImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var imageId = 56; // int? | + + try + { + apiInstance.DeleteWebsiteImage(appId, imageId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.DeleteWebsiteImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **imageId** | **int?**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **EditTestimonial** +> RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class EditTestimonialExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var testimonialId = 56; // int? | + var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | + + try + { + RestApiResultWebsiteTestimonial result = apiInstance.EditTestimonial(appId, testimonialId, testimonial); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.EditTestimonial: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **testimonialId** | **int?**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | + +### Return type + +[**RestApiResultWebsiteTestimonial**](RestApiResultWebsiteTestimonial.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetIndexConfiguration** +> RestApiResultIndexPage GetIndexConfiguration (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetIndexConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + + try + { + RestApiResultIndexPage result = apiInstance.GetIndexConfiguration(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.GetIndexConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultIndexPage**](RestApiResultIndexPage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SetIndexConfiguration** +> RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SetIndexConfigurationExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var indexPage = new IndexPageBase(); // IndexPageBase | + + try + { + RestApiResultIndexPageBase result = apiInstance.SetIndexConfiguration(appId, indexPage); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.SetIndexConfiguration: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **indexPage** | [**IndexPageBase**](IndexPageBase.md)| | + +### Return type + +[**RestApiResultIndexPageBase**](RestApiResultIndexPageBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadWebsiteImage** +> RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadWebsiteImageExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + var imageLocation = imageLocation_example; // string | + var image = new System.IO.Stream(); // System.IO.Stream | App Logo + + try + { + RestApiResultWebsiteImage result = apiInstance.UploadWebsiteImage(appId, imageLocation, image); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.UploadWebsiteImage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **imageLocation** | **string**| | + **image** | **System.IO.Stream**| App Logo | + +### Return type + +[**RestApiResultWebsiteImage**](RestApiResultWebsiteImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **WebsiteCheckNow** +> void WebsiteCheckNow (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class WebsiteCheckNowExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WebsiteApi(); + var appId = appId_example; // string | + + try + { + apiInstance.WebsiteCheckNow(appId); + } + catch (Exception e) + { + Debug.Print("Exception when calling WebsiteApi.WebsiteCheckNow: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WebsiteImage.md b/docs/WebsiteImage.md new file mode 100644 index 00000000..a83911c6 --- /dev/null +++ b/docs/WebsiteImage.md @@ -0,0 +1,11 @@ +# Flipdish.Model.WebsiteImage +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageId** | **int?** | Represents the id of the image | [optional] +**ImageLocation** | **string** | Represents the location of the image | [optional] +**ImageUrl** | **string** | Represents the image url | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebsiteTestimonial.md b/docs/WebsiteTestimonial.md new file mode 100644 index 00000000..e97a0fbe --- /dev/null +++ b/docs/WebsiteTestimonial.md @@ -0,0 +1,11 @@ +# Flipdish.Model.WebsiteTestimonial +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestimonialId** | **int?** | Id of the testimonial | [optional] +**Author** | **string** | Author of the testimonial | [optional] +**Message** | **string** | Message of the testimonial | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebsiteTestimonialBase.md b/docs/WebsiteTestimonialBase.md new file mode 100644 index 00000000..cc01ea71 --- /dev/null +++ b/docs/WebsiteTestimonialBase.md @@ -0,0 +1,10 @@ +# Flipdish.Model.WebsiteTestimonialBase +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Author** | **string** | Author of the testimonial | [optional] +**Message** | **string** | Message of the testimonial | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebsiteUpdatedEvent.md b/docs/WebsiteUpdatedEvent.md new file mode 100644 index 00000000..792f0766 --- /dev/null +++ b/docs/WebsiteUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.WebsiteUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppNameId** | **string** | App Name id of the whitelabel of the website | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User updating the website | [optional] +**Description** | **string** | Description of event | [optional] +**EventName** | **string** | The event name | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebsiteVanityUrlUpdatedEvent.md b/docs/WebsiteVanityUrlUpdatedEvent.md new file mode 100644 index 00000000..cf08c4d7 --- /dev/null +++ b/docs/WebsiteVanityUrlUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.Model.WebsiteVanityUrlUpdatedEvent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **string** | The event name | [optional] +**Description** | **string** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | User who has updated the url | [optional] +**VanityUrl** | **string** | New vanity url | [optional] +**FlipdishEventId** | **Guid?** | The identitfier of the event | [optional] +**CreateTime** | **DateTime?** | The time of creation of the event | [optional] +**Position** | **int?** | Position | [optional] +**AppId** | **string** | App id | [optional] +**OrgId** | **string** | Org id | [optional] +**IpAddress** | **string** | Ip Address | [optional] +**ActivityId** | **string** | Activity Id | [optional] +**ActivityType** | **string** | Activity Type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelAssetModel.md b/docs/WhiteLabelAssetModel.md new file mode 100644 index 00000000..74d947ba --- /dev/null +++ b/docs/WhiteLabelAssetModel.md @@ -0,0 +1,13 @@ +# Flipdish.Model.WhiteLabelAssetModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelAssetId** | **int?** | White label asset ID | [optional] +**WhiteLabelConfigId** | **int?** | White label configuration ID | [optional] +**FilePath** | **string** | File path | [optional] +**Url** | **string** | Asset URL | [optional] +**TsUpdate** | **DateTime?** | Timestamp update | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelBuildsApi.md b/docs/WhiteLabelBuildsApi.md new file mode 100644 index 00000000..dce981f5 --- /dev/null +++ b/docs/WhiteLabelBuildsApi.md @@ -0,0 +1,334 @@ +# Flipdish.Api.WhiteLabelBuildsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**HealthCheck**](WhiteLabelBuildsApi.md#healthcheck) | **GET** /api/v1.0/whitelabelbuilds/health | +[**SubmitAndroidApps**](WhiteLabelBuildsApi.md#submitandroidapps) | **POST** /api/v1.0/whitelabelbuilds/android/multiple | +[**SubmitAndroidBuild**](WhiteLabelBuildsApi.md#submitandroidbuild) | **POST** /api/v1.0/whitelabelbuilds/{appId}/android | +[**SubmitIosApps**](WhiteLabelBuildsApi.md#submitiosapps) | **POST** /api/v1.0/whitelabelbuilds/ios/multiple | +[**SubmitIosBuild**](WhiteLabelBuildsApi.md#submitiosbuild) | **POST** /api/v1.0/whitelabelbuilds/{appId}/ios | + + + +# **HealthCheck** +> string HealthCheck () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HealthCheckExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelBuildsApi(); + + try + { + string result = apiInstance.HealthCheck(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelBuildsApi.HealthCheck: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitAndroidApps** +> RestApiResultBuildResultModel SubmitAndroidApps (string whiteLabelIds, string branch = null, string buildType = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SubmitAndroidAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelBuildsApi(); + var whiteLabelIds = whiteLabelIds_example; // string | + var branch = branch_example; // string | (optional) + var buildType = buildType_example; // string | (optional) + + try + { + RestApiResultBuildResultModel result = apiInstance.SubmitAndroidApps(whiteLabelIds, branch, buildType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelBuildsApi.SubmitAndroidApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelIds** | **string**| | + **branch** | **string**| | [optional] + **buildType** | **string**| | [optional] + +### Return type + +[**RestApiResultBuildResultModel**](RestApiResultBuildResultModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitAndroidBuild** +> RestApiResultBuildResultModel SubmitAndroidBuild (string appId, string branch, string lane, string buildType) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SubmitAndroidBuildExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelBuildsApi(); + var appId = appId_example; // string | + var branch = branch_example; // string | + var lane = lane_example; // string | + var buildType = buildType_example; // string | + + try + { + RestApiResultBuildResultModel result = apiInstance.SubmitAndroidBuild(appId, branch, lane, buildType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelBuildsApi.SubmitAndroidBuild: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **branch** | **string**| | + **lane** | **string**| | + **buildType** | **string**| | + +### Return type + +[**RestApiResultBuildResultModel**](RestApiResultBuildResultModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitIosApps** +> RestApiResultBuildResultModel SubmitIosApps (string whiteLabelIds, string branch = null, string buildType = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SubmitIosAppsExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelBuildsApi(); + var whiteLabelIds = whiteLabelIds_example; // string | + var branch = branch_example; // string | (optional) + var buildType = buildType_example; // string | (optional) + + try + { + RestApiResultBuildResultModel result = apiInstance.SubmitIosApps(whiteLabelIds, branch, buildType); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelBuildsApi.SubmitIosApps: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelIds** | **string**| | + **branch** | **string**| | [optional] + **buildType** | **string**| | [optional] + +### Return type + +[**RestApiResultBuildResultModel**](RestApiResultBuildResultModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitIosBuild** +> RestApiResultBuildResultModel SubmitIosBuild (string appId, string buildType, string branch, bool? submitForReview = null) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class SubmitIosBuildExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelBuildsApi(); + var appId = appId_example; // string | + var buildType = buildType_example; // string | + var branch = branch_example; // string | + var submitForReview = true; // bool? | (optional) + + try + { + RestApiResultBuildResultModel result = apiInstance.SubmitIosBuild(appId, buildType, branch, submitForReview); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelBuildsApi.SubmitIosBuild: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **buildType** | **string**| | + **branch** | **string**| | + **submitForReview** | **bool?**| | [optional] + +### Return type + +[**RestApiResultBuildResultModel**](RestApiResultBuildResultModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelColorSchemeModel.md b/docs/WhiteLabelColorSchemeModel.md new file mode 100644 index 00000000..7bf5de93 --- /dev/null +++ b/docs/WhiteLabelColorSchemeModel.md @@ -0,0 +1,22 @@ +# Flipdish.Model.WhiteLabelColorSchemeModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelColorSchemeId** | **int?** | White label color scheme ID | [optional] +**Font** | **string** | Font | [optional] +**Color** | **string** | Color | [optional] +**Color2** | **string** | Color 2 | [optional] +**Color3** | **string** | Color 3 | [optional] +**Color4** | **string** | Color 4 | [optional] +**Color5** | **string** | Color 5 | [optional] +**Color6** | **string** | Color 6 | [optional] +**Color7** | **string** | Color 7 | [optional] +**Color8** | **string** | Color 8 | [optional] +**Color9** | **string** | Color 9 | [optional] +**Color10** | **string** | Color 10 | [optional] +**Color11** | **string** | Color 11 | [optional] +**Color12** | **string** | Color 12 (Kiosk Primary Colour) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelConfig.md b/docs/WhiteLabelConfig.md new file mode 100644 index 00000000..2b71234b --- /dev/null +++ b/docs/WhiteLabelConfig.md @@ -0,0 +1,14 @@ +# Flipdish.Model.WhiteLabelConfig +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **int?** | White label identifier | [optional] +**WhiteLabelName** | **string** | White label name | [optional] +**CountryId** | **string** | Country identifier | [optional] +**AppNameId** | **string** | App id | [optional] +**Website** | **string** | Website URL | [optional] +**PanaceaVanityUrl** | **string** | Panacea vanity URL | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelConfigApi.md b/docs/WhiteLabelConfigApi.md new file mode 100644 index 00000000..74d0371c --- /dev/null +++ b/docs/WhiteLabelConfigApi.md @@ -0,0 +1,632 @@ +# Flipdish.Api.WhiteLabelConfigApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAppGeneralConfig**](WhiteLabelConfigApi.md#getappgeneralconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/general | +[**GetAppStoreConfig**](WhiteLabelConfigApi.md#getappstoreconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/appstore | +[**GetPlayStoreConfig**](WhiteLabelConfigApi.md#getplaystoreconfig) | **GET** /api/v1.0/whitelabelconfig/{appId}/playstore | +[**GetWhiteLabelConfig**](WhiteLabelConfigApi.md#getwhitelabelconfig) | **GET** /api/v1.0/whitelabelconfig/id/{wlid} | +[**GetWhiteLabelConfigByAppNameId**](WhiteLabelConfigApi.md#getwhitelabelconfigbyappnameid) | **GET** /api/v1.0/whitelabelconfig/name/{appId} | +[**HealthCheck**](WhiteLabelConfigApi.md#healthcheck) | **GET** /api/v1.0/whitelabelconfig/health | +[**UpdateAppGeneralConfig**](WhiteLabelConfigApi.md#updateappgeneralconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/general | +[**UpdateAppStoreConfig**](WhiteLabelConfigApi.md#updateappstoreconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/appstore | +[**UpdatePlayStoreConfig**](WhiteLabelConfigApi.md#updateplaystoreconfig) | **POST** /api/v1.0/whitelabelconfig/{appId}/playstore | +[**UploadAppStoreIcon**](WhiteLabelConfigApi.md#uploadappstoreicon) | **POST** /api/v1.0/whitelabelconfig/{appId}/app-store-icon | + + + +# **GetAppGeneralConfig** +> RestApiResultAppGeneralConfigModel GetAppGeneralConfig (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppGeneralConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + + try + { + RestApiResultAppGeneralConfigModel result = apiInstance.GetAppGeneralConfig(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.GetAppGeneralConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultAppGeneralConfigModel**](RestApiResultAppGeneralConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAppStoreConfig** +> RestApiResultAppStoreConfigModel GetAppStoreConfig (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + + try + { + RestApiResultAppStoreConfigModel result = apiInstance.GetAppStoreConfig(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.GetAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultAppStoreConfigModel**](RestApiResultAppStoreConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPlayStoreConfig** +> RestApiResultPlayStoreConfigModel GetPlayStoreConfig (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetPlayStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + + try + { + RestApiResultPlayStoreConfigModel result = apiInstance.GetPlayStoreConfig(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.GetPlayStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultPlayStoreConfigModel**](RestApiResultPlayStoreConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWhiteLabelConfig** +> RestApiResultWhiteLabelConfigModel GetWhiteLabelConfig (int? wlid) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWhiteLabelConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var wlid = 56; // int? | + + try + { + RestApiResultWhiteLabelConfigModel result = apiInstance.GetWhiteLabelConfig(wlid); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.GetWhiteLabelConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wlid** | **int?**| | + +### Return type + +[**RestApiResultWhiteLabelConfigModel**](RestApiResultWhiteLabelConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetWhiteLabelConfigByAppNameId** +> RestApiResultWhiteLabelConfigModel GetWhiteLabelConfigByAppNameId (string appId) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class GetWhiteLabelConfigByAppNameIdExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + + try + { + RestApiResultWhiteLabelConfigModel result = apiInstance.GetWhiteLabelConfigByAppNameId(appId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.GetWhiteLabelConfigByAppNameId: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + +### Return type + +[**RestApiResultWhiteLabelConfigModel**](RestApiResultWhiteLabelConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **HealthCheck** +> string HealthCheck () + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class HealthCheckExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + + try + { + string result = apiInstance.HealthCheck(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.HealthCheck: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppGeneralConfig** +> RestApiResultAppGeneralConfigModel UpdateAppGeneralConfig (string appId, AppGeneralConfigModel appGeneralConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppGeneralConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + var appGeneralConfig = new AppGeneralConfigModel(); // AppGeneralConfigModel | + + try + { + RestApiResultAppGeneralConfigModel result = apiInstance.UpdateAppGeneralConfig(appId, appGeneralConfig); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.UpdateAppGeneralConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appGeneralConfig** | [**AppGeneralConfigModel**](AppGeneralConfigModel.md)| | + +### Return type + +[**RestApiResultAppGeneralConfigModel**](RestApiResultAppGeneralConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAppStoreConfig** +> RestApiResultAppStoreConfigModel UpdateAppStoreConfig (string appId, AppStoreConfigModel appStoreConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdateAppStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + var appStoreConfig = new AppStoreConfigModel(); // AppStoreConfigModel | + + try + { + RestApiResultAppStoreConfigModel result = apiInstance.UpdateAppStoreConfig(appId, appStoreConfig); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.UpdateAppStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **appStoreConfig** | [**AppStoreConfigModel**](AppStoreConfigModel.md)| | + +### Return type + +[**RestApiResultAppStoreConfigModel**](RestApiResultAppStoreConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdatePlayStoreConfig** +> RestApiResultPlayStoreConfigModel UpdatePlayStoreConfig (string appId, PlayStoreConfigModel playStoreConfig) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UpdatePlayStoreConfigExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + var playStoreConfig = new PlayStoreConfigModel(); // PlayStoreConfigModel | + + try + { + RestApiResultPlayStoreConfigModel result = apiInstance.UpdatePlayStoreConfig(appId, playStoreConfig); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.UpdatePlayStoreConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **playStoreConfig** | [**PlayStoreConfigModel**](PlayStoreConfigModel.md)| | + +### Return type + +[**RestApiResultPlayStoreConfigModel**](RestApiResultPlayStoreConfigModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadAppStoreIcon** +> RestApiResultAssetResultModel UploadAppStoreIcon (string appId, HttpPostedFileBase _file) + + + +### Example +```csharp +using System; +using System.Diagnostics; +using Flipdish.Api; +using Flipdish.Client; +using Flipdish.Model; + +namespace Example +{ + public class UploadAppStoreIconExample + { + public void main() + { + // Configure OAuth2 access token for authorization: oauth2 + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; + + var apiInstance = new WhiteLabelConfigApi(); + var appId = appId_example; // string | + var _file = new HttpPostedFileBase(); // HttpPostedFileBase | + + try + { + RestApiResultAssetResultModel result = apiInstance.UploadAppStoreIcon(appId, _file); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling WhiteLabelConfigApi.UploadAppStoreIcon: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | + **_file** | [**HttpPostedFileBase**](HttpPostedFileBase.md)| | + +### Return type + +[**RestApiResultAssetResultModel**](RestApiResultAssetResultModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelConfigModel.md b/docs/WhiteLabelConfigModel.md new file mode 100644 index 00000000..c416475d --- /dev/null +++ b/docs/WhiteLabelConfigModel.md @@ -0,0 +1,116 @@ +# Flipdish.Model.WhiteLabelConfigModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelLanguages** | [**List<WhiteLabelLanguageModel>**](WhiteLabelLanguageModel.md) | White label languages | [optional] +**WhiteLabelAssets** | [**List<WhiteLabelAssetModel>**](WhiteLabelAssetModel.md) | White label assets | [optional] +**ColorScheme** | [**WhiteLabelColorSchemeModel**](WhiteLabelColorSchemeModel.md) | White label color scheme | [optional] +**WhiteLabelConfigId** | **int?** | White label configuration ID | [optional] +**WhiteLabelId** | **int?** | White label ID | [optional] +**WhiteLabelName** | **string** | White label name | [optional] +**AppNameId** | **string** | App name ID (Bundle ID Suffix) | [optional] +**OrgId** | **string** | Organization ID | [optional] +**SmsRestaurantName** | **string** | SMS restaurant name | [optional] +**DeepLinkUrlScheme** | **string** | Deep link URL scheme | [optional] +**HostName** | **string** | Host name | [optional] +**NexmoSupportSmsNumber** | **string** | Nexmo support SMS number | [optional] +**TwilioSupportSmsNumber** | **string** | Twilio support SMS number | [optional] +**MixpanelToken** | **string** | Mixpanel token | [optional] +**IntercomAppId** | **string** | Intercom app ID | [optional] +**ShareMessageEmailSubject** | **string** | Share message email subject | [optional] +**ShareMessageEmailMessage** | **string** | Share message email message | [optional] +**ShareMessageSmsMessage** | **string** | Share message SMS message | [optional] +**ShareMessageWhatsAppMessage** | **string** | Share message WhatsApp message | [optional] +**ShareMessageFacebookMessage** | **string** | Share message Facebook message | [optional] +**ShareMessageTwitterMessage** | **string** | Share message Twitter message | [optional] +**ShareMessageGenericMessage** | **string** | Share message generic message | [optional] +**DisplayDeliveryRestaurantListScreen** | **bool?** | Display delivery restaurant list screen | [optional] +**ContactFormType** | **int?** | Contact form type | [optional] +**ContactPhoneNumber** | **string** | Contact phone number | [optional] +**DisplayBumpSideMenuItem** | **bool?** | Display bump side menu item | [optional] +**DisplayFreeCokeSideMenuItem** | **bool?** | Display free coke side menu item | [optional] +**AppStoreUrl** | **string** | App store URL | [optional] +**DeliveryEnabled** | **bool?** | Delivery enabled | [optional] +**PickupEnabled** | **bool?** | Pickup enabled | [optional] +**DisplayPickupRestaurantListScreen** | **bool?** | Display pickup restaurant list screen | [optional] +**DisplayCuisineTypeListAndRestaurantSearchBar** | **bool?** | Display cuisine type list and restaurant search bar | [optional] +**DisplayUserRestaurantRatings** | **bool?** | Display user restaurant ratings | [optional] +**ReadyToPublishWeb** | **bool?** | Ready to publish web | [optional] +**ReadyToPublishIos** | **bool?** | Ready to publish iOS | [optional] +**ReadyToPublishAndroid** | **bool?** | Ready to publish Android | [optional] +**DisplayFooterLinksToOtherSites** | **bool?** | Display footer links to other sites | [optional] +**DisplayOnlineOrderingMenu** | **bool?** | Display online ordering menu | [optional] +**HideAppConfigFromAdminList** | **bool?** | Hide app config from admin list | [optional] +**ComplianceType** | **string** | Compliance type | [optional] +**IsMenuMigratedToRms** | **bool?** | Is menu migrated to RMS | [optional] +**MapBoundryMaxLongitude** | **double?** | Map boundary max longitude | [optional] +**MapBoundryMinLongitude** | **double?** | Map boundary min longitude | [optional] +**MapBoundryMaxLatitude** | **double?** | Map boundary max latitude | [optional] +**MapBoundryMinLatitude** | **double?** | Map boundary min latitude | [optional] +**AppStoreAppleId** | **string** | App store Apple ID | [optional] +**AppStoreToken** | **string** | App store token | [optional] +**WebsiteDisplayStaticMenuPage** | **bool?** | Website display static menu page | [optional] +**IsEmbed** | **bool?** | Is embed | [optional] +**DisplayTipOptionToUsersByDefault** | **bool?** | Display tip option to users by default | [optional] +**EmailRequestMode** | **int?** | Email request mode | [optional] +**AddressEntryType** | **int?** | Address entry type | [optional] +**AddressLayout** | **int?** | Address layout | [optional] +**Category** | **int?** | Category | [optional] +**MapCenterLatitude** | **double?** | Map center latitude | [optional] +**MapCenterLongitude** | **double?** | Map center longitude | [optional] +**IntercomTokenIos** | **string** | Intercom token iOS | [optional] +**IntercomTokenAndroid** | **string** | Intercom token Android | [optional] +**GoogleAnalyticsTokensCsv** | **string** | Google Analytics tokens CSV | [optional] +**FacebookTokensCsv** | **string** | Facebook tokens CSV | [optional] +**ShareMessageGenericUrl** | **string** | Share message generic URL | [optional] +**PrivateSupportEmailAddress** | **string** | Private support email address | [optional] +**AppStoreId** | **string** | App store ID | [optional] +**PlayConsoleAccount** | **int?** | Play console account | [optional] +**ApnCertificateValidAfter** | **DateTime?** | APN certificate valid after | [optional] +**ApnCertificateValidBefore** | **DateTime?** | APN certificate valid before | [optional] +**DineInEnabled** | **bool?** | Dine in enabled | [optional] +**AppFont** | **string** | App font | [optional] +**WhiteLabelColorSchemeId** | **int?** | White label color scheme ID | [optional] +**WhiteLabelImagesId** | **int?** | White label images ID | [optional] +**AppStoreCopyright** | **string** | App store copyright | [optional] +**AppStoreDescription** | **string** | App store description | [optional] +**AppStoreShortDescription** | **string** | App store short description | [optional] +**AppStoreKeywords** | **string** | App store keywords | [optional] +**AppStoreMarketingUrl** | **string** | App store marketing URL | [optional] +**AppStoreName** | **string** | App store name | [optional] +**AppStorePrivacyUrl** | **string** | App store privacy URL | [optional] +**AppStoreSupportUrl** | **string** | App store support URL | [optional] +**AppStoreReleaseNotes** | **string** | App store release notes | [optional] +**AppStoreIconUrl** | **string** | App store icon URL | [optional] +**AppStoreIconThumbnail100Url** | **string** | App store icon thumbnail 100 URL | [optional] +**TransparentLogoUrl** | **string** | Transparent logo URL | [optional] +**LogoImageName** | **string** | Logo image name | [optional] +**KioskNameScreenImage** | **string** | Kiosk name screen image | [optional] +**WebToAppRedirect** | **int?** | Web to app redirect | [optional] +**FeaturesCsv** | **string** | Features CSV | [optional] +**AppStorePassword** | **string** | App store password | [optional] +**AppStoreTeamId** | **string** | App store team ID | [optional] +**AppStoreAppGroup** | **string** | App store app group | [optional] +**AppStoreSigningIdentity** | **string** | App store signing identity | [optional] +**AppStoreItcTeamId** | **string** | App store ITC team ID | [optional] +**HeadHtml** | **string** | Head HTML | [optional] +**SocialTwitterUrl** | **string** | Social Twitter URL | [optional] +**SocialFacebookUrl** | **string** | Social Facebook URL | [optional] +**SocialInstagramUrl** | **string** | Social Instagram URL | [optional] +**SocialPintrestUrl** | **string** | Social Pinterest URL | [optional] +**SocialTripAdvisorUrl** | **string** | Social TripAdvisor URL | [optional] +**SocialGooglePlusUrl** | **string** | Social Google Plus URL | [optional] +**SocialFourSquareUrl** | **string** | Social FourSquare URL | [optional] +**SocialYelpUrl** | **string** | Social Yelp URL | [optional] +**WebsiteType** | **int?** | Website type | [optional] +**ExternalOrderingPageUrl** | **string** | External ordering page URL | [optional] +**PanaceaEnabled** | **bool?** | Panacea enabled | [optional] +**CookieConsentPromptEnabled** | **bool?** | Cookie consent prompt enabled | [optional] +**PanaceaVanityUrl** | **string** | Panacea vanity URL | [optional] +**CountryId** | **string** | Country ID | [optional] +**ReferralUserId** | **int?** | Referral user ID | [optional] +**ReferralCampaignId** | **string** | Referral campaign ID | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WhiteLabelLanguageModel.md b/docs/WhiteLabelLanguageModel.md new file mode 100644 index 00000000..1ecb389b --- /dev/null +++ b/docs/WhiteLabelLanguageModel.md @@ -0,0 +1,9 @@ +# Flipdish.Model.WhiteLabelLanguageModel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LanguageId** | **string** | Language ID | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Flipdish/Api/AccountsApi.cs b/src/Flipdish/Api/AccountsApi.cs new file mode 100644 index 00000000..4b1d97d0 --- /dev/null +++ b/src/Flipdish/Api/AccountsApi.cs @@ -0,0 +1,2954 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAccountsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void AnswerSignUpQuestion (string signupStepAction, int? answerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse AnswerSignUpQuestionWithHttpInfo (string signupStepAction, int? answerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void ChangePassword (ChangePasswordModel changePasswordModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse ChangePasswordWithHttpInfo (ChangePasswordModel changePasswordModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void CreateAccount (CreateAccountModel createAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// string + string CreateBasicAccount (CreateBasicAccountModel basicAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of string + ApiResponse CreateBasicAccountWithHttpInfo (CreateBasicAccountModel basicAccountModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultAccountDetail + RestApiResultAccountDetail GetAccountDetails (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultAccountDetail + ApiResponse GetAccountDetailsWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultLocalisedTimeZone + RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultLocalisedTimeZone + ApiResponse GetLocalisedTimeZonesWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void Login (LoginModel loginModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse LoginWithHttpInfo (LoginModel loginModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + void LoginSso (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse LoginSsoWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + void Logout (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse LogoutWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void PasswordResetWithToken (PasswordResetModel passwordResetModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse PasswordResetWithTokenWithHttpInfo (PasswordResetModel passwordResetModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void RecaptchaValidate (string token); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse RecaptchaValidateWithHttpInfo (string token); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse RequestPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void SkipSignupStep (string signupStepAction); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse SkipSignupStepWithHttpInfo (string signupStepAction); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void UpdateAccount (AccountDetailBase updateAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse UpdateAccountWithHttpInfo (AccountDetailBase updateAccountModel); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task AnswerSignUpQuestionAsync (string signupStepAction, int? answerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AnswerSignUpQuestionAsyncWithHttpInfo (string signupStepAction, int? answerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task ChangePasswordAsync (ChangePasswordModel changePasswordModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> ChangePasswordAsyncWithHttpInfo (ChangePasswordModel changePasswordModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of string + System.Threading.Tasks.Task CreateBasicAccountAsync (CreateBasicAccountModel basicAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateBasicAccountAsyncWithHttpInfo (CreateBasicAccountModel basicAccountModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultAccountDetail + System.Threading.Tasks.Task GetAccountDetailsAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultAccountDetail) + System.Threading.Tasks.Task> GetAccountDetailsAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultLocalisedTimeZone + System.Threading.Tasks.Task GetLocalisedTimeZonesAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultLocalisedTimeZone) + System.Threading.Tasks.Task> GetLocalisedTimeZonesAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task LoginAsync (LoginModel loginModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> LoginAsyncWithHttpInfo (LoginModel loginModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task LoginSsoAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> LoginSsoAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task LogoutAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> LogoutAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task PasswordResetWithTokenAsync (PasswordResetModel passwordResetModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PasswordResetWithTokenAsyncWithHttpInfo (PasswordResetModel passwordResetModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task RecaptchaValidateAsync (string token); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RecaptchaValidateAsyncWithHttpInfo (string token); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task RequestPasswordResetAsync (RequestPasswordResetModel requestPasswordResetModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RequestPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task SkipSignupStepAsync (string signupStepAction); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SkipSignupStepAsyncWithHttpInfo (string signupStepAction); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task UpdateAccountAsync (AccountDetailBase updateAccountModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateAccountAsyncWithHttpInfo (AccountDetailBase updateAccountModel); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AccountsApi : IAccountsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AccountsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AccountsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void AnswerSignUpQuestion (string signupStepAction, int? answerId) + { + AnswerSignUpQuestionWithHttpInfo(signupStepAction, answerId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AnswerSignUpQuestionWithHttpInfo (string signupStepAction, int? answerId) + { + // verify the required parameter 'signupStepAction' is set + if (signupStepAction == null) + throw new ApiException(400, "Missing required parameter 'signupStepAction' when calling AccountsApi->AnswerSignUpQuestion"); + // verify the required parameter 'answerId' is set + if (answerId == null) + throw new ApiException(400, "Missing required parameter 'answerId' when calling AccountsApi->AnswerSignUpQuestion"); + + var localVarPath = "./api/v1.0/accounts/signupstep/{signupStepAction}/answer"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (signupStepAction != null) localVarPathParams.Add("signupStepAction", this.Configuration.ApiClient.ParameterToString(signupStepAction)); // path parameter + if (answerId != null && answerId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(answerId); // http body (model) parameter + } + else + { + localVarPostBody = answerId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AnswerSignUpQuestion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AnswerSignUpQuestionAsync (string signupStepAction, int? answerId) + { + await AnswerSignUpQuestionAsyncWithHttpInfo(signupStepAction, answerId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AnswerSignUpQuestionAsyncWithHttpInfo (string signupStepAction, int? answerId) + { + // verify the required parameter 'signupStepAction' is set + if (signupStepAction == null) + throw new ApiException(400, "Missing required parameter 'signupStepAction' when calling AccountsApi->AnswerSignUpQuestion"); + // verify the required parameter 'answerId' is set + if (answerId == null) + throw new ApiException(400, "Missing required parameter 'answerId' when calling AccountsApi->AnswerSignUpQuestion"); + + var localVarPath = "./api/v1.0/accounts/signupstep/{signupStepAction}/answer"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (signupStepAction != null) localVarPathParams.Add("signupStepAction", this.Configuration.ApiClient.ParameterToString(signupStepAction)); // path parameter + if (answerId != null && answerId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(answerId); // http body (model) parameter + } + else + { + localVarPostBody = answerId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AnswerSignUpQuestion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void ChangePassword (ChangePasswordModel changePasswordModel) + { + ChangePasswordWithHttpInfo(changePasswordModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse ChangePasswordWithHttpInfo (ChangePasswordModel changePasswordModel) + { + // verify the required parameter 'changePasswordModel' is set + if (changePasswordModel == null) + throw new ApiException(400, "Missing required parameter 'changePasswordModel' when calling AccountsApi->ChangePassword"); + + var localVarPath = "./api/v1.0/accounts/password"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (changePasswordModel != null && changePasswordModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(changePasswordModel); // http body (model) parameter + } + else + { + localVarPostBody = changePasswordModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ChangePassword", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task ChangePasswordAsync (ChangePasswordModel changePasswordModel) + { + await ChangePasswordAsyncWithHttpInfo(changePasswordModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ChangePasswordAsyncWithHttpInfo (ChangePasswordModel changePasswordModel) + { + // verify the required parameter 'changePasswordModel' is set + if (changePasswordModel == null) + throw new ApiException(400, "Missing required parameter 'changePasswordModel' when calling AccountsApi->ChangePassword"); + + var localVarPath = "./api/v1.0/accounts/password"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (changePasswordModel != null && changePasswordModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(changePasswordModel); // http body (model) parameter + } + else + { + localVarPostBody = changePasswordModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ChangePassword", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void CreateAccount (CreateAccountModel createAccountModel) + { + CreateAccountWithHttpInfo(createAccountModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel) + { + // verify the required parameter 'createAccountModel' is set + if (createAccountModel == null) + throw new ApiException(400, "Missing required parameter 'createAccountModel' when calling AccountsApi->CreateAccount"); + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = createAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel) + { + await CreateAccountAsyncWithHttpInfo(createAccountModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel) + { + // verify the required parameter 'createAccountModel' is set + if (createAccountModel == null) + throw new ApiException(400, "Missing required parameter 'createAccountModel' when calling AccountsApi->CreateAccount"); + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = createAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// string + public string CreateBasicAccount (CreateBasicAccountModel basicAccountModel) + { + ApiResponse localVarResponse = CreateBasicAccountWithHttpInfo(basicAccountModel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of string + public ApiResponse< string > CreateBasicAccountWithHttpInfo (CreateBasicAccountModel basicAccountModel) + { + // verify the required parameter 'basicAccountModel' is set + if (basicAccountModel == null) + throw new ApiException(400, "Missing required parameter 'basicAccountModel' when calling AccountsApi->CreateBasicAccount"); + + var localVarPath = "./api/v1.0/accounts/basic-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (basicAccountModel != null && basicAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(basicAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = basicAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBasicAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of string + public async System.Threading.Tasks.Task CreateBasicAccountAsync (CreateBasicAccountModel basicAccountModel) + { + ApiResponse localVarResponse = await CreateBasicAccountAsyncWithHttpInfo(basicAccountModel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateBasicAccountAsyncWithHttpInfo (CreateBasicAccountModel basicAccountModel) + { + // verify the required parameter 'basicAccountModel' is set + if (basicAccountModel == null) + throw new ApiException(400, "Missing required parameter 'basicAccountModel' when calling AccountsApi->CreateBasicAccount"); + + var localVarPath = "./api/v1.0/accounts/basic-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (basicAccountModel != null && basicAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(basicAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = basicAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBasicAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultAccountDetail + public RestApiResultAccountDetail GetAccountDetails () + { + ApiResponse localVarResponse = GetAccountDetailsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultAccountDetail + public ApiResponse< RestApiResultAccountDetail > GetAccountDetailsWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAccountDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultAccountDetail + public async System.Threading.Tasks.Task GetAccountDetailsAsync () + { + ApiResponse localVarResponse = await GetAccountDetailsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultAccountDetail) + public async System.Threading.Tasks.Task> GetAccountDetailsAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAccountDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultLocalisedTimeZone + public RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones () + { + ApiResponse localVarResponse = GetLocalisedTimeZonesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultLocalisedTimeZone + public ApiResponse< RestApiArrayResultLocalisedTimeZone > GetLocalisedTimeZonesWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/timezones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocalisedTimeZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLocalisedTimeZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLocalisedTimeZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultLocalisedTimeZone + public async System.Threading.Tasks.Task GetLocalisedTimeZonesAsync () + { + ApiResponse localVarResponse = await GetLocalisedTimeZonesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultLocalisedTimeZone) + public async System.Threading.Tasks.Task> GetLocalisedTimeZonesAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/timezones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocalisedTimeZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLocalisedTimeZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLocalisedTimeZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void Login (LoginModel loginModel) + { + LoginWithHttpInfo(loginModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse LoginWithHttpInfo (LoginModel loginModel) + { + // verify the required parameter 'loginModel' is set + if (loginModel == null) + throw new ApiException(400, "Missing required parameter 'loginModel' when calling AccountsApi->Login"); + + var localVarPath = "./api/v1.0/accounts/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (loginModel != null && loginModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(loginModel); // http body (model) parameter + } + else + { + localVarPostBody = loginModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Login", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task LoginAsync (LoginModel loginModel) + { + await LoginAsyncWithHttpInfo(loginModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> LoginAsyncWithHttpInfo (LoginModel loginModel) + { + // verify the required parameter 'loginModel' is set + if (loginModel == null) + throw new ApiException(400, "Missing required parameter 'loginModel' when calling AccountsApi->Login"); + + var localVarPath = "./api/v1.0/accounts/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (loginModel != null && loginModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(loginModel); // http body (model) parameter + } + else + { + localVarPostBody = loginModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Login", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + public void LoginSso () + { + LoginSsoWithHttpInfo(); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse LoginSsoWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/login/sso"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LoginSso", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task LoginSsoAsync () + { + await LoginSsoAsyncWithHttpInfo(); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> LoginSsoAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/login/sso"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LoginSso", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + public void Logout () + { + LogoutWithHttpInfo(); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse LogoutWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Logout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task LogoutAsync () + { + await LogoutAsyncWithHttpInfo(); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> LogoutAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/accounts/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Logout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void PasswordResetWithToken (PasswordResetModel passwordResetModel) + { + PasswordResetWithTokenWithHttpInfo(passwordResetModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse PasswordResetWithTokenWithHttpInfo (PasswordResetModel passwordResetModel) + { + // verify the required parameter 'passwordResetModel' is set + if (passwordResetModel == null) + throw new ApiException(400, "Missing required parameter 'passwordResetModel' when calling AccountsApi->PasswordResetWithToken"); + + var localVarPath = "./api/v1.0/accounts/password"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (passwordResetModel != null && passwordResetModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(passwordResetModel); // http body (model) parameter + } + else + { + localVarPostBody = passwordResetModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PasswordResetWithToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task PasswordResetWithTokenAsync (PasswordResetModel passwordResetModel) + { + await PasswordResetWithTokenAsyncWithHttpInfo(passwordResetModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PasswordResetWithTokenAsyncWithHttpInfo (PasswordResetModel passwordResetModel) + { + // verify the required parameter 'passwordResetModel' is set + if (passwordResetModel == null) + throw new ApiException(400, "Missing required parameter 'passwordResetModel' when calling AccountsApi->PasswordResetWithToken"); + + var localVarPath = "./api/v1.0/accounts/password"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (passwordResetModel != null && passwordResetModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(passwordResetModel); // http body (model) parameter + } + else + { + localVarPostBody = passwordResetModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PasswordResetWithToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void RecaptchaValidate (string token) + { + RecaptchaValidateWithHttpInfo(token); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse RecaptchaValidateWithHttpInfo (string token) + { + // verify the required parameter 'token' is set + if (token == null) + throw new ApiException(400, "Missing required parameter 'token' when calling AccountsApi->RecaptchaValidate"); + + var localVarPath = "./api/v1.0/accounts/recaptcha"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RecaptchaValidate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task RecaptchaValidateAsync (string token) + { + await RecaptchaValidateAsyncWithHttpInfo(token); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RecaptchaValidateAsyncWithHttpInfo (string token) + { + // verify the required parameter 'token' is set + if (token == null) + throw new ApiException(400, "Missing required parameter 'token' when calling AccountsApi->RecaptchaValidate"); + + var localVarPath = "./api/v1.0/accounts/recaptcha"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RecaptchaValidate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel) + { + RequestPasswordResetWithHttpInfo(requestPasswordResetModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse RequestPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel) + { + // verify the required parameter 'requestPasswordResetModel' is set + if (requestPasswordResetModel == null) + throw new ApiException(400, "Missing required parameter 'requestPasswordResetModel' when calling AccountsApi->RequestPasswordReset"); + + var localVarPath = "./api/v1.0/accounts/passwordreset"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (requestPasswordResetModel != null && requestPasswordResetModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(requestPasswordResetModel); // http body (model) parameter + } + else + { + localVarPostBody = requestPasswordResetModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RequestPasswordReset", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task RequestPasswordResetAsync (RequestPasswordResetModel requestPasswordResetModel) + { + await RequestPasswordResetAsyncWithHttpInfo(requestPasswordResetModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RequestPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel) + { + // verify the required parameter 'requestPasswordResetModel' is set + if (requestPasswordResetModel == null) + throw new ApiException(400, "Missing required parameter 'requestPasswordResetModel' when calling AccountsApi->RequestPasswordReset"); + + var localVarPath = "./api/v1.0/accounts/passwordreset"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (requestPasswordResetModel != null && requestPasswordResetModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(requestPasswordResetModel); // http body (model) parameter + } + else + { + localVarPostBody = requestPasswordResetModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RequestPasswordReset", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void SkipSignupStep (string signupStepAction) + { + SkipSignupStepWithHttpInfo(signupStepAction); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse SkipSignupStepWithHttpInfo (string signupStepAction) + { + // verify the required parameter 'signupStepAction' is set + if (signupStepAction == null) + throw new ApiException(400, "Missing required parameter 'signupStepAction' when calling AccountsApi->SkipSignupStep"); + + var localVarPath = "./api/v1.0/accounts/signupstep/{signupStepAction}/skip"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (signupStepAction != null) localVarPathParams.Add("signupStepAction", this.Configuration.ApiClient.ParameterToString(signupStepAction)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SkipSignupStep", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task SkipSignupStepAsync (string signupStepAction) + { + await SkipSignupStepAsyncWithHttpInfo(signupStepAction); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SkipSignupStepAsyncWithHttpInfo (string signupStepAction) + { + // verify the required parameter 'signupStepAction' is set + if (signupStepAction == null) + throw new ApiException(400, "Missing required parameter 'signupStepAction' when calling AccountsApi->SkipSignupStep"); + + var localVarPath = "./api/v1.0/accounts/signupstep/{signupStepAction}/skip"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (signupStepAction != null) localVarPathParams.Add("signupStepAction", this.Configuration.ApiClient.ParameterToString(signupStepAction)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SkipSignupStep", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void UpdateAccount (AccountDetailBase updateAccountModel) + { + UpdateAccountWithHttpInfo(updateAccountModel); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateAccountWithHttpInfo (AccountDetailBase updateAccountModel) + { + // verify the required parameter 'updateAccountModel' is set + if (updateAccountModel == null) + throw new ApiException(400, "Missing required parameter 'updateAccountModel' when calling AccountsApi->UpdateAccount"); + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateAccountModel != null && updateAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = updateAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateAccountAsync (AccountDetailBase updateAccountModel) + { + await UpdateAccountAsyncWithHttpInfo(updateAccountModel); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateAccountAsyncWithHttpInfo (AccountDetailBase updateAccountModel) + { + // verify the required parameter 'updateAccountModel' is set + if (updateAccountModel == null) + throw new ApiException(400, "Missing required parameter 'updateAccountModel' when calling AccountsApi->UpdateAccount"); + + var localVarPath = "./api/v1.0/accounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateAccountModel != null && updateAccountModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAccountModel); // http body (model) parameter + } + else + { + localVarPostBody = updateAccountModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/AddressApi.cs b/src/Flipdish/Api/AddressApi.cs new file mode 100644 index 00000000..eb3d7bd2 --- /dev/null +++ b/src/Flipdish/Api/AddressApi.cs @@ -0,0 +1,1167 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAddressApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + RestApiStringResult AddressTemplates (StoreAddressForm address); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + ApiResponse AddressTemplatesWithHttpInfo (StoreAddressForm address); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + RestApiResultAddressFormResponse FormByApp (string appId, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + ApiResponse FormByAppWithHttpInfo (string appId, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + ApiResponse FormByCountryWithHttpInfo (string countryCode, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + ApiResponse FormatGoogleAddressWithHttpInfo (GoogleAddress googleAddress, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// RestApiResultCountryFormResponse + RestApiResultCountryFormResponse GetCountries (string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of RestApiResultCountryFormResponse + ApiResponse GetCountriesWithHttpInfo (string language = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task AddressTemplatesAsync (StoreAddressForm address); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> AddressTemplatesAsyncWithHttpInfo (StoreAddressForm address); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + System.Threading.Tasks.Task FormByAppAsync (string appId, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + System.Threading.Tasks.Task> FormByAppAsyncWithHttpInfo (string appId, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + System.Threading.Tasks.Task FormByCountryAsync (string countryCode, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + System.Threading.Tasks.Task> FormByCountryAsyncWithHttpInfo (string countryCode, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + System.Threading.Tasks.Task FormatGoogleAddressAsync (GoogleAddress googleAddress, string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + System.Threading.Tasks.Task> FormatGoogleAddressAsyncWithHttpInfo (GoogleAddress googleAddress, string language = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of RestApiResultCountryFormResponse + System.Threading.Tasks.Task GetCountriesAsync (string language = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of ApiResponse (RestApiResultCountryFormResponse) + System.Threading.Tasks.Task> GetCountriesAsyncWithHttpInfo (string language = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AddressApi : IAddressApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AddressApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AddressApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + public RestApiStringResult AddressTemplates (StoreAddressForm address) + { + ApiResponse localVarResponse = AddressTemplatesWithHttpInfo(address); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > AddressTemplatesWithHttpInfo (StoreAddressForm address) + { + // verify the required parameter 'address' is set + if (address == null) + throw new ApiException(400, "Missing required parameter 'address' when calling AddressApi->AddressTemplates"); + + var localVarPath = "./api/v1.0/address/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (address != null && address.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(address); // http body (model) parameter + } + else + { + localVarPostBody = address; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddressTemplates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task AddressTemplatesAsync (StoreAddressForm address) + { + ApiResponse localVarResponse = await AddressTemplatesAsyncWithHttpInfo(address); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> AddressTemplatesAsyncWithHttpInfo (StoreAddressForm address) + { + // verify the required parameter 'address' is set + if (address == null) + throw new ApiException(400, "Missing required parameter 'address' when calling AddressApi->AddressTemplates"); + + var localVarPath = "./api/v1.0/address/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (address != null && address.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(address); // http body (model) parameter + } + else + { + localVarPostBody = address; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddressTemplates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + public RestApiResultAddressFormResponse FormByApp (string appId, string language = null) + { + ApiResponse localVarResponse = FormByAppWithHttpInfo(appId, language); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + public ApiResponse< RestApiResultAddressFormResponse > FormByAppWithHttpInfo (string appId, string language = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AddressApi->FormByApp"); + + var localVarPath = "./api/v1.0/app/{appId}/address/form"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormByApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + public async System.Threading.Tasks.Task FormByAppAsync (string appId, string language = null) + { + ApiResponse localVarResponse = await FormByAppAsyncWithHttpInfo(appId, language); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + public async System.Threading.Tasks.Task> FormByAppAsyncWithHttpInfo (string appId, string language = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AddressApi->FormByApp"); + + var localVarPath = "./api/v1.0/app/{appId}/address/form"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormByApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + public RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null) + { + ApiResponse localVarResponse = FormByCountryWithHttpInfo(countryCode, language); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + public ApiResponse< RestApiResultAddressFormResponse > FormByCountryWithHttpInfo (string countryCode, string language = null) + { + // verify the required parameter 'countryCode' is set + if (countryCode == null) + throw new ApiException(400, "Missing required parameter 'countryCode' when calling AddressApi->FormByCountry"); + + var localVarPath = "./api/v1.0/address/country/{countryCode}/form"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (countryCode != null) localVarPathParams.Add("countryCode", this.Configuration.ApiClient.ParameterToString(countryCode)); // path parameter + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormByCountry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + public async System.Threading.Tasks.Task FormByCountryAsync (string countryCode, string language = null) + { + ApiResponse localVarResponse = await FormByCountryAsyncWithHttpInfo(countryCode, language); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + public async System.Threading.Tasks.Task> FormByCountryAsyncWithHttpInfo (string countryCode, string language = null) + { + // verify the required parameter 'countryCode' is set + if (countryCode == null) + throw new ApiException(400, "Missing required parameter 'countryCode' when calling AddressApi->FormByCountry"); + + var localVarPath = "./api/v1.0/address/country/{countryCode}/form"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (countryCode != null) localVarPathParams.Add("countryCode", this.Configuration.ApiClient.ParameterToString(countryCode)); // path parameter + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormByCountry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAddressFormResponse + public RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null) + { + ApiResponse localVarResponse = FormatGoogleAddressWithHttpInfo(googleAddress, language); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAddressFormResponse + public ApiResponse< RestApiResultAddressFormResponse > FormatGoogleAddressWithHttpInfo (GoogleAddress googleAddress, string language = null) + { + // verify the required parameter 'googleAddress' is set + if (googleAddress == null) + throw new ApiException(400, "Missing required parameter 'googleAddress' when calling AddressApi->FormatGoogleAddress"); + + var localVarPath = "./api/v1.0/address/google"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + if (googleAddress != null && googleAddress.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(googleAddress); // http body (model) parameter + } + else + { + localVarPostBody = googleAddress; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormatGoogleAddress", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAddressFormResponse + public async System.Threading.Tasks.Task FormatGoogleAddressAsync (GoogleAddress googleAddress, string language = null) + { + ApiResponse localVarResponse = await FormatGoogleAddressAsyncWithHttpInfo(googleAddress, language); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAddressFormResponse) + public async System.Threading.Tasks.Task> FormatGoogleAddressAsyncWithHttpInfo (GoogleAddress googleAddress, string language = null) + { + // verify the required parameter 'googleAddress' is set + if (googleAddress == null) + throw new ApiException(400, "Missing required parameter 'googleAddress' when calling AddressApi->FormatGoogleAddress"); + + var localVarPath = "./api/v1.0/address/google"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + if (googleAddress != null && googleAddress.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(googleAddress); // http body (model) parameter + } + else + { + localVarPostBody = googleAddress; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FormatGoogleAddress", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAddressFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAddressFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// RestApiResultCountryFormResponse + public RestApiResultCountryFormResponse GetCountries (string language = null) + { + ApiResponse localVarResponse = GetCountriesWithHttpInfo(language); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of RestApiResultCountryFormResponse + public ApiResponse< RestApiResultCountryFormResponse > GetCountriesWithHttpInfo (string language = null) + { + + var localVarPath = "./api/v1.0/address/countries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCountries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCountryFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCountryFormResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of RestApiResultCountryFormResponse + public async System.Threading.Tasks.Task GetCountriesAsync (string language = null) + { + ApiResponse localVarResponse = await GetCountriesAsyncWithHttpInfo(language); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of ApiResponse (RestApiResultCountryFormResponse) + public async System.Threading.Tasks.Task> GetCountriesAsyncWithHttpInfo (string language = null) + { + + var localVarPath = "./api/v1.0/address/countries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCountries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCountryFormResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCountryFormResponse))); + } + + } +} diff --git a/src/Flipdish/Api/ApmApi.cs b/src/Flipdish/Api/ApmApi.cs new file mode 100644 index 00000000..2404dd20 --- /dev/null +++ b/src/Flipdish/Api/ApmApi.cs @@ -0,0 +1,1410 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IApmApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultApmStatus + RestApiResultApmStatus GetApmStatus (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultApmStatus + ApiResponse GetApmStatusWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultApmStatistics + RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultApmStatistics + ApiResponse GetBasicStatisticsWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultApmHourlyDataPoint + RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultApmHourlyDataPoint + ApiResponse GetCalendarWeekStatisticsWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiArrayResultApmDataPoint + RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultApmDataPoint + ApiResponse GetCallsStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiArrayResultApmCurrencyDataPoint + RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultApmCurrencyDataPoint + ApiResponse GetOrderStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPhoneCall + RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPhoneCall + ApiResponse GetPaginatedCallListWithHttpInfo (string appId, int? page = null, int? limit = null, List storeId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultApmStatus + System.Threading.Tasks.Task GetApmStatusAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultApmStatus) + System.Threading.Tasks.Task> GetApmStatusAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultApmStatistics + System.Threading.Tasks.Task GetBasicStatisticsAsync (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultApmStatistics) + System.Threading.Tasks.Task> GetBasicStatisticsAsyncWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultApmHourlyDataPoint + System.Threading.Tasks.Task GetCalendarWeekStatisticsAsync (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmHourlyDataPoint) + System.Threading.Tasks.Task> GetCalendarWeekStatisticsAsyncWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultApmDataPoint + System.Threading.Tasks.Task GetCallsStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmDataPoint) + System.Threading.Tasks.Task> GetCallsStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultApmCurrencyDataPoint + System.Threading.Tasks.Task GetOrderStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmCurrencyDataPoint) + System.Threading.Tasks.Task> GetOrderStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPhoneCall + System.Threading.Tasks.Task GetPaginatedCallListAsync (string appId, int? page = null, int? limit = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPhoneCall) + System.Threading.Tasks.Task> GetPaginatedCallListAsyncWithHttpInfo (string appId, int? page = null, int? limit = null, List storeId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ApmApi : IApmApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ApmApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ApmApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultApmStatus + public RestApiResultApmStatus GetApmStatus (string appId) + { + ApiResponse localVarResponse = GetApmStatusWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultApmStatus + public ApiResponse< RestApiResultApmStatus > GetApmStatusWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetApmStatus"); + + var localVarPath = "./api/v1.0/{appId}/apm/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApmStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApmStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApmStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultApmStatus + public async System.Threading.Tasks.Task GetApmStatusAsync (string appId) + { + ApiResponse localVarResponse = await GetApmStatusAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultApmStatus) + public async System.Threading.Tasks.Task> GetApmStatusAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetApmStatus"); + + var localVarPath = "./api/v1.0/{appId}/apm/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApmStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApmStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApmStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultApmStatistics + public RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null) + { + ApiResponse localVarResponse = GetBasicStatisticsWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultApmStatistics + public ApiResponse< RestApiResultApmStatistics > GetBasicStatisticsWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetBasicStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBasicStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApmStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApmStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultApmStatistics + public async System.Threading.Tasks.Task GetBasicStatisticsAsync (string appId, List storeId = null) + { + ApiResponse localVarResponse = await GetBasicStatisticsAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultApmStatistics) + public async System.Threading.Tasks.Task> GetBasicStatisticsAsyncWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetBasicStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBasicStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApmStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApmStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultApmHourlyDataPoint + public RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null) + { + ApiResponse localVarResponse = GetCalendarWeekStatisticsWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultApmHourlyDataPoint + public ApiResponse< RestApiArrayResultApmHourlyDataPoint > GetCalendarWeekStatisticsWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetCalendarWeekStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/calendar"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCalendarWeekStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmHourlyDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmHourlyDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultApmHourlyDataPoint + public async System.Threading.Tasks.Task GetCalendarWeekStatisticsAsync (string appId, List storeId = null) + { + ApiResponse localVarResponse = await GetCalendarWeekStatisticsAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmHourlyDataPoint) + public async System.Threading.Tasks.Task> GetCalendarWeekStatisticsAsyncWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetCalendarWeekStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/calendar"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCalendarWeekStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmHourlyDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmHourlyDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiArrayResultApmDataPoint + public RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + ApiResponse localVarResponse = GetCallsStatisticsWithHttpInfo(appId, aggregateDataBy, dataPointLimit, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultApmDataPoint + public ApiResponse< RestApiArrayResultApmDataPoint > GetCallsStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetCallsStatistics"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling ApmApi->GetCallsStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (aggregateDataBy != null) localVarPathParams.Add("aggregateDataBy", this.Configuration.ApiClient.ParameterToString(aggregateDataBy)); // path parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCallsStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultApmDataPoint + public async System.Threading.Tasks.Task GetCallsStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + ApiResponse localVarResponse = await GetCallsStatisticsAsyncWithHttpInfo(appId, aggregateDataBy, dataPointLimit, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmDataPoint) + public async System.Threading.Tasks.Task> GetCallsStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetCallsStatistics"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling ApmApi->GetCallsStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (aggregateDataBy != null) localVarPathParams.Add("aggregateDataBy", this.Configuration.ApiClient.ParameterToString(aggregateDataBy)); // path parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCallsStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiArrayResultApmCurrencyDataPoint + public RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + ApiResponse localVarResponse = GetOrderStatisticsWithHttpInfo(appId, aggregateDataBy, dataPointLimit, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultApmCurrencyDataPoint + public ApiResponse< RestApiArrayResultApmCurrencyDataPoint > GetOrderStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetOrderStatistics"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling ApmApi->GetOrderStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (aggregateDataBy != null) localVarPathParams.Add("aggregateDataBy", this.Configuration.ApiClient.ParameterToString(aggregateDataBy)); // path parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmCurrencyDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmCurrencyDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultApmCurrencyDataPoint + public async System.Threading.Tasks.Task GetOrderStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + ApiResponse localVarResponse = await GetOrderStatisticsAsyncWithHttpInfo(appId, aggregateDataBy, dataPointLimit, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultApmCurrencyDataPoint) + public async System.Threading.Tasks.Task> GetOrderStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetOrderStatistics"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling ApmApi->GetOrderStatistics"); + + var localVarPath = "./api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (aggregateDataBy != null) localVarPathParams.Add("aggregateDataBy", this.Configuration.ApiClient.ParameterToString(aggregateDataBy)); // path parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultApmCurrencyDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultApmCurrencyDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPhoneCall + public RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null) + { + ApiResponse localVarResponse = GetPaginatedCallListWithHttpInfo(appId, page, limit, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPhoneCall + public ApiResponse< RestApiPaginationResultPhoneCall > GetPaginatedCallListWithHttpInfo (string appId, int? page = null, int? limit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetPaginatedCallList"); + + var localVarPath = "./api/v1.0/{appId}/apm/calls"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPaginatedCallList", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPhoneCall) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPhoneCall))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPhoneCall + public async System.Threading.Tasks.Task GetPaginatedCallListAsync (string appId, int? page = null, int? limit = null, List storeId = null) + { + ApiResponse localVarResponse = await GetPaginatedCallListAsyncWithHttpInfo(appId, page, limit, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPhoneCall) + public async System.Threading.Tasks.Task> GetPaginatedCallListAsyncWithHttpInfo (string appId, int? page = null, int? limit = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ApmApi->GetPaginatedCallList"); + + var localVarPath = "./api/v1.0/{appId}/apm/calls"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPaginatedCallList", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPhoneCall) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPhoneCall))); + } + + } +} diff --git a/src/Flipdish/Api/AppStoreApi.cs b/src/Flipdish/Api/AppStoreApi.cs new file mode 100644 index 00000000..04866403 --- /dev/null +++ b/src/Flipdish/Api/AppStoreApi.cs @@ -0,0 +1,566 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAppStoreApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAppStoreApp + RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAppStoreApp + ApiResponse GetAppStoreAppWithHttpInfo (string appStoreAppId, string appId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultAppStoreAppSummary + RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultAppStoreAppSummary + ApiResponse GetAppStoreAppsWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAppStoreApp + System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId, string appId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAppStoreApp) + System.Threading.Tasks.Task> GetAppStoreAppAsyncWithHttpInfo (string appStoreAppId, string appId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultAppStoreAppSummary + System.Threading.Tasks.Task GetAppStoreAppsAsync (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultAppStoreAppSummary) + System.Threading.Tasks.Task> GetAppStoreAppsAsyncWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AppStoreApi : IAppStoreApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AppStoreApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AppStoreApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultAppStoreApp + public RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null) + { + ApiResponse localVarResponse = GetAppStoreAppWithHttpInfo(appStoreAppId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultAppStoreApp + public ApiResponse< RestApiResultAppStoreApp > GetAppStoreAppWithHttpInfo (string appStoreAppId, string appId = null) + { + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreApi->GetAppStoreApp"); + + var localVarPath = "./api/v1.0/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appId", appId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultAppStoreApp + public async System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId, string appId = null) + { + ApiResponse localVarResponse = await GetAppStoreAppAsyncWithHttpInfo(appStoreAppId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAppStoreApp) + public async System.Threading.Tasks.Task> GetAppStoreAppAsyncWithHttpInfo (string appStoreAppId, string appId = null) + { + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreApi->GetAppStoreApp"); + + var localVarPath = "./api/v1.0/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appId", appId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultAppStoreAppSummary + public RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) + { + ApiResponse localVarResponse = GetAppStoreAppsWithHttpInfo(search, page, limit, excludeNotOwned, showOnlyVerified); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultAppStoreAppSummary + public ApiResponse< RestApiPaginationResultAppStoreAppSummary > GetAppStoreAppsWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) + { + // verify the required parameter 'search' is set + if (search == null) + throw new ApiException(400, "Missing required parameter 'search' when calling AppStoreApi->GetAppStoreApps"); + + var localVarPath = "./api/v1.0/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (search != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "search", search)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (excludeNotOwned != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwned", excludeNotOwned)); // query parameter + if (showOnlyVerified != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "showOnlyVerified", showOnlyVerified)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultAppStoreAppSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultAppStoreAppSummary + public async System.Threading.Tasks.Task GetAppStoreAppsAsync (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) + { + ApiResponse localVarResponse = await GetAppStoreAppsAsyncWithHttpInfo(search, page, limit, excludeNotOwned, showOnlyVerified); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultAppStoreAppSummary) + public async System.Threading.Tasks.Task> GetAppStoreAppsAsyncWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) + { + // verify the required parameter 'search' is set + if (search == null) + throw new ApiException(400, "Missing required parameter 'search' when calling AppStoreApi->GetAppStoreApps"); + + var localVarPath = "./api/v1.0/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (search != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "search", search)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (excludeNotOwned != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwned", excludeNotOwned)); // query parameter + if (showOnlyVerified != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "showOnlyVerified", showOnlyVerified)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultAppStoreAppSummary))); + } + + } +} diff --git a/src/Flipdish/Api/AppStoreConfigurationsApi.cs b/src/Flipdish/Api/AppStoreConfigurationsApi.cs new file mode 100644 index 00000000..fd11dc1a --- /dev/null +++ b/src/Flipdish/Api/AppStoreConfigurationsApi.cs @@ -0,0 +1,2175 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAppStoreConfigurationsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object AppStoreConfigurationsAppStoreHandleOauthResponseCode (string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse AppStoreConfigurationsAppStoreHandleOauthResponseCodeWithHttpInfo (string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreAppConfiguration + RestApiResultAppStoreAppConfiguration CreateAppStoreConfig (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreAppConfiguration + ApiResponse CreateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiStringResult + RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse DeleteAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultExecuteConfigurationActionResult + RestApiResultExecuteConfigurationActionResult ExecuteConfigurationAction (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultExecuteConfigurationActionResult + ApiResponse ExecuteConfigurationActionWithHttpInfo (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultAppStoreAppConfiguration + RestApiResultAppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultAppStoreAppConfiguration + ApiResponse GetAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultAppStoreAppConfigurationSummary + RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleApp (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationSummary + ApiResponse GetConfiguredAppSingleAppWithHttpInfo (string appId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultAppStoreAppSummary + RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultAppStoreAppSummary + ApiResponse GetConfiguredAppsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void UpdateAppStoreConfigSettingValues (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateAppStoreConfigSettingValuesWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task AppStoreConfigurationsAppStoreHandleOauthResponseCodeAsync (string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AppStoreConfigurationsAppStoreHandleOauthResponseCodeAsyncWithHttpInfo (string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + System.Threading.Tasks.Task CreateAppStoreConfigAsync (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) + System.Threading.Tasks.Task> CreateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task DeleteAppStoreConfigAsync (string appId, string appStoreAppId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> DeleteAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultExecuteConfigurationActionResult + System.Threading.Tasks.Task ExecuteConfigurationActionAsync (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultExecuteConfigurationActionResult) + System.Threading.Tasks.Task> ExecuteConfigurationActionAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) + System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultAppStoreAppConfigurationSummary + System.Threading.Tasks.Task GetConfiguredAppSingleAppAsync (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationSummary) + System.Threading.Tasks.Task> GetConfiguredAppSingleAppAsyncWithHttpInfo (string appId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultAppStoreAppSummary + System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppSummary) + System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateAppStoreConfigSettingValuesAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateAppStoreConfigSettingValuesAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AppStoreConfigurationsApi : IAppStoreConfigurationsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AppStoreConfigurationsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AppStoreConfigurationsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object AppStoreConfigurationsAppStoreHandleOauthResponseCode (string appStoreAppId) + { + ApiResponse localVarResponse = AppStoreConfigurationsAppStoreHandleOauthResponseCodeWithHttpInfo(appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > AppStoreConfigurationsAppStoreHandleOauthResponseCodeWithHttpInfo (string appStoreAppId) + { + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->AppStoreConfigurationsAppStoreHandleOauthResponseCode"); + + var localVarPath = "./api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppStoreConfigurationsAppStoreHandleOauthResponseCode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task AppStoreConfigurationsAppStoreHandleOauthResponseCodeAsync (string appStoreAppId) + { + ApiResponse localVarResponse = await AppStoreConfigurationsAppStoreHandleOauthResponseCodeAsyncWithHttpInfo(appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AppStoreConfigurationsAppStoreHandleOauthResponseCodeAsyncWithHttpInfo (string appStoreAppId) + { + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->AppStoreConfigurationsAppStoreHandleOauthResponseCode"); + + var localVarPath = "./api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppStoreConfigurationsAppStoreHandleOauthResponseCode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreAppConfiguration + public RestApiResultAppStoreAppConfiguration CreateAppStoreConfig (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = CreateAppStoreConfigWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreAppConfiguration + public ApiResponse< RestApiResultAppStoreAppConfiguration > CreateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->CreateAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->CreateAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + public async System.Threading.Tasks.Task CreateAppStoreConfigAsync (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = await CreateAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) + public async System.Threading.Tasks.Task> CreateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->CreateAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->CreateAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiStringResult + public RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId) + { + ApiResponse localVarResponse = DeleteAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > DeleteAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task DeleteAppStoreConfigAsync (string appId, string appStoreAppId, string configId) + { + ApiResponse localVarResponse = await DeleteAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> DeleteAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->DeleteAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultExecuteConfigurationActionResult + public RestApiResultExecuteConfigurationActionResult ExecuteConfigurationAction (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) + { + ApiResponse localVarResponse = ExecuteConfigurationActionWithHttpInfo(appId, appStoreAppId, configId, executeConfigurationActionRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultExecuteConfigurationActionResult + public ApiResponse< RestApiResultExecuteConfigurationActionResult > ExecuteConfigurationActionWithHttpInfo (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'executeConfigurationActionRequest' is set + if (executeConfigurationActionRequest == null) + throw new ApiException(400, "Missing required parameter 'executeConfigurationActionRequest' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (executeConfigurationActionRequest != null && executeConfigurationActionRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(executeConfigurationActionRequest); // http body (model) parameter + } + else + { + localVarPostBody = executeConfigurationActionRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ExecuteConfigurationAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultExecuteConfigurationActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultExecuteConfigurationActionResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultExecuteConfigurationActionResult + public async System.Threading.Tasks.Task ExecuteConfigurationActionAsync (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) + { + ApiResponse localVarResponse = await ExecuteConfigurationActionAsyncWithHttpInfo(appId, appStoreAppId, configId, executeConfigurationActionRequest); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultExecuteConfigurationActionResult) + public async System.Threading.Tasks.Task> ExecuteConfigurationActionAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + // verify the required parameter 'executeConfigurationActionRequest' is set + if (executeConfigurationActionRequest == null) + throw new ApiException(400, "Missing required parameter 'executeConfigurationActionRequest' when calling AppStoreConfigurationsApi->ExecuteConfigurationAction"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (executeConfigurationActionRequest != null && executeConfigurationActionRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(executeConfigurationActionRequest); // http body (model) parameter + } + else + { + localVarPostBody = executeConfigurationActionRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ExecuteConfigurationAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultExecuteConfigurationActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultExecuteConfigurationActionResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultAppStoreAppConfiguration + public RestApiResultAppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) + { + ApiResponse localVarResponse = GetAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultAppStoreAppConfiguration + public ApiResponse< RestApiResultAppStoreAppConfiguration > GetAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + public async System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId) + { + ApiResponse localVarResponse = await GetAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) + public async System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->GetAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultAppStoreAppConfigurationSummary + public RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleApp (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = GetConfiguredAppSingleAppWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationSummary + public ApiResponse< RestApiArrayResultAppStoreAppConfigurationSummary > GetConfiguredAppSingleAppWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetConfiguredAppSingleApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->GetConfiguredAppSingleApp"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetConfiguredAppSingleApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAppStoreAppConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultAppStoreAppConfigurationSummary + public async System.Threading.Tasks.Task GetConfiguredAppSingleAppAsync (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = await GetConfiguredAppSingleAppAsyncWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationSummary) + public async System.Threading.Tasks.Task> GetConfiguredAppSingleAppAsyncWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetConfiguredAppSingleApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->GetConfiguredAppSingleApp"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetConfiguredAppSingleApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAppStoreAppConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultAppStoreAppSummary + public RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId) + { + ApiResponse localVarResponse = GetConfiguredAppsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultAppStoreAppSummary + public ApiResponse< RestApiArrayResultAppStoreAppSummary > GetConfiguredAppsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetConfiguredApps"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetConfiguredApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultAppStoreAppSummary + public async System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId) + { + ApiResponse localVarResponse = await GetConfiguredAppsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppSummary) + public async System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->GetConfiguredApps"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetConfiguredApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) + { + UpdateAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId, updateAppStoreAppConfiguration); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'updateAppStoreAppConfiguration' is set + if (updateAppStoreAppConfiguration == null) + throw new ApiException(400, "Missing required parameter 'updateAppStoreAppConfiguration' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateAppStoreAppConfiguration != null && updateAppStoreAppConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAppStoreAppConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = updateAppStoreAppConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) + { + await UpdateAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId, updateAppStoreAppConfiguration); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + // verify the required parameter 'updateAppStoreAppConfiguration' is set + if (updateAppStoreAppConfiguration == null) + throw new ApiException(400, "Missing required parameter 'updateAppStoreAppConfiguration' when calling AppStoreConfigurationsApi->UpdateAppStoreConfig"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateAppStoreAppConfiguration != null && updateAppStoreAppConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAppStoreAppConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = updateAppStoreAppConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void UpdateAppStoreConfigSettingValues (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues) + { + UpdateAppStoreConfigSettingValuesWithHttpInfo(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateAppStoreConfigSettingValuesWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'updateAppStoreAppConfigurationValues' is set + if (updateAppStoreAppConfigurationValues == null) + throw new ApiException(400, "Missing required parameter 'updateAppStoreAppConfigurationValues' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateAppStoreAppConfigurationValues != null && updateAppStoreAppConfigurationValues.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAppStoreAppConfigurationValues); // http body (model) parameter + } + else + { + localVarPostBody = updateAppStoreAppConfigurationValues; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfigSettingValues", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateAppStoreConfigSettingValuesAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues) + { + await UpdateAppStoreConfigSettingValuesAsyncWithHttpInfo(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateAppStoreConfigSettingValuesAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfigurationValuesBatch updateAppStoreAppConfigurationValues) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + // verify the required parameter 'updateAppStoreAppConfigurationValues' is set + if (updateAppStoreAppConfigurationValues == null) + throw new ApiException(400, "Missing required parameter 'updateAppStoreAppConfigurationValues' when calling AppStoreConfigurationsApi->UpdateAppStoreConfigSettingValues"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateAppStoreAppConfigurationValues != null && updateAppStoreAppConfigurationValues.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateAppStoreAppConfigurationValues); // http body (model) parameter + } + else + { + localVarPostBody = updateAppStoreAppConfigurationValues; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfigSettingValues", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/AppStoreDeveloperApi.cs b/src/Flipdish/Api/AppStoreDeveloperApi.cs new file mode 100644 index 00000000..ec2c06d0 --- /dev/null +++ b/src/Flipdish/Api/AppStoreDeveloperApi.cs @@ -0,0 +1,1930 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAppStoreDeveloperApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void AppVerificationUpdate (string oauthAppId, string appStoreAppId, string verificationStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse AppVerificationUpdateWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreApp + RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreApp + ApiResponse CreateAppStoreAppWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse DeleteAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void GetAppExternalProduct (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse GetAppExternalProductWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult GetExternalFunctionSigningKey (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetExternalFunctionSigningKeyWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateExternalProduct (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateExternalProductWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// + void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// ApiResponse of Object(void) + ApiResponse UploadAppStoreAppLogoWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task AppVerificationUpdateAsync (string oauthAppId, string appStoreAppId, string verificationStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AppVerificationUpdateAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreApp + System.Threading.Tasks.Task CreateAppStoreAppAsync (string oauthAppId, CreateAppStoreApp createAppStoreApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreApp) + System.Threading.Tasks.Task> CreateAppStoreAppAsyncWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task DeleteAppStoreAppAsync (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> DeleteAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task GetAppExternalProductAsync (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> GetAppExternalProductAsyncWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetExternalFunctionSigningKeyAsync (string oauthAppId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetExternalFunctionSigningKeyAsyncWithHttpInfo (string oauthAppId, string appStoreAppId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateAppStoreAppAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateExternalProductAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateExternalProductAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// Task of void + System.Threading.Tasks.Task UploadAppStoreAppLogoAsync (string oauthAppId, string appStoreAppId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// Task of ApiResponse + System.Threading.Tasks.Task> UploadAppStoreAppLogoAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AppStoreDeveloperApi : IAppStoreDeveloperApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AppStoreDeveloperApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AppStoreDeveloperApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void AppVerificationUpdate (string oauthAppId, string appStoreAppId, string verificationStatus) + { + AppVerificationUpdateWithHttpInfo(oauthAppId, appStoreAppId, verificationStatus); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AppVerificationUpdateWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + // verify the required parameter 'verificationStatus' is set + if (verificationStatus == null) + throw new ApiException(400, "Missing required parameter 'verificationStatus' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (verificationStatus != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "verificationStatus", verificationStatus)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppVerificationUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AppVerificationUpdateAsync (string oauthAppId, string appStoreAppId, string verificationStatus) + { + await AppVerificationUpdateAsyncWithHttpInfo(oauthAppId, appStoreAppId, verificationStatus); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AppVerificationUpdateAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + // verify the required parameter 'verificationStatus' is set + if (verificationStatus == null) + throw new ApiException(400, "Missing required parameter 'verificationStatus' when calling AppStoreDeveloperApi->AppVerificationUpdate"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (verificationStatus != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "verificationStatus", verificationStatus)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppVerificationUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreApp + public RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp) + { + ApiResponse localVarResponse = CreateAppStoreAppWithHttpInfo(oauthAppId, createAppStoreApp); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreApp + public ApiResponse< RestApiResultAppStoreApp > CreateAppStoreAppWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->CreateAppStoreApp"); + // verify the required parameter 'createAppStoreApp' is set + if (createAppStoreApp == null) + throw new ApiException(400, "Missing required parameter 'createAppStoreApp' when calling AppStoreDeveloperApi->CreateAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (createAppStoreApp != null && createAppStoreApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createAppStoreApp); // http body (model) parameter + } + else + { + localVarPostBody = createAppStoreApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreApp + public async System.Threading.Tasks.Task CreateAppStoreAppAsync (string oauthAppId, CreateAppStoreApp createAppStoreApp) + { + ApiResponse localVarResponse = await CreateAppStoreAppAsyncWithHttpInfo(oauthAppId, createAppStoreApp); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreApp) + public async System.Threading.Tasks.Task> CreateAppStoreAppAsyncWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->CreateAppStoreApp"); + // verify the required parameter 'createAppStoreApp' is set + if (createAppStoreApp == null) + throw new ApiException(400, "Missing required parameter 'createAppStoreApp' when calling AppStoreDeveloperApi->CreateAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (createAppStoreApp != null && createAppStoreApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createAppStoreApp); // http body (model) parameter + } + else + { + localVarPostBody = createAppStoreApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId) + { + ApiResponse localVarResponse = DeleteAppStoreAppWithHttpInfo(oauthAppId, appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > DeleteAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->DeleteAppStoreApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->DeleteAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task DeleteAppStoreAppAsync (string oauthAppId, string appStoreAppId) + { + ApiResponse localVarResponse = await DeleteAppStoreAppAsyncWithHttpInfo(oauthAppId, appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> DeleteAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->DeleteAppStoreApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->DeleteAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void GetAppExternalProduct (string oauthAppId, string appStoreAppId) + { + GetAppExternalProductWithHttpInfo(oauthAppId, appStoreAppId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse GetAppExternalProductWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppExternalProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task GetAppExternalProductAsync (string oauthAppId, string appStoreAppId) + { + await GetAppExternalProductAsyncWithHttpInfo(oauthAppId, appStoreAppId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetAppExternalProductAsyncWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppExternalProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult GetExternalFunctionSigningKey (string oauthAppId, string appStoreAppId) + { + ApiResponse localVarResponse = GetExternalFunctionSigningKeyWithHttpInfo(oauthAppId, appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetExternalFunctionSigningKeyWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->GetExternalFunctionSigningKey"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetExternalFunctionSigningKey"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetExternalFunctionSigningKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetExternalFunctionSigningKeyAsync (string oauthAppId, string appStoreAppId) + { + ApiResponse localVarResponse = await GetExternalFunctionSigningKeyAsyncWithHttpInfo(oauthAppId, appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetExternalFunctionSigningKeyAsyncWithHttpInfo (string oauthAppId, string appStoreAppId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->GetExternalFunctionSigningKey"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetExternalFunctionSigningKey"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetExternalFunctionSigningKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + { + UpdateAppStoreAppWithHttpInfo(oauthAppId, appStoreAppId, appStoreApp); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + // verify the required parameter 'appStoreApp' is set + if (appStoreApp == null) + throw new ApiException(400, "Missing required parameter 'appStoreApp' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appStoreApp != null && appStoreApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreApp); // http body (model) parameter + } + else + { + localVarPostBody = appStoreApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateAppStoreAppAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + { + await UpdateAppStoreAppAsyncWithHttpInfo(oauthAppId, appStoreAppId, appStoreApp); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + // verify the required parameter 'appStoreApp' is set + if (appStoreApp == null) + throw new ApiException(400, "Missing required parameter 'appStoreApp' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appStoreApp != null && appStoreApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreApp); // http body (model) parameter + } + else + { + localVarPostBody = appStoreApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateExternalProduct (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct) + { + UpdateExternalProductWithHttpInfo(oauthAppId, appStoreAppId, appStoreAppExternalProduct); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateExternalProductWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + // verify the required parameter 'appStoreAppExternalProduct' is set + if (appStoreAppExternalProduct == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppExternalProduct' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appStoreAppExternalProduct != null && appStoreAppExternalProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreAppExternalProduct); // http body (model) parameter + } + else + { + localVarPostBody = appStoreAppExternalProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateExternalProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateExternalProductAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct) + { + await UpdateExternalProductAsyncWithHttpInfo(oauthAppId, appStoreAppId, appStoreAppExternalProduct); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateExternalProductAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreAppExternalProduct appStoreAppExternalProduct) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + // verify the required parameter 'appStoreAppExternalProduct' is set + if (appStoreAppExternalProduct == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppExternalProduct' when calling AppStoreDeveloperApi->UpdateExternalProduct"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (appStoreAppExternalProduct != null && appStoreAppExternalProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreAppExternalProduct); // http body (model) parameter + } + else + { + localVarPostBody = appStoreAppExternalProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateExternalProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// + public void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image) + { + UploadAppStoreAppLogoWithHttpInfo(oauthAppId, appStoreAppId, image); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// ApiResponse of Object(void) + public ApiResponse UploadAppStoreAppLogoWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppStoreAppLogo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// Task of void + public async System.Threading.Tasks.Task UploadAppStoreAppLogoAsync (string oauthAppId, string appStoreAppId, System.IO.Stream image) + { + await UploadAppStoreAppLogoAsyncWithHttpInfo(oauthAppId, appStoreAppId, image); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Store App Logo + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UploadAppStoreAppLogoAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling AppStoreDeveloperApi->UploadAppStoreAppLogo"); + + var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppStoreAppLogo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/AppStoreEntitlementsApi.cs b/src/Flipdish/Api/AppStoreEntitlementsApi.cs new file mode 100644 index 00000000..1b64627e --- /dev/null +++ b/src/Flipdish/Api/AppStoreEntitlementsApi.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAppStoreEntitlementsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreAppEntitlements + RestApiResultAppStoreAppEntitlements GetAppStoreAppEntitlements (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreAppEntitlements + ApiResponse GetAppStoreAppEntitlementsWithHttpInfo (string appId, string appStoreAppId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreAppEntitlements + System.Threading.Tasks.Task GetAppStoreAppEntitlementsAsync (string appId, string appStoreAppId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppEntitlements) + System.Threading.Tasks.Task> GetAppStoreAppEntitlementsAsyncWithHttpInfo (string appId, string appStoreAppId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AppStoreEntitlementsApi : IAppStoreEntitlementsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AppStoreEntitlementsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AppStoreEntitlementsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreAppEntitlements + public RestApiResultAppStoreAppEntitlements GetAppStoreAppEntitlements (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = GetAppStoreAppEntitlementsWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreAppEntitlements + public ApiResponse< RestApiResultAppStoreAppEntitlements > GetAppStoreAppEntitlementsWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreEntitlementsApi->GetAppStoreAppEntitlements"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreEntitlementsApi->GetAppStoreAppEntitlements"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreAppEntitlements", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppEntitlements) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppEntitlements))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreAppEntitlements + public async System.Threading.Tasks.Task GetAppStoreAppEntitlementsAsync (string appId, string appStoreAppId) + { + ApiResponse localVarResponse = await GetAppStoreAppEntitlementsAsyncWithHttpInfo(appId, appStoreAppId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppEntitlements) + public async System.Threading.Tasks.Task> GetAppStoreAppEntitlementsAsyncWithHttpInfo (string appId, string appStoreAppId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppStoreEntitlementsApi->GetAppStoreAppEntitlements"); + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId == null) + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreEntitlementsApi->GetAppStoreAppEntitlements"); + + var localVarPath = "./api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreAppEntitlements", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreAppEntitlements) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppEntitlements))); + } + + } +} diff --git a/src/Flipdish/Api/AppsApi.cs b/src/Flipdish/Api/AppsApi.cs new file mode 100644 index 00000000..ed52631f --- /dev/null +++ b/src/Flipdish/Api/AppsApi.cs @@ -0,0 +1,4545 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAppsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object AppsSetPropertyId (string appId, string orgId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse AppsSetPropertyIdWithHttpInfo (string appId, string orgId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + RestApiStringResult CreateApp (CreateAppParameters parameters); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + ApiResponse CreateAppWithHttpInfo (CreateAppParameters parameters); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultApp + RestApiResultApp GetApp (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultApp + ApiResponse GetAppWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultDnsRecordInformation + RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultDnsRecordInformation + ApiResponse GetAppHostnameStatusWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + RestApiStringResult GetAppName (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetAppNameWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultApp + RestApiPaginationResultApp GetApps (string nameFilter = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultApp + ApiResponse GetAppsWithHttpInfo (string nameFilter = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppCompliance + RestApiResultAppCompliance GetCompliance (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppCompliance + ApiResponse GetComplianceWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + RestApiStringResult GetPanaceaVanityUrl (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetPanaceaVanityUrlWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultSupportedCountry + RestApiArrayResultSupportedCountry GetSupportedCountries (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultSupportedCountry + ApiResponse GetSupportedCountriesWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse IsPanaceaVanityUrlAvailableWithHttpInfo (string vanityUrl, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// AppLookup + AppLookup LookupByWhitelabelId (int? whitelabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of AppLookup + ApiResponse LookupByWhitelabelIdWithHttpInfo (int? whitelabelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void SendPushNotification (string appId, int? customerId, string message); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse SendPushNotificationWithHttpInfo (string appId, int? customerId, string message); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultApp + RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultApp + ApiResponse SetAppConfigWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiStringResult + RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiStringResult + ApiResponse SetAppHostnameWithHttpInfo (string appId, string hostname, bool? isEmbed = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultApp + RestApiResultApp SetAppLanguages (string appId, List languages); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultApp + ApiResponse SetAppLanguagesWithHttpInfo (string appId, List languages); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void SetAppStoreName (string appId, string appStoreName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetAppStoreNameWithHttpInfo (string appId, string appStoreName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppCompliance + RestApiResultAppCompliance SetCompliance (string appId, string complianceType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppCompliance + ApiResponse SetComplianceWithHttpInfo (string appId, string complianceType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse SetPanaceaVanityUrlWithHttpInfo (string appId, string vanityUrl); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void SetThirdPartyIntegrations (string appId, bool? enabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetThirdPartyIntegrationsWithHttpInfo (string appId, bool? enabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiStringResult + RestApiStringResult ToggleNextGenWeb (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse ToggleNextGenWebWithHttpInfo (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// + void UploadAppLogo (string appId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// ApiResponse of Object(void) + ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task AppsSetPropertyIdAsync (string appId, string orgId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AppsSetPropertyIdAsyncWithHttpInfo (string appId, string orgId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task CreateAppAsync (CreateAppParameters parameters); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> CreateAppAsyncWithHttpInfo (CreateAppParameters parameters); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultApp + System.Threading.Tasks.Task GetAppAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultApp) + System.Threading.Tasks.Task> GetAppAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultDnsRecordInformation + System.Threading.Tasks.Task GetAppHostnameStatusAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultDnsRecordInformation) + System.Threading.Tasks.Task> GetAppHostnameStatusAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetAppNameAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetAppNameAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultApp + System.Threading.Tasks.Task GetAppsAsync (string nameFilter = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultApp) + System.Threading.Tasks.Task> GetAppsAsyncWithHttpInfo (string nameFilter = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppCompliance + System.Threading.Tasks.Task GetComplianceAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppCompliance) + System.Threading.Tasks.Task> GetComplianceAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultSupportedCountry + System.Threading.Tasks.Task GetSupportedCountriesAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultSupportedCountry) + System.Threading.Tasks.Task> GetSupportedCountriesAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task IsPanaceaVanityUrlAvailableAsync (string vanityUrl, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> IsPanaceaVanityUrlAvailableAsyncWithHttpInfo (string vanityUrl, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of AppLookup + System.Threading.Tasks.Task LookupByWhitelabelIdAsync (int? whitelabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (AppLookup) + System.Threading.Tasks.Task> LookupByWhitelabelIdAsyncWithHttpInfo (int? whitelabelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task SendPushNotificationAsync (string appId, int? customerId, string message); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SendPushNotificationAsyncWithHttpInfo (string appId, int? customerId, string message); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultApp + System.Threading.Tasks.Task SetAppConfigAsync (string appId, AppConfigUpdateModel appConfigUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultApp) + System.Threading.Tasks.Task> SetAppConfigAsyncWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiStringResult + System.Threading.Tasks.Task SetAppHostnameAsync (string appId, string hostname, bool? isEmbed = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> SetAppHostnameAsyncWithHttpInfo (string appId, string hostname, bool? isEmbed = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultApp + System.Threading.Tasks.Task SetAppLanguagesAsync (string appId, List languages); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultApp) + System.Threading.Tasks.Task> SetAppLanguagesAsyncWithHttpInfo (string appId, List languages); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task SetAppStoreNameAsync (string appId, string appStoreName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetAppStoreNameAsyncWithHttpInfo (string appId, string appStoreName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppCompliance + System.Threading.Tasks.Task SetComplianceAsync (string appId, string complianceType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppCompliance) + System.Threading.Tasks.Task> SetComplianceAsyncWithHttpInfo (string appId, string complianceType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task SetPanaceaVanityUrlAsync (string appId, string vanityUrl); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> SetPanaceaVanityUrlAsyncWithHttpInfo (string appId, string vanityUrl); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task SetThirdPartyIntegrationsAsync (string appId, bool? enabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetThirdPartyIntegrationsAsyncWithHttpInfo (string appId, bool? enabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task ToggleNextGenWebAsync (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> ToggleNextGenWebAsyncWithHttpInfo (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// Task of void + System.Threading.Tasks.Task UploadAppLogoAsync (string appId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// Task of ApiResponse + System.Threading.Tasks.Task> UploadAppLogoAsyncWithHttpInfo (string appId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AppsApi : IAppsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AppsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AppsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object AppsSetPropertyId (string appId, string orgId) + { + ApiResponse localVarResponse = AppsSetPropertyIdWithHttpInfo(appId, orgId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > AppsSetPropertyIdWithHttpInfo (string appId, string orgId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->AppsSetPropertyId"); + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling AppsApi->AppsSetPropertyId"); + + var localVarPath = "./api/v1.0/apps/{appId}/orgId/{orgId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppsSetPropertyId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task AppsSetPropertyIdAsync (string appId, string orgId) + { + ApiResponse localVarResponse = await AppsSetPropertyIdAsyncWithHttpInfo(appId, orgId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AppsSetPropertyIdAsyncWithHttpInfo (string appId, string orgId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->AppsSetPropertyId"); + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling AppsApi->AppsSetPropertyId"); + + var localVarPath = "./api/v1.0/apps/{appId}/orgId/{orgId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AppsSetPropertyId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + public RestApiStringResult CreateApp (CreateAppParameters parameters) + { + ApiResponse localVarResponse = CreateAppWithHttpInfo(parameters); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > CreateAppWithHttpInfo (CreateAppParameters parameters) + { + // verify the required parameter 'parameters' is set + if (parameters == null) + throw new ApiException(400, "Missing required parameter 'parameters' when calling AppsApi->CreateApp"); + + var localVarPath = "./api/v1.0/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (parameters != null && parameters.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter + } + else + { + localVarPostBody = parameters; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task CreateAppAsync (CreateAppParameters parameters) + { + ApiResponse localVarResponse = await CreateAppAsyncWithHttpInfo(parameters); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> CreateAppAsyncWithHttpInfo (CreateAppParameters parameters) + { + // verify the required parameter 'parameters' is set + if (parameters == null) + throw new ApiException(400, "Missing required parameter 'parameters' when calling AppsApi->CreateApp"); + + var localVarPath = "./api/v1.0/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (parameters != null && parameters.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(parameters); // http body (model) parameter + } + else + { + localVarPostBody = parameters; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultApp + public RestApiResultApp GetApp (string appId) + { + ApiResponse localVarResponse = GetAppWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultApp + public ApiResponse< RestApiResultApp > GetAppWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetApp"); + + var localVarPath = "./api/v1.0/apps/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultApp + public async System.Threading.Tasks.Task GetAppAsync (string appId) + { + ApiResponse localVarResponse = await GetAppAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultApp) + public async System.Threading.Tasks.Task> GetAppAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetApp"); + + var localVarPath = "./api/v1.0/apps/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultDnsRecordInformation + public RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId) + { + ApiResponse localVarResponse = GetAppHostnameStatusWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultDnsRecordInformation + public ApiResponse< RestApiResultDnsRecordInformation > GetAppHostnameStatusWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetAppHostnameStatus"); + + var localVarPath = "./api/v1.0/apps/{appId}/hostnamestatus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppHostnameStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDnsRecordInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDnsRecordInformation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultDnsRecordInformation + public async System.Threading.Tasks.Task GetAppHostnameStatusAsync (string appId) + { + ApiResponse localVarResponse = await GetAppHostnameStatusAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultDnsRecordInformation) + public async System.Threading.Tasks.Task> GetAppHostnameStatusAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetAppHostnameStatus"); + + var localVarPath = "./api/v1.0/apps/{appId}/hostnamestatus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppHostnameStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDnsRecordInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDnsRecordInformation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + public RestApiStringResult GetAppName (string appId) + { + ApiResponse localVarResponse = GetAppNameWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetAppNameWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetAppName"); + + var localVarPath = "./api/v1.0/apps/{appId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetAppNameAsync (string appId) + { + ApiResponse localVarResponse = await GetAppNameAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetAppNameAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetAppName"); + + var localVarPath = "./api/v1.0/apps/{appId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultApp + public RestApiPaginationResultApp GetApps (string nameFilter = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetAppsWithHttpInfo(nameFilter, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultApp + public ApiResponse< RestApiPaginationResultApp > GetAppsWithHttpInfo (string nameFilter = null, int? page = null, int? limit = null) + { + + var localVarPath = "./api/v1.0/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nameFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nameFilter", nameFilter)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultApp + public async System.Threading.Tasks.Task GetAppsAsync (string nameFilter = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetAppsAsyncWithHttpInfo(nameFilter, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultApp) + public async System.Threading.Tasks.Task> GetAppsAsyncWithHttpInfo (string nameFilter = null, int? page = null, int? limit = null) + { + + var localVarPath = "./api/v1.0/apps"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nameFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nameFilter", nameFilter)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppCompliance + public RestApiResultAppCompliance GetCompliance (string appId) + { + ApiResponse localVarResponse = GetComplianceWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppCompliance + public ApiResponse< RestApiResultAppCompliance > GetComplianceWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetCompliance"); + + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCompliance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppCompliance + public async System.Threading.Tasks.Task GetComplianceAsync (string appId) + { + ApiResponse localVarResponse = await GetComplianceAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppCompliance) + public async System.Threading.Tasks.Task> GetComplianceAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetCompliance"); + + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCompliance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringResult + public RestApiStringResult GetPanaceaVanityUrl (string appId) + { + ApiResponse localVarResponse = GetPanaceaVanityUrlWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetPanaceaVanityUrlWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetPanaceaVanityUrl"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPanaceaVanityUrl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId) + { + ApiResponse localVarResponse = await GetPanaceaVanityUrlAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->GetPanaceaVanityUrl"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPanaceaVanityUrl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultSupportedCountry + public RestApiArrayResultSupportedCountry GetSupportedCountries () + { + ApiResponse localVarResponse = GetSupportedCountriesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultSupportedCountry + public ApiResponse< RestApiArrayResultSupportedCountry > GetSupportedCountriesWithHttpInfo () + { + + var localVarPath = "./api/v1.0/apps/supportedcountries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSupportedCountries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultSupportedCountry + public async System.Threading.Tasks.Task GetSupportedCountriesAsync () + { + ApiResponse localVarResponse = await GetSupportedCountriesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultSupportedCountry) + public async System.Threading.Tasks.Task> GetSupportedCountriesAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/apps/supportedcountries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSupportedCountries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId) + { + ApiResponse localVarResponse = IsPanaceaVanityUrlAvailableWithHttpInfo(vanityUrl, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > IsPanaceaVanityUrlAvailableWithHttpInfo (string vanityUrl, string appId) + { + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->IsPanaceaVanityUrlAvailable"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->IsPanaceaVanityUrlAvailable"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url/available"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("IsPanaceaVanityUrlAvailable", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task IsPanaceaVanityUrlAvailableAsync (string vanityUrl, string appId) + { + ApiResponse localVarResponse = await IsPanaceaVanityUrlAvailableAsyncWithHttpInfo(vanityUrl, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> IsPanaceaVanityUrlAvailableAsyncWithHttpInfo (string vanityUrl, string appId) + { + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->IsPanaceaVanityUrlAvailable"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->IsPanaceaVanityUrlAvailable"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url/available"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("IsPanaceaVanityUrlAvailable", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// AppLookup + public AppLookup LookupByWhitelabelId (int? whitelabelId) + { + ApiResponse localVarResponse = LookupByWhitelabelIdWithHttpInfo(whitelabelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of AppLookup + public ApiResponse< AppLookup > LookupByWhitelabelIdWithHttpInfo (int? whitelabelId) + { + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling AppsApi->LookupByWhitelabelId"); + + var localVarPath = "./api/v1.0/apps/{whitelabelId}/lookup"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LookupByWhitelabelId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (AppLookup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppLookup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of AppLookup + public async System.Threading.Tasks.Task LookupByWhitelabelIdAsync (int? whitelabelId) + { + ApiResponse localVarResponse = await LookupByWhitelabelIdAsyncWithHttpInfo(whitelabelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (AppLookup) + public async System.Threading.Tasks.Task> LookupByWhitelabelIdAsyncWithHttpInfo (int? whitelabelId) + { + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling AppsApi->LookupByWhitelabelId"); + + var localVarPath = "./api/v1.0/apps/{whitelabelId}/lookup"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LookupByWhitelabelId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (AppLookup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppLookup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void SendPushNotification (string appId, int? customerId, string message) + { + SendPushNotificationWithHttpInfo(appId, customerId, message); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SendPushNotificationWithHttpInfo (string appId, int? customerId, string message) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SendPushNotification"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling AppsApi->SendPushNotification"); + // verify the required parameter 'message' is set + if (message == null) + throw new ApiException(400, "Missing required parameter 'message' when calling AppsApi->SendPushNotification"); + + var localVarPath = "./api/v1.0/apps/{appId}/SendPushNotification/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (message != null && message.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(message); // http body (model) parameter + } + else + { + localVarPostBody = message; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendPushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SendPushNotificationAsync (string appId, int? customerId, string message) + { + await SendPushNotificationAsyncWithHttpInfo(appId, customerId, message); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SendPushNotificationAsyncWithHttpInfo (string appId, int? customerId, string message) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SendPushNotification"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling AppsApi->SendPushNotification"); + // verify the required parameter 'message' is set + if (message == null) + throw new ApiException(400, "Missing required parameter 'message' when calling AppsApi->SendPushNotification"); + + var localVarPath = "./api/v1.0/apps/{appId}/SendPushNotification/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (message != null && message.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(message); // http body (model) parameter + } + else + { + localVarPostBody = message; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendPushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultApp + public RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate) + { + ApiResponse localVarResponse = SetAppConfigWithHttpInfo(appId, appConfigUpdate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultApp + public ApiResponse< RestApiResultApp > SetAppConfigWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppConfig"); + // verify the required parameter 'appConfigUpdate' is set + if (appConfigUpdate == null) + throw new ApiException(400, "Missing required parameter 'appConfigUpdate' when calling AppsApi->SetAppConfig"); + + var localVarPath = "./api/v1.0/apps/{appId}/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appConfigUpdate != null && appConfigUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigUpdate); // http body (model) parameter + } + else + { + localVarPostBody = appConfigUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultApp + public async System.Threading.Tasks.Task SetAppConfigAsync (string appId, AppConfigUpdateModel appConfigUpdate) + { + ApiResponse localVarResponse = await SetAppConfigAsyncWithHttpInfo(appId, appConfigUpdate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultApp) + public async System.Threading.Tasks.Task> SetAppConfigAsyncWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppConfig"); + // verify the required parameter 'appConfigUpdate' is set + if (appConfigUpdate == null) + throw new ApiException(400, "Missing required parameter 'appConfigUpdate' when calling AppsApi->SetAppConfig"); + + var localVarPath = "./api/v1.0/apps/{appId}/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appConfigUpdate != null && appConfigUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigUpdate); // http body (model) parameter + } + else + { + localVarPostBody = appConfigUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiStringResult + public RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null) + { + ApiResponse localVarResponse = SetAppHostnameWithHttpInfo(appId, hostname, isEmbed); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > SetAppHostnameWithHttpInfo (string appId, string hostname, bool? isEmbed = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppHostname"); + // verify the required parameter 'hostname' is set + if (hostname == null) + throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->SetAppHostname"); + + var localVarPath = "./api/v1.0/apps/{appId}/hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hostname != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hostname", hostname)); // query parameter + if (isEmbed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isEmbed", isEmbed)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppHostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task SetAppHostnameAsync (string appId, string hostname, bool? isEmbed = null) + { + ApiResponse localVarResponse = await SetAppHostnameAsyncWithHttpInfo(appId, hostname, isEmbed); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> SetAppHostnameAsyncWithHttpInfo (string appId, string hostname, bool? isEmbed = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppHostname"); + // verify the required parameter 'hostname' is set + if (hostname == null) + throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->SetAppHostname"); + + var localVarPath = "./api/v1.0/apps/{appId}/hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hostname != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hostname", hostname)); // query parameter + if (isEmbed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isEmbed", isEmbed)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppHostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultApp + public RestApiResultApp SetAppLanguages (string appId, List languages) + { + ApiResponse localVarResponse = SetAppLanguagesWithHttpInfo(appId, languages); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultApp + public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId, List languages) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppLanguages"); + // verify the required parameter 'languages' is set + if (languages == null) + throw new ApiException(400, "Missing required parameter 'languages' when calling AppsApi->SetAppLanguages"); + + var localVarPath = "./api/v1.0/apps/{appId}/config/languages"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languages != null && languages.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(languages); // http body (model) parameter + } + else + { + localVarPostBody = languages; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultApp + public async System.Threading.Tasks.Task SetAppLanguagesAsync (string appId, List languages) + { + ApiResponse localVarResponse = await SetAppLanguagesAsyncWithHttpInfo(appId, languages); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultApp) + public async System.Threading.Tasks.Task> SetAppLanguagesAsyncWithHttpInfo (string appId, List languages) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppLanguages"); + // verify the required parameter 'languages' is set + if (languages == null) + throw new ApiException(400, "Missing required parameter 'languages' when calling AppsApi->SetAppLanguages"); + + var localVarPath = "./api/v1.0/apps/{appId}/config/languages"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languages != null && languages.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(languages); // http body (model) parameter + } + else + { + localVarPostBody = languages; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void SetAppStoreName (string appId, string appStoreName) + { + SetAppStoreNameWithHttpInfo(appId, appStoreName); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetAppStoreNameWithHttpInfo (string appId, string appStoreName) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppStoreName"); + // verify the required parameter 'appStoreName' is set + if (appStoreName == null) + throw new ApiException(400, "Missing required parameter 'appStoreName' when calling AppsApi->SetAppStoreName"); + + var localVarPath = "./api/v1.0/apps/{appId}/appstorename"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreName != null && appStoreName.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreName); // http body (model) parameter + } + else + { + localVarPostBody = appStoreName; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppStoreName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetAppStoreNameAsync (string appId, string appStoreName) + { + await SetAppStoreNameAsyncWithHttpInfo(appId, appStoreName); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetAppStoreNameAsyncWithHttpInfo (string appId, string appStoreName) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetAppStoreName"); + // verify the required parameter 'appStoreName' is set + if (appStoreName == null) + throw new ApiException(400, "Missing required parameter 'appStoreName' when calling AppsApi->SetAppStoreName"); + + var localVarPath = "./api/v1.0/apps/{appId}/appstorename"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreName != null && appStoreName.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreName); // http body (model) parameter + } + else + { + localVarPostBody = appStoreName; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetAppStoreName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppCompliance + public RestApiResultAppCompliance SetCompliance (string appId, string complianceType) + { + ApiResponse localVarResponse = SetComplianceWithHttpInfo(appId, complianceType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppCompliance + public ApiResponse< RestApiResultAppCompliance > SetComplianceWithHttpInfo (string appId, string complianceType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetCompliance"); + // verify the required parameter 'complianceType' is set + if (complianceType == null) + throw new ApiException(400, "Missing required parameter 'complianceType' when calling AppsApi->SetCompliance"); + + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (complianceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "complianceType", complianceType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCompliance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppCompliance + public async System.Threading.Tasks.Task SetComplianceAsync (string appId, string complianceType) + { + ApiResponse localVarResponse = await SetComplianceAsyncWithHttpInfo(appId, complianceType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppCompliance) + public async System.Threading.Tasks.Task> SetComplianceAsyncWithHttpInfo (string appId, string complianceType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetCompliance"); + // verify the required parameter 'complianceType' is set + if (complianceType == null) + throw new ApiException(400, "Missing required parameter 'complianceType' when calling AppsApi->SetCompliance"); + + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (complianceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "complianceType", complianceType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCompliance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl) + { + ApiResponse localVarResponse = SetPanaceaVanityUrlWithHttpInfo(appId, vanityUrl); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > SetPanaceaVanityUrlWithHttpInfo (string appId, string vanityUrl) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetPanaceaVanityUrl"); + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->SetPanaceaVanityUrl"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task SetPanaceaVanityUrlAsync (string appId, string vanityUrl) + { + ApiResponse localVarResponse = await SetPanaceaVanityUrlAsyncWithHttpInfo(appId, vanityUrl); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> SetPanaceaVanityUrlAsyncWithHttpInfo (string appId, string vanityUrl) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetPanaceaVanityUrl"); + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->SetPanaceaVanityUrl"); + + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void SetThirdPartyIntegrations (string appId, bool? enabled) + { + SetThirdPartyIntegrationsWithHttpInfo(appId, enabled); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetThirdPartyIntegrationsWithHttpInfo (string appId, bool? enabled) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetThirdPartyIntegrations"); + // verify the required parameter 'enabled' is set + if (enabled == null) + throw new ApiException(400, "Missing required parameter 'enabled' when calling AppsApi->SetThirdPartyIntegrations"); + + var localVarPath = "./api/v1.0/apps/{appId}/third-party-integrations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetThirdPartyIntegrations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetThirdPartyIntegrationsAsync (string appId, bool? enabled) + { + await SetThirdPartyIntegrationsAsyncWithHttpInfo(appId, enabled); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetThirdPartyIntegrationsAsyncWithHttpInfo (string appId, bool? enabled) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->SetThirdPartyIntegrations"); + // verify the required parameter 'enabled' is set + if (enabled == null) + throw new ApiException(400, "Missing required parameter 'enabled' when calling AppsApi->SetThirdPartyIntegrations"); + + var localVarPath = "./api/v1.0/apps/{appId}/third-party-integrations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetThirdPartyIntegrations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiStringResult + public RestApiStringResult ToggleNextGenWeb (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) + { + ApiResponse localVarResponse = ToggleNextGenWebWithHttpInfo(appId, hostname, vanityUrl, isNextGenWeb); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > ToggleNextGenWebWithHttpInfo (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'hostname' is set + if (hostname == null) + throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'isNextGenWeb' is set + if (isNextGenWeb == null) + throw new ApiException(400, "Missing required parameter 'isNextGenWeb' when calling AppsApi->ToggleNextGenWeb"); + + var localVarPath = "./api/v1.0/apps/{appId}/nextgenweb"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hostname != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hostname", hostname)); // query parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + if (isNextGenWeb != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isNextGenWeb", isNextGenWeb)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ToggleNextGenWeb", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task ToggleNextGenWebAsync (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) + { + ApiResponse localVarResponse = await ToggleNextGenWebAsyncWithHttpInfo(appId, hostname, vanityUrl, isNextGenWeb); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> ToggleNextGenWebAsyncWithHttpInfo (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'hostname' is set + if (hostname == null) + throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'vanityUrl' is set + if (vanityUrl == null) + throw new ApiException(400, "Missing required parameter 'vanityUrl' when calling AppsApi->ToggleNextGenWeb"); + // verify the required parameter 'isNextGenWeb' is set + if (isNextGenWeb == null) + throw new ApiException(400, "Missing required parameter 'isNextGenWeb' when calling AppsApi->ToggleNextGenWeb"); + + var localVarPath = "./api/v1.0/apps/{appId}/nextgenweb"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hostname != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hostname", hostname)); // query parameter + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter + if (isNextGenWeb != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isNextGenWeb", isNextGenWeb)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ToggleNextGenWeb", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// + public void UploadAppLogo (string appId, System.IO.Stream image) + { + UploadAppLogoWithHttpInfo(appId, image); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// ApiResponse of Object(void) + public ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->UploadAppLogo"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling AppsApi->UploadAppLogo"); + + var localVarPath = "./api/v1.0/apps/{appId}/logo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppLogo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// Task of void + public async System.Threading.Tasks.Task UploadAppLogoAsync (string appId, System.IO.Stream image) + { + await UploadAppLogoAsyncWithHttpInfo(appId, image); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// App Logo + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UploadAppLogoAsyncWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->UploadAppLogo"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling AppsApi->UploadAppLogo"); + + var localVarPath = "./api/v1.0/apps/{appId}/logo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppLogo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/AuditLogsApi.cs b/src/Flipdish/Api/AuditLogsApi.cs new file mode 100644 index 00000000..20777290 --- /dev/null +++ b/src/Flipdish/Api/AuditLogsApi.cs @@ -0,0 +1,592 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAuditLogsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void AddOrderAuditLog (int? orderId, List externalEventCreate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse AddOrderAuditLogWithHttpInfo (int? orderId, List externalEventCreate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void AddStoreAuditLogEvent (int? storeId, List externalEventCreate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse AddStoreAuditLogEventWithHttpInfo (int? storeId, List externalEventCreate); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task AddOrderAuditLogAsync (int? orderId, List externalEventCreate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AddOrderAuditLogAsyncWithHttpInfo (int? orderId, List externalEventCreate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task AddStoreAuditLogEventAsync (int? storeId, List externalEventCreate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AddStoreAuditLogEventAsyncWithHttpInfo (int? storeId, List externalEventCreate); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AuditLogsApi : IAuditLogsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AuditLogsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AuditLogsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void AddOrderAuditLog (int? orderId, List externalEventCreate) + { + AddOrderAuditLogWithHttpInfo(orderId, externalEventCreate); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AddOrderAuditLogWithHttpInfo (int? orderId, List externalEventCreate) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling AuditLogsApi->AddOrderAuditLog"); + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate == null) + throw new ApiException(400, "Missing required parameter 'externalEventCreate' when calling AuditLogsApi->AddOrderAuditLog"); + + var localVarPath = "./api/v1.0/auditlogs/orders/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (externalEventCreate != null && externalEventCreate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(externalEventCreate); // http body (model) parameter + } + else + { + localVarPostBody = externalEventCreate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrderAuditLog", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AddOrderAuditLogAsync (int? orderId, List externalEventCreate) + { + await AddOrderAuditLogAsyncWithHttpInfo(orderId, externalEventCreate); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AddOrderAuditLogAsyncWithHttpInfo (int? orderId, List externalEventCreate) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling AuditLogsApi->AddOrderAuditLog"); + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate == null) + throw new ApiException(400, "Missing required parameter 'externalEventCreate' when calling AuditLogsApi->AddOrderAuditLog"); + + var localVarPath = "./api/v1.0/auditlogs/orders/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (externalEventCreate != null && externalEventCreate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(externalEventCreate); // http body (model) parameter + } + else + { + localVarPostBody = externalEventCreate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrderAuditLog", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void AddStoreAuditLogEvent (int? storeId, List externalEventCreate) + { + AddStoreAuditLogEventWithHttpInfo(storeId, externalEventCreate); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AddStoreAuditLogEventWithHttpInfo (int? storeId, List externalEventCreate) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling AuditLogsApi->AddStoreAuditLogEvent"); + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate == null) + throw new ApiException(400, "Missing required parameter 'externalEventCreate' when calling AuditLogsApi->AddStoreAuditLogEvent"); + + var localVarPath = "./api/v1.0/auditlogs/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (externalEventCreate != null && externalEventCreate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(externalEventCreate); // http body (model) parameter + } + else + { + localVarPostBody = externalEventCreate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddStoreAuditLogEvent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AddStoreAuditLogEventAsync (int? storeId, List externalEventCreate) + { + await AddStoreAuditLogEventAsyncWithHttpInfo(storeId, externalEventCreate); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AddStoreAuditLogEventAsyncWithHttpInfo (int? storeId, List externalEventCreate) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling AuditLogsApi->AddStoreAuditLogEvent"); + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate == null) + throw new ApiException(400, "Missing required parameter 'externalEventCreate' when calling AuditLogsApi->AddStoreAuditLogEvent"); + + var localVarPath = "./api/v1.0/auditlogs/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (externalEventCreate != null && externalEventCreate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(externalEventCreate); // http body (model) parameter + } + else + { + localVarPostBody = externalEventCreate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddStoreAuditLogEvent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/AuthorizationTokensApi.cs b/src/Flipdish/Api/AuthorizationTokensApi.cs new file mode 100644 index 00000000..e3bd4370 --- /dev/null +++ b/src/Flipdish/Api/AuthorizationTokensApi.cs @@ -0,0 +1,566 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAuthorizationTokensApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultOAuthTokenModel + RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oauthAppId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOAuthTokenModel + ApiResponse GetAuthorizationTokensWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void RevokeToken (string key, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse RevokeTokenWithHttpInfo (string key, string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOAuthTokenModel + System.Threading.Tasks.Task GetAuthorizationTokensAsync (string oauthAppId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOAuthTokenModel) + System.Threading.Tasks.Task> GetAuthorizationTokensAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task RevokeTokenAsync (string key, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RevokeTokenAsyncWithHttpInfo (string key, string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AuthorizationTokensApi : IAuthorizationTokensApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AuthorizationTokensApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AuthorizationTokensApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultOAuthTokenModel + public RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oauthAppId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetAuthorizationTokensWithHttpInfo(oauthAppId, appId, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOAuthTokenModel + public ApiResponse< RestApiPaginationResultOAuthTokenModel > GetAuthorizationTokensWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AuthorizationTokensApi->GetAuthorizationTokens"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AuthorizationTokensApi->GetAuthorizationTokens"); + + var localVarPath = "./api/v1.0/{appId}/authorizationtokens/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAuthorizationTokens", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOAuthTokenModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOAuthTokenModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOAuthTokenModel + public async System.Threading.Tasks.Task GetAuthorizationTokensAsync (string oauthAppId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetAuthorizationTokensAsyncWithHttpInfo(oauthAppId, appId, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOAuthTokenModel) + public async System.Threading.Tasks.Task> GetAuthorizationTokensAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling AuthorizationTokensApi->GetAuthorizationTokens"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AuthorizationTokensApi->GetAuthorizationTokens"); + + var localVarPath = "./api/v1.0/{appId}/authorizationtokens/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAuthorizationTokens", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOAuthTokenModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOAuthTokenModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void RevokeToken (string key, string appId) + { + RevokeTokenWithHttpInfo(key, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RevokeTokenWithHttpInfo (string key, string appId) + { + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling AuthorizationTokensApi->RevokeToken"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AuthorizationTokensApi->RevokeToken"); + + var localVarPath = "./api/v1.0/{appId}/authorizationtokens/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RevokeToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RevokeTokenAsync (string key, string appId) + { + await RevokeTokenAsyncWithHttpInfo(key, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RevokeTokenAsyncWithHttpInfo (string key, string appId) + { + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling AuthorizationTokensApi->RevokeToken"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling AuthorizationTokensApi->RevokeToken"); + + var localVarPath = "./api/v1.0/{appId}/authorizationtokens/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RevokeToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/BankAccountApi.cs b/src/Flipdish/Api/BankAccountApi.cs new file mode 100644 index 00000000..3a422fdd --- /dev/null +++ b/src/Flipdish/Api/BankAccountApi.cs @@ -0,0 +1,2101 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBankAccountApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// + void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of Object(void) + ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + ApiResponse CreateBankAccountWithHttpInfo (string appId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeleteBankAccount (string appId, int? bankAccountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteBankAccountWithHttpInfo (string appId, int? bankAccountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + ApiResponse GetBankAccountByIdWithHttpInfo (int? bankAccountId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultBankAccountSummary + RestApiArrayResultBankAccountSummary GetBankAccounts (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultBankAccountSummary + ApiResponse GetBankAccountsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultCountryWithAccountFieldsDefinitions + RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFieldDefinitions (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultCountryWithAccountFieldsDefinitions + ApiResponse GetCountriesWithFieldDefinitionsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAccountFieldsDefinitions + RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAccountFieldsDefinitions + ApiResponse GetFieldDefinitionsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateBankAccountWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateBankAccountStateWithHttpInfo (string appId, int? bankAccountId, string state, string reason); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of void + System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse + System.Threading.Tasks.Task> AttachBankAccountToStoreAsyncWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + System.Threading.Tasks.Task CreateBankAccountAsync (string appId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + System.Threading.Tasks.Task> CreateBankAccountAsyncWithHttpInfo (string appId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteBankAccountAsync (string appId, int? bankAccountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + System.Threading.Tasks.Task GetBankAccountByIdAsync (int? bankAccountId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + System.Threading.Tasks.Task> GetBankAccountByIdAsyncWithHttpInfo (int? bankAccountId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultBankAccountSummary + System.Threading.Tasks.Task GetBankAccountsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultBankAccountSummary) + System.Threading.Tasks.Task> GetBankAccountsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultCountryWithAccountFieldsDefinitions + System.Threading.Tasks.Task GetCountriesWithFieldDefinitionsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultCountryWithAccountFieldsDefinitions) + System.Threading.Tasks.Task> GetCountriesWithFieldDefinitionsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAccountFieldsDefinitions + System.Threading.Tasks.Task GetFieldDefinitionsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAccountFieldsDefinitions) + System.Threading.Tasks.Task> GetFieldDefinitionsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateBankAccountAsync (string appId, int? bankAccountId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateBankAccountStateAsync (string appId, int? bankAccountId, string state, string reason); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateBankAccountStateAsyncWithHttpInfo (string appId, int? bankAccountId, string state, string reason); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class BankAccountApi : IBankAccountApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public BankAccountApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public BankAccountApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// + public void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + { + AttachBankAccountToStoreWithHttpInfo(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of Object(void) + public ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->AttachBankAccountToStore"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->AttachBankAccountToStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling BankAccountApi->AttachBankAccountToStore"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (skipBankAccountUpdateWarningEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipBankAccountUpdateWarningEmail", skipBankAccountUpdateWarningEmail)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachBankAccountToStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of void + public async System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + { + await AttachBankAccountToStoreAsyncWithHttpInfo(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AttachBankAccountToStoreAsyncWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->AttachBankAccountToStore"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->AttachBankAccountToStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling BankAccountApi->AttachBankAccountToStore"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (skipBankAccountUpdateWarningEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipBankAccountUpdateWarningEmail", skipBankAccountUpdateWarningEmail)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachBankAccountToStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + public RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account) + { + ApiResponse localVarResponse = CreateBankAccountWithHttpInfo(appId, account); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountWithHttpInfo (string appId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->CreateBankAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling BankAccountApi->CreateBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + public async System.Threading.Tasks.Task CreateBankAccountAsync (string appId, BankAccountCreate account) + { + ApiResponse localVarResponse = await CreateBankAccountAsyncWithHttpInfo(appId, account); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + public async System.Threading.Tasks.Task> CreateBankAccountAsyncWithHttpInfo (string appId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->CreateBankAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling BankAccountApi->CreateBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeleteBankAccount (string appId, int? bankAccountId) + { + DeleteBankAccountWithHttpInfo(appId, bankAccountId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteBankAccountWithHttpInfo (string appId, int? bankAccountId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->DeleteBankAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->DeleteBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteBankAccountAsync (string appId, int? bankAccountId) + { + await DeleteBankAccountAsyncWithHttpInfo(appId, bankAccountId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->DeleteBankAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->DeleteBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + public RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId) + { + ApiResponse localVarResponse = GetBankAccountByIdWithHttpInfo(bankAccountId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + public ApiResponse< RestApiResultBankAccountDetail > GetBankAccountByIdWithHttpInfo (int? bankAccountId, string appId) + { + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->GetBankAccountById"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetBankAccountById"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccountById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + public async System.Threading.Tasks.Task GetBankAccountByIdAsync (int? bankAccountId, string appId) + { + ApiResponse localVarResponse = await GetBankAccountByIdAsyncWithHttpInfo(bankAccountId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + public async System.Threading.Tasks.Task> GetBankAccountByIdAsyncWithHttpInfo (int? bankAccountId, string appId) + { + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->GetBankAccountById"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetBankAccountById"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccountById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultBankAccountSummary + public RestApiArrayResultBankAccountSummary GetBankAccounts (string appId) + { + ApiResponse localVarResponse = GetBankAccountsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultBankAccountSummary + public ApiResponse< RestApiArrayResultBankAccountSummary > GetBankAccountsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetBankAccounts"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultBankAccountSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultBankAccountSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultBankAccountSummary + public async System.Threading.Tasks.Task GetBankAccountsAsync (string appId) + { + ApiResponse localVarResponse = await GetBankAccountsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultBankAccountSummary) + public async System.Threading.Tasks.Task> GetBankAccountsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetBankAccounts"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultBankAccountSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultBankAccountSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultCountryWithAccountFieldsDefinitions + public RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFieldDefinitions (string appId) + { + ApiResponse localVarResponse = GetCountriesWithFieldDefinitionsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultCountryWithAccountFieldsDefinitions + public ApiResponse< RestApiArrayResultCountryWithAccountFieldsDefinitions > GetCountriesWithFieldDefinitionsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetCountriesWithFieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/countries-field-definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCountriesWithFieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultCountryWithAccountFieldsDefinitions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultCountryWithAccountFieldsDefinitions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultCountryWithAccountFieldsDefinitions + public async System.Threading.Tasks.Task GetCountriesWithFieldDefinitionsAsync (string appId) + { + ApiResponse localVarResponse = await GetCountriesWithFieldDefinitionsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultCountryWithAccountFieldsDefinitions) + public async System.Threading.Tasks.Task> GetCountriesWithFieldDefinitionsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetCountriesWithFieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/countries-field-definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCountriesWithFieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultCountryWithAccountFieldsDefinitions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultCountryWithAccountFieldsDefinitions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAccountFieldsDefinitions + public RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId) + { + ApiResponse localVarResponse = GetFieldDefinitionsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAccountFieldsDefinitions + public ApiResponse< RestApiResultAccountFieldsDefinitions > GetFieldDefinitionsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetFieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/field-definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAccountFieldsDefinitions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAccountFieldsDefinitions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAccountFieldsDefinitions + public async System.Threading.Tasks.Task GetFieldDefinitionsAsync (string appId) + { + ApiResponse localVarResponse = await GetFieldDefinitionsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAccountFieldsDefinitions) + public async System.Threading.Tasks.Task> GetFieldDefinitionsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->GetFieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/field-definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAccountFieldsDefinitions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAccountFieldsDefinitions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account) + { + UpdateBankAccountWithHttpInfo(appId, bankAccountId, account); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateBankAccountWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->UpdateBankAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->UpdateBankAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling BankAccountApi->UpdateBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateBankAccountAsync (string appId, int? bankAccountId, BankAccountCreate account) + { + await UpdateBankAccountAsyncWithHttpInfo(appId, bankAccountId, account); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->UpdateBankAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->UpdateBankAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling BankAccountApi->UpdateBankAccount"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason) + { + UpdateBankAccountStateWithHttpInfo(appId, bankAccountId, state, reason); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateBankAccountStateWithHttpInfo (string appId, int? bankAccountId, string state, string reason) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'state' is set + if (state == null) + throw new ApiException(400, "Missing required parameter 'state' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'reason' is set + if (reason == null) + throw new ApiException(400, "Missing required parameter 'reason' when calling BankAccountApi->UpdateBankAccountState"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (state != null) localVarPathParams.Add("state", this.Configuration.ApiClient.ParameterToString(state)); // path parameter + if (reason != null && reason.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(reason); // http body (model) parameter + } + else + { + localVarPostBody = reason; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccountState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateBankAccountStateAsync (string appId, int? bankAccountId, string state, string reason) + { + await UpdateBankAccountStateAsyncWithHttpInfo(appId, bankAccountId, state, reason); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateBankAccountStateAsyncWithHttpInfo (string appId, int? bankAccountId, string state, string reason) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'state' is set + if (state == null) + throw new ApiException(400, "Missing required parameter 'state' when calling BankAccountApi->UpdateBankAccountState"); + // verify the required parameter 'reason' is set + if (reason == null) + throw new ApiException(400, "Missing required parameter 'reason' when calling BankAccountApi->UpdateBankAccountState"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (state != null) localVarPathParams.Add("state", this.Configuration.ApiClient.ParameterToString(state)); // path parameter + if (reason != null && reason.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(reason); // http body (model) parameter + } + else + { + localVarPostBody = reason; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccountState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/CampaignsApi.cs b/src/Flipdish/Api/CampaignsApi.cs new file mode 100644 index 00000000..a6ed0dee --- /dev/null +++ b/src/Flipdish/Api/CampaignsApi.cs @@ -0,0 +1,2308 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICampaignsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultLoyaltyCampaign + RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, LoyaltyCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultLoyaltyCampaign + ApiResponse CreateLoyaltyCampaignWithHttpInfo (string appId, LoyaltyCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRetentionCampaign + RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRetentionCampaign + ApiResponse CreateRetentionCampaignWithHttpInfo (string appId, RetentionCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultLoyaltyCampaign + RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultLoyaltyCampaign + ApiResponse GetLoyaltyCampaignsForAppWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultLoyaltyCampaign + RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultLoyaltyCampaign + ApiResponse GetLoyaltyCampaignsForStoreWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRetentionCampaign + RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRetentionCampaign + ApiResponse GetRetentionCampaignsForAppWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRetentionCampaign + RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRetentionCampaign + ApiResponse GetRetentionCampaignsForStoreWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultStoreListItem + RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultStoreListItem + ApiResponse GetStoreListWithHttpInfo (string appId, bool? onlyPublished = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void RemoveCampaign (string appId, int? campaignId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse RemoveCampaignWithHttpInfo (string appId, int? campaignId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultLoyaltyCampaign + RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultLoyaltyCampaign + ApiResponse UpdateLoyaltyCampaignWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRetentionCampaign + RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRetentionCampaign + ApiResponse UpdateRetentionCampaignWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultLoyaltyCampaign + System.Threading.Tasks.Task CreateLoyaltyCampaignAsync (string appId, LoyaltyCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultLoyaltyCampaign) + System.Threading.Tasks.Task> CreateLoyaltyCampaignAsyncWithHttpInfo (string appId, LoyaltyCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRetentionCampaign + System.Threading.Tasks.Task CreateRetentionCampaignAsync (string appId, RetentionCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRetentionCampaign) + System.Threading.Tasks.Task> CreateRetentionCampaignAsyncWithHttpInfo (string appId, RetentionCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultLoyaltyCampaign + System.Threading.Tasks.Task GetLoyaltyCampaignsForAppAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) + System.Threading.Tasks.Task> GetLoyaltyCampaignsForAppAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultLoyaltyCampaign + System.Threading.Tasks.Task GetLoyaltyCampaignsForStoreAsync (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) + System.Threading.Tasks.Task> GetLoyaltyCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRetentionCampaign + System.Threading.Tasks.Task GetRetentionCampaignsForAppAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) + System.Threading.Tasks.Task> GetRetentionCampaignsForAppAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRetentionCampaign + System.Threading.Tasks.Task GetRetentionCampaignsForStoreAsync (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) + System.Threading.Tasks.Task> GetRetentionCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultStoreListItem + System.Threading.Tasks.Task GetStoreListAsync (string appId, bool? onlyPublished = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultStoreListItem) + System.Threading.Tasks.Task> GetStoreListAsyncWithHttpInfo (string appId, bool? onlyPublished = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task RemoveCampaignAsync (string appId, int? campaignId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RemoveCampaignAsyncWithHttpInfo (string appId, int? campaignId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultLoyaltyCampaign + System.Threading.Tasks.Task UpdateLoyaltyCampaignAsync (string appId, int? campaignId, LoyaltyCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultLoyaltyCampaign) + System.Threading.Tasks.Task> UpdateLoyaltyCampaignAsyncWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRetentionCampaign + System.Threading.Tasks.Task UpdateRetentionCampaignAsync (string appId, int? campaignId, RetentionCampaignBase campaign); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRetentionCampaign) + System.Threading.Tasks.Task> UpdateRetentionCampaignAsyncWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CampaignsApi : ICampaignsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CampaignsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CampaignsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultLoyaltyCampaign + public RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, LoyaltyCampaignBase campaign) + { + ApiResponse localVarResponse = CreateLoyaltyCampaignWithHttpInfo(appId, campaign); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultLoyaltyCampaign + public ApiResponse< RestApiResultLoyaltyCampaign > CreateLoyaltyCampaignWithHttpInfo (string appId, LoyaltyCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->CreateLoyaltyCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->CreateLoyaltyCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLoyaltyCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultLoyaltyCampaign + public async System.Threading.Tasks.Task CreateLoyaltyCampaignAsync (string appId, LoyaltyCampaignBase campaign) + { + ApiResponse localVarResponse = await CreateLoyaltyCampaignAsyncWithHttpInfo(appId, campaign); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultLoyaltyCampaign) + public async System.Threading.Tasks.Task> CreateLoyaltyCampaignAsyncWithHttpInfo (string appId, LoyaltyCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->CreateLoyaltyCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->CreateLoyaltyCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLoyaltyCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRetentionCampaign + public RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign) + { + ApiResponse localVarResponse = CreateRetentionCampaignWithHttpInfo(appId, campaign); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRetentionCampaign + public ApiResponse< RestApiResultRetentionCampaign > CreateRetentionCampaignWithHttpInfo (string appId, RetentionCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->CreateRetentionCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->CreateRetentionCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateRetentionCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRetentionCampaign + public async System.Threading.Tasks.Task CreateRetentionCampaignAsync (string appId, RetentionCampaignBase campaign) + { + ApiResponse localVarResponse = await CreateRetentionCampaignAsyncWithHttpInfo(appId, campaign); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRetentionCampaign) + public async System.Threading.Tasks.Task> CreateRetentionCampaignAsyncWithHttpInfo (string appId, RetentionCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->CreateRetentionCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->CreateRetentionCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateRetentionCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultLoyaltyCampaign + public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId) + { + ApiResponse localVarResponse = GetLoyaltyCampaignsForAppWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultLoyaltyCampaign + public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForAppWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetLoyaltyCampaignsForApp"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLoyaltyCampaignsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultLoyaltyCampaign + public async System.Threading.Tasks.Task GetLoyaltyCampaignsForAppAsync (string appId) + { + ApiResponse localVarResponse = await GetLoyaltyCampaignsForAppAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) + public async System.Threading.Tasks.Task> GetLoyaltyCampaignsForAppAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetLoyaltyCampaignsForApp"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLoyaltyCampaignsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultLoyaltyCampaign + public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId) + { + ApiResponse localVarResponse = GetLoyaltyCampaignsForStoreWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultLoyaltyCampaign + public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForStoreWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetLoyaltyCampaignsForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling CampaignsApi->GetLoyaltyCampaignsForStore"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLoyaltyCampaignsForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultLoyaltyCampaign + public async System.Threading.Tasks.Task GetLoyaltyCampaignsForStoreAsync (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetLoyaltyCampaignsForStoreAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) + public async System.Threading.Tasks.Task> GetLoyaltyCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetLoyaltyCampaignsForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling CampaignsApi->GetLoyaltyCampaignsForStore"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLoyaltyCampaignsForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRetentionCampaign + public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId) + { + ApiResponse localVarResponse = GetRetentionCampaignsForAppWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRetentionCampaign + public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsForAppWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetRetentionCampaignsForApp"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetentionCampaignsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRetentionCampaign + public async System.Threading.Tasks.Task GetRetentionCampaignsForAppAsync (string appId) + { + ApiResponse localVarResponse = await GetRetentionCampaignsForAppAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) + public async System.Threading.Tasks.Task> GetRetentionCampaignsForAppAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetRetentionCampaignsForApp"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetentionCampaignsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRetentionCampaign + public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId) + { + ApiResponse localVarResponse = GetRetentionCampaignsForStoreWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRetentionCampaign + public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsForStoreWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetRetentionCampaignsForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling CampaignsApi->GetRetentionCampaignsForStore"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetentionCampaignsForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRetentionCampaign + public async System.Threading.Tasks.Task GetRetentionCampaignsForStoreAsync (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetRetentionCampaignsForStoreAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) + public async System.Threading.Tasks.Task> GetRetentionCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetRetentionCampaignsForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling CampaignsApi->GetRetentionCampaignsForStore"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetentionCampaignsForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultStoreListItem + public RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null) + { + ApiResponse localVarResponse = GetStoreListWithHttpInfo(appId, onlyPublished); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultStoreListItem + public ApiResponse< RestApiArrayResultStoreListItem > GetStoreListWithHttpInfo (string appId, bool? onlyPublished = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetStoreList"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (onlyPublished != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "onlyPublished", onlyPublished)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreList", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreListItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreListItem))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultStoreListItem + public async System.Threading.Tasks.Task GetStoreListAsync (string appId, bool? onlyPublished = null) + { + ApiResponse localVarResponse = await GetStoreListAsyncWithHttpInfo(appId, onlyPublished); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultStoreListItem) + public async System.Threading.Tasks.Task> GetStoreListAsyncWithHttpInfo (string appId, bool? onlyPublished = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->GetStoreList"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (onlyPublished != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "onlyPublished", onlyPublished)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreList", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreListItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreListItem))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void RemoveCampaign (string appId, int? campaignId) + { + RemoveCampaignWithHttpInfo(appId, campaignId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RemoveCampaignWithHttpInfo (string appId, int? campaignId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->RemoveCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->RemoveCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RemoveCampaignAsync (string appId, int? campaignId) + { + await RemoveCampaignAsyncWithHttpInfo(appId, campaignId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RemoveCampaignAsyncWithHttpInfo (string appId, int? campaignId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->RemoveCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->RemoveCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultLoyaltyCampaign + public RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign) + { + ApiResponse localVarResponse = UpdateLoyaltyCampaignWithHttpInfo(appId, campaignId, campaign); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultLoyaltyCampaign + public ApiResponse< RestApiResultLoyaltyCampaign > UpdateLoyaltyCampaignWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->UpdateLoyaltyCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->UpdateLoyaltyCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->UpdateLoyaltyCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLoyaltyCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultLoyaltyCampaign + public async System.Threading.Tasks.Task UpdateLoyaltyCampaignAsync (string appId, int? campaignId, LoyaltyCampaignBase campaign) + { + ApiResponse localVarResponse = await UpdateLoyaltyCampaignAsyncWithHttpInfo(appId, campaignId, campaign); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultLoyaltyCampaign) + public async System.Threading.Tasks.Task> UpdateLoyaltyCampaignAsyncWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->UpdateLoyaltyCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->UpdateLoyaltyCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->UpdateLoyaltyCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/loyalty/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLoyaltyCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLoyaltyCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLoyaltyCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRetentionCampaign + public RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign) + { + ApiResponse localVarResponse = UpdateRetentionCampaignWithHttpInfo(appId, campaignId, campaign); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRetentionCampaign + public ApiResponse< RestApiResultRetentionCampaign > UpdateRetentionCampaignWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->UpdateRetentionCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->UpdateRetentionCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->UpdateRetentionCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateRetentionCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRetentionCampaign))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRetentionCampaign + public async System.Threading.Tasks.Task UpdateRetentionCampaignAsync (string appId, int? campaignId, RetentionCampaignBase campaign) + { + ApiResponse localVarResponse = await UpdateRetentionCampaignAsyncWithHttpInfo(appId, campaignId, campaign); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRetentionCampaign) + public async System.Threading.Tasks.Task> UpdateRetentionCampaignAsyncWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CampaignsApi->UpdateRetentionCampaign"); + // verify the required parameter 'campaignId' is set + if (campaignId == null) + throw new ApiException(400, "Missing required parameter 'campaignId' when calling CampaignsApi->UpdateRetentionCampaign"); + // verify the required parameter 'campaign' is set + if (campaign == null) + throw new ApiException(400, "Missing required parameter 'campaign' when calling CampaignsApi->UpdateRetentionCampaign"); + + var localVarPath = "./api/v1.0/{appId}/campaigns/retention/{campaignId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (campaignId != null) localVarPathParams.Add("campaignId", this.Configuration.ApiClient.ParameterToString(campaignId)); // path parameter + if (campaign != null && campaign.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(campaign); // http body (model) parameter + } + else + { + localVarPostBody = campaign; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateRetentionCampaign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRetentionCampaign) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRetentionCampaign))); + } + + } +} diff --git a/src/Flipdish/Api/CardReadersApi.cs b/src/Flipdish/Api/CardReadersApi.cs new file mode 100644 index 00000000..14346b3c --- /dev/null +++ b/src/Flipdish/Api/CardReadersApi.cs @@ -0,0 +1,3206 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICardReadersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse CancelCurrentlyInitiatedBluetoothDeviceUpdateWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + RestApiResultCardReader CancelReaderAction (string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + ApiResponse CancelReaderActionWithHttpInfo (string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + RestApiResultCardReader CardReadersGetReader (string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + ApiResponse CardReadersGetReaderWithHttpInfo (string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStripeTerminalLocation + RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStripeTerminalLocation + ApiResponse GenerateStripeTerminalLocationWithHttpInfo (GeoPointRequest geoPointRequest, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBluetoothTerminalStatus + RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBluetoothTerminalStatus + ApiResponse GetBluetoothTerminalStatusWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultKioskStripeLocation + RestApiResultKioskStripeLocation GetKioskStripeLocation (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultKioskStripeLocation + ApiResponse GetKioskStripeLocationWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStripeTerminalConnectionToken + RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStripeTerminalConnectionToken + ApiResponse GetStripeConnectionTokenWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse InitiateBluetoothTerminalDeviceUpdateCheckWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void InitiateKioskBluetoothPairingMode (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse InitiateKioskBluetoothPairingModeWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse InitiateKioskBluetoothUpdateInstallWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultCardReader + RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymentIntentRequest request, string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultCardReader + ApiResponse InitiateReaderProcessPaymentIntentWithHttpInfo (ProcessPaymentIntentRequest request, string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + RestApiResultCardReader RegisterStripeTerminal (CardReaderRegistrationRequest request, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + ApiResponse RegisterStripeTerminalWithHttpInfo (CardReaderRegistrationRequest request, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest request, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + ApiResponse UnRegisterTerminalWithHttpInfo (UnRegisterCardReaderRequest request, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse UnpairCurrentlyPairedBluetoothDeviceWithHttpInfo (string appId, string deviceId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task CancelCurrentlyInitiatedBluetoothDeviceUpdateAsync (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCurrentlyInitiatedBluetoothDeviceUpdateAsyncWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + System.Threading.Tasks.Task CancelReaderActionAsync (string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + System.Threading.Tasks.Task> CancelReaderActionAsyncWithHttpInfo (string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + System.Threading.Tasks.Task CardReadersGetReaderAsync (string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + System.Threading.Tasks.Task> CardReadersGetReaderAsyncWithHttpInfo (string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStripeTerminalLocation + System.Threading.Tasks.Task GenerateStripeTerminalLocationAsync (GeoPointRequest geoPointRequest, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStripeTerminalLocation) + System.Threading.Tasks.Task> GenerateStripeTerminalLocationAsyncWithHttpInfo (GeoPointRequest geoPointRequest, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBluetoothTerminalStatus + System.Threading.Tasks.Task GetBluetoothTerminalStatusAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBluetoothTerminalStatus) + System.Threading.Tasks.Task> GetBluetoothTerminalStatusAsyncWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultKioskStripeLocation + System.Threading.Tasks.Task GetKioskStripeLocationAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultKioskStripeLocation) + System.Threading.Tasks.Task> GetKioskStripeLocationAsyncWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStripeTerminalConnectionToken + System.Threading.Tasks.Task GetStripeConnectionTokenAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStripeTerminalConnectionToken) + System.Threading.Tasks.Task> GetStripeConnectionTokenAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task InitiateBluetoothTerminalDeviceUpdateCheckAsync (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> InitiateBluetoothTerminalDeviceUpdateCheckAsyncWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task InitiateKioskBluetoothPairingModeAsync (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> InitiateKioskBluetoothPairingModeAsyncWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task InitiateKioskBluetoothUpdateInstallAsync (string appId, string deviceId, string terminalType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> InitiateKioskBluetoothUpdateInstallAsyncWithHttpInfo (string appId, string deviceId, string terminalType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultCardReader + System.Threading.Tasks.Task InitiateReaderProcessPaymentIntentAsync (ProcessPaymentIntentRequest request, string readerId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + System.Threading.Tasks.Task> InitiateReaderProcessPaymentIntentAsyncWithHttpInfo (ProcessPaymentIntentRequest request, string readerId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + System.Threading.Tasks.Task RegisterStripeTerminalAsync (CardReaderRegistrationRequest request, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + System.Threading.Tasks.Task> RegisterStripeTerminalAsyncWithHttpInfo (CardReaderRegistrationRequest request, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + System.Threading.Tasks.Task UnRegisterTerminalAsync (UnRegisterCardReaderRequest request, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + System.Threading.Tasks.Task> UnRegisterTerminalAsyncWithHttpInfo (UnRegisterCardReaderRequest request, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task UnpairCurrentlyPairedBluetoothDeviceAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UnpairCurrentlyPairedBluetoothDeviceAsyncWithHttpInfo (string appId, string deviceId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CardReadersApi : ICardReadersApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CardReadersApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CardReadersApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType) + { + CancelCurrentlyInitiatedBluetoothDeviceUpdateWithHttpInfo(appId, deviceId, terminalType); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse CancelCurrentlyInitiatedBluetoothDeviceUpdateWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelCurrentlyInitiatedBluetoothDeviceUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task CancelCurrentlyInitiatedBluetoothDeviceUpdateAsync (string appId, string deviceId, string terminalType) + { + await CancelCurrentlyInitiatedBluetoothDeviceUpdateAsyncWithHttpInfo(appId, deviceId, terminalType); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCurrentlyInitiatedBluetoothDeviceUpdateAsyncWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->CancelCurrentlyInitiatedBluetoothDeviceUpdate"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelCurrentlyInitiatedBluetoothDeviceUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + public RestApiResultCardReader CancelReaderAction (string readerId, string appId) + { + ApiResponse localVarResponse = CancelReaderActionWithHttpInfo(readerId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + public ApiResponse< RestApiResultCardReader > CancelReaderActionWithHttpInfo (string readerId, string appId) + { + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->CancelReaderAction"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CancelReaderAction"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelReaderAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + public async System.Threading.Tasks.Task CancelReaderActionAsync (string readerId, string appId) + { + ApiResponse localVarResponse = await CancelReaderActionAsyncWithHttpInfo(readerId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + public async System.Threading.Tasks.Task> CancelReaderActionAsyncWithHttpInfo (string readerId, string appId) + { + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->CancelReaderAction"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CancelReaderAction"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelReaderAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + public RestApiResultCardReader CardReadersGetReader (string readerId, string appId) + { + ApiResponse localVarResponse = CardReadersGetReaderWithHttpInfo(readerId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + public ApiResponse< RestApiResultCardReader > CardReadersGetReaderWithHttpInfo (string readerId, string appId) + { + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->CardReadersGetReader"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CardReadersGetReader"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CardReadersGetReader", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + public async System.Threading.Tasks.Task CardReadersGetReaderAsync (string readerId, string appId) + { + ApiResponse localVarResponse = await CardReadersGetReaderAsyncWithHttpInfo(readerId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + public async System.Threading.Tasks.Task> CardReadersGetReaderAsyncWithHttpInfo (string readerId, string appId) + { + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->CardReadersGetReader"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->CardReadersGetReader"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CardReadersGetReader", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStripeTerminalLocation + public RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId) + { + ApiResponse localVarResponse = GenerateStripeTerminalLocationWithHttpInfo(geoPointRequest, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStripeTerminalLocation + public ApiResponse< RestApiResultStripeTerminalLocation > GenerateStripeTerminalLocationWithHttpInfo (GeoPointRequest geoPointRequest, string appId) + { + // verify the required parameter 'geoPointRequest' is set + if (geoPointRequest == null) + throw new ApiException(400, "Missing required parameter 'geoPointRequest' when calling CardReadersApi->GenerateStripeTerminalLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GenerateStripeTerminalLocation"); + + var localVarPath = "./api/v1.0/{appId}/stripeterminal/location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (geoPointRequest != null && geoPointRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(geoPointRequest); // http body (model) parameter + } + else + { + localVarPostBody = geoPointRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GenerateStripeTerminalLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeTerminalLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStripeTerminalLocation + public async System.Threading.Tasks.Task GenerateStripeTerminalLocationAsync (GeoPointRequest geoPointRequest, string appId) + { + ApiResponse localVarResponse = await GenerateStripeTerminalLocationAsyncWithHttpInfo(geoPointRequest, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStripeTerminalLocation) + public async System.Threading.Tasks.Task> GenerateStripeTerminalLocationAsyncWithHttpInfo (GeoPointRequest geoPointRequest, string appId) + { + // verify the required parameter 'geoPointRequest' is set + if (geoPointRequest == null) + throw new ApiException(400, "Missing required parameter 'geoPointRequest' when calling CardReadersApi->GenerateStripeTerminalLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GenerateStripeTerminalLocation"); + + var localVarPath = "./api/v1.0/{appId}/stripeterminal/location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (geoPointRequest != null && geoPointRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(geoPointRequest); // http body (model) parameter + } + else + { + localVarPostBody = geoPointRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GenerateStripeTerminalLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeTerminalLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBluetoothTerminalStatus + public RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string appId, string deviceId) + { + ApiResponse localVarResponse = GetBluetoothTerminalStatusWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBluetoothTerminalStatus + public ApiResponse< RestApiResultBluetoothTerminalStatus > GetBluetoothTerminalStatusWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetBluetoothTerminalStatus"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->GetBluetoothTerminalStatus"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBluetoothTerminalStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBluetoothTerminalStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBluetoothTerminalStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBluetoothTerminalStatus + public async System.Threading.Tasks.Task GetBluetoothTerminalStatusAsync (string appId, string deviceId) + { + ApiResponse localVarResponse = await GetBluetoothTerminalStatusAsyncWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBluetoothTerminalStatus) + public async System.Threading.Tasks.Task> GetBluetoothTerminalStatusAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetBluetoothTerminalStatus"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->GetBluetoothTerminalStatus"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBluetoothTerminalStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBluetoothTerminalStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBluetoothTerminalStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultKioskStripeLocation + public RestApiResultKioskStripeLocation GetKioskStripeLocation (string appId, string deviceId) + { + ApiResponse localVarResponse = GetKioskStripeLocationWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultKioskStripeLocation + public ApiResponse< RestApiResultKioskStripeLocation > GetKioskStripeLocationWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetKioskStripeLocation"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->GetKioskStripeLocation"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/stripe-location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskStripeLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskStripeLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskStripeLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultKioskStripeLocation + public async System.Threading.Tasks.Task GetKioskStripeLocationAsync (string appId, string deviceId) + { + ApiResponse localVarResponse = await GetKioskStripeLocationAsyncWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultKioskStripeLocation) + public async System.Threading.Tasks.Task> GetKioskStripeLocationAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetKioskStripeLocation"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->GetKioskStripeLocation"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/stripe-location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskStripeLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskStripeLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskStripeLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStripeTerminalConnectionToken + public RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (string appId) + { + ApiResponse localVarResponse = GetStripeConnectionTokenWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStripeTerminalConnectionToken + public ApiResponse< RestApiResultStripeTerminalConnectionToken > GetStripeConnectionTokenWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetStripeConnectionToken"); + + var localVarPath = "./api/v1.0/{appId}/stripeterminal/connectiontoken"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStripeConnectionToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeTerminalConnectionToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalConnectionToken))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStripeTerminalConnectionToken + public async System.Threading.Tasks.Task GetStripeConnectionTokenAsync (string appId) + { + ApiResponse localVarResponse = await GetStripeConnectionTokenAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStripeTerminalConnectionToken) + public async System.Threading.Tasks.Task> GetStripeConnectionTokenAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->GetStripeConnectionToken"); + + var localVarPath = "./api/v1.0/{appId}/stripeterminal/connectiontoken"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStripeConnectionToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeTerminalConnectionToken) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalConnectionToken))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string deviceId, string terminalType) + { + InitiateBluetoothTerminalDeviceUpdateCheckWithHttpInfo(appId, deviceId, terminalType); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse InitiateBluetoothTerminalDeviceUpdateCheckWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateBluetoothTerminalDeviceUpdateCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task InitiateBluetoothTerminalDeviceUpdateCheckAsync (string appId, string deviceId, string terminalType) + { + await InitiateBluetoothTerminalDeviceUpdateCheckAsyncWithHttpInfo(appId, deviceId, terminalType); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> InitiateBluetoothTerminalDeviceUpdateCheckAsyncWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateBluetoothTerminalDeviceUpdateCheck"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateBluetoothTerminalDeviceUpdateCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void InitiateKioskBluetoothPairingMode (string appId, string deviceId, string terminalType) + { + InitiateKioskBluetoothPairingModeWithHttpInfo(appId, deviceId, terminalType); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse InitiateKioskBluetoothPairingModeWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateKioskBluetoothPairingMode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task InitiateKioskBluetoothPairingModeAsync (string appId, string deviceId, string terminalType) + { + await InitiateKioskBluetoothPairingModeAsyncWithHttpInfo(appId, deviceId, terminalType); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> InitiateKioskBluetoothPairingModeAsyncWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateKioskBluetoothPairingMode"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateKioskBluetoothPairingMode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, string terminalType) + { + InitiateKioskBluetoothUpdateInstallWithHttpInfo(appId, deviceId, terminalType); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse InitiateKioskBluetoothUpdateInstallWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateKioskBluetoothUpdateInstall", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task InitiateKioskBluetoothUpdateInstallAsync (string appId, string deviceId, string terminalType) + { + await InitiateKioskBluetoothUpdateInstallAsyncWithHttpInfo(appId, deviceId, terminalType); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> InitiateKioskBluetoothUpdateInstallAsyncWithHttpInfo (string appId, string deviceId, string terminalType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + // verify the required parameter 'terminalType' is set + if (terminalType == null) + throw new ApiException(400, "Missing required parameter 'terminalType' when calling CardReadersApi->InitiateKioskBluetoothUpdateInstall"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (terminalType != null) localVarPathParams.Add("terminalType", this.Configuration.ApiClient.ParameterToString(terminalType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateKioskBluetoothUpdateInstall", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultCardReader + public RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymentIntentRequest request, string readerId, string appId) + { + ApiResponse localVarResponse = InitiateReaderProcessPaymentIntentWithHttpInfo(request, readerId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultCardReader + public ApiResponse< RestApiResultCardReader > InitiateReaderProcessPaymentIntentWithHttpInfo (ProcessPaymentIntentRequest request, string readerId, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateReaderProcessPaymentIntent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultCardReader + public async System.Threading.Tasks.Task InitiateReaderProcessPaymentIntentAsync (ProcessPaymentIntentRequest request, string readerId, string appId) + { + ApiResponse localVarResponse = await InitiateReaderProcessPaymentIntentAsyncWithHttpInfo(request, readerId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + public async System.Threading.Tasks.Task> InitiateReaderProcessPaymentIntentAsyncWithHttpInfo (ProcessPaymentIntentRequest request, string readerId, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + // verify the required parameter 'readerId' is set + if (readerId == null) + throw new ApiException(400, "Missing required parameter 'readerId' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->InitiateReaderProcessPaymentIntent"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (readerId != null) localVarPathParams.Add("readerId", this.Configuration.ApiClient.ParameterToString(readerId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InitiateReaderProcessPaymentIntent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + public RestApiResultCardReader RegisterStripeTerminal (CardReaderRegistrationRequest request, string appId) + { + ApiResponse localVarResponse = RegisterStripeTerminalWithHttpInfo(request, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + public ApiResponse< RestApiResultCardReader > RegisterStripeTerminalWithHttpInfo (CardReaderRegistrationRequest request, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->RegisterStripeTerminal"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->RegisterStripeTerminal"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/register"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RegisterStripeTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + public async System.Threading.Tasks.Task RegisterStripeTerminalAsync (CardReaderRegistrationRequest request, string appId) + { + ApiResponse localVarResponse = await RegisterStripeTerminalAsyncWithHttpInfo(request, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + public async System.Threading.Tasks.Task> RegisterStripeTerminalAsyncWithHttpInfo (CardReaderRegistrationRequest request, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->RegisterStripeTerminal"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->RegisterStripeTerminal"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/register"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RegisterStripeTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCardReader + public RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest request, string appId) + { + ApiResponse localVarResponse = UnRegisterTerminalWithHttpInfo(request, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCardReader + public ApiResponse< RestApiResultCardReader > UnRegisterTerminalWithHttpInfo (UnRegisterCardReaderRequest request, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->UnRegisterTerminal"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->UnRegisterTerminal"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/unregister"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnRegisterTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCardReader + public async System.Threading.Tasks.Task UnRegisterTerminalAsync (UnRegisterCardReaderRequest request, string appId) + { + ApiResponse localVarResponse = await UnRegisterTerminalAsyncWithHttpInfo(request, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCardReader) + public async System.Threading.Tasks.Task> UnRegisterTerminalAsyncWithHttpInfo (UnRegisterCardReaderRequest request, string appId) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling CardReadersApi->UnRegisterTerminal"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->UnRegisterTerminal"); + + var localVarPath = "./api/v1.0/{appId}/payments/terminals/stripe/unregister"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnRegisterTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCardReader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCardReader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId) + { + UnpairCurrentlyPairedBluetoothDeviceWithHttpInfo(appId, deviceId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UnpairCurrentlyPairedBluetoothDeviceWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->UnpairCurrentlyPairedBluetoothDevice"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->UnpairCurrentlyPairedBluetoothDevice"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnpairCurrentlyPairedBluetoothDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UnpairCurrentlyPairedBluetoothDeviceAsync (string appId, string deviceId) + { + await UnpairCurrentlyPairedBluetoothDeviceAsyncWithHttpInfo(appId, deviceId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UnpairCurrentlyPairedBluetoothDeviceAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->UnpairCurrentlyPairedBluetoothDevice"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling CardReadersApi->UnpairCurrentlyPairedBluetoothDevice"); + + var localVarPath = "./api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnpairCurrentlyPairedBluetoothDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/CatalogChangesApi.cs b/src/Flipdish/Api/CatalogChangesApi.cs new file mode 100644 index 00000000..0ed6a159 --- /dev/null +++ b/src/Flipdish/Api/CatalogChangesApi.cs @@ -0,0 +1,787 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICatalogChangesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Get menu pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPendingMenuChanges + RestApiPaginationResultPendingMenuChanges GetPendingMenuChanges (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null); + + /// + /// Get menu pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPendingMenuChanges + ApiResponse GetPendingMenuChangesWithHttpInfo (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null); + /// + /// Get menu pending changes summaries by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultPendingMenuChangesSummaries + RestApiArrayResultPendingMenuChangesSummaries GetPendingMenuChangesSummaries (string appId); + + /// + /// Get menu pending changes summaries by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultPendingMenuChangesSummaries + ApiResponse GetPendingMenuChangesSummariesWithHttpInfo (string appId); + /// + /// Update menus with the pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void PublishPendingMenuChanges (string appId, PublishMenuChanges publishMenuChanges); + + /// + /// Update menus with the pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse PublishPendingMenuChangesWithHttpInfo (string appId, PublishMenuChanges publishMenuChanges); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Get menu pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPendingMenuChanges + System.Threading.Tasks.Task GetPendingMenuChangesAsync (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null); + + /// + /// Get menu pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPendingMenuChanges) + System.Threading.Tasks.Task> GetPendingMenuChangesAsyncWithHttpInfo (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null); + /// + /// Get menu pending changes summaries by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultPendingMenuChangesSummaries + System.Threading.Tasks.Task GetPendingMenuChangesSummariesAsync (string appId); + + /// + /// Get menu pending changes summaries by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultPendingMenuChangesSummaries) + System.Threading.Tasks.Task> GetPendingMenuChangesSummariesAsyncWithHttpInfo (string appId); + /// + /// Update menus with the pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task PublishPendingMenuChangesAsync (string appId, PublishMenuChanges publishMenuChanges); + + /// + /// Update menus with the pending changes from Catalog groups and items + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PublishPendingMenuChangesAsyncWithHttpInfo (string appId, PublishMenuChanges publishMenuChanges); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CatalogChangesApi : ICatalogChangesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CatalogChangesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CatalogChangesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Get menu pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPendingMenuChanges + public RestApiPaginationResultPendingMenuChanges GetPendingMenuChanges (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetPendingMenuChangesWithHttpInfo(appId, menuId, catalogItemId, page, limit); + return localVarResponse.Data; + } + + /// + /// Get menu pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPendingMenuChanges + public ApiResponse< RestApiPaginationResultPendingMenuChanges > GetPendingMenuChangesWithHttpInfo (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->GetPendingMenuChanges"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (catalogItemId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "catalogItemId", catalogItemId)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPendingMenuChanges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPendingMenuChanges) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPendingMenuChanges))); + } + + /// + /// Get menu pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPendingMenuChanges + public async System.Threading.Tasks.Task GetPendingMenuChangesAsync (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetPendingMenuChangesAsyncWithHttpInfo(appId, menuId, catalogItemId, page, limit); + return localVarResponse.Data; + + } + + /// + /// Get menu pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPendingMenuChanges) + public async System.Threading.Tasks.Task> GetPendingMenuChangesAsyncWithHttpInfo (string appId, int? menuId = null, string catalogItemId = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->GetPendingMenuChanges"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (catalogItemId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "catalogItemId", catalogItemId)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPendingMenuChanges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPendingMenuChanges) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPendingMenuChanges))); + } + + /// + /// Get menu pending changes summaries by appId + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultPendingMenuChangesSummaries + public RestApiArrayResultPendingMenuChangesSummaries GetPendingMenuChangesSummaries (string appId) + { + ApiResponse localVarResponse = GetPendingMenuChangesSummariesWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// Get menu pending changes summaries by appId + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultPendingMenuChangesSummaries + public ApiResponse< RestApiArrayResultPendingMenuChangesSummaries > GetPendingMenuChangesSummariesWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->GetPendingMenuChangesSummaries"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPendingMenuChangesSummaries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPendingMenuChangesSummaries) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPendingMenuChangesSummaries))); + } + + /// + /// Get menu pending changes summaries by appId + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultPendingMenuChangesSummaries + public async System.Threading.Tasks.Task GetPendingMenuChangesSummariesAsync (string appId) + { + ApiResponse localVarResponse = await GetPendingMenuChangesSummariesAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// Get menu pending changes summaries by appId + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultPendingMenuChangesSummaries) + public async System.Threading.Tasks.Task> GetPendingMenuChangesSummariesAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->GetPendingMenuChangesSummaries"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPendingMenuChangesSummaries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPendingMenuChangesSummaries) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPendingMenuChangesSummaries))); + } + + /// + /// Update menus with the pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void PublishPendingMenuChanges (string appId, PublishMenuChanges publishMenuChanges) + { + PublishPendingMenuChangesWithHttpInfo(appId, publishMenuChanges); + } + + /// + /// Update menus with the pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse PublishPendingMenuChangesWithHttpInfo (string appId, PublishMenuChanges publishMenuChanges) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->PublishPendingMenuChanges"); + // verify the required parameter 'publishMenuChanges' is set + if (publishMenuChanges == null) + throw new ApiException(400, "Missing required parameter 'publishMenuChanges' when calling CatalogChangesApi->PublishPendingMenuChanges"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (publishMenuChanges != null && publishMenuChanges.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(publishMenuChanges); // http body (model) parameter + } + else + { + localVarPostBody = publishMenuChanges; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PublishPendingMenuChanges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menus with the pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task PublishPendingMenuChangesAsync (string appId, PublishMenuChanges publishMenuChanges) + { + await PublishPendingMenuChangesAsyncWithHttpInfo(appId, publishMenuChanges); + + } + + /// + /// Update menus with the pending changes from Catalog groups and items [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PublishPendingMenuChangesAsyncWithHttpInfo (string appId, PublishMenuChanges publishMenuChanges) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogChangesApi->PublishPendingMenuChanges"); + // verify the required parameter 'publishMenuChanges' is set + if (publishMenuChanges == null) + throw new ApiException(400, "Missing required parameter 'publishMenuChanges' when calling CatalogChangesApi->PublishPendingMenuChanges"); + + var localVarPath = "./api/v1.0/{appId}/menus/catalog-changes/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (publishMenuChanges != null && publishMenuChanges.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(publishMenuChanges); // http body (model) parameter + } + else + { + localVarPostBody = publishMenuChanges; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PublishPendingMenuChanges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/CatalogGroupsApi.cs b/src/Flipdish/Api/CatalogGroupsApi.cs new file mode 100644 index 00000000..9ab74c01 --- /dev/null +++ b/src/Flipdish/Api/CatalogGroupsApi.cs @@ -0,0 +1,1472 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICatalogGroupsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Archive Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void ArchiveGroup (string appId, string catalogItemId); + + /// + /// Archive Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse ArchiveGroupWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultGroup + RestApiResultGroup CreateGroup (string appId, CreateGroup createGroup); + + /// + /// Create a Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultGroup + ApiResponse CreateGroupWithHttpInfo (string appId, CreateGroup createGroup); + /// + /// Duplicate Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void DuplicateGroup (string appId, string catalogItemId); + + /// + /// Duplicate Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DuplicateGroupWithHttpInfo (string appId, string catalogItemId); + /// + /// Get group by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Group + Group GetGroupById (string appId, string catalogItemId); + + /// + /// Get group by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Group + ApiResponse GetGroupByIdWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated groups by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultGroup + RestApiPaginationResultGroup GetGroups (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated groups by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultGroup + ApiResponse GetGroupsWithHttpInfo (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateGroup (string appId, string catalogItemId, UpdateGroup updateGroup); + + /// + /// Update Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateGroupWithHttpInfo (string appId, string catalogItemId, UpdateGroup updateGroup); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Archive Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task ArchiveGroupAsync (string appId, string catalogItemId); + + /// + /// Archive Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> ArchiveGroupAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultGroup + System.Threading.Tasks.Task CreateGroupAsync (string appId, CreateGroup createGroup); + + /// + /// Create a Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultGroup) + System.Threading.Tasks.Task> CreateGroupAsyncWithHttpInfo (string appId, CreateGroup createGroup); + /// + /// Duplicate Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DuplicateGroupAsync (string appId, string catalogItemId); + + /// + /// Duplicate Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DuplicateGroupAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get group by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Group + System.Threading.Tasks.Task GetGroupByIdAsync (string appId, string catalogItemId); + + /// + /// Get group by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Group) + System.Threading.Tasks.Task> GetGroupByIdAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated groups by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultGroup + System.Threading.Tasks.Task GetGroupsAsync (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated groups by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultGroup) + System.Threading.Tasks.Task> GetGroupsAsyncWithHttpInfo (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateGroupAsync (string appId, string catalogItemId, UpdateGroup updateGroup); + + /// + /// Update Catalog Group + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateGroupAsyncWithHttpInfo (string appId, string catalogItemId, UpdateGroup updateGroup); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CatalogGroupsApi : ICatalogGroupsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CatalogGroupsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CatalogGroupsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Archive Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void ArchiveGroup (string appId, string catalogItemId) + { + ArchiveGroupWithHttpInfo(appId, catalogItemId); + } + + /// + /// Archive Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse ArchiveGroupWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->ArchiveGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->ArchiveGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Archive Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task ArchiveGroupAsync (string appId, string catalogItemId) + { + await ArchiveGroupAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Archive Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ArchiveGroupAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->ArchiveGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->ArchiveGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Create a Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultGroup + public RestApiResultGroup CreateGroup (string appId, CreateGroup createGroup) + { + ApiResponse localVarResponse = CreateGroupWithHttpInfo(appId, createGroup); + return localVarResponse.Data; + } + + /// + /// Create a Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultGroup + public ApiResponse< RestApiResultGroup > CreateGroupWithHttpInfo (string appId, CreateGroup createGroup) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->CreateGroup"); + // verify the required parameter 'createGroup' is set + if (createGroup == null) + throw new ApiException(400, "Missing required parameter 'createGroup' when calling CatalogGroupsApi->CreateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createGroup != null && createGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createGroup); // http body (model) parameter + } + else + { + localVarPostBody = createGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultGroup))); + } + + /// + /// Create a Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultGroup + public async System.Threading.Tasks.Task CreateGroupAsync (string appId, CreateGroup createGroup) + { + ApiResponse localVarResponse = await CreateGroupAsyncWithHttpInfo(appId, createGroup); + return localVarResponse.Data; + + } + + /// + /// Create a Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultGroup) + public async System.Threading.Tasks.Task> CreateGroupAsyncWithHttpInfo (string appId, CreateGroup createGroup) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->CreateGroup"); + // verify the required parameter 'createGroup' is set + if (createGroup == null) + throw new ApiException(400, "Missing required parameter 'createGroup' when calling CatalogGroupsApi->CreateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createGroup != null && createGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createGroup); // http body (model) parameter + } + else + { + localVarPostBody = createGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultGroup))); + } + + /// + /// Duplicate Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DuplicateGroup (string appId, string catalogItemId) + { + DuplicateGroupWithHttpInfo(appId, catalogItemId); + } + + /// + /// Duplicate Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DuplicateGroupWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->DuplicateGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->DuplicateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Duplicate Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DuplicateGroupAsync (string appId, string catalogItemId) + { + await DuplicateGroupAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Duplicate Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DuplicateGroupAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->DuplicateGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->DuplicateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get group by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Group + public Group GetGroupById (string appId, string catalogItemId) + { + ApiResponse localVarResponse = GetGroupByIdWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + } + + /// + /// Get group by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Group + public ApiResponse< Group > GetGroupByIdWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->GetGroupById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->GetGroupById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetGroupById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Group) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Group))); + } + + /// + /// Get group by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Group + public async System.Threading.Tasks.Task GetGroupByIdAsync (string appId, string catalogItemId) + { + ApiResponse localVarResponse = await GetGroupByIdAsyncWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + + } + + /// + /// Get group by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Group) + public async System.Threading.Tasks.Task> GetGroupByIdAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->GetGroupById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->GetGroupById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetGroupById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Group) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Group))); + } + + /// + /// Get paginated groups by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultGroup + public RestApiPaginationResultGroup GetGroups (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetGroupsWithHttpInfo(appId, groupTypes, searchTerm, page, limit); + return localVarResponse.Data; + } + + /// + /// Get paginated groups by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultGroup + public ApiResponse< RestApiPaginationResultGroup > GetGroupsWithHttpInfo (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->GetGroups"); + // verify the required parameter 'groupTypes' is set + if (groupTypes == null) + throw new ApiException(400, "Missing required parameter 'groupTypes' when calling CatalogGroupsApi->GetGroups"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (groupTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "groupTypes", groupTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultGroup))); + } + + /// + /// Get paginated groups by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultGroup + public async System.Threading.Tasks.Task GetGroupsAsync (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetGroupsAsyncWithHttpInfo(appId, groupTypes, searchTerm, page, limit); + return localVarResponse.Data; + + } + + /// + /// Get paginated groups by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultGroup) + public async System.Threading.Tasks.Task> GetGroupsAsyncWithHttpInfo (string appId, List groupTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->GetGroups"); + // verify the required parameter 'groupTypes' is set + if (groupTypes == null) + throw new ApiException(400, "Missing required parameter 'groupTypes' when calling CatalogGroupsApi->GetGroups"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (groupTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "groupTypes", groupTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultGroup))); + } + + /// + /// Update Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateGroup (string appId, string catalogItemId, UpdateGroup updateGroup) + { + UpdateGroupWithHttpInfo(appId, catalogItemId, updateGroup); + } + + /// + /// Update Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateGroupWithHttpInfo (string appId, string catalogItemId, UpdateGroup updateGroup) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->UpdateGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->UpdateGroup"); + // verify the required parameter 'updateGroup' is set + if (updateGroup == null) + throw new ApiException(400, "Missing required parameter 'updateGroup' when calling CatalogGroupsApi->UpdateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateGroup != null && updateGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateGroup); // http body (model) parameter + } + else + { + localVarPostBody = updateGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateGroupAsync (string appId, string catalogItemId, UpdateGroup updateGroup) + { + await UpdateGroupAsyncWithHttpInfo(appId, catalogItemId, updateGroup); + + } + + /// + /// Update Catalog Group [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateGroupAsyncWithHttpInfo (string appId, string catalogItemId, UpdateGroup updateGroup) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogGroupsApi->UpdateGroup"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogGroupsApi->UpdateGroup"); + // verify the required parameter 'updateGroup' is set + if (updateGroup == null) + throw new ApiException(400, "Missing required parameter 'updateGroup' when calling CatalogGroupsApi->UpdateGroup"); + + var localVarPath = "./api/v1.0/{appId}/catalog/groups/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateGroup != null && updateGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateGroup); // http body (model) parameter + } + else + { + localVarPostBody = updateGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/CatalogImagesApi.cs b/src/Flipdish/Api/CatalogImagesApi.cs new file mode 100644 index 00000000..3bd35ddc --- /dev/null +++ b/src/Flipdish/Api/CatalogImagesApi.cs @@ -0,0 +1,341 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICatalogImagesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Upload a Catalog Image + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// CatalogImage + CatalogImage UploadCatalogImage (string appId, System.IO.Stream image); + + /// + /// Upload a Catalog Image + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// ApiResponse of CatalogImage + ApiResponse UploadCatalogImageWithHttpInfo (string appId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Upload a Catalog Image + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// Task of CatalogImage + System.Threading.Tasks.Task UploadCatalogImageAsync (string appId, System.IO.Stream image); + + /// + /// Upload a Catalog Image + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// Task of ApiResponse (CatalogImage) + System.Threading.Tasks.Task> UploadCatalogImageAsyncWithHttpInfo (string appId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CatalogImagesApi : ICatalogImagesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CatalogImagesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CatalogImagesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Upload a Catalog Image [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// CatalogImage + public CatalogImage UploadCatalogImage (string appId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadCatalogImageWithHttpInfo(appId, image); + return localVarResponse.Data; + } + + /// + /// Upload a Catalog Image [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// ApiResponse of CatalogImage + public ApiResponse< CatalogImage > UploadCatalogImageWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogImagesApi->UploadCatalogImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling CatalogImagesApi->UploadCatalogImage"); + + var localVarPath = "./api/v1.0/{appId}/catalog/images"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadCatalogImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (CatalogImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CatalogImage))); + } + + /// + /// Upload a Catalog Image [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// Task of CatalogImage + public async System.Threading.Tasks.Task UploadCatalogImageAsync (string appId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadCatalogImageAsyncWithHttpInfo(appId, image); + return localVarResponse.Data; + + } + + /// + /// Upload a Catalog Image [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// Catalog image + /// Task of ApiResponse (CatalogImage) + public async System.Threading.Tasks.Task> UploadCatalogImageAsyncWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogImagesApi->UploadCatalogImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling CatalogImagesApi->UploadCatalogImage"); + + var localVarPath = "./api/v1.0/{appId}/catalog/images"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadCatalogImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (CatalogImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CatalogImage))); + } + + } +} diff --git a/src/Flipdish/Api/CatalogItemsApi.cs b/src/Flipdish/Api/CatalogItemsApi.cs new file mode 100644 index 00000000..bd78c9cc --- /dev/null +++ b/src/Flipdish/Api/CatalogItemsApi.cs @@ -0,0 +1,1472 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICatalogItemsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Archive Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void ArchiveCatalogItem (string appId, string catalogItemId); + + /// + /// Archive Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse ArchiveCatalogItemWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCatalogItem + RestApiResultCatalogItem CreateCatalogItem (string appId, CreateCatalogItem createCatalogItem); + + /// + /// Create a Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCatalogItem + ApiResponse CreateCatalogItemWithHttpInfo (string appId, CreateCatalogItem createCatalogItem); + /// + /// Duplicate Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void DuplicateCatalogItem (string appId, string catalogItemId); + + /// + /// Duplicate Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DuplicateCatalogItemWithHttpInfo (string appId, string catalogItemId); + /// + /// Get item by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// CatalogItem + CatalogItem GetCatalogItemById (string appId, string catalogItemId); + + /// + /// Get item by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CatalogItem + ApiResponse GetCatalogItemByIdWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated items by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultCatalogItem + RestApiPaginationResultCatalogItem GetItems (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated items by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultCatalogItem + ApiResponse GetItemsWithHttpInfo (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateCatalogItem (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem); + + /// + /// Update Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateCatalogItemWithHttpInfo (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Archive Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task ArchiveCatalogItemAsync (string appId, string catalogItemId); + + /// + /// Archive Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> ArchiveCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCatalogItem + System.Threading.Tasks.Task CreateCatalogItemAsync (string appId, CreateCatalogItem createCatalogItem); + + /// + /// Create a Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCatalogItem) + System.Threading.Tasks.Task> CreateCatalogItemAsyncWithHttpInfo (string appId, CreateCatalogItem createCatalogItem); + /// + /// Duplicate Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DuplicateCatalogItemAsync (string appId, string catalogItemId); + + /// + /// Duplicate Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DuplicateCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get item by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of CatalogItem + System.Threading.Tasks.Task GetCatalogItemByIdAsync (string appId, string catalogItemId); + + /// + /// Get item by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (CatalogItem) + System.Threading.Tasks.Task> GetCatalogItemByIdAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated items by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultCatalogItem + System.Threading.Tasks.Task GetItemsAsync (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated items by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultCatalogItem) + System.Threading.Tasks.Task> GetItemsAsyncWithHttpInfo (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateCatalogItemAsync (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem); + + /// + /// Update Catalog Item + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CatalogItemsApi : ICatalogItemsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CatalogItemsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CatalogItemsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Archive Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void ArchiveCatalogItem (string appId, string catalogItemId) + { + ArchiveCatalogItemWithHttpInfo(appId, catalogItemId); + } + + /// + /// Archive Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse ArchiveCatalogItemWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->ArchiveCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->ArchiveCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Archive Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task ArchiveCatalogItemAsync (string appId, string catalogItemId) + { + await ArchiveCatalogItemAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Archive Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ArchiveCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->ArchiveCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->ArchiveCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Create a Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCatalogItem + public RestApiResultCatalogItem CreateCatalogItem (string appId, CreateCatalogItem createCatalogItem) + { + ApiResponse localVarResponse = CreateCatalogItemWithHttpInfo(appId, createCatalogItem); + return localVarResponse.Data; + } + + /// + /// Create a Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCatalogItem + public ApiResponse< RestApiResultCatalogItem > CreateCatalogItemWithHttpInfo (string appId, CreateCatalogItem createCatalogItem) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->CreateCatalogItem"); + // verify the required parameter 'createCatalogItem' is set + if (createCatalogItem == null) + throw new ApiException(400, "Missing required parameter 'createCatalogItem' when calling CatalogItemsApi->CreateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createCatalogItem != null && createCatalogItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createCatalogItem); // http body (model) parameter + } + else + { + localVarPostBody = createCatalogItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCatalogItem))); + } + + /// + /// Create a Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCatalogItem + public async System.Threading.Tasks.Task CreateCatalogItemAsync (string appId, CreateCatalogItem createCatalogItem) + { + ApiResponse localVarResponse = await CreateCatalogItemAsyncWithHttpInfo(appId, createCatalogItem); + return localVarResponse.Data; + + } + + /// + /// Create a Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCatalogItem) + public async System.Threading.Tasks.Task> CreateCatalogItemAsyncWithHttpInfo (string appId, CreateCatalogItem createCatalogItem) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->CreateCatalogItem"); + // verify the required parameter 'createCatalogItem' is set + if (createCatalogItem == null) + throw new ApiException(400, "Missing required parameter 'createCatalogItem' when calling CatalogItemsApi->CreateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createCatalogItem != null && createCatalogItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createCatalogItem); // http body (model) parameter + } + else + { + localVarPostBody = createCatalogItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCatalogItem))); + } + + /// + /// Duplicate Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DuplicateCatalogItem (string appId, string catalogItemId) + { + DuplicateCatalogItemWithHttpInfo(appId, catalogItemId); + } + + /// + /// Duplicate Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DuplicateCatalogItemWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->DuplicateCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->DuplicateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Duplicate Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DuplicateCatalogItemAsync (string appId, string catalogItemId) + { + await DuplicateCatalogItemAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Duplicate Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DuplicateCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->DuplicateCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->DuplicateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get item by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// CatalogItem + public CatalogItem GetCatalogItemById (string appId, string catalogItemId) + { + ApiResponse localVarResponse = GetCatalogItemByIdWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + } + + /// + /// Get item by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CatalogItem + public ApiResponse< CatalogItem > GetCatalogItemByIdWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->GetCatalogItemById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->GetCatalogItemById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCatalogItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (CatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CatalogItem))); + } + + /// + /// Get item by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of CatalogItem + public async System.Threading.Tasks.Task GetCatalogItemByIdAsync (string appId, string catalogItemId) + { + ApiResponse localVarResponse = await GetCatalogItemByIdAsyncWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + + } + + /// + /// Get item by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (CatalogItem) + public async System.Threading.Tasks.Task> GetCatalogItemByIdAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->GetCatalogItemById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->GetCatalogItemById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCatalogItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (CatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CatalogItem))); + } + + /// + /// Get paginated items by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultCatalogItem + public RestApiPaginationResultCatalogItem GetItems (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetItemsWithHttpInfo(appId, itemTypes, searchTerm, page, limit); + return localVarResponse.Data; + } + + /// + /// Get paginated items by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultCatalogItem + public ApiResponse< RestApiPaginationResultCatalogItem > GetItemsWithHttpInfo (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->GetItems"); + // verify the required parameter 'itemTypes' is set + if (itemTypes == null) + throw new ApiException(400, "Missing required parameter 'itemTypes' when calling CatalogItemsApi->GetItems"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (itemTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "itemTypes", itemTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultCatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultCatalogItem))); + } + + /// + /// Get paginated items by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultCatalogItem + public async System.Threading.Tasks.Task GetItemsAsync (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetItemsAsyncWithHttpInfo(appId, itemTypes, searchTerm, page, limit); + return localVarResponse.Data; + + } + + /// + /// Get paginated items by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultCatalogItem) + public async System.Threading.Tasks.Task> GetItemsAsyncWithHttpInfo (string appId, List itemTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->GetItems"); + // verify the required parameter 'itemTypes' is set + if (itemTypes == null) + throw new ApiException(400, "Missing required parameter 'itemTypes' when calling CatalogItemsApi->GetItems"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (itemTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "itemTypes", itemTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultCatalogItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultCatalogItem))); + } + + /// + /// Update Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateCatalogItem (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem) + { + UpdateCatalogItemWithHttpInfo(appId, catalogItemId, updateCatalogItem); + } + + /// + /// Update Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateCatalogItemWithHttpInfo (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->UpdateCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->UpdateCatalogItem"); + // verify the required parameter 'updateCatalogItem' is set + if (updateCatalogItem == null) + throw new ApiException(400, "Missing required parameter 'updateCatalogItem' when calling CatalogItemsApi->UpdateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateCatalogItem != null && updateCatalogItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateCatalogItem); // http body (model) parameter + } + else + { + localVarPostBody = updateCatalogItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateCatalogItemAsync (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem) + { + await UpdateCatalogItemAsyncWithHttpInfo(appId, catalogItemId, updateCatalogItem); + + } + + /// + /// Update Catalog Item [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateCatalogItemAsyncWithHttpInfo (string appId, string catalogItemId, UpdateCatalogItem updateCatalogItem) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogItemsApi->UpdateCatalogItem"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogItemsApi->UpdateCatalogItem"); + // verify the required parameter 'updateCatalogItem' is set + if (updateCatalogItem == null) + throw new ApiException(400, "Missing required parameter 'updateCatalogItem' when calling CatalogItemsApi->UpdateCatalogItem"); + + var localVarPath = "./api/v1.0/{appId}/catalog/items/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateCatalogItem != null && updateCatalogItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateCatalogItem); // http body (model) parameter + } + else + { + localVarPostBody = updateCatalogItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateCatalogItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/CatalogProductsApi.cs b/src/Flipdish/Api/CatalogProductsApi.cs new file mode 100644 index 00000000..b61867f7 --- /dev/null +++ b/src/Flipdish/Api/CatalogProductsApi.cs @@ -0,0 +1,1472 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICatalogProductsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Archive Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void ArchiveProduct (string appId, string catalogItemId); + + /// + /// Archive Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse ArchiveProductWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultProduct + RestApiResultProduct CreateProduct (string appId, CreateProduct createProduct); + + /// + /// Create a Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultProduct + ApiResponse CreateProductWithHttpInfo (string appId, CreateProduct createProduct); + /// + /// Duplicate Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + void DuplicateProduct (string appId, string catalogItemId); + + /// + /// Duplicate Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DuplicateProductWithHttpInfo (string appId, string catalogItemId); + /// + /// Get Product by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Product + Product GetProductById (string appId, string catalogItemId); + + /// + /// Get Product by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Product + ApiResponse GetProductByIdWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated products by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultProduct + RestApiPaginationResultProduct GetProducts (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated products by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultProduct + ApiResponse GetProductsWithHttpInfo (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateProduct (string appId, string catalogItemId, UpdateProduct updateProduct); + + /// + /// Update Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateProductWithHttpInfo (string appId, string catalogItemId, UpdateProduct updateProduct); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Archive Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task ArchiveProductAsync (string appId, string catalogItemId); + + /// + /// Archive Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> ArchiveProductAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Create a Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultProduct + System.Threading.Tasks.Task CreateProductAsync (string appId, CreateProduct createProduct); + + /// + /// Create a Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultProduct) + System.Threading.Tasks.Task> CreateProductAsyncWithHttpInfo (string appId, CreateProduct createProduct); + /// + /// Duplicate Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DuplicateProductAsync (string appId, string catalogItemId); + + /// + /// Duplicate Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DuplicateProductAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get Product by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Product + System.Threading.Tasks.Task GetProductByIdAsync (string appId, string catalogItemId); + + /// + /// Get Product by Id + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Product) + System.Threading.Tasks.Task> GetProductByIdAsyncWithHttpInfo (string appId, string catalogItemId); + /// + /// Get paginated products by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultProduct + System.Threading.Tasks.Task GetProductsAsync (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// Get paginated products by app name id filtered by types + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultProduct) + System.Threading.Tasks.Task> GetProductsAsyncWithHttpInfo (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null); + /// + /// Update Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateProductAsync (string appId, string catalogItemId, UpdateProduct updateProduct); + + /// + /// Update Product + /// + /// + /// [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateProductAsyncWithHttpInfo (string appId, string catalogItemId, UpdateProduct updateProduct); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CatalogProductsApi : ICatalogProductsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CatalogProductsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CatalogProductsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Archive Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void ArchiveProduct (string appId, string catalogItemId) + { + ArchiveProductWithHttpInfo(appId, catalogItemId); + } + + /// + /// Archive Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse ArchiveProductWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->ArchiveProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->ArchiveProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Archive Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task ArchiveProductAsync (string appId, string catalogItemId) + { + await ArchiveProductAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Archive Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ArchiveProductAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->ArchiveProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->ArchiveProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Create a Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultProduct + public RestApiResultProduct CreateProduct (string appId, CreateProduct createProduct) + { + ApiResponse localVarResponse = CreateProductWithHttpInfo(appId, createProduct); + return localVarResponse.Data; + } + + /// + /// Create a Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultProduct + public ApiResponse< RestApiResultProduct > CreateProductWithHttpInfo (string appId, CreateProduct createProduct) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->CreateProduct"); + // verify the required parameter 'createProduct' is set + if (createProduct == null) + throw new ApiException(400, "Missing required parameter 'createProduct' when calling CatalogProductsApi->CreateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createProduct != null && createProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createProduct); // http body (model) parameter + } + else + { + localVarPostBody = createProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultProduct))); + } + + /// + /// Create a Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultProduct + public async System.Threading.Tasks.Task CreateProductAsync (string appId, CreateProduct createProduct) + { + ApiResponse localVarResponse = await CreateProductAsyncWithHttpInfo(appId, createProduct); + return localVarResponse.Data; + + } + + /// + /// Create a Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultProduct) + public async System.Threading.Tasks.Task> CreateProductAsyncWithHttpInfo (string appId, CreateProduct createProduct) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->CreateProduct"); + // verify the required parameter 'createProduct' is set + if (createProduct == null) + throw new ApiException(400, "Missing required parameter 'createProduct' when calling CatalogProductsApi->CreateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (createProduct != null && createProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createProduct); // http body (model) parameter + } + else + { + localVarPostBody = createProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultProduct))); + } + + /// + /// Duplicate Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DuplicateProduct (string appId, string catalogItemId) + { + DuplicateProductWithHttpInfo(appId, catalogItemId); + } + + /// + /// Duplicate Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DuplicateProductWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->DuplicateProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->DuplicateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Duplicate Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DuplicateProductAsync (string appId, string catalogItemId) + { + await DuplicateProductAsyncWithHttpInfo(appId, catalogItemId); + + } + + /// + /// Duplicate Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DuplicateProductAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->DuplicateProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->DuplicateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DuplicateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get Product by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Product + public Product GetProductById (string appId, string catalogItemId) + { + ApiResponse localVarResponse = GetProductByIdWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + } + + /// + /// Get Product by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Product + public ApiResponse< Product > GetProductByIdWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->GetProductById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->GetProductById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProductById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Product) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Product))); + } + + /// + /// Get Product by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Product + public async System.Threading.Tasks.Task GetProductByIdAsync (string appId, string catalogItemId) + { + ApiResponse localVarResponse = await GetProductByIdAsyncWithHttpInfo(appId, catalogItemId); + return localVarResponse.Data; + + } + + /// + /// Get Product by Id [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Product) + public async System.Threading.Tasks.Task> GetProductByIdAsyncWithHttpInfo (string appId, string catalogItemId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->GetProductById"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->GetProductById"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProductById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Product) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Product))); + } + + /// + /// Get paginated products by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultProduct + public RestApiPaginationResultProduct GetProducts (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetProductsWithHttpInfo(appId, productTypes, searchTerm, page, limit); + return localVarResponse.Data; + } + + /// + /// Get paginated products by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultProduct + public ApiResponse< RestApiPaginationResultProduct > GetProductsWithHttpInfo (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->GetProducts"); + // verify the required parameter 'productTypes' is set + if (productTypes == null) + throw new ApiException(400, "Missing required parameter 'productTypes' when calling CatalogProductsApi->GetProducts"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (productTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "productTypes", productTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProducts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultProduct))); + } + + /// + /// Get paginated products by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultProduct + public async System.Threading.Tasks.Task GetProductsAsync (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetProductsAsyncWithHttpInfo(appId, productTypes, searchTerm, page, limit); + return localVarResponse.Data; + + } + + /// + /// Get paginated products by app name id filtered by types [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultProduct) + public async System.Threading.Tasks.Task> GetProductsAsyncWithHttpInfo (string appId, List productTypes, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->GetProducts"); + // verify the required parameter 'productTypes' is set + if (productTypes == null) + throw new ApiException(400, "Missing required parameter 'productTypes' when calling CatalogProductsApi->GetProducts"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (productTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "productTypes", productTypes)); // query parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProducts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultProduct))); + } + + /// + /// Update Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateProduct (string appId, string catalogItemId, UpdateProduct updateProduct) + { + UpdateProductWithHttpInfo(appId, catalogItemId, updateProduct); + } + + /// + /// Update Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateProductWithHttpInfo (string appId, string catalogItemId, UpdateProduct updateProduct) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->UpdateProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->UpdateProduct"); + // verify the required parameter 'updateProduct' is set + if (updateProduct == null) + throw new ApiException(400, "Missing required parameter 'updateProduct' when calling CatalogProductsApi->UpdateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateProduct != null && updateProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateProduct); // http body (model) parameter + } + else + { + localVarPostBody = updateProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateProductAsync (string appId, string catalogItemId, UpdateProduct updateProduct) + { + await UpdateProductAsyncWithHttpInfo(appId, catalogItemId, updateProduct); + + } + + /// + /// Update Product [BETA - this endpoint is under development, do not use it in your production system] + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateProductAsyncWithHttpInfo (string appId, string catalogItemId, UpdateProduct updateProduct) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CatalogProductsApi->UpdateProduct"); + // verify the required parameter 'catalogItemId' is set + if (catalogItemId == null) + throw new ApiException(400, "Missing required parameter 'catalogItemId' when calling CatalogProductsApi->UpdateProduct"); + // verify the required parameter 'updateProduct' is set + if (updateProduct == null) + throw new ApiException(400, "Missing required parameter 'updateProduct' when calling CatalogProductsApi->UpdateProduct"); + + var localVarPath = "./api/v1.0/{appId}/catalog/products/{catalogItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (catalogItemId != null) localVarPathParams.Add("catalogItemId", this.Configuration.ApiClient.ParameterToString(catalogItemId)); // path parameter + if (updateProduct != null && updateProduct.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateProduct); // http body (model) parameter + } + else + { + localVarPostBody = updateProduct; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateProduct", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/ChannelsApi.cs b/src/Flipdish/Api/ChannelsApi.cs new file mode 100644 index 00000000..0b907603 --- /dev/null +++ b/src/Flipdish/Api/ChannelsApi.cs @@ -0,0 +1,2654 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChannelsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object AssignAppIdToSalesChannel (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse AssignAppIdToSalesChannelWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object AssignStoreToChannel (int? storeId, string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse AssignStoreToChannelWithHttpInfo (int? storeId, string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse AttachStoreToSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object DetachAllStoresFromSalesChannel (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse DetachAllStoresFromSalesChannelWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse DetachStoreFromSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + RestApiArrayResultChannel GetAssignedChannels (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + ApiResponse GetAssignedChannelsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + RestApiArrayResultChannel GetAvailableChannels (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + ApiResponse GetAvailableChannelsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultChannel + RestApiResultChannel GetChannel (int? id, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultChannel + ApiResponse GetChannelWithHttpInfo (int? id, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + RestApiArrayResultChannel GetChannels (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + ApiResponse GetChannelsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStoreChannelAssignment + RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStoreChannelAssignment + ApiResponse GetStoresAssignedToChannelWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Response + Response GetStoresBySalesChannel (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Response + ApiResponse GetStoresBySalesChannelWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse UnassignStoreFromChannelWithHttpInfo (int? storeId, string appId, int? channelId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task AssignAppIdToSalesChannelAsync (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AssignAppIdToSalesChannelAsyncWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task AssignStoreToChannelAsync (int? storeId, string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AssignStoreToChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task AttachStoreToSalesChannelAsync (string appId, int? channelId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AttachStoreToSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task DetachAllStoresFromSalesChannelAsync (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DetachAllStoresFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task DetachStoreFromSalesChannelAsync (string appId, int? channelId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DetachStoreFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + System.Threading.Tasks.Task GetAssignedChannelsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + System.Threading.Tasks.Task> GetAssignedChannelsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + System.Threading.Tasks.Task GetAvailableChannelsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + System.Threading.Tasks.Task> GetAvailableChannelsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultChannel + System.Threading.Tasks.Task GetChannelAsync (int? id, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultChannel) + System.Threading.Tasks.Task> GetChannelAsyncWithHttpInfo (int? id, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + System.Threading.Tasks.Task GetChannelsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + System.Threading.Tasks.Task> GetChannelsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStoreChannelAssignment + System.Threading.Tasks.Task GetStoresAssignedToChannelAsync (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStoreChannelAssignment) + System.Threading.Tasks.Task> GetStoresAssignedToChannelAsyncWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Response + System.Threading.Tasks.Task GetStoresBySalesChannelAsync (string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Response) + System.Threading.Tasks.Task> GetStoresBySalesChannelAsyncWithHttpInfo (string appId, int? channelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task UnassignStoreFromChannelAsync (int? storeId, string appId, int? channelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> UnassignStoreFromChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ChannelsApi : IChannelsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ChannelsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ChannelsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object AssignAppIdToSalesChannel (string appId, int? channelId) + { + ApiResponse localVarResponse = AssignAppIdToSalesChannelWithHttpInfo(appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > AssignAppIdToSalesChannelWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AssignAppIdToSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AssignAppIdToSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/assign-appId"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignAppIdToSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task AssignAppIdToSalesChannelAsync (string appId, int? channelId) + { + ApiResponse localVarResponse = await AssignAppIdToSalesChannelAsyncWithHttpInfo(appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AssignAppIdToSalesChannelAsyncWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AssignAppIdToSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AssignAppIdToSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/assign-appId"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignAppIdToSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object AssignStoreToChannel (int? storeId, string appId, int? channelId) + { + ApiResponse localVarResponse = AssignStoreToChannelWithHttpInfo(storeId, appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > AssignStoreToChannelWithHttpInfo (int? storeId, string appId, int? channelId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->AssignStoreToChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AssignStoreToChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AssignStoreToChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/assign-store"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignStoreToChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task AssignStoreToChannelAsync (int? storeId, string appId, int? channelId) + { + ApiResponse localVarResponse = await AssignStoreToChannelAsyncWithHttpInfo(storeId, appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AssignStoreToChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->AssignStoreToChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AssignStoreToChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AssignStoreToChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/assign-store"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignStoreToChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId) + { + ApiResponse localVarResponse = AttachStoreToSalesChannelWithHttpInfo(appId, channelId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > AttachStoreToSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AttachStoreToSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AttachStoreToSalesChannel"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->AttachStoreToSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task AttachStoreToSalesChannelAsync (string appId, int? channelId, int? storeId) + { + ApiResponse localVarResponse = await AttachStoreToSalesChannelAsyncWithHttpInfo(appId, channelId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AttachStoreToSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->AttachStoreToSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->AttachStoreToSalesChannel"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->AttachStoreToSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object DetachAllStoresFromSalesChannel (string appId, int? channelId) + { + ApiResponse localVarResponse = DetachAllStoresFromSalesChannelWithHttpInfo(appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DetachAllStoresFromSalesChannelWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->DetachAllStoresFromSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->DetachAllStoresFromSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachAllStoresFromSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DetachAllStoresFromSalesChannelAsync (string appId, int? channelId) + { + ApiResponse localVarResponse = await DetachAllStoresFromSalesChannelAsyncWithHttpInfo(appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DetachAllStoresFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->DetachAllStoresFromSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->DetachAllStoresFromSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachAllStoresFromSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId) + { + ApiResponse localVarResponse = DetachStoreFromSalesChannelWithHttpInfo(appId, channelId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DetachStoreFromSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachStoreFromSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DetachStoreFromSalesChannelAsync (string appId, int? channelId, int? storeId) + { + ApiResponse localVarResponse = await DetachStoreFromSalesChannelAsyncWithHttpInfo(appId, channelId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DetachStoreFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->DetachStoreFromSalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachStoreFromSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + public RestApiArrayResultChannel GetAssignedChannels (string appId) + { + ApiResponse localVarResponse = GetAssignedChannelsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + public ApiResponse< RestApiArrayResultChannel > GetAssignedChannelsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetAssignedChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels/assigned-channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAssignedChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + public async System.Threading.Tasks.Task GetAssignedChannelsAsync (string appId) + { + ApiResponse localVarResponse = await GetAssignedChannelsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + public async System.Threading.Tasks.Task> GetAssignedChannelsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetAssignedChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels/assigned-channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAssignedChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + public RestApiArrayResultChannel GetAvailableChannels (string appId) + { + ApiResponse localVarResponse = GetAvailableChannelsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + public ApiResponse< RestApiArrayResultChannel > GetAvailableChannelsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetAvailableChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels/available-channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAvailableChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + public async System.Threading.Tasks.Task GetAvailableChannelsAsync (string appId) + { + ApiResponse localVarResponse = await GetAvailableChannelsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + public async System.Threading.Tasks.Task> GetAvailableChannelsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetAvailableChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels/available-channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAvailableChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultChannel + public RestApiResultChannel GetChannel (int? id, string appId) + { + ApiResponse localVarResponse = GetChannelWithHttpInfo(id, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultChannel + public ApiResponse< RestApiResultChannel > GetChannelWithHttpInfo (int? id, string appId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ChannelsApi->GetChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultChannel + public async System.Threading.Tasks.Task GetChannelAsync (int? id, string appId) + { + ApiResponse localVarResponse = await GetChannelAsyncWithHttpInfo(id, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultChannel) + public async System.Threading.Tasks.Task> GetChannelAsyncWithHttpInfo (int? id, string appId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ChannelsApi->GetChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultChannel + public RestApiArrayResultChannel GetChannels (string appId) + { + ApiResponse localVarResponse = GetChannelsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultChannel + public ApiResponse< RestApiArrayResultChannel > GetChannelsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultChannel + public async System.Threading.Tasks.Task GetChannelsAsync (string appId) + { + ApiResponse localVarResponse = await GetChannelsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultChannel) + public async System.Threading.Tasks.Task> GetChannelsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetChannels"); + + var localVarPath = "./api/v1.0/{appId}/channels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChannels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStoreChannelAssignment + public RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId) + { + ApiResponse localVarResponse = GetStoresAssignedToChannelWithHttpInfo(appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStoreChannelAssignment + public ApiResponse< RestApiArrayResultStoreChannelAssignment > GetStoresAssignedToChannelWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetStoresAssignedToChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->GetStoresAssignedToChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/assigned-stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresAssignedToChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreChannelAssignment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelAssignment))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStoreChannelAssignment + public async System.Threading.Tasks.Task GetStoresAssignedToChannelAsync (string appId, int? channelId) + { + ApiResponse localVarResponse = await GetStoresAssignedToChannelAsyncWithHttpInfo(appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStoreChannelAssignment) + public async System.Threading.Tasks.Task> GetStoresAssignedToChannelAsyncWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetStoresAssignedToChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->GetStoresAssignedToChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/assigned-stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresAssignedToChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreChannelAssignment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelAssignment))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Response + public Response GetStoresBySalesChannel (string appId, int? channelId) + { + ApiResponse localVarResponse = GetStoresBySalesChannelWithHttpInfo(appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Response + public ApiResponse< Response > GetStoresBySalesChannelWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetStoresBySalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->GetStoresBySalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresBySalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Response) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Response))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Response + public async System.Threading.Tasks.Task GetStoresBySalesChannelAsync (string appId, int? channelId) + { + ApiResponse localVarResponse = await GetStoresBySalesChannelAsyncWithHttpInfo(appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Response) + public async System.Threading.Tasks.Task> GetStoresBySalesChannelAsyncWithHttpInfo (string appId, int? channelId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->GetStoresBySalesChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->GetStoresBySalesChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/{channelId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (channelId != null) localVarPathParams.Add("channelId", this.Configuration.ApiClient.ParameterToString(channelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresBySalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Response) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Response))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId) + { + ApiResponse localVarResponse = UnassignStoreFromChannelWithHttpInfo(storeId, appId, channelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > UnassignStoreFromChannelWithHttpInfo (int? storeId, string appId, int? channelId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->UnassignStoreFromChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->UnassignStoreFromChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->UnassignStoreFromChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/unassign-store"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnassignStoreFromChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task UnassignStoreFromChannelAsync (int? storeId, string appId, int? channelId) + { + ApiResponse localVarResponse = await UnassignStoreFromChannelAsyncWithHttpInfo(storeId, appId, channelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> UnassignStoreFromChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling ChannelsApi->UnassignStoreFromChannel"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling ChannelsApi->UnassignStoreFromChannel"); + // verify the required parameter 'channelId' is set + if (channelId == null) + throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsApi->UnassignStoreFromChannel"); + + var localVarPath = "./api/v1.0/{appId}/channels/unassign-store"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnassignStoreFromChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/ClientsApi.cs b/src/Flipdish/Api/ClientsApi.cs new file mode 100644 index 00000000..811d5176 --- /dev/null +++ b/src/Flipdish/Api/ClientsApi.cs @@ -0,0 +1,783 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IClientsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void GetClient (int? clientId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse GetClientWithHttpInfo (int? clientId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void SetSalesForceContactId (int? clientId, string salesForceContactId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetSalesForceContactIdWithHttpInfo (int? clientId, string salesForceContactId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void SetStripeCustomerId (int? clientId, string stripeCustomerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetStripeCustomerIdWithHttpInfo (int? clientId, string stripeCustomerId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task GetClientAsync (int? clientId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> GetClientAsyncWithHttpInfo (int? clientId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task SetSalesForceContactIdAsync (int? clientId, string salesForceContactId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetSalesForceContactIdAsyncWithHttpInfo (int? clientId, string salesForceContactId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task SetStripeCustomerIdAsync (int? clientId, string stripeCustomerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetStripeCustomerIdAsyncWithHttpInfo (int? clientId, string stripeCustomerId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ClientsApi : IClientsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ClientsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ClientsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void GetClient (int? clientId) + { + GetClientWithHttpInfo(clientId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse GetClientWithHttpInfo (int? clientId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->GetClient"); + + var localVarPath = "./api/v1.0/clients/{clientId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task GetClientAsync (int? clientId) + { + await GetClientAsyncWithHttpInfo(clientId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetClientAsyncWithHttpInfo (int? clientId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->GetClient"); + + var localVarPath = "./api/v1.0/clients/{clientId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void SetSalesForceContactId (int? clientId, string salesForceContactId) + { + SetSalesForceContactIdWithHttpInfo(clientId, salesForceContactId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetSalesForceContactIdWithHttpInfo (int? clientId, string salesForceContactId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->SetSalesForceContactId"); + // verify the required parameter 'salesForceContactId' is set + if (salesForceContactId == null) + throw new ApiException(400, "Missing required parameter 'salesForceContactId' when calling ClientsApi->SetSalesForceContactId"); + + var localVarPath = "./api/v1.0/clients/{clientId}/salesforcecontactid"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + if (salesForceContactId != null && salesForceContactId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(salesForceContactId); // http body (model) parameter + } + else + { + localVarPostBody = salesForceContactId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetSalesForceContactId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetSalesForceContactIdAsync (int? clientId, string salesForceContactId) + { + await SetSalesForceContactIdAsyncWithHttpInfo(clientId, salesForceContactId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetSalesForceContactIdAsyncWithHttpInfo (int? clientId, string salesForceContactId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->SetSalesForceContactId"); + // verify the required parameter 'salesForceContactId' is set + if (salesForceContactId == null) + throw new ApiException(400, "Missing required parameter 'salesForceContactId' when calling ClientsApi->SetSalesForceContactId"); + + var localVarPath = "./api/v1.0/clients/{clientId}/salesforcecontactid"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + if (salesForceContactId != null && salesForceContactId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(salesForceContactId); // http body (model) parameter + } + else + { + localVarPostBody = salesForceContactId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetSalesForceContactId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void SetStripeCustomerId (int? clientId, string stripeCustomerId) + { + SetStripeCustomerIdWithHttpInfo(clientId, stripeCustomerId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetStripeCustomerIdWithHttpInfo (int? clientId, string stripeCustomerId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->SetStripeCustomerId"); + // verify the required parameter 'stripeCustomerId' is set + if (stripeCustomerId == null) + throw new ApiException(400, "Missing required parameter 'stripeCustomerId' when calling ClientsApi->SetStripeCustomerId"); + + var localVarPath = "./api/v1.0/clients/{clientId}/stripecustomerid"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + if (stripeCustomerId != null && stripeCustomerId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stripeCustomerId); // http body (model) parameter + } + else + { + localVarPostBody = stripeCustomerId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStripeCustomerId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetStripeCustomerIdAsync (int? clientId, string stripeCustomerId) + { + await SetStripeCustomerIdAsyncWithHttpInfo(clientId, stripeCustomerId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetStripeCustomerIdAsyncWithHttpInfo (int? clientId, string stripeCustomerId) + { + // verify the required parameter 'clientId' is set + if (clientId == null) + throw new ApiException(400, "Missing required parameter 'clientId' when calling ClientsApi->SetStripeCustomerId"); + // verify the required parameter 'stripeCustomerId' is set + if (stripeCustomerId == null) + throw new ApiException(400, "Missing required parameter 'stripeCustomerId' when calling ClientsApi->SetStripeCustomerId"); + + var localVarPath = "./api/v1.0/clients/{clientId}/stripecustomerid"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (clientId != null) localVarPathParams.Add("clientId", this.Configuration.ApiClient.ParameterToString(clientId)); // path parameter + if (stripeCustomerId != null && stripeCustomerId.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stripeCustomerId); // http body (model) parameter + } + else + { + localVarPostBody = stripeCustomerId; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStripeCustomerId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/ContentSecurityPolicyApi.cs b/src/Flipdish/Api/ContentSecurityPolicyApi.cs new file mode 100644 index 00000000..99ca6d47 --- /dev/null +++ b/src/Flipdish/Api/ContentSecurityPolicyApi.cs @@ -0,0 +1,347 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IContentSecurityPolicyApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object ContentSecurityPolicyReport (CspReportRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse ContentSecurityPolicyReportWithHttpInfo (CspReportRequest request); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task ContentSecurityPolicyReportAsync (CspReportRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> ContentSecurityPolicyReportAsyncWithHttpInfo (CspReportRequest request); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ContentSecurityPolicyApi : IContentSecurityPolicyApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ContentSecurityPolicyApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ContentSecurityPolicyApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object ContentSecurityPolicyReport (CspReportRequest request) + { + ApiResponse localVarResponse = ContentSecurityPolicyReportWithHttpInfo(request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > ContentSecurityPolicyReportWithHttpInfo (CspReportRequest request) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling ContentSecurityPolicyApi->ContentSecurityPolicyReport"); + + var localVarPath = "./api/v1.0/csp/report"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ContentSecurityPolicyReport", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task ContentSecurityPolicyReportAsync (CspReportRequest request) + { + ApiResponse localVarResponse = await ContentSecurityPolicyReportAsyncWithHttpInfo(request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> ContentSecurityPolicyReportAsyncWithHttpInfo (CspReportRequest request) + { + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling ContentSecurityPolicyApi->ContentSecurityPolicyReport"); + + var localVarPath = "./api/v1.0/csp/report"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ContentSecurityPolicyReport", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/CrossSellApi.cs b/src/Flipdish/Api/CrossSellApi.cs new file mode 100644 index 00000000..3525d0b5 --- /dev/null +++ b/src/Flipdish/Api/CrossSellApi.cs @@ -0,0 +1,387 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICrossSellApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// RestApiResultCrossSellMenuItems + RestApiResultCrossSellMenuItems GetCrossSellMenuItems (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of RestApiResultCrossSellMenuItems + ApiResponse GetCrossSellMenuItemsWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of RestApiResultCrossSellMenuItems + System.Threading.Tasks.Task GetCrossSellMenuItemsAsync (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultCrossSellMenuItems) + System.Threading.Tasks.Task> GetCrossSellMenuItemsAsyncWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CrossSellApi : ICrossSellApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CrossSellApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CrossSellApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// RestApiResultCrossSellMenuItems + public RestApiResultCrossSellMenuItems GetCrossSellMenuItems (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) + { + ApiResponse localVarResponse = GetCrossSellMenuItemsWithHttpInfo(appId, menuId, menuItemId, limit, totalValue); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of RestApiResultCrossSellMenuItems + public ApiResponse< RestApiResultCrossSellMenuItems > GetCrossSellMenuItemsWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'limit' is set + if (limit == null) + throw new ApiException(400, "Missing required parameter 'limit' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'totalValue' is set + if (totalValue == null) + throw new ApiException(400, "Missing required parameter 'totalValue' when calling CrossSellApi->GetCrossSellMenuItems"); + + var localVarPath = "./api/v1.0/{appId}/crossSell/menuItems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (menuItemId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "menuItemId", menuItemId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (totalValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "totalValue", totalValue)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCrossSellMenuItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCrossSellMenuItems) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCrossSellMenuItems))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of RestApiResultCrossSellMenuItems + public async System.Threading.Tasks.Task GetCrossSellMenuItemsAsync (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) + { + ApiResponse localVarResponse = await GetCrossSellMenuItemsAsyncWithHttpInfo(appId, menuId, menuItemId, limit, totalValue); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultCrossSellMenuItems) + public async System.Threading.Tasks.Task> GetCrossSellMenuItemsAsyncWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'limit' is set + if (limit == null) + throw new ApiException(400, "Missing required parameter 'limit' when calling CrossSellApi->GetCrossSellMenuItems"); + // verify the required parameter 'totalValue' is set + if (totalValue == null) + throw new ApiException(400, "Missing required parameter 'totalValue' when calling CrossSellApi->GetCrossSellMenuItems"); + + var localVarPath = "./api/v1.0/{appId}/crossSell/menuItems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (menuItemId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "menuItemId", menuItemId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (totalValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "totalValue", totalValue)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCrossSellMenuItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCrossSellMenuItems) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCrossSellMenuItems))); + } + + } +} diff --git a/src/Flipdish/Api/CustomersApi.cs b/src/Flipdish/Api/CustomersApi.cs new file mode 100644 index 00000000..8dc9681d --- /dev/null +++ b/src/Flipdish/Api/CustomersApi.cs @@ -0,0 +1,1030 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICustomersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomer + RestApiResultCustomer CreateCustomer (string appId, CustomerCreateModel customerCreateModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomer + ApiResponse CreateCustomerWithHttpInfo (string appId, CustomerCreateModel customerCreateModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomer + RestApiResultCustomer GetCustomerById (string appId, int? customerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomer + ApiResponse GetCustomerByIdWithHttpInfo (string appId, int? customerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomers + RestApiResultCustomers GetCustomers (string appId, string phoneNumber); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomers + ApiResponse GetCustomersWithHttpInfo (string appId, string phoneNumber); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultCustomer + RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultCustomer + ApiResponse UpdateCustomerByIdWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomer + System.Threading.Tasks.Task CreateCustomerAsync (string appId, CustomerCreateModel customerCreateModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + System.Threading.Tasks.Task> CreateCustomerAsyncWithHttpInfo (string appId, CustomerCreateModel customerCreateModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomer + System.Threading.Tasks.Task GetCustomerByIdAsync (string appId, int? customerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + System.Threading.Tasks.Task> GetCustomerByIdAsyncWithHttpInfo (string appId, int? customerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomers + System.Threading.Tasks.Task GetCustomersAsync (string appId, string phoneNumber); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomers) + System.Threading.Tasks.Task> GetCustomersAsyncWithHttpInfo (string appId, string phoneNumber); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultCustomer + System.Threading.Tasks.Task UpdateCustomerByIdAsync (string appId, int? customerId, CustomerUpdateModel updateCustomer); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + System.Threading.Tasks.Task> UpdateCustomerByIdAsyncWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CustomersApi : ICustomersApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CustomersApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CustomersApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomer + public RestApiResultCustomer CreateCustomer (string appId, CustomerCreateModel customerCreateModel) + { + ApiResponse localVarResponse = CreateCustomerWithHttpInfo(appId, customerCreateModel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomer + public ApiResponse< RestApiResultCustomer > CreateCustomerWithHttpInfo (string appId, CustomerCreateModel customerCreateModel) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->CreateCustomer"); + // verify the required parameter 'customerCreateModel' is set + if (customerCreateModel == null) + throw new ApiException(400, "Missing required parameter 'customerCreateModel' when calling CustomersApi->CreateCustomer"); + + var localVarPath = "./api/v1.0/{appId}/customers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerCreateModel != null && customerCreateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerCreateModel); // http body (model) parameter + } + else + { + localVarPostBody = customerCreateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateCustomer", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomer + public async System.Threading.Tasks.Task CreateCustomerAsync (string appId, CustomerCreateModel customerCreateModel) + { + ApiResponse localVarResponse = await CreateCustomerAsyncWithHttpInfo(appId, customerCreateModel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + public async System.Threading.Tasks.Task> CreateCustomerAsyncWithHttpInfo (string appId, CustomerCreateModel customerCreateModel) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->CreateCustomer"); + // verify the required parameter 'customerCreateModel' is set + if (customerCreateModel == null) + throw new ApiException(400, "Missing required parameter 'customerCreateModel' when calling CustomersApi->CreateCustomer"); + + var localVarPath = "./api/v1.0/{appId}/customers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerCreateModel != null && customerCreateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerCreateModel); // http body (model) parameter + } + else + { + localVarPostBody = customerCreateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateCustomer", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomer + public RestApiResultCustomer GetCustomerById (string appId, int? customerId) + { + ApiResponse localVarResponse = GetCustomerByIdWithHttpInfo(appId, customerId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomer + public ApiResponse< RestApiResultCustomer > GetCustomerByIdWithHttpInfo (string appId, int? customerId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->GetCustomerById"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling CustomersApi->GetCustomerById"); + + var localVarPath = "./api/v1.0/{appId}/customers/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomerById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomer + public async System.Threading.Tasks.Task GetCustomerByIdAsync (string appId, int? customerId) + { + ApiResponse localVarResponse = await GetCustomerByIdAsyncWithHttpInfo(appId, customerId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + public async System.Threading.Tasks.Task> GetCustomerByIdAsyncWithHttpInfo (string appId, int? customerId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->GetCustomerById"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling CustomersApi->GetCustomerById"); + + var localVarPath = "./api/v1.0/{appId}/customers/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomerById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultCustomers + public RestApiResultCustomers GetCustomers (string appId, string phoneNumber) + { + ApiResponse localVarResponse = GetCustomersWithHttpInfo(appId, phoneNumber); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultCustomers + public ApiResponse< RestApiResultCustomers > GetCustomersWithHttpInfo (string appId, string phoneNumber) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->GetCustomers"); + // verify the required parameter 'phoneNumber' is set + if (phoneNumber == null) + throw new ApiException(400, "Missing required parameter 'phoneNumber' when calling CustomersApi->GetCustomers"); + + var localVarPath = "./api/v1.0/{appId}/customers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomers) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomers))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultCustomers + public async System.Threading.Tasks.Task GetCustomersAsync (string appId, string phoneNumber) + { + ApiResponse localVarResponse = await GetCustomersAsyncWithHttpInfo(appId, phoneNumber); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultCustomers) + public async System.Threading.Tasks.Task> GetCustomersAsyncWithHttpInfo (string appId, string phoneNumber) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->GetCustomers"); + // verify the required parameter 'phoneNumber' is set + if (phoneNumber == null) + throw new ApiException(400, "Missing required parameter 'phoneNumber' when calling CustomersApi->GetCustomers"); + + var localVarPath = "./api/v1.0/{appId}/customers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomers) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomers))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultCustomer + public RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer) + { + ApiResponse localVarResponse = UpdateCustomerByIdWithHttpInfo(appId, customerId, updateCustomer); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultCustomer + public ApiResponse< RestApiResultCustomer > UpdateCustomerByIdWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->UpdateCustomerById"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling CustomersApi->UpdateCustomerById"); + // verify the required parameter 'updateCustomer' is set + if (updateCustomer == null) + throw new ApiException(400, "Missing required parameter 'updateCustomer' when calling CustomersApi->UpdateCustomerById"); + + var localVarPath = "./api/v1.0/{appId}/customers/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (updateCustomer != null && updateCustomer.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateCustomer); // http body (model) parameter + } + else + { + localVarPostBody = updateCustomer; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateCustomerById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultCustomer + public async System.Threading.Tasks.Task UpdateCustomerByIdAsync (string appId, int? customerId, CustomerUpdateModel updateCustomer) + { + ApiResponse localVarResponse = await UpdateCustomerByIdAsyncWithHttpInfo(appId, customerId, updateCustomer); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultCustomer) + public async System.Threading.Tasks.Task> UpdateCustomerByIdAsyncWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling CustomersApi->UpdateCustomerById"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling CustomersApi->UpdateCustomerById"); + // verify the required parameter 'updateCustomer' is set + if (updateCustomer == null) + throw new ApiException(400, "Missing required parameter 'updateCustomer' when calling CustomersApi->UpdateCustomerById"); + + var localVarPath = "./api/v1.0/{appId}/customers/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (updateCustomer != null && updateCustomer.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateCustomer); // http body (model) parameter + } + else + { + localVarPostBody = updateCustomer; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateCustomerById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCustomer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCustomer))); + } + + } +} diff --git a/src/Flipdish/Api/DeliveryZoneApi.cs b/src/Flipdish/Api/DeliveryZoneApi.cs new file mode 100644 index 00000000..6f4f7002 --- /dev/null +++ b/src/Flipdish/Api/DeliveryZoneApi.cs @@ -0,0 +1,1012 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDeliveryZoneApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultDeliveryZone + RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase deliveryZoneBase); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultDeliveryZone + ApiResponse AddDeliveryZoneWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultDeliveryZone + RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultDeliveryZone + ApiResponse GetDeliveryZonesWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void RemoveDeliveryZone (int? storeId, int? deliveryZoneId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse RemoveDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultDeliveryZone + RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultDeliveryZone + ApiResponse UpdateDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultDeliveryZone + System.Threading.Tasks.Task AddDeliveryZoneAsync (int? storeId, DeliveryZoneBase deliveryZoneBase); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultDeliveryZone) + System.Threading.Tasks.Task> AddDeliveryZoneAsyncWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultDeliveryZone + System.Threading.Tasks.Task GetDeliveryZonesAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultDeliveryZone) + System.Threading.Tasks.Task> GetDeliveryZonesAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task RemoveDeliveryZoneAsync (int? storeId, int? deliveryZoneId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RemoveDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultDeliveryZone + System.Threading.Tasks.Task UpdateDeliveryZoneAsync (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultDeliveryZone) + System.Threading.Tasks.Task> UpdateDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class DeliveryZoneApi : IDeliveryZoneApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public DeliveryZoneApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public DeliveryZoneApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultDeliveryZone + public RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase deliveryZoneBase) + { + ApiResponse localVarResponse = AddDeliveryZoneWithHttpInfo(storeId, deliveryZoneBase); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultDeliveryZone + public ApiResponse< RestApiResultDeliveryZone > AddDeliveryZoneWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->AddDeliveryZone"); + // verify the required parameter 'deliveryZoneBase' is set + if (deliveryZoneBase == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneBase' when calling DeliveryZoneApi->AddDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneBase != null && deliveryZoneBase.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryZoneBase); // http body (model) parameter + } + else + { + localVarPostBody = deliveryZoneBase; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDeliveryZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultDeliveryZone + public async System.Threading.Tasks.Task AddDeliveryZoneAsync (int? storeId, DeliveryZoneBase deliveryZoneBase) + { + ApiResponse localVarResponse = await AddDeliveryZoneAsyncWithHttpInfo(storeId, deliveryZoneBase); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultDeliveryZone) + public async System.Threading.Tasks.Task> AddDeliveryZoneAsyncWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->AddDeliveryZone"); + // verify the required parameter 'deliveryZoneBase' is set + if (deliveryZoneBase == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneBase' when calling DeliveryZoneApi->AddDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneBase != null && deliveryZoneBase.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryZoneBase); // http body (model) parameter + } + else + { + localVarPostBody = deliveryZoneBase; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDeliveryZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultDeliveryZone + public RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId) + { + ApiResponse localVarResponse = GetDeliveryZonesWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultDeliveryZone + public ApiResponse< RestApiArrayResultDeliveryZone > GetDeliveryZonesWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->GetDeliveryZones"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeliveryZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDeliveryZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultDeliveryZone + public async System.Threading.Tasks.Task GetDeliveryZonesAsync (int? storeId) + { + ApiResponse localVarResponse = await GetDeliveryZonesAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultDeliveryZone) + public async System.Threading.Tasks.Task> GetDeliveryZonesAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->GetDeliveryZones"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeliveryZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDeliveryZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void RemoveDeliveryZone (int? storeId, int? deliveryZoneId) + { + RemoveDeliveryZoneWithHttpInfo(storeId, deliveryZoneId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RemoveDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->RemoveDeliveryZone"); + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneId' when calling DeliveryZoneApi->RemoveDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneId != null) localVarPathParams.Add("deliveryZoneId", this.Configuration.ApiClient.ParameterToString(deliveryZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RemoveDeliveryZoneAsync (int? storeId, int? deliveryZoneId) + { + await RemoveDeliveryZoneAsyncWithHttpInfo(storeId, deliveryZoneId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RemoveDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->RemoveDeliveryZone"); + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneId' when calling DeliveryZoneApi->RemoveDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneId != null) localVarPathParams.Add("deliveryZoneId", this.Configuration.ApiClient.ParameterToString(deliveryZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultDeliveryZone + public RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) + { + ApiResponse localVarResponse = UpdateDeliveryZoneWithHttpInfo(storeId, deliveryZoneId, deliveryZone); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultDeliveryZone + public ApiResponse< RestApiResultDeliveryZone > UpdateDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->UpdateDeliveryZone"); + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneId' when calling DeliveryZoneApi->UpdateDeliveryZone"); + // verify the required parameter 'deliveryZone' is set + if (deliveryZone == null) + throw new ApiException(400, "Missing required parameter 'deliveryZone' when calling DeliveryZoneApi->UpdateDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneId != null) localVarPathParams.Add("deliveryZoneId", this.Configuration.ApiClient.ParameterToString(deliveryZoneId)); // path parameter + if (deliveryZone != null && deliveryZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryZone); // http body (model) parameter + } + else + { + localVarPostBody = deliveryZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDeliveryZone))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultDeliveryZone + public async System.Threading.Tasks.Task UpdateDeliveryZoneAsync (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) + { + ApiResponse localVarResponse = await UpdateDeliveryZoneAsyncWithHttpInfo(storeId, deliveryZoneId, deliveryZone); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultDeliveryZone) + public async System.Threading.Tasks.Task> UpdateDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DeliveryZoneApi->UpdateDeliveryZone"); + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId == null) + throw new ApiException(400, "Missing required parameter 'deliveryZoneId' when calling DeliveryZoneApi->UpdateDeliveryZone"); + // verify the required parameter 'deliveryZone' is set + if (deliveryZone == null) + throw new ApiException(400, "Missing required parameter 'deliveryZone' when calling DeliveryZoneApi->UpdateDeliveryZone"); + + var localVarPath = "./api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryZoneId != null) localVarPathParams.Add("deliveryZoneId", this.Configuration.ApiClient.ParameterToString(deliveryZoneId)); // path parameter + if (deliveryZone != null && deliveryZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryZone); // http body (model) parameter + } + else + { + localVarPostBody = deliveryZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateDeliveryZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultDeliveryZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDeliveryZone))); + } + + } +} diff --git a/src/Flipdish/Api/DeviceApi.cs b/src/Flipdish/Api/DeviceApi.cs new file mode 100644 index 00000000..a1c9a021 --- /dev/null +++ b/src/Flipdish/Api/DeviceApi.cs @@ -0,0 +1,1034 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDeviceApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultClientDeviceEnrollmentResult + RestApiResultClientDeviceEnrollmentResult AssignDevice (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultClientDeviceEnrollmentResult + ApiResponse AssignDeviceWithHttpInfo (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultClientDeviceEnrollmentResult + RestApiResultClientDeviceEnrollmentResult EnrollDevice (string appId, ClientDeviceEnroll deviceEnrollmentRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultClientDeviceEnrollmentResult + ApiResponse EnrollDeviceWithHttpInfo (string appId, ClientDeviceEnroll deviceEnrollmentRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultClientDevice + RestApiResultClientDevice GetDeviceDetails (string appId, string deviceModel, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultClientDevice + ApiResponse GetDeviceDetailsWithHttpInfo (string appId, string deviceModel, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiArrayResultClientDeviceSummary + RestApiArrayResultClientDeviceSummary SearchDevices (string appId, int? storeId = null, string deviceModel = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultClientDeviceSummary + ApiResponse SearchDevicesWithHttpInfo (string appId, int? storeId = null, string deviceModel = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultClientDeviceEnrollmentResult + System.Threading.Tasks.Task AssignDeviceAsync (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultClientDeviceEnrollmentResult) + System.Threading.Tasks.Task> AssignDeviceAsyncWithHttpInfo (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultClientDeviceEnrollmentResult + System.Threading.Tasks.Task EnrollDeviceAsync (string appId, ClientDeviceEnroll deviceEnrollmentRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultClientDeviceEnrollmentResult) + System.Threading.Tasks.Task> EnrollDeviceAsyncWithHttpInfo (string appId, ClientDeviceEnroll deviceEnrollmentRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultClientDevice + System.Threading.Tasks.Task GetDeviceDetailsAsync (string appId, string deviceModel, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultClientDevice) + System.Threading.Tasks.Task> GetDeviceDetailsAsyncWithHttpInfo (string appId, string deviceModel, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultClientDeviceSummary + System.Threading.Tasks.Task SearchDevicesAsync (string appId, int? storeId = null, string deviceModel = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultClientDeviceSummary) + System.Threading.Tasks.Task> SearchDevicesAsyncWithHttpInfo (string appId, int? storeId = null, string deviceModel = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class DeviceApi : IDeviceApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public DeviceApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public DeviceApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultClientDeviceEnrollmentResult + public RestApiResultClientDeviceEnrollmentResult AssignDevice (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest) + { + ApiResponse localVarResponse = AssignDeviceWithHttpInfo(appId, assignDeviceRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultClientDeviceEnrollmentResult + public ApiResponse< RestApiResultClientDeviceEnrollmentResult > AssignDeviceWithHttpInfo (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->AssignDevice"); + // verify the required parameter 'assignDeviceRequest' is set + if (assignDeviceRequest == null) + throw new ApiException(400, "Missing required parameter 'assignDeviceRequest' when calling DeviceApi->AssignDevice"); + + var localVarPath = "./api/v1.0/{appId}/devices/assign"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (assignDeviceRequest != null && assignDeviceRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(assignDeviceRequest); // http body (model) parameter + } + else + { + localVarPostBody = assignDeviceRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDeviceEnrollmentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDeviceEnrollmentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultClientDeviceEnrollmentResult + public async System.Threading.Tasks.Task AssignDeviceAsync (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest) + { + ApiResponse localVarResponse = await AssignDeviceAsyncWithHttpInfo(appId, assignDeviceRequest); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultClientDeviceEnrollmentResult) + public async System.Threading.Tasks.Task> AssignDeviceAsyncWithHttpInfo (string appId, ClientDeviceAssignEnrolledDevice assignDeviceRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->AssignDevice"); + // verify the required parameter 'assignDeviceRequest' is set + if (assignDeviceRequest == null) + throw new ApiException(400, "Missing required parameter 'assignDeviceRequest' when calling DeviceApi->AssignDevice"); + + var localVarPath = "./api/v1.0/{appId}/devices/assign"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (assignDeviceRequest != null && assignDeviceRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(assignDeviceRequest); // http body (model) parameter + } + else + { + localVarPostBody = assignDeviceRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDeviceEnrollmentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDeviceEnrollmentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultClientDeviceEnrollmentResult + public RestApiResultClientDeviceEnrollmentResult EnrollDevice (string appId, ClientDeviceEnroll deviceEnrollmentRequest) + { + ApiResponse localVarResponse = EnrollDeviceWithHttpInfo(appId, deviceEnrollmentRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultClientDeviceEnrollmentResult + public ApiResponse< RestApiResultClientDeviceEnrollmentResult > EnrollDeviceWithHttpInfo (string appId, ClientDeviceEnroll deviceEnrollmentRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->EnrollDevice"); + // verify the required parameter 'deviceEnrollmentRequest' is set + if (deviceEnrollmentRequest == null) + throw new ApiException(400, "Missing required parameter 'deviceEnrollmentRequest' when calling DeviceApi->EnrollDevice"); + + var localVarPath = "./api/v1.0/{appId}/devices/enroll"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceEnrollmentRequest != null && deviceEnrollmentRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deviceEnrollmentRequest); // http body (model) parameter + } + else + { + localVarPostBody = deviceEnrollmentRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EnrollDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDeviceEnrollmentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDeviceEnrollmentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultClientDeviceEnrollmentResult + public async System.Threading.Tasks.Task EnrollDeviceAsync (string appId, ClientDeviceEnroll deviceEnrollmentRequest) + { + ApiResponse localVarResponse = await EnrollDeviceAsyncWithHttpInfo(appId, deviceEnrollmentRequest); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultClientDeviceEnrollmentResult) + public async System.Threading.Tasks.Task> EnrollDeviceAsyncWithHttpInfo (string appId, ClientDeviceEnroll deviceEnrollmentRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->EnrollDevice"); + // verify the required parameter 'deviceEnrollmentRequest' is set + if (deviceEnrollmentRequest == null) + throw new ApiException(400, "Missing required parameter 'deviceEnrollmentRequest' when calling DeviceApi->EnrollDevice"); + + var localVarPath = "./api/v1.0/{appId}/devices/enroll"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceEnrollmentRequest != null && deviceEnrollmentRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deviceEnrollmentRequest); // http body (model) parameter + } + else + { + localVarPostBody = deviceEnrollmentRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EnrollDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDeviceEnrollmentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDeviceEnrollmentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultClientDevice + public RestApiResultClientDevice GetDeviceDetails (string appId, string deviceModel, string deviceId) + { + ApiResponse localVarResponse = GetDeviceDetailsWithHttpInfo(appId, deviceModel, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultClientDevice + public ApiResponse< RestApiResultClientDevice > GetDeviceDetailsWithHttpInfo (string appId, string deviceModel, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->GetDeviceDetails"); + // verify the required parameter 'deviceModel' is set + if (deviceModel == null) + throw new ApiException(400, "Missing required parameter 'deviceModel' when calling DeviceApi->GetDeviceDetails"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling DeviceApi->GetDeviceDetails"); + + var localVarPath = "./api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceModel != null) localVarPathParams.Add("deviceModel", this.Configuration.ApiClient.ParameterToString(deviceModel)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeviceDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDevice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDevice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultClientDevice + public async System.Threading.Tasks.Task GetDeviceDetailsAsync (string appId, string deviceModel, string deviceId) + { + ApiResponse localVarResponse = await GetDeviceDetailsAsyncWithHttpInfo(appId, deviceModel, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultClientDevice) + public async System.Threading.Tasks.Task> GetDeviceDetailsAsyncWithHttpInfo (string appId, string deviceModel, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->GetDeviceDetails"); + // verify the required parameter 'deviceModel' is set + if (deviceModel == null) + throw new ApiException(400, "Missing required parameter 'deviceModel' when calling DeviceApi->GetDeviceDetails"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling DeviceApi->GetDeviceDetails"); + + var localVarPath = "./api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceModel != null) localVarPathParams.Add("deviceModel", this.Configuration.ApiClient.ParameterToString(deviceModel)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeviceDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultClientDevice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultClientDevice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiArrayResultClientDeviceSummary + public RestApiArrayResultClientDeviceSummary SearchDevices (string appId, int? storeId = null, string deviceModel = null) + { + ApiResponse localVarResponse = SearchDevicesWithHttpInfo(appId, storeId, deviceModel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultClientDeviceSummary + public ApiResponse< RestApiArrayResultClientDeviceSummary > SearchDevicesWithHttpInfo (string appId, int? storeId = null, string deviceModel = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->SearchDevices"); + + var localVarPath = "./api/v1.0/{appId}/devices/search"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (deviceModel != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceModel", deviceModel)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchDevices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultClientDeviceSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultClientDeviceSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiArrayResultClientDeviceSummary + public async System.Threading.Tasks.Task SearchDevicesAsync (string appId, int? storeId = null, string deviceModel = null) + { + ApiResponse localVarResponse = await SearchDevicesAsyncWithHttpInfo(appId, storeId, deviceModel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultClientDeviceSummary) + public async System.Threading.Tasks.Task> SearchDevicesAsyncWithHttpInfo (string appId, int? storeId = null, string deviceModel = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling DeviceApi->SearchDevices"); + + var localVarPath = "./api/v1.0/{appId}/devices/search"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (deviceModel != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceModel", deviceModel)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchDevices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultClientDeviceSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultClientDeviceSummary))); + } + + } +} diff --git a/src/Flipdish/Api/DriversApi.cs b/src/Flipdish/Api/DriversApi.cs new file mode 100644 index 00000000..1416f5f1 --- /dev/null +++ b/src/Flipdish/Api/DriversApi.cs @@ -0,0 +1,2341 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDriversApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse DriversAddDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object DriversDeleteDriverProfileImage (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse DriversDeleteDriverProfileImageWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object DriversDriverLogin (DriverLoginModel driverLoginModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse DriversDriverLoginWithHttpInfo (DriverLoginModel driverLoginModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse DriversDriverRequestLoginCodeSmsWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object DriversGetDriverProfile (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse DriversGetDriverProfileWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object DriversGetStoresForDriver (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse DriversGetStoresForDriverWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse DriversRemoveDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object DriversSetDriverPresenceForStore (int? storeId, string presence); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse DriversSetDriverPresenceForStoreWithHttpInfo (int? storeId, string presence); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object DriversSetDriverProfileImage (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse DriversSetDriverProfileImageWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse DriversUpdateDeliveryTrackingStatusWithHttpInfo (int? orderId, string deliveryTrackingStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse DriversUpdateDriverProfileWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task DriversAddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversAddDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task DriversDeleteDriverProfileImageAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDeleteDriverProfileImageAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task DriversDriverLoginAsync (DriverLoginModel driverLoginModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDriverLoginAsyncWithHttpInfo (DriverLoginModel driverLoginModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task DriversDriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDriverRequestLoginCodeSmsAsyncWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task DriversGetDriverProfileAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversGetDriverProfileAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task DriversGetStoresForDriverAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversGetStoresForDriverAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task DriversRemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversRemoveDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task DriversSetDriverPresenceForStoreAsync (int? storeId, string presence); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversSetDriverPresenceForStoreAsyncWithHttpInfo (int? storeId, string presence); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task DriversSetDriverProfileImageAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversSetDriverProfileImageAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task DriversUpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversUpdateDeliveryTrackingStatusAsyncWithHttpInfo (int? orderId, string deliveryTrackingStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task DriversUpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversUpdateDriverProfileAsyncWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class DriversApi : IDriversApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public DriversApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public DriversApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) + { + ApiResponse localVarResponse = DriversAddDriverNotificationTokenWithHttpInfo(updateDriverToken); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversAddDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken updateDriverToken) + { + // verify the required parameter 'updateDriverToken' is set + if (updateDriverToken == null) + throw new ApiException(400, "Missing required parameter 'updateDriverToken' when calling DriversApi->DriversAddDriverNotificationToken"); + + var localVarPath = "./api/v1.0/drivers/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateDriverToken != null && updateDriverToken.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateDriverToken); // http body (model) parameter + } + else + { + localVarPostBody = updateDriverToken; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversAddDriverNotificationToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversAddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken) + { + ApiResponse localVarResponse = await DriversAddDriverNotificationTokenAsyncWithHttpInfo(updateDriverToken); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversAddDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken updateDriverToken) + { + // verify the required parameter 'updateDriverToken' is set + if (updateDriverToken == null) + throw new ApiException(400, "Missing required parameter 'updateDriverToken' when calling DriversApi->DriversAddDriverNotificationToken"); + + var localVarPath = "./api/v1.0/drivers/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateDriverToken != null && updateDriverToken.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateDriverToken); // http body (model) parameter + } + else + { + localVarPostBody = updateDriverToken; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversAddDriverNotificationToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object DriversDeleteDriverProfileImage () + { + ApiResponse localVarResponse = DriversDeleteDriverProfileImageWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > DriversDeleteDriverProfileImageWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDeleteDriverProfileImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task DriversDeleteDriverProfileImageAsync () + { + ApiResponse localVarResponse = await DriversDeleteDriverProfileImageAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversDeleteDriverProfileImageAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDeleteDriverProfileImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object DriversDriverLogin (DriverLoginModel driverLoginModel) + { + ApiResponse localVarResponse = DriversDriverLoginWithHttpInfo(driverLoginModel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversDriverLoginWithHttpInfo (DriverLoginModel driverLoginModel) + { + // verify the required parameter 'driverLoginModel' is set + if (driverLoginModel == null) + throw new ApiException(400, "Missing required parameter 'driverLoginModel' when calling DriversApi->DriversDriverLogin"); + + var localVarPath = "./api/v1.0/drivers/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (driverLoginModel != null && driverLoginModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(driverLoginModel); // http body (model) parameter + } + else + { + localVarPostBody = driverLoginModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDriverLogin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversDriverLoginAsync (DriverLoginModel driverLoginModel) + { + ApiResponse localVarResponse = await DriversDriverLoginAsyncWithHttpInfo(driverLoginModel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversDriverLoginAsyncWithHttpInfo (DriverLoginModel driverLoginModel) + { + // verify the required parameter 'driverLoginModel' is set + if (driverLoginModel == null) + throw new ApiException(400, "Missing required parameter 'driverLoginModel' when calling DriversApi->DriversDriverLogin"); + + var localVarPath = "./api/v1.0/drivers/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (driverLoginModel != null && driverLoginModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(driverLoginModel); // http body (model) parameter + } + else + { + localVarPostBody = driverLoginModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDriverLogin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) + { + ApiResponse localVarResponse = DriversDriverRequestLoginCodeSmsWithHttpInfo(driverRequestLoginPinModel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversDriverRequestLoginCodeSmsWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel) + { + // verify the required parameter 'driverRequestLoginPinModel' is set + if (driverRequestLoginPinModel == null) + throw new ApiException(400, "Missing required parameter 'driverRequestLoginPinModel' when calling DriversApi->DriversDriverRequestLoginCodeSms"); + + var localVarPath = "./api/v1.0/drivers/pin"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (driverRequestLoginPinModel != null && driverRequestLoginPinModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(driverRequestLoginPinModel); // http body (model) parameter + } + else + { + localVarPostBody = driverRequestLoginPinModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDriverRequestLoginCodeSms", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversDriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel) + { + ApiResponse localVarResponse = await DriversDriverRequestLoginCodeSmsAsyncWithHttpInfo(driverRequestLoginPinModel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversDriverRequestLoginCodeSmsAsyncWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel) + { + // verify the required parameter 'driverRequestLoginPinModel' is set + if (driverRequestLoginPinModel == null) + throw new ApiException(400, "Missing required parameter 'driverRequestLoginPinModel' when calling DriversApi->DriversDriverRequestLoginCodeSms"); + + var localVarPath = "./api/v1.0/drivers/pin"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (driverRequestLoginPinModel != null && driverRequestLoginPinModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(driverRequestLoginPinModel); // http body (model) parameter + } + else + { + localVarPostBody = driverRequestLoginPinModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversDriverRequestLoginCodeSms", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object DriversGetDriverProfile () + { + ApiResponse localVarResponse = DriversGetDriverProfileWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > DriversGetDriverProfileWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversGetDriverProfile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task DriversGetDriverProfileAsync () + { + ApiResponse localVarResponse = await DriversGetDriverProfileAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversGetDriverProfileAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversGetDriverProfile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object DriversGetStoresForDriver () + { + ApiResponse localVarResponse = DriversGetStoresForDriverWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > DriversGetStoresForDriverWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/assignedstores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversGetStoresForDriver", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task DriversGetStoresForDriverAsync () + { + ApiResponse localVarResponse = await DriversGetStoresForDriverAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversGetStoresForDriverAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/assignedstores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversGetStoresForDriver", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) + { + ApiResponse localVarResponse = DriversRemoveDriverNotificationTokenWithHttpInfo(removeDriverToken); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversRemoveDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken removeDriverToken) + { + // verify the required parameter 'removeDriverToken' is set + if (removeDriverToken == null) + throw new ApiException(400, "Missing required parameter 'removeDriverToken' when calling DriversApi->DriversRemoveDriverNotificationToken"); + + var localVarPath = "./api/v1.0/drivers/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (removeDriverToken != null && removeDriverToken.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(removeDriverToken); // http body (model) parameter + } + else + { + localVarPostBody = removeDriverToken; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversRemoveDriverNotificationToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversRemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken) + { + ApiResponse localVarResponse = await DriversRemoveDriverNotificationTokenAsyncWithHttpInfo(removeDriverToken); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversRemoveDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken removeDriverToken) + { + // verify the required parameter 'removeDriverToken' is set + if (removeDriverToken == null) + throw new ApiException(400, "Missing required parameter 'removeDriverToken' when calling DriversApi->DriversRemoveDriverNotificationToken"); + + var localVarPath = "./api/v1.0/drivers/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (removeDriverToken != null && removeDriverToken.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(removeDriverToken); // http body (model) parameter + } + else + { + localVarPostBody = removeDriverToken; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversRemoveDriverNotificationToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object DriversSetDriverPresenceForStore (int? storeId, string presence) + { + ApiResponse localVarResponse = DriversSetDriverPresenceForStoreWithHttpInfo(storeId, presence); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversSetDriverPresenceForStoreWithHttpInfo (int? storeId, string presence) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DriversApi->DriversSetDriverPresenceForStore"); + // verify the required parameter 'presence' is set + if (presence == null) + throw new ApiException(400, "Missing required parameter 'presence' when calling DriversApi->DriversSetDriverPresenceForStore"); + + var localVarPath = "./api/v1.0/drivers/stores/{storeId}/presence/{presence}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (presence != null) localVarPathParams.Add("presence", this.Configuration.ApiClient.ParameterToString(presence)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversSetDriverPresenceForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversSetDriverPresenceForStoreAsync (int? storeId, string presence) + { + ApiResponse localVarResponse = await DriversSetDriverPresenceForStoreAsyncWithHttpInfo(storeId, presence); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversSetDriverPresenceForStoreAsyncWithHttpInfo (int? storeId, string presence) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling DriversApi->DriversSetDriverPresenceForStore"); + // verify the required parameter 'presence' is set + if (presence == null) + throw new ApiException(400, "Missing required parameter 'presence' when calling DriversApi->DriversSetDriverPresenceForStore"); + + var localVarPath = "./api/v1.0/drivers/stores/{storeId}/presence/{presence}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (presence != null) localVarPathParams.Add("presence", this.Configuration.ApiClient.ParameterToString(presence)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversSetDriverPresenceForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object DriversSetDriverProfileImage () + { + ApiResponse localVarResponse = DriversSetDriverProfileImageWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > DriversSetDriverProfileImageWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversSetDriverProfileImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task DriversSetDriverProfileImageAsync () + { + ApiResponse localVarResponse = await DriversSetDriverProfileImageAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversSetDriverProfileImageAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/drivers/profile/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversSetDriverProfileImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) + { + ApiResponse localVarResponse = DriversUpdateDeliveryTrackingStatusWithHttpInfo(orderId, deliveryTrackingStatus); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversUpdateDeliveryTrackingStatusWithHttpInfo (int? orderId, string deliveryTrackingStatus) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling DriversApi->DriversUpdateDeliveryTrackingStatus"); + // verify the required parameter 'deliveryTrackingStatus' is set + if (deliveryTrackingStatus == null) + throw new ApiException(400, "Missing required parameter 'deliveryTrackingStatus' when calling DriversApi->DriversUpdateDeliveryTrackingStatus"); + + var localVarPath = "./api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (deliveryTrackingStatus != null) localVarPathParams.Add("deliveryTrackingStatus", this.Configuration.ApiClient.ParameterToString(deliveryTrackingStatus)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversUpdateDeliveryTrackingStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversUpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus) + { + ApiResponse localVarResponse = await DriversUpdateDeliveryTrackingStatusAsyncWithHttpInfo(orderId, deliveryTrackingStatus); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversUpdateDeliveryTrackingStatusAsyncWithHttpInfo (int? orderId, string deliveryTrackingStatus) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling DriversApi->DriversUpdateDeliveryTrackingStatus"); + // verify the required parameter 'deliveryTrackingStatus' is set + if (deliveryTrackingStatus == null) + throw new ApiException(400, "Missing required parameter 'deliveryTrackingStatus' when calling DriversApi->DriversUpdateDeliveryTrackingStatus"); + + var localVarPath = "./api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (deliveryTrackingStatus != null) localVarPathParams.Add("deliveryTrackingStatus", this.Configuration.ApiClient.ParameterToString(deliveryTrackingStatus)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversUpdateDeliveryTrackingStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) + { + ApiResponse localVarResponse = DriversUpdateDriverProfileWithHttpInfo(updateDriverProfile); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > DriversUpdateDriverProfileWithHttpInfo (UpdateDriverProfileModel updateDriverProfile) + { + // verify the required parameter 'updateDriverProfile' is set + if (updateDriverProfile == null) + throw new ApiException(400, "Missing required parameter 'updateDriverProfile' when calling DriversApi->DriversUpdateDriverProfile"); + + var localVarPath = "./api/v1.0/drivers/profile"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateDriverProfile != null && updateDriverProfile.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateDriverProfile); // http body (model) parameter + } + else + { + localVarPostBody = updateDriverProfile; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversUpdateDriverProfile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversUpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile) + { + ApiResponse localVarResponse = await DriversUpdateDriverProfileAsyncWithHttpInfo(updateDriverProfile); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversUpdateDriverProfileAsyncWithHttpInfo (UpdateDriverProfileModel updateDriverProfile) + { + // verify the required parameter 'updateDriverProfile' is set + if (updateDriverProfile == null) + throw new ApiException(400, "Missing required parameter 'updateDriverProfile' when calling DriversApi->DriversUpdateDriverProfile"); + + var localVarPath = "./api/v1.0/drivers/profile"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (updateDriverProfile != null && updateDriverProfile.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateDriverProfile); // http body (model) parameter + } + else + { + localVarPostBody = updateDriverProfile; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DriversUpdateDriverProfile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/EndUserFeesApi.cs b/src/Flipdish/Api/EndUserFeesApi.cs new file mode 100644 index 00000000..f7b3894b --- /dev/null +++ b/src/Flipdish/Api/EndUserFeesApi.cs @@ -0,0 +1,837 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEndUserFeesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object CreateEndUserFeeConfig (CreateEndUserFeeConfig input, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse CreateEndUserFeeConfigWithHttpInfo (CreateEndUserFeeConfig input, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultGetEndUserFeeConfigsResponse + RestApiResultGetEndUserFeeConfigsResponse GetEndUserFeesForStore (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultGetEndUserFeeConfigsResponse + ApiResponse GetEndUserFeesForStoreWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultSetV2FeeCalculationRequest + RestApiResultSetV2FeeCalculationRequest SetV2FeeCalculation (SetV2FeeCalculationRequest input, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultSetV2FeeCalculationRequest + ApiResponse SetV2FeeCalculationWithHttpInfo (SetV2FeeCalculationRequest input, string appId, int? storeId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task CreateEndUserFeeConfigAsync (CreateEndUserFeeConfig input, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateEndUserFeeConfigAsyncWithHttpInfo (CreateEndUserFeeConfig input, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultGetEndUserFeeConfigsResponse + System.Threading.Tasks.Task GetEndUserFeesForStoreAsync (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultGetEndUserFeeConfigsResponse) + System.Threading.Tasks.Task> GetEndUserFeesForStoreAsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultSetV2FeeCalculationRequest + System.Threading.Tasks.Task SetV2FeeCalculationAsync (SetV2FeeCalculationRequest input, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultSetV2FeeCalculationRequest) + System.Threading.Tasks.Task> SetV2FeeCalculationAsyncWithHttpInfo (SetV2FeeCalculationRequest input, string appId, int? storeId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class EndUserFeesApi : IEndUserFeesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public EndUserFeesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public EndUserFeesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object CreateEndUserFeeConfig (CreateEndUserFeeConfig input, string appId, int? storeId) + { + ApiResponse localVarResponse = CreateEndUserFeeConfigWithHttpInfo(input, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > CreateEndUserFeeConfigWithHttpInfo (CreateEndUserFeeConfig input, string appId, int? storeId) + { + // verify the required parameter 'input' is set + if (input == null) + throw new ApiException(400, "Missing required parameter 'input' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (input != null && input.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(input); // http body (model) parameter + } + else + { + localVarPostBody = input; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateEndUserFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task CreateEndUserFeeConfigAsync (CreateEndUserFeeConfig input, string appId, int? storeId) + { + ApiResponse localVarResponse = await CreateEndUserFeeConfigAsyncWithHttpInfo(input, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateEndUserFeeConfigAsyncWithHttpInfo (CreateEndUserFeeConfig input, string appId, int? storeId) + { + // verify the required parameter 'input' is set + if (input == null) + throw new ApiException(400, "Missing required parameter 'input' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->CreateEndUserFeeConfig"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (input != null && input.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(input); // http body (model) parameter + } + else + { + localVarPostBody = input; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateEndUserFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultGetEndUserFeeConfigsResponse + public RestApiResultGetEndUserFeeConfigsResponse GetEndUserFeesForStore (string appId, int? storeId) + { + ApiResponse localVarResponse = GetEndUserFeesForStoreWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultGetEndUserFeeConfigsResponse + public ApiResponse< RestApiResultGetEndUserFeeConfigsResponse > GetEndUserFeesForStoreWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->GetEndUserFeesForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->GetEndUserFeesForStore"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEndUserFeesForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultGetEndUserFeeConfigsResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultGetEndUserFeeConfigsResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultGetEndUserFeeConfigsResponse + public async System.Threading.Tasks.Task GetEndUserFeesForStoreAsync (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetEndUserFeesForStoreAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultGetEndUserFeeConfigsResponse) + public async System.Threading.Tasks.Task> GetEndUserFeesForStoreAsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->GetEndUserFeesForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->GetEndUserFeesForStore"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEndUserFeesForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultGetEndUserFeeConfigsResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultGetEndUserFeeConfigsResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultSetV2FeeCalculationRequest + public RestApiResultSetV2FeeCalculationRequest SetV2FeeCalculation (SetV2FeeCalculationRequest input, string appId, int? storeId) + { + ApiResponse localVarResponse = SetV2FeeCalculationWithHttpInfo(input, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultSetV2FeeCalculationRequest + public ApiResponse< RestApiResultSetV2FeeCalculationRequest > SetV2FeeCalculationWithHttpInfo (SetV2FeeCalculationRequest input, string appId, int? storeId) + { + // verify the required parameter 'input' is set + if (input == null) + throw new ApiException(400, "Missing required parameter 'input' when calling EndUserFeesApi->SetV2FeeCalculation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->SetV2FeeCalculation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->SetV2FeeCalculation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees/v2-fee-calculation"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (input != null && input.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(input); // http body (model) parameter + } + else + { + localVarPostBody = input; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetV2FeeCalculation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSetV2FeeCalculationRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSetV2FeeCalculationRequest))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultSetV2FeeCalculationRequest + public async System.Threading.Tasks.Task SetV2FeeCalculationAsync (SetV2FeeCalculationRequest input, string appId, int? storeId) + { + ApiResponse localVarResponse = await SetV2FeeCalculationAsyncWithHttpInfo(input, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultSetV2FeeCalculationRequest) + public async System.Threading.Tasks.Task> SetV2FeeCalculationAsyncWithHttpInfo (SetV2FeeCalculationRequest input, string appId, int? storeId) + { + // verify the required parameter 'input' is set + if (input == null) + throw new ApiException(400, "Missing required parameter 'input' when calling EndUserFeesApi->SetV2FeeCalculation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EndUserFeesApi->SetV2FeeCalculation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EndUserFeesApi->SetV2FeeCalculation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/end-user-fees/v2-fee-calculation"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (input != null && input.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(input); // http body (model) parameter + } + else + { + localVarPostBody = input; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetV2FeeCalculation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSetV2FeeCalculationRequest) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSetV2FeeCalculationRequest))); + } + + } +} diff --git a/src/Flipdish/Api/EventsApi.cs b/src/Flipdish/Api/EventsApi.cs new file mode 100644 index 00000000..ff7f7f1f --- /dev/null +++ b/src/Flipdish/Api/EventsApi.cs @@ -0,0 +1,3295 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IEventsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetCustomerEvents (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetCustomerEventsWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetEvents (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetEventsWithHttpInfo (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// EventSearchResult + EventSearchResult GetEventsById (Guid? eventId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of EventSearchResult + ApiResponse GetEventsByIdWithHttpInfo (Guid? eventId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetMenuEvents (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetMenuEventsWithHttpInfo (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetOrderEvents (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetOrderEventsWithHttpInfo (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetOrderEventsByCustomer (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetOrderEventsByCustomerWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetStoreEvents (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetStoreEventsWithHttpInfo (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetUserEvents (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetUserEventsWithHttpInfo (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + RestApiEventSearchPaginationResult GetWhiteLabelEvents (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + ApiResponse GetWhiteLabelEventsWithHttpInfo (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetCustomerEventsAsync (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetCustomerEventsAsyncWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetEventsAsync (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetEventsAsyncWithHttpInfo (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of EventSearchResult + System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (EventSearchResult) + System.Threading.Tasks.Task> GetEventsByIdAsyncWithHttpInfo (Guid? eventId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetMenuEventsAsync (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetMenuEventsAsyncWithHttpInfo (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetOrderEventsAsync (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetOrderEventsAsyncWithHttpInfo (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetOrderEventsByCustomerAsync (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetOrderEventsByCustomerAsyncWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetStoreEventsAsync (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetStoreEventsAsyncWithHttpInfo (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetUserEventsAsync (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetUserEventsAsyncWithHttpInfo (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + System.Threading.Tasks.Task GetWhiteLabelEventsAsync (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + System.Threading.Tasks.Task> GetWhiteLabelEventsAsyncWithHttpInfo (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class EventsApi : IEventsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public EventsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public EventsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetCustomerEvents (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetCustomerEventsWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetCustomerEventsWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetCustomerEvents"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling EventsApi->GetCustomerEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/customer/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomerEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetCustomerEventsAsync (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetCustomerEventsAsyncWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetCustomerEventsAsyncWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetCustomerEvents"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling EventsApi->GetCustomerEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/customer/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomerEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetEvents (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetEventsWithHttpInfo(appId, whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetEventsWithHttpInfo (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetEvents"); + + var localVarPath = "./api/v1.0/{appId}/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (whiteLabelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelId", whiteLabelId)); // query parameter + if (customerId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "customerId", customerId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetEventsAsync (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetEventsAsyncWithHttpInfo(appId, whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetEventsAsyncWithHttpInfo (string appId, int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetEvents"); + + var localVarPath = "./api/v1.0/{appId}/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (whiteLabelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelId", whiteLabelId)); // query parameter + if (customerId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "customerId", customerId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// EventSearchResult + public EventSearchResult GetEventsById (Guid? eventId, string appId) + { + ApiResponse localVarResponse = GetEventsByIdWithHttpInfo(eventId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of EventSearchResult + public ApiResponse< EventSearchResult > GetEventsByIdWithHttpInfo (Guid? eventId, string appId) + { + // verify the required parameter 'eventId' is set + if (eventId == null) + throw new ApiException(400, "Missing required parameter 'eventId' when calling EventsApi->GetEventsById"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetEventsById"); + + var localVarPath = "./api/v1.0/{appId}/events/{eventId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEventsById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (EventSearchResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EventSearchResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of EventSearchResult + public async System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId, string appId) + { + ApiResponse localVarResponse = await GetEventsByIdAsyncWithHttpInfo(eventId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (EventSearchResult) + public async System.Threading.Tasks.Task> GetEventsByIdAsyncWithHttpInfo (Guid? eventId, string appId) + { + // verify the required parameter 'eventId' is set + if (eventId == null) + throw new ApiException(400, "Missing required parameter 'eventId' when calling EventsApi->GetEventsById"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetEventsById"); + + var localVarPath = "./api/v1.0/{appId}/events/{eventId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (eventId != null) localVarPathParams.Add("eventId", this.Configuration.ApiClient.ParameterToString(eventId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEventsById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (EventSearchResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(EventSearchResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetMenuEvents (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetMenuEventsWithHttpInfo(appId, menuId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId2, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetMenuEventsWithHttpInfo (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetMenuEvents"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling EventsApi->GetMenuEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/menu/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId2)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetMenuEventsAsync (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetMenuEventsAsyncWithHttpInfo(appId, menuId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId2, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetMenuEventsAsyncWithHttpInfo (string appId, int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId2 = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetMenuEvents"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling EventsApi->GetMenuEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/menu/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId2)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetOrderEvents (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetOrderEventsWithHttpInfo(appId, orderId, limit, page, start, end, orderId2, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsWithHttpInfo (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetOrderEvents"); + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling EventsApi->GetOrderEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/order/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId2)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetOrderEventsAsync (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetOrderEventsAsyncWithHttpInfo(appId, orderId, limit, page, start, end, orderId2, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetOrderEventsAsyncWithHttpInfo (string appId, int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetOrderEvents"); + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling EventsApi->GetOrderEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/order/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId2)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetOrderEventsByCustomer (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetOrderEventsByCustomerWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsByCustomerWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetOrderEventsByCustomer"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling EventsApi->GetOrderEventsByCustomer"); + + var localVarPath = "./api/v1.0/{appId}/events/order"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "customerId", customerId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderEventsByCustomer", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetOrderEventsByCustomerAsync (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetOrderEventsByCustomerAsyncWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetOrderEventsByCustomerAsyncWithHttpInfo (string appId, int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetOrderEventsByCustomer"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling EventsApi->GetOrderEventsByCustomer"); + + var localVarPath = "./api/v1.0/{appId}/events/order"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "customerId", customerId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderEventsByCustomer", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetStoreEvents (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetStoreEventsWithHttpInfo(appId, storeId, limit, page, start, end, orderId, storeId2, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetStoreEventsWithHttpInfo (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetStoreEvents"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EventsApi->GetStoreEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId2)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetStoreEventsAsync (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetStoreEventsAsyncWithHttpInfo(appId, storeId, limit, page, start, end, orderId, storeId2, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetStoreEventsAsyncWithHttpInfo (string appId, int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetStoreEvents"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling EventsApi->GetStoreEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId2)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetUserEvents (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetUserEventsWithHttpInfo(appId, userId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId2, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetUserEventsWithHttpInfo (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetUserEvents"); + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling EventsApi->GetUserEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/user/{userId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId2)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetUserEventsAsync (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetUserEventsAsyncWithHttpInfo(appId, userId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId2, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetUserEventsAsyncWithHttpInfo (string appId, int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId2 = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetUserEvents"); + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling EventsApi->GetUserEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/user/{userId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId2 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId2)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// RestApiEventSearchPaginationResult + public RestApiEventSearchPaginationResult GetWhiteLabelEvents (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = GetWhiteLabelEventsWithHttpInfo(appId, whitelabelId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// ApiResponse of RestApiEventSearchPaginationResult + public ApiResponse< RestApiEventSearchPaginationResult > GetWhiteLabelEventsWithHttpInfo (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetWhiteLabelEvents"); + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling EventsApi->GetWhiteLabelEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/whitelabel/{whitelabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of RestApiEventSearchPaginationResult + public async System.Threading.Tasks.Task GetWhiteLabelEventsAsync (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + ApiResponse localVarResponse = await GetWhiteLabelEventsAsyncWithHttpInfo(appId, whitelabelId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// The maximum elements to return (optional) + /// The index of the page to return, starting by 1 (optional) + /// Start date (optional) + /// End date (optional) + /// Events that have Order Id (optional) + /// Events that have Store Id (optional) + /// Events that have Store Id List (optional) + /// Events that have Store Group Id (optional) + /// Events that have User Id (optional) + /// Events that have Menu Id (optional) + /// Events that have Campaign Id (optional) + /// Events that have User Email (optional) + /// Events that have User Name (optional) + /// Events that have voucher code (optional) + /// Events that have event type\\s (optional) + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. (optional) + /// Task of ApiResponse (RestApiEventSearchPaginationResult) + public async System.Threading.Tasks.Task> GetWhiteLabelEventsAsyncWithHttpInfo (string appId, int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, List storeIdList = null, int? storeGroupId = null, int? userId = null, int? menuId = null, int? campaignId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling EventsApi->GetWhiteLabelEvents"); + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling EventsApi->GetWhiteLabelEvents"); + + var localVarPath = "./api/v1.0/{appId}/events/whitelabel/{whitelabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (orderId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderId", orderId)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (storeIdList != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIdList", storeIdList)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter + if (menuId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "menuId", menuId)); // query parameter + if (campaignId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "campaignId", campaignId)); // query parameter + if (userEmail != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userEmail", userEmail)); // query parameter + if (userName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userName", userName)); // query parameter + if (voucherCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "voucherCode", voucherCode)); // query parameter + if (eventType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "eventType", eventType)); // query parameter + if (flipdishEventId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "flipdishEventId", flipdishEventId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelEvents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiEventSearchPaginationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiEventSearchPaginationResult))); + } + + } +} diff --git a/src/Flipdish/Api/FeaturesApi.cs b/src/Flipdish/Api/FeaturesApi.cs new file mode 100644 index 00000000..2b67c003 --- /dev/null +++ b/src/Flipdish/Api/FeaturesApi.cs @@ -0,0 +1,596 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFeaturesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringArrayResult + RestApiStringArrayResult DisableFeatures (string appId, List features); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse DisableFeaturesWithHttpInfo (string appId, List features); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringArrayResult + RestApiStringArrayResult EnableFeatures (string appId, List features); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse EnableFeaturesWithHttpInfo (string appId, List features); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task DisableFeaturesAsync (string appId, List features); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> DisableFeaturesAsyncWithHttpInfo (string appId, List features); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task EnableFeaturesAsync (string appId, List features); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> EnableFeaturesAsyncWithHttpInfo (string appId, List features); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FeaturesApi : IFeaturesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FeaturesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FeaturesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult DisableFeatures (string appId, List features) + { + ApiResponse localVarResponse = DisableFeaturesWithHttpInfo(appId, features); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringArrayResult + public ApiResponse< RestApiStringArrayResult > DisableFeaturesWithHttpInfo (string appId, List features) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FeaturesApi->DisableFeatures"); + // verify the required parameter 'features' is set + if (features == null) + throw new ApiException(400, "Missing required parameter 'features' when calling FeaturesApi->DisableFeatures"); + + var localVarPath = "./api/v1.0/{appId}/features/disable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (features != null && features.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(features); // http body (model) parameter + } + else + { + localVarPostBody = features; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DisableFeatures", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task DisableFeaturesAsync (string appId, List features) + { + ApiResponse localVarResponse = await DisableFeaturesAsyncWithHttpInfo(appId, features); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + public async System.Threading.Tasks.Task> DisableFeaturesAsyncWithHttpInfo (string appId, List features) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FeaturesApi->DisableFeatures"); + // verify the required parameter 'features' is set + if (features == null) + throw new ApiException(400, "Missing required parameter 'features' when calling FeaturesApi->DisableFeatures"); + + var localVarPath = "./api/v1.0/{appId}/features/disable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (features != null && features.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(features); // http body (model) parameter + } + else + { + localVarPostBody = features; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DisableFeatures", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult EnableFeatures (string appId, List features) + { + ApiResponse localVarResponse = EnableFeaturesWithHttpInfo(appId, features); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringArrayResult + public ApiResponse< RestApiStringArrayResult > EnableFeaturesWithHttpInfo (string appId, List features) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FeaturesApi->EnableFeatures"); + // verify the required parameter 'features' is set + if (features == null) + throw new ApiException(400, "Missing required parameter 'features' when calling FeaturesApi->EnableFeatures"); + + var localVarPath = "./api/v1.0/{appId}/features/enable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (features != null && features.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(features); // http body (model) parameter + } + else + { + localVarPostBody = features; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EnableFeatures", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task EnableFeaturesAsync (string appId, List features) + { + ApiResponse localVarResponse = await EnableFeaturesAsyncWithHttpInfo(appId, features); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + public async System.Threading.Tasks.Task> EnableFeaturesAsyncWithHttpInfo (string appId, List features) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FeaturesApi->EnableFeatures"); + // verify the required parameter 'features' is set + if (features == null) + throw new ApiException(400, "Missing required parameter 'features' when calling FeaturesApi->EnableFeatures"); + + var localVarPath = "./api/v1.0/{appId}/features/enable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (features != null && features.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(features); // http body (model) parameter + } + else + { + localVarPostBody = features; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EnableFeatures", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + } +} diff --git a/src/Flipdish/Api/FirebaseAppsApi.cs b/src/Flipdish/Api/FirebaseAppsApi.cs new file mode 100644 index 00000000..89074585 --- /dev/null +++ b/src/Flipdish/Api/FirebaseAppsApi.cs @@ -0,0 +1,733 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFirebaseAppsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object FirebaseAppsAddFirebaseApp (FirebaseApp firebaseApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse FirebaseAppsAddFirebaseAppWithHttpInfo (FirebaseApp firebaseApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object FirebaseAppsDeleteFirebaseApp (int? whiteLabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse FirebaseAppsDeleteFirebaseAppWithHttpInfo (int? whiteLabelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object FirebaseAppsGetFirebaseApp (int? whitelabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse FirebaseAppsGetFirebaseAppWithHttpInfo (int? whitelabelId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task FirebaseAppsAddFirebaseAppAsync (FirebaseApp firebaseApp); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> FirebaseAppsAddFirebaseAppAsyncWithHttpInfo (FirebaseApp firebaseApp); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task FirebaseAppsDeleteFirebaseAppAsync (int? whiteLabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> FirebaseAppsDeleteFirebaseAppAsyncWithHttpInfo (int? whiteLabelId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task FirebaseAppsGetFirebaseAppAsync (int? whitelabelId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> FirebaseAppsGetFirebaseAppAsyncWithHttpInfo (int? whitelabelId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FirebaseAppsApi : IFirebaseAppsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FirebaseAppsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FirebaseAppsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object FirebaseAppsAddFirebaseApp (FirebaseApp firebaseApp) + { + ApiResponse localVarResponse = FirebaseAppsAddFirebaseAppWithHttpInfo(firebaseApp); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > FirebaseAppsAddFirebaseAppWithHttpInfo (FirebaseApp firebaseApp) + { + // verify the required parameter 'firebaseApp' is set + if (firebaseApp == null) + throw new ApiException(400, "Missing required parameter 'firebaseApp' when calling FirebaseAppsApi->FirebaseAppsAddFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (firebaseApp != null && firebaseApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(firebaseApp); // http body (model) parameter + } + else + { + localVarPostBody = firebaseApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsAddFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task FirebaseAppsAddFirebaseAppAsync (FirebaseApp firebaseApp) + { + ApiResponse localVarResponse = await FirebaseAppsAddFirebaseAppAsyncWithHttpInfo(firebaseApp); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> FirebaseAppsAddFirebaseAppAsyncWithHttpInfo (FirebaseApp firebaseApp) + { + // verify the required parameter 'firebaseApp' is set + if (firebaseApp == null) + throw new ApiException(400, "Missing required parameter 'firebaseApp' when calling FirebaseAppsApi->FirebaseAppsAddFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (firebaseApp != null && firebaseApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(firebaseApp); // http body (model) parameter + } + else + { + localVarPostBody = firebaseApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsAddFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object FirebaseAppsDeleteFirebaseApp (int? whiteLabelId) + { + ApiResponse localVarResponse = FirebaseAppsDeleteFirebaseAppWithHttpInfo(whiteLabelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > FirebaseAppsDeleteFirebaseAppWithHttpInfo (int? whiteLabelId) + { + // verify the required parameter 'whiteLabelId' is set + if (whiteLabelId == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelId' when calling FirebaseAppsApi->FirebaseAppsDeleteFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp/{whiteLabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelId != null) localVarPathParams.Add("whiteLabelId", this.Configuration.ApiClient.ParameterToString(whiteLabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsDeleteFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task FirebaseAppsDeleteFirebaseAppAsync (int? whiteLabelId) + { + ApiResponse localVarResponse = await FirebaseAppsDeleteFirebaseAppAsyncWithHttpInfo(whiteLabelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> FirebaseAppsDeleteFirebaseAppAsyncWithHttpInfo (int? whiteLabelId) + { + // verify the required parameter 'whiteLabelId' is set + if (whiteLabelId == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelId' when calling FirebaseAppsApi->FirebaseAppsDeleteFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp/{whiteLabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelId != null) localVarPathParams.Add("whiteLabelId", this.Configuration.ApiClient.ParameterToString(whiteLabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsDeleteFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object FirebaseAppsGetFirebaseApp (int? whitelabelId) + { + ApiResponse localVarResponse = FirebaseAppsGetFirebaseAppWithHttpInfo(whitelabelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > FirebaseAppsGetFirebaseAppWithHttpInfo (int? whitelabelId) + { + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling FirebaseAppsApi->FirebaseAppsGetFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp/{whitelabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsGetFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task FirebaseAppsGetFirebaseAppAsync (int? whitelabelId) + { + ApiResponse localVarResponse = await FirebaseAppsGetFirebaseAppAsyncWithHttpInfo(whitelabelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> FirebaseAppsGetFirebaseAppAsyncWithHttpInfo (int? whitelabelId) + { + // verify the required parameter 'whitelabelId' is set + if (whitelabelId == null) + throw new ApiException(400, "Missing required parameter 'whitelabelId' when calling FirebaseAppsApi->FirebaseAppsGetFirebaseApp"); + + var localVarPath = "./api/v1.0/FirebaseApp/{whitelabelId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FirebaseAppsGetFirebaseApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/FpmApi.cs b/src/Flipdish/Api/FpmApi.cs new file mode 100644 index 00000000..69f0676a --- /dev/null +++ b/src/Flipdish/Api/FpmApi.cs @@ -0,0 +1,954 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFpmApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object CreateFpmForStore (int? storeId, string phoneNumber); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse CreateFpmForStoreWithHttpInfo (int? storeId, string phoneNumber); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void DeleteFpmForStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse DeleteFpmForStoreWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void EditFpmForStore (int? storeId, TelephonyConfig telephonyConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse EditFpmForStoreWithHttpInfo (int? storeId, TelephonyConfig telephonyConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TelephonyConfig + TelephonyConfig GetFpmForStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of TelephonyConfig + ApiResponse GetFpmForStoreWithHttpInfo (int? storeId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task CreateFpmForStoreAsync (int? storeId, string phoneNumber); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateFpmForStoreAsyncWithHttpInfo (int? storeId, string phoneNumber); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task DeleteFpmForStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteFpmForStoreAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task EditFpmForStoreAsync (int? storeId, TelephonyConfig telephonyConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> EditFpmForStoreAsyncWithHttpInfo (int? storeId, TelephonyConfig telephonyConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of TelephonyConfig + System.Threading.Tasks.Task GetFpmForStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (TelephonyConfig) + System.Threading.Tasks.Task> GetFpmForStoreAsyncWithHttpInfo (int? storeId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FpmApi : IFpmApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FpmApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FpmApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object CreateFpmForStore (int? storeId, string phoneNumber) + { + ApiResponse localVarResponse = CreateFpmForStoreWithHttpInfo(storeId, phoneNumber); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > CreateFpmForStoreWithHttpInfo (int? storeId, string phoneNumber) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->CreateFpmForStore"); + // verify the required parameter 'phoneNumber' is set + if (phoneNumber == null) + throw new ApiException(400, "Missing required parameter 'phoneNumber' when calling FpmApi->CreateFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task CreateFpmForStoreAsync (int? storeId, string phoneNumber) + { + ApiResponse localVarResponse = await CreateFpmForStoreAsyncWithHttpInfo(storeId, phoneNumber); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateFpmForStoreAsyncWithHttpInfo (int? storeId, string phoneNumber) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->CreateFpmForStore"); + // verify the required parameter 'phoneNumber' is set + if (phoneNumber == null) + throw new ApiException(400, "Missing required parameter 'phoneNumber' when calling FpmApi->CreateFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void DeleteFpmForStore (int? storeId) + { + DeleteFpmForStoreWithHttpInfo(storeId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteFpmForStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->DeleteFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteFpmForStoreAsync (int? storeId) + { + await DeleteFpmForStoreAsyncWithHttpInfo(storeId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteFpmForStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->DeleteFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void EditFpmForStore (int? storeId, TelephonyConfig telephonyConfig) + { + EditFpmForStoreWithHttpInfo(storeId, telephonyConfig); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse EditFpmForStoreWithHttpInfo (int? storeId, TelephonyConfig telephonyConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->EditFpmForStore"); + // verify the required parameter 'telephonyConfig' is set + if (telephonyConfig == null) + throw new ApiException(400, "Missing required parameter 'telephonyConfig' when calling FpmApi->EditFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm/edit"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (telephonyConfig != null && telephonyConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(telephonyConfig); // http body (model) parameter + } + else + { + localVarPostBody = telephonyConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EditFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task EditFpmForStoreAsync (int? storeId, TelephonyConfig telephonyConfig) + { + await EditFpmForStoreAsyncWithHttpInfo(storeId, telephonyConfig); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> EditFpmForStoreAsyncWithHttpInfo (int? storeId, TelephonyConfig telephonyConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->EditFpmForStore"); + // verify the required parameter 'telephonyConfig' is set + if (telephonyConfig == null) + throw new ApiException(400, "Missing required parameter 'telephonyConfig' when calling FpmApi->EditFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm/edit"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (telephonyConfig != null && telephonyConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(telephonyConfig); // http body (model) parameter + } + else + { + localVarPostBody = telephonyConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EditFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TelephonyConfig + public TelephonyConfig GetFpmForStore (int? storeId) + { + ApiResponse localVarResponse = GetFpmForStoreWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of TelephonyConfig + public ApiResponse< TelephonyConfig > GetFpmForStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->GetFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (TelephonyConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TelephonyConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of TelephonyConfig + public async System.Threading.Tasks.Task GetFpmForStoreAsync (int? storeId) + { + ApiResponse localVarResponse = await GetFpmForStoreAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (TelephonyConfig) + public async System.Threading.Tasks.Task> GetFpmForStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling FpmApi->GetFpmForStore"); + + var localVarPath = "./api/v1.0/{storeId}/fpm"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFpmForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (TelephonyConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TelephonyConfig))); + } + + } +} diff --git a/src/Flipdish/Api/FulfillmentStateConfigurationApi.cs b/src/Flipdish/Api/FulfillmentStateConfigurationApi.cs new file mode 100644 index 00000000..aeb65e67 --- /dev/null +++ b/src/Flipdish/Api/FulfillmentStateConfigurationApi.cs @@ -0,0 +1,1414 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFulfillmentStateConfigurationApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultFulfillmentStatesConfiguration + RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultFulfillmentStatesConfiguration + ApiResponse CreateFulfillmentStatesConfigWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse DeleteFulfillmentStatesConfigWithHttpInfo (string appId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentStatesConfiguration + FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentStatesConfiguration + ApiResponse GetFulfillmentStatesConfigurationWithHttpInfo (string appId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// FulfillmentStatesConfiguration + FulfillmentStatesConfiguration GetFulfillmentStatesConfigurationTemplate (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of FulfillmentStatesConfiguration + ApiResponse GetFulfillmentStatesConfigurationTemplateWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultFulfillmentStatesConfigurationSummary + RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillmentStatesConfigurations (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultFulfillmentStatesConfigurationSummary + ApiResponse SearchFulfillmentStatesConfigurationsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateFulfillmentStatesConfigWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultFulfillmentStatesConfiguration + System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultFulfillmentStatesConfiguration) + System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task DeleteFulfillmentStatesConfigAsync (string appId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> DeleteFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of FulfillmentStatesConfiguration + System.Threading.Tasks.Task GetFulfillmentStatesConfigurationAsync (string appId, string configId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (FulfillmentStatesConfiguration) + System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationAsyncWithHttpInfo (string appId, string configId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of FulfillmentStatesConfiguration + System.Threading.Tasks.Task GetFulfillmentStatesConfigurationTemplateAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (FulfillmentStatesConfiguration) + System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationTemplateAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultFulfillmentStatesConfigurationSummary + System.Threading.Tasks.Task SearchFulfillmentStatesConfigurationsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultFulfillmentStatesConfigurationSummary) + System.Threading.Tasks.Task> SearchFulfillmentStatesConfigurationsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateFulfillmentStatesConfigAsync (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FulfillmentStateConfigurationApi : IFulfillmentStateConfigurationApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FulfillmentStateConfigurationApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FulfillmentStateConfigurationApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultFulfillmentStatesConfiguration + public RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) + { + ApiResponse localVarResponse = CreateFulfillmentStatesConfigWithHttpInfo(appId, fulfillmentStateConfiguration); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultFulfillmentStatesConfiguration + public ApiResponse< RestApiResultFulfillmentStatesConfiguration > CreateFulfillmentStatesConfigWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->CreateFulfillmentStatesConfig"); + // verify the required parameter 'fulfillmentStateConfiguration' is set + if (fulfillmentStateConfiguration == null) + throw new ApiException(400, "Missing required parameter 'fulfillmentStateConfiguration' when calling FulfillmentStateConfigurationApi->CreateFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (fulfillmentStateConfiguration != null && fulfillmentStateConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(fulfillmentStateConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = fulfillmentStateConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultFulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultFulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultFulfillmentStatesConfiguration + public async System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) + { + ApiResponse localVarResponse = await CreateFulfillmentStatesConfigAsyncWithHttpInfo(appId, fulfillmentStateConfiguration); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultFulfillmentStatesConfiguration) + public async System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->CreateFulfillmentStatesConfig"); + // verify the required parameter 'fulfillmentStateConfiguration' is set + if (fulfillmentStateConfiguration == null) + throw new ApiException(400, "Missing required parameter 'fulfillmentStateConfiguration' when calling FulfillmentStateConfigurationApi->CreateFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (fulfillmentStateConfiguration != null && fulfillmentStateConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(fulfillmentStateConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = fulfillmentStateConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultFulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultFulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId) + { + ApiResponse localVarResponse = DeleteFulfillmentStatesConfigWithHttpInfo(appId, configId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > DeleteFulfillmentStatesConfigWithHttpInfo (string appId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->DeleteFulfillmentStatesConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->DeleteFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task DeleteFulfillmentStatesConfigAsync (string appId, string configId) + { + ApiResponse localVarResponse = await DeleteFulfillmentStatesConfigAsyncWithHttpInfo(appId, configId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> DeleteFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->DeleteFulfillmentStatesConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->DeleteFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentStatesConfiguration + public FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId) + { + ApiResponse localVarResponse = GetFulfillmentStatesConfigurationWithHttpInfo(appId, configId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentStatesConfiguration + public ApiResponse< FulfillmentStatesConfiguration > GetFulfillmentStatesConfigurationWithHttpInfo (string appId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfiguration"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatesConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (FulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of FulfillmentStatesConfiguration + public async System.Threading.Tasks.Task GetFulfillmentStatesConfigurationAsync (string appId, string configId) + { + ApiResponse localVarResponse = await GetFulfillmentStatesConfigurationAsyncWithHttpInfo(appId, configId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (FulfillmentStatesConfiguration) + public async System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationAsyncWithHttpInfo (string appId, string configId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfiguration"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatesConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (FulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// FulfillmentStatesConfiguration + public FulfillmentStatesConfiguration GetFulfillmentStatesConfigurationTemplate (string appId) + { + ApiResponse localVarResponse = GetFulfillmentStatesConfigurationTemplateWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of FulfillmentStatesConfiguration + public ApiResponse< FulfillmentStatesConfiguration > GetFulfillmentStatesConfigurationTemplateWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfigurationTemplate"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states_template"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatesConfigurationTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (FulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of FulfillmentStatesConfiguration + public async System.Threading.Tasks.Task GetFulfillmentStatesConfigurationTemplateAsync (string appId) + { + ApiResponse localVarResponse = await GetFulfillmentStatesConfigurationTemplateAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (FulfillmentStatesConfiguration) + public async System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationTemplateAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->GetFulfillmentStatesConfigurationTemplate"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states_template"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatesConfigurationTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (FulfillmentStatesConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FulfillmentStatesConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultFulfillmentStatesConfigurationSummary + public RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillmentStatesConfigurations (string appId) + { + ApiResponse localVarResponse = SearchFulfillmentStatesConfigurationsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultFulfillmentStatesConfigurationSummary + public ApiResponse< RestApiArrayResultFulfillmentStatesConfigurationSummary > SearchFulfillmentStatesConfigurationsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->SearchFulfillmentStatesConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFulfillmentStatesConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultFulfillmentStatesConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultFulfillmentStatesConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultFulfillmentStatesConfigurationSummary + public async System.Threading.Tasks.Task SearchFulfillmentStatesConfigurationsAsync (string appId) + { + ApiResponse localVarResponse = await SearchFulfillmentStatesConfigurationsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultFulfillmentStatesConfigurationSummary) + public async System.Threading.Tasks.Task> SearchFulfillmentStatesConfigurationsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->SearchFulfillmentStatesConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFulfillmentStatesConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultFulfillmentStatesConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultFulfillmentStatesConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) + { + UpdateFulfillmentStatesConfigWithHttpInfo(appId, configId, updateFulfillmentStatesConfiguration); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateFulfillmentStatesConfigWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + // verify the required parameter 'updateFulfillmentStatesConfiguration' is set + if (updateFulfillmentStatesConfiguration == null) + throw new ApiException(400, "Missing required parameter 'updateFulfillmentStatesConfiguration' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateFulfillmentStatesConfiguration != null && updateFulfillmentStatesConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateFulfillmentStatesConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = updateFulfillmentStatesConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateFulfillmentStatesConfigAsync (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) + { + await UpdateFulfillmentStatesConfigAsyncWithHttpInfo(appId, configId, updateFulfillmentStatesConfiguration); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + // verify the required parameter 'updateFulfillmentStatesConfiguration' is set + if (updateFulfillmentStatesConfiguration == null) + throw new ApiException(400, "Missing required parameter 'updateFulfillmentStatesConfiguration' when calling FulfillmentStateConfigurationApi->UpdateFulfillmentStatesConfig"); + + var localVarPath = "./api/v1.0/{appId}/fulfillment/configuration/states/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (updateFulfillmentStatesConfiguration != null && updateFulfillmentStatesConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateFulfillmentStatesConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = updateFulfillmentStatesConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateFulfillmentStatesConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/HeartbeatApi.cs b/src/Flipdish/Api/HeartbeatApi.cs new file mode 100644 index 00000000..824beba1 --- /dev/null +++ b/src/Flipdish/Api/HeartbeatApi.cs @@ -0,0 +1,838 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IHeartbeatApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object HeadHostname (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse HeadHostnameWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringResult + RestApiStringResult HeadPing (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringResult + ApiResponse HeadPingWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Object + Object Hostname (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + ApiResponse HostnameWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringResult + RestApiStringResult Ping (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringResult + ApiResponse PingWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task HeadHostnameAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> HeadHostnameAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringResult + System.Threading.Tasks.Task HeadPingAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> HeadPingAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + System.Threading.Tasks.Task HostnameAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> HostnameAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringResult + System.Threading.Tasks.Task PingAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> PingAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class HeartbeatApi : IHeartbeatApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public HeartbeatApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public HeartbeatApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object HeadHostname () + { + ApiResponse localVarResponse = HeadHostnameWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > HeadHostnameWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat/Hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.HEAD, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HeadHostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task HeadHostnameAsync () + { + ApiResponse localVarResponse = await HeadHostnameAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> HeadHostnameAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat/Hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.HEAD, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HeadHostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringResult + public RestApiStringResult HeadPing () + { + ApiResponse localVarResponse = HeadPingWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > HeadPingWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.HEAD, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HeadPing", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task HeadPingAsync () + { + ApiResponse localVarResponse = await HeadPingAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> HeadPingAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.HEAD, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HeadPing", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Object + public Object Hostname () + { + ApiResponse localVarResponse = HostnameWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object + public ApiResponse< Object > HostnameWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat/Hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Hostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of Object + public async System.Threading.Tasks.Task HostnameAsync () + { + ApiResponse localVarResponse = await HostnameAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> HostnameAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat/Hostname"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Hostname", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringResult + public RestApiStringResult Ping () + { + ApiResponse localVarResponse = PingWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > PingWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Ping", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task PingAsync () + { + ApiResponse localVarResponse = await PingAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> PingAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/heartbeat"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Ping", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + } +} diff --git a/src/Flipdish/Api/HomeApi.cs b/src/Flipdish/Api/HomeApi.cs new file mode 100644 index 00000000..35a8e6e5 --- /dev/null +++ b/src/Flipdish/Api/HomeApi.cs @@ -0,0 +1,918 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IHomeApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismissed); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse CompleteHomeActionWithHttpInfo (string appId, int? homeActionId, bool? isDismissed); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultHomeAction + RestApiArrayResultHomeAction GetHomeActions (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultHomeAction + ApiResponse GetHomeActionsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultHomeStatistics + RestApiResultHomeStatistics GetHomeStatistics (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultHomeStatistics + ApiResponse GetHomeStatisticsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultOktaPortalFeatureFlag + RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultOktaPortalFeatureFlag + ApiResponse GetOktaPortalFeatureFlagWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task CompleteHomeActionAsync (string appId, int? homeActionId, bool? isDismissed); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CompleteHomeActionAsyncWithHttpInfo (string appId, int? homeActionId, bool? isDismissed); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultHomeAction + System.Threading.Tasks.Task GetHomeActionsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultHomeAction) + System.Threading.Tasks.Task> GetHomeActionsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultHomeStatistics + System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultHomeStatistics) + System.Threading.Tasks.Task> GetHomeStatisticsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultOktaPortalFeatureFlag + System.Threading.Tasks.Task GetOktaPortalFeatureFlagAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultOktaPortalFeatureFlag) + System.Threading.Tasks.Task> GetOktaPortalFeatureFlagAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class HomeApi : IHomeApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public HomeApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public HomeApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismissed) + { + ApiResponse localVarResponse = CompleteHomeActionWithHttpInfo(appId, homeActionId, isDismissed); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > CompleteHomeActionWithHttpInfo (string appId, int? homeActionId, bool? isDismissed) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->CompleteHomeAction"); + // verify the required parameter 'homeActionId' is set + if (homeActionId == null) + throw new ApiException(400, "Missing required parameter 'homeActionId' when calling HomeApi->CompleteHomeAction"); + // verify the required parameter 'isDismissed' is set + if (isDismissed == null) + throw new ApiException(400, "Missing required parameter 'isDismissed' when calling HomeApi->CompleteHomeAction"); + + var localVarPath = "./api/v1.0/{appId}/home/{homeActionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (homeActionId != null) localVarPathParams.Add("homeActionId", this.Configuration.ApiClient.ParameterToString(homeActionId)); // path parameter + if (isDismissed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isDismissed", isDismissed)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CompleteHomeAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task CompleteHomeActionAsync (string appId, int? homeActionId, bool? isDismissed) + { + ApiResponse localVarResponse = await CompleteHomeActionAsyncWithHttpInfo(appId, homeActionId, isDismissed); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CompleteHomeActionAsyncWithHttpInfo (string appId, int? homeActionId, bool? isDismissed) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->CompleteHomeAction"); + // verify the required parameter 'homeActionId' is set + if (homeActionId == null) + throw new ApiException(400, "Missing required parameter 'homeActionId' when calling HomeApi->CompleteHomeAction"); + // verify the required parameter 'isDismissed' is set + if (isDismissed == null) + throw new ApiException(400, "Missing required parameter 'isDismissed' when calling HomeApi->CompleteHomeAction"); + + var localVarPath = "./api/v1.0/{appId}/home/{homeActionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (homeActionId != null) localVarPathParams.Add("homeActionId", this.Configuration.ApiClient.ParameterToString(homeActionId)); // path parameter + if (isDismissed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isDismissed", isDismissed)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CompleteHomeAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultHomeAction + public RestApiArrayResultHomeAction GetHomeActions (string appId) + { + ApiResponse localVarResponse = GetHomeActionsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultHomeAction + public ApiResponse< RestApiArrayResultHomeAction > GetHomeActionsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeActions"); + + var localVarPath = "./api/v1.0/{appId}/home"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetHomeActions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultHomeAction + public async System.Threading.Tasks.Task GetHomeActionsAsync (string appId) + { + ApiResponse localVarResponse = await GetHomeActionsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultHomeAction) + public async System.Threading.Tasks.Task> GetHomeActionsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeActions"); + + var localVarPath = "./api/v1.0/{appId}/home"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetHomeActions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultHomeStatistics + public RestApiResultHomeStatistics GetHomeStatistics (string appId) + { + ApiResponse localVarResponse = GetHomeStatisticsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultHomeStatistics + public ApiResponse< RestApiResultHomeStatistics > GetHomeStatisticsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeStatistics"); + + var localVarPath = "./api/v1.0/{appId}/home/stats"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetHomeStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultHomeStatistics + public async System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId) + { + ApiResponse localVarResponse = await GetHomeStatisticsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultHomeStatistics) + public async System.Threading.Tasks.Task> GetHomeStatisticsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeStatistics"); + + var localVarPath = "./api/v1.0/{appId}/home/stats"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetHomeStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultOktaPortalFeatureFlag + public RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag () + { + ApiResponse localVarResponse = GetOktaPortalFeatureFlagWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultOktaPortalFeatureFlag + public ApiResponse< RestApiResultOktaPortalFeatureFlag > GetOktaPortalFeatureFlagWithHttpInfo () + { + + var localVarPath = "./api/v1.0/home/okta-portal"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOktaPortalFeatureFlag", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOktaPortalFeatureFlag) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOktaPortalFeatureFlag))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultOktaPortalFeatureFlag + public async System.Threading.Tasks.Task GetOktaPortalFeatureFlagAsync () + { + ApiResponse localVarResponse = await GetOktaPortalFeatureFlagAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultOktaPortalFeatureFlag) + public async System.Threading.Tasks.Task> GetOktaPortalFeatureFlagAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/home/okta-portal"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOktaPortalFeatureFlag", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOktaPortalFeatureFlag) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOktaPortalFeatureFlag))); + } + + } +} diff --git a/src/Flipdish/Api/HydraApi.cs b/src/Flipdish/Api/HydraApi.cs new file mode 100644 index 00000000..e00f8e10 --- /dev/null +++ b/src/Flipdish/Api/HydraApi.cs @@ -0,0 +1,5256 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IHydraApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void AssignEmv (string appId, int? hydraConfigId, int? emvTerminalId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse AssignEmvWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + ApiResponse AttachStoreToKioskWithHttpInfo (string appId, int? storeId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + RestApiResultHydraStatus AttachStoreToTerminal (string appId, string deviceId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + ApiResponse AttachStoreToTerminalWithHttpInfo (string appId, string deviceId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void CancelEmvPayment (int? orderId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse CancelEmvPaymentWithHttpInfo (int? orderId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string deviceId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + ApiResponse DetachStoreFromTerminalWithHttpInfo (string appId, string deviceId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + void GetAblyToken (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse GetAblyTokenWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraDeviceDetails + RestApiResultHydraDeviceDetails GetAttachedDevice (string appId, string deviceType, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraDeviceDetails + ApiResponse GetAttachedDeviceWithHttpInfo (string appId, string deviceType, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultHydraDeviceDetails + RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultHydraDeviceDetails + ApiResponse GetAttachedDevicesWithHttpInfo (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPaymentTerminalDetails + RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPaymentTerminalDetails + ApiResponse GetEMVTerminalDetailsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPaymentTerminalTransactionDetails + RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? orderId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPaymentTerminalTransactionDetails + ApiResponse GetEmvOrderStateWithHttpInfo (int? orderId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultKioskCashPaymentSettings + RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultKioskCashPaymentSettings + ApiResponse GetKioskCashPaymentSettingsWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultKioskSettings + RestApiResultKioskSettings GetKioskSettings (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultKioskSettings + ApiResponse GetKioskSettingsWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultHydraStatus + RestApiResultHydraStatus GetRegistration (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultHydraStatus + ApiResponse GetRegistrationWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultHydraConfig + RestApiResultHydraConfig GetSettings (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultHydraConfig + ApiResponse GetSettingsWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object HydraCreateEmv (string appId, EmvTerminal emv); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse HydraCreateEmvWithHttpInfo (string appId, EmvTerminal emv); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object HydraDeleteEmv (string appId, int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse HydraDeleteEmvWithHttpInfo (string appId, int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? storeId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + ApiResponse HydraDetachStoreFromKioskWithHttpInfo (string appId, int? storeId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultEmvTerminalWithAssignments + RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultEmvTerminalWithAssignments + ApiResponse HydraGetEmvsForAppIdWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// + void LoginWithDeviceId (string deviceId, string hydraUserType = null, string serialNumber = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of Object(void) + ApiResponse LoginWithDeviceIdWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultHydraStatus + RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest hydraRegistration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultHydraStatus + ApiResponse RegisterWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void UnAssign (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse UnAssignWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void UnassignEmv (string appId, int? hydraConfigId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse UnassignEmvWithHttpInfo (string appId, int? hydraConfigId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bool? isCashEnabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateKioskCashVisibilitySettingsWithHttpInfo (string appId, string deviceId, bool? isCashEnabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateKioskSettings (string appId, string deviceId, KioskSettings settings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateKioskSettingsWithHttpInfo (string appId, string deviceId, KioskSettings settings); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task AssignEmvAsync (string appId, int? hydraConfigId, int? emvTerminalId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AssignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task AttachStoreToKioskAsync (string appId, int? storeId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> AttachStoreToKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task AttachStoreToTerminalAsync (string appId, string deviceId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> AttachStoreToTerminalAsyncWithHttpInfo (string appId, string deviceId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task CancelEmvPaymentAsync (int? orderId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelEmvPaymentAsyncWithHttpInfo (int? orderId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task DetachStoreFromTerminalAsync (string appId, string deviceId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> DetachStoreFromTerminalAsyncWithHttpInfo (string appId, string deviceId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task GetAblyTokenAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> GetAblyTokenAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraDeviceDetails + System.Threading.Tasks.Task GetAttachedDeviceAsync (string appId, string deviceType, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraDeviceDetails) + System.Threading.Tasks.Task> GetAttachedDeviceAsyncWithHttpInfo (string appId, string deviceType, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultHydraDeviceDetails + System.Threading.Tasks.Task GetAttachedDevicesAsync (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultHydraDeviceDetails) + System.Threading.Tasks.Task> GetAttachedDevicesAsyncWithHttpInfo (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPaymentTerminalDetails + System.Threading.Tasks.Task GetEMVTerminalDetailsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPaymentTerminalDetails) + System.Threading.Tasks.Task> GetEMVTerminalDetailsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPaymentTerminalTransactionDetails + System.Threading.Tasks.Task GetEmvOrderStateAsync (int? orderId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPaymentTerminalTransactionDetails) + System.Threading.Tasks.Task> GetEmvOrderStateAsyncWithHttpInfo (int? orderId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultKioskCashPaymentSettings + System.Threading.Tasks.Task GetKioskCashPaymentSettingsAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultKioskCashPaymentSettings) + System.Threading.Tasks.Task> GetKioskCashPaymentSettingsAsyncWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultKioskSettings + System.Threading.Tasks.Task GetKioskSettingsAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultKioskSettings) + System.Threading.Tasks.Task> GetKioskSettingsAsyncWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task GetRegistrationAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> GetRegistrationAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultHydraConfig + System.Threading.Tasks.Task GetSettingsAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultHydraConfig) + System.Threading.Tasks.Task> GetSettingsAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task HydraCreateEmvAsync (string appId, EmvTerminal emv); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> HydraCreateEmvAsyncWithHttpInfo (string appId, EmvTerminal emv); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task HydraDeleteEmvAsync (string appId, int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> HydraDeleteEmvAsyncWithHttpInfo (string appId, int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task HydraDetachStoreFromKioskAsync (string appId, int? storeId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> HydraDetachStoreFromKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultEmvTerminalWithAssignments + System.Threading.Tasks.Task HydraGetEmvsForAppIdAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultEmvTerminalWithAssignments) + System.Threading.Tasks.Task> HydraGetEmvsForAppIdAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of void + System.Threading.Tasks.Task LoginWithDeviceIdAsync (string deviceId, string hydraUserType = null, string serialNumber = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse + System.Threading.Tasks.Task> LoginWithDeviceIdAsyncWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultHydraStatus + System.Threading.Tasks.Task RegisterAsync (string appId, HydraRegistrationRequest hydraRegistration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + System.Threading.Tasks.Task> RegisterAsyncWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task UnAssignAsync (string appId, string deviceId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UnAssignAsyncWithHttpInfo (string appId, string deviceId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task UnassignEmvAsync (string appId, int? hydraConfigId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UnassignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateKioskCashVisibilitySettingsAsync (string appId, string deviceId, bool? isCashEnabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateKioskCashVisibilitySettingsAsyncWithHttpInfo (string appId, string deviceId, bool? isCashEnabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateKioskSettingsAsync (string appId, string deviceId, KioskSettings settings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateKioskSettingsAsyncWithHttpInfo (string appId, string deviceId, KioskSettings settings); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class HydraApi : IHydraApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public HydraApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public HydraApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void AssignEmv (string appId, int? hydraConfigId, int? emvTerminalId) + { + AssignEmvWithHttpInfo(appId, hydraConfigId, emvTerminalId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AssignEmvWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AssignEmv"); + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId == null) + throw new ApiException(400, "Missing required parameter 'hydraConfigId' when calling HydraApi->AssignEmv"); + // verify the required parameter 'emvTerminalId' is set + if (emvTerminalId == null) + throw new ApiException(400, "Missing required parameter 'emvTerminalId' when calling HydraApi->AssignEmv"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraConfigId != null) localVarPathParams.Add("hydraConfigId", this.Configuration.ApiClient.ParameterToString(hydraConfigId)); // path parameter + if (emvTerminalId != null) localVarPathParams.Add("emvTerminalId", this.Configuration.ApiClient.ParameterToString(emvTerminalId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AssignEmvAsync (string appId, int? hydraConfigId, int? emvTerminalId) + { + await AssignEmvAsyncWithHttpInfo(appId, hydraConfigId, emvTerminalId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AssignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AssignEmv"); + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId == null) + throw new ApiException(400, "Missing required parameter 'hydraConfigId' when calling HydraApi->AssignEmv"); + // verify the required parameter 'emvTerminalId' is set + if (emvTerminalId == null) + throw new ApiException(400, "Missing required parameter 'emvTerminalId' when calling HydraApi->AssignEmv"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraConfigId != null) localVarPathParams.Add("hydraConfigId", this.Configuration.ApiClient.ParameterToString(hydraConfigId)); // path parameter + if (emvTerminalId != null) localVarPathParams.Add("emvTerminalId", this.Configuration.ApiClient.ParameterToString(emvTerminalId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + public RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, string deviceId) + { + ApiResponse localVarResponse = AttachStoreToKioskWithHttpInfo(appId, storeId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > AttachStoreToKioskWithHttpInfo (string appId, int? storeId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AttachStoreToKiosk"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->AttachStoreToKiosk"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->AttachStoreToKiosk"); + + var localVarPath = "./api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToKiosk", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task AttachStoreToKioskAsync (string appId, int? storeId, string deviceId) + { + ApiResponse localVarResponse = await AttachStoreToKioskAsyncWithHttpInfo(appId, storeId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> AttachStoreToKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AttachStoreToKiosk"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->AttachStoreToKiosk"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->AttachStoreToKiosk"); + + var localVarPath = "./api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToKiosk", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + public RestApiResultHydraStatus AttachStoreToTerminal (string appId, string deviceId, int? storeId) + { + ApiResponse localVarResponse = AttachStoreToTerminalWithHttpInfo(appId, deviceId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > AttachStoreToTerminalWithHttpInfo (string appId, string deviceId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AttachStoreToTerminal"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->AttachStoreToTerminal"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->AttachStoreToTerminal"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task AttachStoreToTerminalAsync (string appId, string deviceId, int? storeId) + { + ApiResponse localVarResponse = await AttachStoreToTerminalAsyncWithHttpInfo(appId, deviceId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> AttachStoreToTerminalAsyncWithHttpInfo (string appId, string deviceId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->AttachStoreToTerminal"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->AttachStoreToTerminal"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->AttachStoreToTerminal"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AttachStoreToTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void CancelEmvPayment (int? orderId, string appId) + { + CancelEmvPaymentWithHttpInfo(orderId, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse CancelEmvPaymentWithHttpInfo (int? orderId, string appId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling HydraApi->CancelEmvPayment"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->CancelEmvPayment"); + + var localVarPath = "./api/v1.0/{appId}/hydra/cancelemvpayment/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelEmvPayment", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task CancelEmvPaymentAsync (int? orderId, string appId) + { + await CancelEmvPaymentAsyncWithHttpInfo(orderId, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelEmvPaymentAsyncWithHttpInfo (int? orderId, string appId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling HydraApi->CancelEmvPayment"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->CancelEmvPayment"); + + var localVarPath = "./api/v1.0/{appId}/hydra/cancelemvpayment/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CancelEmvPayment", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + public RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string deviceId, int? storeId) + { + ApiResponse localVarResponse = DetachStoreFromTerminalWithHttpInfo(appId, deviceId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > DetachStoreFromTerminalWithHttpInfo (string appId, string deviceId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->DetachStoreFromTerminal"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->DetachStoreFromTerminal"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->DetachStoreFromTerminal"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachStoreFromTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task DetachStoreFromTerminalAsync (string appId, string deviceId, int? storeId) + { + ApiResponse localVarResponse = await DetachStoreFromTerminalAsyncWithHttpInfo(appId, deviceId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> DetachStoreFromTerminalAsyncWithHttpInfo (string appId, string deviceId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->DetachStoreFromTerminal"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->DetachStoreFromTerminal"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->DetachStoreFromTerminal"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DetachStoreFromTerminal", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + public void GetAblyToken () + { + GetAblyTokenWithHttpInfo(); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse GetAblyTokenWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/ably_token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAblyToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task GetAblyTokenAsync () + { + await GetAblyTokenAsyncWithHttpInfo(); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetAblyTokenAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/ably_token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAblyToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraDeviceDetails + public RestApiResultHydraDeviceDetails GetAttachedDevice (string appId, string deviceType, string deviceId) + { + ApiResponse localVarResponse = GetAttachedDeviceWithHttpInfo(appId, deviceType, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraDeviceDetails + public ApiResponse< RestApiResultHydraDeviceDetails > GetAttachedDeviceWithHttpInfo (string appId, string deviceType, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetAttachedDevice"); + // verify the required parameter 'deviceType' is set + if (deviceType == null) + throw new ApiException(400, "Missing required parameter 'deviceType' when calling HydraApi->GetAttachedDevice"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetAttachedDevice"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceType}/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceType != null) localVarPathParams.Add("deviceType", this.Configuration.ApiClient.ParameterToString(deviceType)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAttachedDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraDeviceDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraDeviceDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraDeviceDetails + public async System.Threading.Tasks.Task GetAttachedDeviceAsync (string appId, string deviceType, string deviceId) + { + ApiResponse localVarResponse = await GetAttachedDeviceAsyncWithHttpInfo(appId, deviceType, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraDeviceDetails) + public async System.Threading.Tasks.Task> GetAttachedDeviceAsyncWithHttpInfo (string appId, string deviceType, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetAttachedDevice"); + // verify the required parameter 'deviceType' is set + if (deviceType == null) + throw new ApiException(400, "Missing required parameter 'deviceType' when calling HydraApi->GetAttachedDevice"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetAttachedDevice"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceType}/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceType != null) localVarPathParams.Add("deviceType", this.Configuration.ApiClient.ParameterToString(deviceType)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAttachedDevice", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraDeviceDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraDeviceDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultHydraDeviceDetails + public RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) + { + ApiResponse localVarResponse = GetAttachedDevicesWithHttpInfo(appId, deviceType, pageIndex, pageSize, storeId, deviceName, deviceSerial); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultHydraDeviceDetails + public ApiResponse< RestApiPaginationResultHydraDeviceDetails > GetAttachedDevicesWithHttpInfo (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetAttachedDevices"); + // verify the required parameter 'deviceType' is set + if (deviceType == null) + throw new ApiException(400, "Missing required parameter 'deviceType' when calling HydraApi->GetAttachedDevices"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceType}/list"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceType != null) localVarPathParams.Add("deviceType", this.Configuration.ApiClient.ParameterToString(deviceType)); // path parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (deviceName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceName", deviceName)); // query parameter + if (deviceSerial != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceSerial", deviceSerial)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAttachedDevices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultHydraDeviceDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultHydraDeviceDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultHydraDeviceDetails + public async System.Threading.Tasks.Task GetAttachedDevicesAsync (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) + { + ApiResponse localVarResponse = await GetAttachedDevicesAsyncWithHttpInfo(appId, deviceType, pageIndex, pageSize, storeId, deviceName, deviceSerial); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultHydraDeviceDetails) + public async System.Threading.Tasks.Task> GetAttachedDevicesAsyncWithHttpInfo (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetAttachedDevices"); + // verify the required parameter 'deviceType' is set + if (deviceType == null) + throw new ApiException(400, "Missing required parameter 'deviceType' when calling HydraApi->GetAttachedDevices"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceType}/list"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceType != null) localVarPathParams.Add("deviceType", this.Configuration.ApiClient.ParameterToString(deviceType)); // path parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (deviceName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceName", deviceName)); // query parameter + if (deviceSerial != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceSerial", deviceSerial)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAttachedDevices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultHydraDeviceDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultHydraDeviceDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPaymentTerminalDetails + public RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId) + { + ApiResponse localVarResponse = GetEMVTerminalDetailsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPaymentTerminalDetails + public ApiResponse< RestApiResultPaymentTerminalDetails > GetEMVTerminalDetailsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetEMVTerminalDetails"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEMVTerminalDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentTerminalDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentTerminalDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPaymentTerminalDetails + public async System.Threading.Tasks.Task GetEMVTerminalDetailsAsync (string appId) + { + ApiResponse localVarResponse = await GetEMVTerminalDetailsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPaymentTerminalDetails) + public async System.Threading.Tasks.Task> GetEMVTerminalDetailsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetEMVTerminalDetails"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEMVTerminalDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentTerminalDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentTerminalDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPaymentTerminalTransactionDetails + public RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? orderId, string appId) + { + ApiResponse localVarResponse = GetEmvOrderStateWithHttpInfo(orderId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPaymentTerminalTransactionDetails + public ApiResponse< RestApiResultPaymentTerminalTransactionDetails > GetEmvOrderStateWithHttpInfo (int? orderId, string appId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling HydraApi->GetEmvOrderState"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetEmvOrderState"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvorderstate/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEmvOrderState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentTerminalTransactionDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentTerminalTransactionDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPaymentTerminalTransactionDetails + public async System.Threading.Tasks.Task GetEmvOrderStateAsync (int? orderId, string appId) + { + ApiResponse localVarResponse = await GetEmvOrderStateAsyncWithHttpInfo(orderId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPaymentTerminalTransactionDetails) + public async System.Threading.Tasks.Task> GetEmvOrderStateAsyncWithHttpInfo (int? orderId, string appId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling HydraApi->GetEmvOrderState"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetEmvOrderState"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvorderstate/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEmvOrderState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentTerminalTransactionDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentTerminalTransactionDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultKioskCashPaymentSettings + public RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId) + { + ApiResponse localVarResponse = GetKioskCashPaymentSettingsWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultKioskCashPaymentSettings + public ApiResponse< RestApiArrayResultKioskCashPaymentSettings > GetKioskCashPaymentSettingsWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetKioskCashPaymentSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskCashPaymentSettings"); + + var localVarPath = "./api/v1.0/{appId}/kioskcashsettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskCashPaymentSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultKioskCashPaymentSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultKioskCashPaymentSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultKioskCashPaymentSettings + public async System.Threading.Tasks.Task GetKioskCashPaymentSettingsAsync (string appId, string deviceId) + { + ApiResponse localVarResponse = await GetKioskCashPaymentSettingsAsyncWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultKioskCashPaymentSettings) + public async System.Threading.Tasks.Task> GetKioskCashPaymentSettingsAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetKioskCashPaymentSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskCashPaymentSettings"); + + var localVarPath = "./api/v1.0/{appId}/kioskcashsettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskCashPaymentSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultKioskCashPaymentSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultKioskCashPaymentSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultKioskSettings + public RestApiResultKioskSettings GetKioskSettings (string appId, string deviceId) + { + ApiResponse localVarResponse = GetKioskSettingsWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultKioskSettings + public ApiResponse< RestApiResultKioskSettings > GetKioskSettingsWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetKioskSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskSettings"); + + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultKioskSettings + public async System.Threading.Tasks.Task GetKioskSettingsAsync (string appId, string deviceId) + { + ApiResponse localVarResponse = await GetKioskSettingsAsyncWithHttpInfo(appId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultKioskSettings) + public async System.Threading.Tasks.Task> GetKioskSettingsAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->GetKioskSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskSettings"); + + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultHydraStatus + public RestApiResultHydraStatus GetRegistration () + { + ApiResponse localVarResponse = GetRegistrationWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > GetRegistrationWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRegistration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task GetRegistrationAsync () + { + ApiResponse localVarResponse = await GetRegistrationAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> GetRegistrationAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRegistration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultHydraConfig + public RestApiResultHydraConfig GetSettings () + { + ApiResponse localVarResponse = GetSettingsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultHydraConfig + public ApiResponse< RestApiResultHydraConfig > GetSettingsWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultHydraConfig + public async System.Threading.Tasks.Task GetSettingsAsync () + { + ApiResponse localVarResponse = await GetSettingsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultHydraConfig) + public async System.Threading.Tasks.Task> GetSettingsAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/hydra/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object HydraCreateEmv (string appId, EmvTerminal emv) + { + ApiResponse localVarResponse = HydraCreateEmvWithHttpInfo(appId, emv); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > HydraCreateEmvWithHttpInfo (string appId, EmvTerminal emv) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraCreateEmv"); + // verify the required parameter 'emv' is set + if (emv == null) + throw new ApiException(400, "Missing required parameter 'emv' when calling HydraApi->HydraCreateEmv"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (emv != null && emv.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(emv); // http body (model) parameter + } + else + { + localVarPostBody = emv; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraCreateEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task HydraCreateEmvAsync (string appId, EmvTerminal emv) + { + ApiResponse localVarResponse = await HydraCreateEmvAsyncWithHttpInfo(appId, emv); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> HydraCreateEmvAsyncWithHttpInfo (string appId, EmvTerminal emv) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraCreateEmv"); + // verify the required parameter 'emv' is set + if (emv == null) + throw new ApiException(400, "Missing required parameter 'emv' when calling HydraApi->HydraCreateEmv"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (emv != null && emv.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(emv); // http body (model) parameter + } + else + { + localVarPostBody = emv; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraCreateEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object HydraDeleteEmv (string appId, int? id) + { + ApiResponse localVarResponse = HydraDeleteEmvWithHttpInfo(appId, id); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > HydraDeleteEmvWithHttpInfo (string appId, int? id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraDeleteEmv"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling HydraApi->HydraDeleteEmv"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraDeleteEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task HydraDeleteEmvAsync (string appId, int? id) + { + ApiResponse localVarResponse = await HydraDeleteEmvAsyncWithHttpInfo(appId, id); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> HydraDeleteEmvAsyncWithHttpInfo (string appId, int? id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraDeleteEmv"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling HydraApi->HydraDeleteEmv"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraDeleteEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultHydraStatus + public RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? storeId, string deviceId) + { + ApiResponse localVarResponse = HydraDetachStoreFromKioskWithHttpInfo(appId, storeId, deviceId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > HydraDetachStoreFromKioskWithHttpInfo (string appId, int? storeId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraDetachStoreFromKiosk"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->HydraDetachStoreFromKiosk"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->HydraDetachStoreFromKiosk"); + + var localVarPath = "./api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraDetachStoreFromKiosk", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task HydraDetachStoreFromKioskAsync (string appId, int? storeId, string deviceId) + { + ApiResponse localVarResponse = await HydraDetachStoreFromKioskAsyncWithHttpInfo(appId, storeId, deviceId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> HydraDetachStoreFromKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraDetachStoreFromKiosk"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling HydraApi->HydraDetachStoreFromKiosk"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->HydraDetachStoreFromKiosk"); + + var localVarPath = "./api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraDetachStoreFromKiosk", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultEmvTerminalWithAssignments + public RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string appId) + { + ApiResponse localVarResponse = HydraGetEmvsForAppIdWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultEmvTerminalWithAssignments + public ApiResponse< RestApiArrayResultEmvTerminalWithAssignments > HydraGetEmvsForAppIdWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraGetEmvsForAppId"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraGetEmvsForAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultEmvTerminalWithAssignments) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultEmvTerminalWithAssignments))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultEmvTerminalWithAssignments + public async System.Threading.Tasks.Task HydraGetEmvsForAppIdAsync (string appId) + { + ApiResponse localVarResponse = await HydraGetEmvsForAppIdAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultEmvTerminalWithAssignments) + public async System.Threading.Tasks.Task> HydraGetEmvsForAppIdAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->HydraGetEmvsForAppId"); + + var localVarPath = "./api/v1.0/{appId}/emvterminals"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HydraGetEmvsForAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultEmvTerminalWithAssignments) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultEmvTerminalWithAssignments))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// + public void LoginWithDeviceId (string deviceId, string hydraUserType = null, string serialNumber = null) + { + LoginWithDeviceIdWithHttpInfo(deviceId, hydraUserType, serialNumber); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of Object(void) + public ApiResponse LoginWithDeviceIdWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null) + { + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->LoginWithDeviceId"); + + var localVarPath = "./api/v1.0/hydra/{deviceId}/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (hydraUserType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hydraUserType", hydraUserType)); // query parameter + if (serialNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serialNumber", serialNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LoginWithDeviceId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of void + public async System.Threading.Tasks.Task LoginWithDeviceIdAsync (string deviceId, string hydraUserType = null, string serialNumber = null) + { + await LoginWithDeviceIdAsyncWithHttpInfo(deviceId, hydraUserType, serialNumber); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> LoginWithDeviceIdAsyncWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null) + { + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->LoginWithDeviceId"); + + var localVarPath = "./api/v1.0/hydra/{deviceId}/login"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (hydraUserType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hydraUserType", hydraUserType)); // query parameter + if (serialNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serialNumber", serialNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LoginWithDeviceId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultHydraStatus + public RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest hydraRegistration) + { + ApiResponse localVarResponse = RegisterWithHttpInfo(appId, hydraRegistration); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultHydraStatus + public ApiResponse< RestApiResultHydraStatus > RegisterWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->Register"); + // verify the required parameter 'hydraRegistration' is set + if (hydraRegistration == null) + throw new ApiException(400, "Missing required parameter 'hydraRegistration' when calling HydraApi->Register"); + + var localVarPath = "./api/v1.0/{appId}/hydra/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraRegistration != null && hydraRegistration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(hydraRegistration); // http body (model) parameter + } + else + { + localVarPostBody = hydraRegistration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Register", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultHydraStatus + public async System.Threading.Tasks.Task RegisterAsync (string appId, HydraRegistrationRequest hydraRegistration) + { + ApiResponse localVarResponse = await RegisterAsyncWithHttpInfo(appId, hydraRegistration); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultHydraStatus) + public async System.Threading.Tasks.Task> RegisterAsyncWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->Register"); + // verify the required parameter 'hydraRegistration' is set + if (hydraRegistration == null) + throw new ApiException(400, "Missing required parameter 'hydraRegistration' when calling HydraApi->Register"); + + var localVarPath = "./api/v1.0/{appId}/hydra/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraRegistration != null && hydraRegistration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(hydraRegistration); // http body (model) parameter + } + else + { + localVarPostBody = hydraRegistration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Register", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHydraStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void UnAssign (string appId, string deviceId) + { + UnAssignWithHttpInfo(appId, deviceId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UnAssignWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UnAssign"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UnAssign"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnAssign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UnAssignAsync (string appId, string deviceId) + { + await UnAssignAsyncWithHttpInfo(appId, deviceId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UnAssignAsyncWithHttpInfo (string appId, string deviceId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UnAssign"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UnAssign"); + + var localVarPath = "./api/v1.0/{appId}/hydra/{deviceId}/registration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnAssign", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void UnassignEmv (string appId, int? hydraConfigId) + { + UnassignEmvWithHttpInfo(appId, hydraConfigId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UnassignEmvWithHttpInfo (string appId, int? hydraConfigId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UnassignEmv"); + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId == null) + throw new ApiException(400, "Missing required parameter 'hydraConfigId' when calling HydraApi->UnassignEmv"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraConfigId != null) localVarPathParams.Add("hydraConfigId", this.Configuration.ApiClient.ParameterToString(hydraConfigId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnassignEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UnassignEmvAsync (string appId, int? hydraConfigId) + { + await UnassignEmvAsyncWithHttpInfo(appId, hydraConfigId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UnassignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UnassignEmv"); + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId == null) + throw new ApiException(400, "Missing required parameter 'hydraConfigId' when calling HydraApi->UnassignEmv"); + + var localVarPath = "./api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (hydraConfigId != null) localVarPathParams.Add("hydraConfigId", this.Configuration.ApiClient.ParameterToString(hydraConfigId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnassignEmv", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bool? isCashEnabled) + { + UpdateKioskCashVisibilitySettingsWithHttpInfo(appId, deviceId, isCashEnabled); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateKioskCashVisibilitySettingsWithHttpInfo (string appId, string deviceId, bool? isCashEnabled) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + // verify the required parameter 'isCashEnabled' is set + if (isCashEnabled == null) + throw new ApiException(400, "Missing required parameter 'isCashEnabled' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + + var localVarPath = "./api/v1.0/{appId}/kioskupdatecashsettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceId", deviceId)); // query parameter + if (isCashEnabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isCashEnabled", isCashEnabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateKioskCashVisibilitySettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateKioskCashVisibilitySettingsAsync (string appId, string deviceId, bool? isCashEnabled) + { + await UpdateKioskCashVisibilitySettingsAsyncWithHttpInfo(appId, deviceId, isCashEnabled); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateKioskCashVisibilitySettingsAsyncWithHttpInfo (string appId, string deviceId, bool? isCashEnabled) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + // verify the required parameter 'isCashEnabled' is set + if (isCashEnabled == null) + throw new ApiException(400, "Missing required parameter 'isCashEnabled' when calling HydraApi->UpdateKioskCashVisibilitySettings"); + + var localVarPath = "./api/v1.0/{appId}/kioskupdatecashsettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deviceId", deviceId)); // query parameter + if (isCashEnabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isCashEnabled", isCashEnabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateKioskCashVisibilitySettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateKioskSettings (string appId, string deviceId, KioskSettings settings) + { + UpdateKioskSettingsWithHttpInfo(appId, deviceId, settings); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateKioskSettingsWithHttpInfo (string appId, string deviceId, KioskSettings settings) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UpdateKioskSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UpdateKioskSettings"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling HydraApi->UpdateKioskSettings"); + + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateKioskSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateKioskSettingsAsync (string appId, string deviceId, KioskSettings settings) + { + await UpdateKioskSettingsAsyncWithHttpInfo(appId, deviceId, settings); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateKioskSettingsAsyncWithHttpInfo (string appId, string deviceId, KioskSettings settings) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling HydraApi->UpdateKioskSettings"); + // verify the required parameter 'deviceId' is set + if (deviceId == null) + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->UpdateKioskSettings"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling HydraApi->UpdateKioskSettings"); + + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deviceId != null) localVarPathParams.Add("deviceId", this.Configuration.ApiClient.ParameterToString(deviceId)); // path parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateKioskSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs b/src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs new file mode 100644 index 00000000..63a9c7d9 --- /dev/null +++ b/src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs @@ -0,0 +1,353 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IIntegrationMetadataCatalogueApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultPixelPointProductCatalogue + RestApiResultPixelPointProductCatalogue IntegrationMetadataCatalogueGetPixelPointProducts (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultPixelPointProductCatalogue + ApiResponse IntegrationMetadataCatalogueGetPixelPointProductsWithHttpInfo (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiResultPixelPointProductCatalogue + System.Threading.Tasks.Task IntegrationMetadataCatalogueGetPixelPointProductsAsync (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultPixelPointProductCatalogue) + System.Threading.Tasks.Task> IntegrationMetadataCatalogueGetPixelPointProductsAsyncWithHttpInfo (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class IntegrationMetadataCatalogueApi : IIntegrationMetadataCatalogueApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public IntegrationMetadataCatalogueApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public IntegrationMetadataCatalogueApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultPixelPointProductCatalogue + public RestApiResultPixelPointProductCatalogue IntegrationMetadataCatalogueGetPixelPointProducts (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) + { + ApiResponse localVarResponse = IntegrationMetadataCatalogueGetPixelPointProductsWithHttpInfo(storeId, nameContains, page, pageSize); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultPixelPointProductCatalogue + public ApiResponse< RestApiResultPixelPointProductCatalogue > IntegrationMetadataCatalogueGetPixelPointProductsWithHttpInfo (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling IntegrationMetadataCatalogueApi->IntegrationMetadataCatalogueGetPixelPointProducts"); + + var localVarPath = "./api/v1.0/integrationmetadatacatalogue/pixelpoint/stores/{storeId}/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (nameContains != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nameContains", nameContains)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("IntegrationMetadataCatalogueGetPixelPointProducts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPixelPointProductCatalogue) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPixelPointProductCatalogue))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiResultPixelPointProductCatalogue + public async System.Threading.Tasks.Task IntegrationMetadataCatalogueGetPixelPointProductsAsync (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) + { + ApiResponse localVarResponse = await IntegrationMetadataCatalogueGetPixelPointProductsAsyncWithHttpInfo(storeId, nameContains, page, pageSize); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultPixelPointProductCatalogue) + public async System.Threading.Tasks.Task> IntegrationMetadataCatalogueGetPixelPointProductsAsyncWithHttpInfo (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling IntegrationMetadataCatalogueApi->IntegrationMetadataCatalogueGetPixelPointProducts"); + + var localVarPath = "./api/v1.0/integrationmetadatacatalogue/pixelpoint/stores/{storeId}/products"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (nameContains != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nameContains", nameContains)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("IntegrationMetadataCatalogueGetPixelPointProducts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPixelPointProductCatalogue) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPixelPointProductCatalogue))); + } + + } +} diff --git a/src/Flipdish/Api/IntercomApi.cs b/src/Flipdish/Api/IntercomApi.cs new file mode 100644 index 00000000..071b3403 --- /dev/null +++ b/src/Flipdish/Api/IntercomApi.cs @@ -0,0 +1,307 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IIntercomApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultIntercomUserHash + RestApiResultIntercomUserHash UserHash (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultIntercomUserHash + ApiResponse UserHashWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultIntercomUserHash + System.Threading.Tasks.Task UserHashAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultIntercomUserHash) + System.Threading.Tasks.Task> UserHashAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class IntercomApi : IIntercomApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public IntercomApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public IntercomApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultIntercomUserHash + public RestApiResultIntercomUserHash UserHash () + { + ApiResponse localVarResponse = UserHashWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultIntercomUserHash + public ApiResponse< RestApiResultIntercomUserHash > UserHashWithHttpInfo () + { + + var localVarPath = "./api/v1.0/intercom/userHash"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UserHash", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIntercomUserHash) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIntercomUserHash))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultIntercomUserHash + public async System.Threading.Tasks.Task UserHashAsync () + { + ApiResponse localVarResponse = await UserHashAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultIntercomUserHash) + public async System.Threading.Tasks.Task> UserHashAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/intercom/userHash"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UserHash", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIntercomUserHash) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIntercomUserHash))); + } + + } +} diff --git a/src/Flipdish/Api/InvoicesApi.cs b/src/Flipdish/Api/InvoicesApi.cs new file mode 100644 index 00000000..d591f75f --- /dev/null +++ b/src/Flipdish/Api/InvoicesApi.cs @@ -0,0 +1,1112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInvoicesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultSubscriptionInvoice + RestApiFinanceSearchPaginationResultSubscriptionInvoice GetInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultSubscriptionInvoice + ApiResponse GetInvoicesWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void InvoicePdf (string invoiceNumber, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse InvoicePdfWithHttpInfo (string invoiceNumber, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultInvoice + RestApiFinanceSearchPaginationResultInvoice ListInvoices (int? storeId, string appId, int? limit = null, int? page = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultInvoice + ApiResponse ListInvoicesWithHttpInfo (int? storeId, string appId, int? limit = null, int? page = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultSubscriptionInvoice + RestApiFinanceSearchPaginationResultSubscriptionInvoice ListSubscriptionInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultSubscriptionInvoice + ApiResponse ListSubscriptionInvoicesWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultSubscriptionInvoice + System.Threading.Tasks.Task GetInvoicesAsync (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultSubscriptionInvoice) + System.Threading.Tasks.Task> GetInvoicesAsyncWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task InvoicePdfAsync (string invoiceNumber, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> InvoicePdfAsyncWithHttpInfo (string invoiceNumber, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultInvoice + System.Threading.Tasks.Task ListInvoicesAsync (int? storeId, string appId, int? limit = null, int? page = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultInvoice) + System.Threading.Tasks.Task> ListInvoicesAsyncWithHttpInfo (int? storeId, string appId, int? limit = null, int? page = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultSubscriptionInvoice + System.Threading.Tasks.Task ListSubscriptionInvoicesAsync (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultSubscriptionInvoice) + System.Threading.Tasks.Task> ListSubscriptionInvoicesAsyncWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InvoicesApi : IInvoicesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InvoicesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InvoicesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultSubscriptionInvoice + public RestApiFinanceSearchPaginationResultSubscriptionInvoice GetInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + ApiResponse localVarResponse = GetInvoicesWithHttpInfo(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultSubscriptionInvoice + public ApiResponse< RestApiFinanceSearchPaginationResultSubscriptionInvoice > GetInvoicesWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->GetInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (pageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageId", pageId)); // query parameter + if (excludeNotOwnedInvoices != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedInvoices", excludeNotOwnedInvoices)); // query parameter + if (dateFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateFrom", dateFrom)); // query parameter + if (dateTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateTo", dateTo)); // query parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultSubscriptionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultSubscriptionInvoice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultSubscriptionInvoice + public async System.Threading.Tasks.Task GetInvoicesAsync (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + ApiResponse localVarResponse = await GetInvoicesAsyncWithHttpInfo(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultSubscriptionInvoice) + public async System.Threading.Tasks.Task> GetInvoicesAsyncWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->GetInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (pageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageId", pageId)); // query parameter + if (excludeNotOwnedInvoices != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedInvoices", excludeNotOwnedInvoices)); // query parameter + if (dateFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateFrom", dateFrom)); // query parameter + if (dateTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateTo", dateTo)); // query parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultSubscriptionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultSubscriptionInvoice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void InvoicePdf (string invoiceNumber, string appId) + { + InvoicePdfWithHttpInfo(invoiceNumber, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse InvoicePdfWithHttpInfo (string invoiceNumber, string appId) + { + // verify the required parameter 'invoiceNumber' is set + if (invoiceNumber == null) + throw new ApiException(400, "Missing required parameter 'invoiceNumber' when calling InvoicesApi->InvoicePdf"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->InvoicePdf"); + + var localVarPath = "./api/v1.0/{appId}/invoices/InvoicePdf"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InvoicePdf", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task InvoicePdfAsync (string invoiceNumber, string appId) + { + await InvoicePdfAsyncWithHttpInfo(invoiceNumber, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> InvoicePdfAsyncWithHttpInfo (string invoiceNumber, string appId) + { + // verify the required parameter 'invoiceNumber' is set + if (invoiceNumber == null) + throw new ApiException(400, "Missing required parameter 'invoiceNumber' when calling InvoicesApi->InvoicePdf"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->InvoicePdf"); + + var localVarPath = "./api/v1.0/{appId}/invoices/InvoicePdf"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("InvoicePdf", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultInvoice + public RestApiFinanceSearchPaginationResultInvoice ListInvoices (int? storeId, string appId, int? limit = null, int? page = null) + { + ApiResponse localVarResponse = ListInvoicesWithHttpInfo(storeId, appId, limit, page); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultInvoice + public ApiResponse< RestApiFinanceSearchPaginationResultInvoice > ListInvoicesWithHttpInfo (int? storeId, string appId, int? limit = null, int? page = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling InvoicesApi->ListInvoices"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->ListInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices/ListInvoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultInvoice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultInvoice + public async System.Threading.Tasks.Task ListInvoicesAsync (int? storeId, string appId, int? limit = null, int? page = null) + { + ApiResponse localVarResponse = await ListInvoicesAsyncWithHttpInfo(storeId, appId, limit, page); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultInvoice) + public async System.Threading.Tasks.Task> ListInvoicesAsyncWithHttpInfo (int? storeId, string appId, int? limit = null, int? page = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling InvoicesApi->ListInvoices"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->ListInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices/ListInvoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultInvoice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiFinanceSearchPaginationResultSubscriptionInvoice + public RestApiFinanceSearchPaginationResultSubscriptionInvoice ListSubscriptionInvoices (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + ApiResponse localVarResponse = ListSubscriptionInvoicesWithHttpInfo(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiFinanceSearchPaginationResultSubscriptionInvoice + public ApiResponse< RestApiFinanceSearchPaginationResultSubscriptionInvoice > ListSubscriptionInvoicesWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->ListSubscriptionInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices/ListSubscriptionInvoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (pageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageId", pageId)); // query parameter + if (excludeNotOwnedInvoices != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedInvoices", excludeNotOwnedInvoices)); // query parameter + if (dateFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateFrom", dateFrom)); // query parameter + if (dateTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateTo", dateTo)); // query parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListSubscriptionInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultSubscriptionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultSubscriptionInvoice))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiFinanceSearchPaginationResultSubscriptionInvoice + public async System.Threading.Tasks.Task ListSubscriptionInvoicesAsync (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + ApiResponse localVarResponse = await ListSubscriptionInvoicesAsyncWithHttpInfo(appId, subscriptionId, limit, pageId, excludeNotOwnedInvoices, dateFrom, dateTo, invoiceNumber, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiFinanceSearchPaginationResultSubscriptionInvoice) + public async System.Threading.Tasks.Task> ListSubscriptionInvoicesAsyncWithHttpInfo (string appId, string subscriptionId = null, int? limit = null, string pageId = null, bool? excludeNotOwnedInvoices = null, DateTime? dateFrom = null, DateTime? dateTo = null, string invoiceNumber = null, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling InvoicesApi->ListSubscriptionInvoices"); + + var localVarPath = "./api/v1.0/{appId}/invoices/ListSubscriptionInvoices"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (pageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageId", pageId)); // query parameter + if (excludeNotOwnedInvoices != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedInvoices", excludeNotOwnedInvoices)); // query parameter + if (dateFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateFrom", dateFrom)); // query parameter + if (dateTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dateTo", dateTo)); // query parameter + if (invoiceNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceNumber", invoiceNumber)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListSubscriptionInvoices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiFinanceSearchPaginationResultSubscriptionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiFinanceSearchPaginationResultSubscriptionInvoice))); + } + + } +} diff --git a/src/Flipdish/Api/KioskEntitlementsApi.cs b/src/Flipdish/Api/KioskEntitlementsApi.cs new file mode 100644 index 00000000..e73bca7c --- /dev/null +++ b/src/Flipdish/Api/KioskEntitlementsApi.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IKioskEntitlementsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultKioskEntitlementsResult + RestApiResultKioskEntitlementsResult QueryKioskEntitlementsByOrgId (string orgId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultKioskEntitlementsResult + ApiResponse QueryKioskEntitlementsByOrgIdWithHttpInfo (string orgId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultKioskEntitlementsResult + System.Threading.Tasks.Task QueryKioskEntitlementsByOrgIdAsync (string orgId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultKioskEntitlementsResult) + System.Threading.Tasks.Task> QueryKioskEntitlementsByOrgIdAsyncWithHttpInfo (string orgId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class KioskEntitlementsApi : IKioskEntitlementsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public KioskEntitlementsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public KioskEntitlementsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultKioskEntitlementsResult + public RestApiResultKioskEntitlementsResult QueryKioskEntitlementsByOrgId (string orgId) + { + ApiResponse localVarResponse = QueryKioskEntitlementsByOrgIdWithHttpInfo(orgId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultKioskEntitlementsResult + public ApiResponse< RestApiResultKioskEntitlementsResult > QueryKioskEntitlementsByOrgIdWithHttpInfo (string orgId) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling KioskEntitlementsApi->QueryKioskEntitlementsByOrgId"); + + var localVarPath = "./api/v1.0/orgs/{orgId}/kiosk/entitlements"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("QueryKioskEntitlementsByOrgId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskEntitlementsResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskEntitlementsResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultKioskEntitlementsResult + public async System.Threading.Tasks.Task QueryKioskEntitlementsByOrgIdAsync (string orgId) + { + ApiResponse localVarResponse = await QueryKioskEntitlementsByOrgIdAsyncWithHttpInfo(orgId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultKioskEntitlementsResult) + public async System.Threading.Tasks.Task> QueryKioskEntitlementsByOrgIdAsyncWithHttpInfo (string orgId) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling KioskEntitlementsApi->QueryKioskEntitlementsByOrgId"); + + var localVarPath = "./api/v1.0/orgs/{orgId}/kiosk/entitlements"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("QueryKioskEntitlementsByOrgId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskEntitlementsResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskEntitlementsResult))); + } + + } +} diff --git a/src/Flipdish/Api/KioskIotApi.cs b/src/Flipdish/Api/KioskIotApi.cs new file mode 100644 index 00000000..699b3cf4 --- /dev/null +++ b/src/Flipdish/Api/KioskIotApi.cs @@ -0,0 +1,540 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IKioskIotApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultKioskIotConnectionParameters + RestApiResultKioskIotConnectionParameters GetKioskIotConnection (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultKioskIotConnectionParameters + ApiResponse GetKioskIotConnectionWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTelemetrySeriesResult + RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, TelemetrySeriesQueryParameters queryParams); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTelemetrySeriesResult + ApiResponse QueryTelemetrySeriesWithHttpInfo (string appId, TelemetrySeriesQueryParameters queryParams); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultKioskIotConnectionParameters + System.Threading.Tasks.Task GetKioskIotConnectionAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) + System.Threading.Tasks.Task> GetKioskIotConnectionAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTelemetrySeriesResult + System.Threading.Tasks.Task QueryTelemetrySeriesAsync (string appId, TelemetrySeriesQueryParameters queryParams); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTelemetrySeriesResult) + System.Threading.Tasks.Task> QueryTelemetrySeriesAsyncWithHttpInfo (string appId, TelemetrySeriesQueryParameters queryParams); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class KioskIotApi : IKioskIotApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public KioskIotApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public KioskIotApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultKioskIotConnectionParameters + public RestApiResultKioskIotConnectionParameters GetKioskIotConnection () + { + ApiResponse localVarResponse = GetKioskIotConnectionWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultKioskIotConnectionParameters + public ApiResponse< RestApiResultKioskIotConnectionParameters > GetKioskIotConnectionWithHttpInfo () + { + + var localVarPath = "./api/v1.0/kioskiot/connect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskIotConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskIotConnectionParameters) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskIotConnectionParameters))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultKioskIotConnectionParameters + public async System.Threading.Tasks.Task GetKioskIotConnectionAsync () + { + ApiResponse localVarResponse = await GetKioskIotConnectionAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) + public async System.Threading.Tasks.Task> GetKioskIotConnectionAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/kioskiot/connect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetKioskIotConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskIotConnectionParameters) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskIotConnectionParameters))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTelemetrySeriesResult + public RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, TelemetrySeriesQueryParameters queryParams) + { + ApiResponse localVarResponse = QueryTelemetrySeriesWithHttpInfo(appId, queryParams); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTelemetrySeriesResult + public ApiResponse< RestApiResultTelemetrySeriesResult > QueryTelemetrySeriesWithHttpInfo (string appId, TelemetrySeriesQueryParameters queryParams) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling KioskIotApi->QueryTelemetrySeries"); + // verify the required parameter 'queryParams' is set + if (queryParams == null) + throw new ApiException(400, "Missing required parameter 'queryParams' when calling KioskIotApi->QueryTelemetrySeries"); + + var localVarPath = "./api/v1.0/{appId}/kioskiot/timeseries/query"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (queryParams != null && queryParams.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(queryParams); // http body (model) parameter + } + else + { + localVarPostBody = queryParams; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("QueryTelemetrySeries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTelemetrySeriesResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTelemetrySeriesResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTelemetrySeriesResult + public async System.Threading.Tasks.Task QueryTelemetrySeriesAsync (string appId, TelemetrySeriesQueryParameters queryParams) + { + ApiResponse localVarResponse = await QueryTelemetrySeriesAsyncWithHttpInfo(appId, queryParams); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTelemetrySeriesResult) + public async System.Threading.Tasks.Task> QueryTelemetrySeriesAsyncWithHttpInfo (string appId, TelemetrySeriesQueryParameters queryParams) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling KioskIotApi->QueryTelemetrySeries"); + // verify the required parameter 'queryParams' is set + if (queryParams == null) + throw new ApiException(400, "Missing required parameter 'queryParams' when calling KioskIotApi->QueryTelemetrySeries"); + + var localVarPath = "./api/v1.0/{appId}/kioskiot/timeseries/query"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (queryParams != null && queryParams.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(queryParams); // http body (model) parameter + } + else + { + localVarPostBody = queryParams; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("QueryTelemetrySeries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTelemetrySeriesResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTelemetrySeriesResult))); + } + + } +} diff --git a/src/Flipdish/Api/LightspeedApi.cs b/src/Flipdish/Api/LightspeedApi.cs new file mode 100644 index 00000000..6c5149f7 --- /dev/null +++ b/src/Flipdish/Api/LightspeedApi.cs @@ -0,0 +1,749 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILightspeedApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object LightspeedGenerateMenu (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse LightspeedGenerateMenuWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultLightspeedSettings + RestApiResultLightspeedSettings LightspeedGetStoreSettings (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultLightspeedSettings + ApiResponse LightspeedGetStoreSettingsWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultLightspeedSettings + RestApiResultLightspeedSettings LightspeedSaveStoreSettings (int? storeId, LightspeedSettings lightspeedSettings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultLightspeedSettings + ApiResponse LightspeedSaveStoreSettingsWithHttpInfo (int? storeId, LightspeedSettings lightspeedSettings); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task LightspeedGenerateMenuAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> LightspeedGenerateMenuAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultLightspeedSettings + System.Threading.Tasks.Task LightspeedGetStoreSettingsAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultLightspeedSettings) + System.Threading.Tasks.Task> LightspeedGetStoreSettingsAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultLightspeedSettings + System.Threading.Tasks.Task LightspeedSaveStoreSettingsAsync (int? storeId, LightspeedSettings lightspeedSettings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultLightspeedSettings) + System.Threading.Tasks.Task> LightspeedSaveStoreSettingsAsyncWithHttpInfo (int? storeId, LightspeedSettings lightspeedSettings); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LightspeedApi : ILightspeedApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LightspeedApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LightspeedApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object LightspeedGenerateMenu (int? storeId) + { + ApiResponse localVarResponse = LightspeedGenerateMenuWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > LightspeedGenerateMenuWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedGenerateMenu"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/menu/generate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedGenerateMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task LightspeedGenerateMenuAsync (int? storeId) + { + ApiResponse localVarResponse = await LightspeedGenerateMenuAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> LightspeedGenerateMenuAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedGenerateMenu"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/menu/generate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedGenerateMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultLightspeedSettings + public RestApiResultLightspeedSettings LightspeedGetStoreSettings (int? storeId) + { + ApiResponse localVarResponse = LightspeedGetStoreSettingsWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultLightspeedSettings + public ApiResponse< RestApiResultLightspeedSettings > LightspeedGetStoreSettingsWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedGetStoreSettings"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedGetStoreSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLightspeedSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLightspeedSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultLightspeedSettings + public async System.Threading.Tasks.Task LightspeedGetStoreSettingsAsync (int? storeId) + { + ApiResponse localVarResponse = await LightspeedGetStoreSettingsAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultLightspeedSettings) + public async System.Threading.Tasks.Task> LightspeedGetStoreSettingsAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedGetStoreSettings"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedGetStoreSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLightspeedSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLightspeedSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultLightspeedSettings + public RestApiResultLightspeedSettings LightspeedSaveStoreSettings (int? storeId, LightspeedSettings lightspeedSettings) + { + ApiResponse localVarResponse = LightspeedSaveStoreSettingsWithHttpInfo(storeId, lightspeedSettings); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultLightspeedSettings + public ApiResponse< RestApiResultLightspeedSettings > LightspeedSaveStoreSettingsWithHttpInfo (int? storeId, LightspeedSettings lightspeedSettings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedSaveStoreSettings"); + // verify the required parameter 'lightspeedSettings' is set + if (lightspeedSettings == null) + throw new ApiException(400, "Missing required parameter 'lightspeedSettings' when calling LightspeedApi->LightspeedSaveStoreSettings"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (lightspeedSettings != null && lightspeedSettings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(lightspeedSettings); // http body (model) parameter + } + else + { + localVarPostBody = lightspeedSettings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedSaveStoreSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLightspeedSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLightspeedSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultLightspeedSettings + public async System.Threading.Tasks.Task LightspeedSaveStoreSettingsAsync (int? storeId, LightspeedSettings lightspeedSettings) + { + ApiResponse localVarResponse = await LightspeedSaveStoreSettingsAsyncWithHttpInfo(storeId, lightspeedSettings); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultLightspeedSettings) + public async System.Threading.Tasks.Task> LightspeedSaveStoreSettingsAsyncWithHttpInfo (int? storeId, LightspeedSettings lightspeedSettings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LightspeedApi->LightspeedSaveStoreSettings"); + // verify the required parameter 'lightspeedSettings' is set + if (lightspeedSettings == null) + throw new ApiException(400, "Missing required parameter 'lightspeedSettings' when calling LightspeedApi->LightspeedSaveStoreSettings"); + + var localVarPath = "./api/v1.0/lightspeed/{storeId}/settings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (lightspeedSettings != null && lightspeedSettings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(lightspeedSettings); // http body (model) parameter + } + else + { + localVarPostBody = lightspeedSettings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LightspeedSaveStoreSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLightspeedSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLightspeedSettings))); + } + + } +} diff --git a/src/Flipdish/Api/LocationApi.cs b/src/Flipdish/Api/LocationApi.cs new file mode 100644 index 00000000..ccd0561c --- /dev/null +++ b/src/Flipdish/Api/LocationApi.cs @@ -0,0 +1,1425 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILocationApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + Object CreateLocation (List createLocationInput, int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + ApiResponse CreateLocationWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + ApiResponse DeleteLocationWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// RestApiResultMappedLocation + RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultMappedLocation + ApiResponse MapLocationToExternalIdWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Object + Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of Object + ApiResponse MoveLocationWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// RestApiResultLocationAreaLocation + RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of RestApiResultLocationAreaLocation + ApiResponse UpdateLocationWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task CreateLocationAsync (List createLocationInput, int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateLocationAsyncWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task DeleteLocationAsync (int? locationId, int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DeleteLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of RestApiResultMappedLocation + System.Threading.Tasks.Task MapLocationToExternalIdAsync (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultMappedLocation) + System.Threading.Tasks.Task> MapLocationToExternalIdAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task MoveLocationAsync (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> MoveLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of RestApiResultLocationAreaLocation + System.Threading.Tasks.Task UpdateLocationAsync (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationAreaLocation) + System.Threading.Tasks.Task> UpdateLocationAsyncWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LocationApi : ILocationApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LocationApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LocationApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + public Object CreateLocation (List createLocationInput, int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = CreateLocationWithHttpInfo(createLocationInput, locationAreaId, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > CreateLocationWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'createLocationInput' is set + if (createLocationInput == null) + throw new ApiException(400, "Missing required parameter 'createLocationInput' when calling LocationApi->CreateLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->CreateLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->CreateLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->CreateLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (createLocationInput != null && createLocationInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createLocationInput); // http body (model) parameter + } + else + { + localVarPostBody = createLocationInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task CreateLocationAsync (List createLocationInput, int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = await CreateLocationAsyncWithHttpInfo(createLocationInput, locationAreaId, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateLocationAsyncWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'createLocationInput' is set + if (createLocationInput == null) + throw new ApiException(400, "Missing required parameter 'createLocationInput' when calling LocationApi->CreateLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->CreateLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->CreateLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->CreateLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (createLocationInput != null && createLocationInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createLocationInput); // http body (model) parameter + } + else + { + localVarPostBody = createLocationInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + public Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = DeleteLocationWithHttpInfo(locationId, locationAreaId, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DeleteLocationWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->DeleteLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DeleteLocationAsync (int? locationId, int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = await DeleteLocationAsyncWithHttpInfo(locationId, locationAreaId, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DeleteLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->DeleteLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->DeleteLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// RestApiResultMappedLocation + public RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) + { + ApiResponse localVarResponse = MapLocationToExternalIdWithHttpInfo(locationId, locationAreaId, appId, storeId, externalLocationId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultMappedLocation + public ApiResponse< RestApiResultMappedLocation > MapLocationToExternalIdWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->MapLocationToExternalId"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (externalLocationId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalLocationId", externalLocationId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MapLocationToExternalId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMappedLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMappedLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of RestApiResultMappedLocation + public async System.Threading.Tasks.Task MapLocationToExternalIdAsync (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) + { + ApiResponse localVarResponse = await MapLocationToExternalIdAsyncWithHttpInfo(locationId, locationAreaId, appId, storeId, externalLocationId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultMappedLocation) + public async System.Threading.Tasks.Task> MapLocationToExternalIdAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->MapLocationToExternalId"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->MapLocationToExternalId"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (externalLocationId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalLocationId", externalLocationId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MapLocationToExternalId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMappedLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMappedLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Object + public Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = MoveLocationWithHttpInfo(locationId, locationAreaId, newLocationAreaId, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > MoveLocationWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'newLocationAreaId' is set + if (newLocationAreaId == null) + throw new ApiException(400, "Missing required parameter 'newLocationAreaId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->MoveLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (newLocationAreaId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "newLocationAreaId", newLocationAreaId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MoveLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task MoveLocationAsync (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = await MoveLocationAsyncWithHttpInfo(locationId, locationAreaId, newLocationAreaId, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> MoveLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'newLocationAreaId' is set + if (newLocationAreaId == null) + throw new ApiException(400, "Missing required parameter 'newLocationAreaId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->MoveLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->MoveLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (newLocationAreaId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "newLocationAreaId", newLocationAreaId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MoveLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// RestApiResultLocationAreaLocation + public RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) + { + ApiResponse localVarResponse = UpdateLocationWithHttpInfo(updateLocationInput, locationAreaId, locationId, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// ApiResponse of RestApiResultLocationAreaLocation + public ApiResponse< RestApiResultLocationAreaLocation > UpdateLocationWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) + { + // verify the required parameter 'updateLocationInput' is set + if (updateLocationInput == null) + throw new ApiException(400, "Missing required parameter 'updateLocationInput' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->UpdateLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (updateLocationInput != null && updateLocationInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateLocationInput); // http body (model) parameter + } + else + { + localVarPostBody = updateLocationInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationAreaLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationAreaLocation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of RestApiResultLocationAreaLocation + public async System.Threading.Tasks.Task UpdateLocationAsync (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) + { + ApiResponse localVarResponse = await UpdateLocationAsyncWithHttpInfo(updateLocationInput, locationAreaId, locationId, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationAreaLocation) + public async System.Threading.Tasks.Task> UpdateLocationAsyncWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) + { + // verify the required parameter 'updateLocationInput' is set + if (updateLocationInput == null) + throw new ApiException(400, "Missing required parameter 'updateLocationInput' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'locationId' is set + if (locationId == null) + throw new ApiException(400, "Missing required parameter 'locationId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationApi->UpdateLocation"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationApi->UpdateLocation"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (locationId != null) localVarPathParams.Add("locationId", this.Configuration.ApiClient.ParameterToString(locationId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (updateLocationInput != null && updateLocationInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateLocationInput); // http body (model) parameter + } + else + { + localVarPostBody = updateLocationInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationAreaLocation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationAreaLocation))); + } + + } +} diff --git a/src/Flipdish/Api/LocationAreasApi.cs b/src/Flipdish/Api/LocationAreasApi.cs new file mode 100644 index 00000000..69b3c5e6 --- /dev/null +++ b/src/Flipdish/Api/LocationAreasApi.cs @@ -0,0 +1,1078 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILocationAreasApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object CreateLocationArea (CreateLocationArea locationAreaInput, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse CreateLocationAreaWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultLocationAreaWithLocations + RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultLocationAreaWithLocations + ApiResponse GetLocationAreaWithHttpInfo (int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultLocationAreaWithLocations + RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultLocationAreaWithLocations + ApiResponse GetLocationAreasForStoreWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultLocationArea + RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultLocationArea + ApiResponse UpdateLocationAreaWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task CreateLocationAreaAsync (CreateLocationArea locationAreaInput, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateLocationAreaAsyncWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultLocationAreaWithLocations + System.Threading.Tasks.Task GetLocationAreaAsync (int? locationAreaId, string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationAreaWithLocations) + System.Threading.Tasks.Task> GetLocationAreaAsyncWithHttpInfo (int? locationAreaId, string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultLocationAreaWithLocations + System.Threading.Tasks.Task GetLocationAreasForStoreAsync (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultLocationAreaWithLocations) + System.Threading.Tasks.Task> GetLocationAreasForStoreAsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultLocationArea + System.Threading.Tasks.Task UpdateLocationAreaAsync (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationArea) + System.Threading.Tasks.Task> UpdateLocationAreaAsyncWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LocationAreasApi : ILocationAreasApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LocationAreasApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LocationAreasApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object CreateLocationArea (CreateLocationArea locationAreaInput, string appId, int? storeId) + { + ApiResponse localVarResponse = CreateLocationAreaWithHttpInfo(locationAreaInput, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > CreateLocationAreaWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId) + { + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput == null) + throw new ApiException(400, "Missing required parameter 'locationAreaInput' when calling LocationAreasApi->CreateLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->CreateLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->CreateLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (locationAreaInput != null && locationAreaInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locationAreaInput); // http body (model) parameter + } + else + { + localVarPostBody = locationAreaInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task CreateLocationAreaAsync (CreateLocationArea locationAreaInput, string appId, int? storeId) + { + ApiResponse localVarResponse = await CreateLocationAreaAsyncWithHttpInfo(locationAreaInput, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateLocationAreaAsyncWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId) + { + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput == null) + throw new ApiException(400, "Missing required parameter 'locationAreaInput' when calling LocationAreasApi->CreateLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->CreateLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->CreateLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (locationAreaInput != null && locationAreaInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locationAreaInput); // http body (model) parameter + } + else + { + localVarPostBody = locationAreaInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultLocationAreaWithLocations + public RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = GetLocationAreaWithHttpInfo(locationAreaId, appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultLocationAreaWithLocations + public ApiResponse< RestApiResultLocationAreaWithLocations > GetLocationAreaWithHttpInfo (int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationAreasApi->GetLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->GetLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->GetLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationAreaWithLocations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationAreaWithLocations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultLocationAreaWithLocations + public async System.Threading.Tasks.Task GetLocationAreaAsync (int? locationAreaId, string appId, int? storeId) + { + ApiResponse localVarResponse = await GetLocationAreaAsyncWithHttpInfo(locationAreaId, appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationAreaWithLocations) + public async System.Threading.Tasks.Task> GetLocationAreaAsyncWithHttpInfo (int? locationAreaId, string appId, int? storeId) + { + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationAreasApi->GetLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->GetLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->GetLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationAreaWithLocations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationAreaWithLocations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultLocationAreaWithLocations + public RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId) + { + ApiResponse localVarResponse = GetLocationAreasForStoreWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultLocationAreaWithLocations + public ApiResponse< RestApiArrayResultLocationAreaWithLocations > GetLocationAreasForStoreWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->GetLocationAreasForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->GetLocationAreasForStore"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocationAreasForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLocationAreaWithLocations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLocationAreaWithLocations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultLocationAreaWithLocations + public async System.Threading.Tasks.Task GetLocationAreasForStoreAsync (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetLocationAreasForStoreAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultLocationAreaWithLocations) + public async System.Threading.Tasks.Task> GetLocationAreasForStoreAsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->GetLocationAreasForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->GetLocationAreasForStore"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetLocationAreasForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultLocationAreaWithLocations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultLocationAreaWithLocations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultLocationArea + public RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) + { + ApiResponse localVarResponse = UpdateLocationAreaWithHttpInfo(locationAreaInput, appId, storeId, locationAreaId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultLocationArea + public ApiResponse< RestApiResultLocationArea > UpdateLocationAreaWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) + { + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput == null) + throw new ApiException(400, "Missing required parameter 'locationAreaInput' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationAreasApi->UpdateLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (locationAreaInput != null && locationAreaInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locationAreaInput); // http body (model) parameter + } + else + { + localVarPostBody = locationAreaInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationArea) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationArea))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultLocationArea + public async System.Threading.Tasks.Task UpdateLocationAreaAsync (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) + { + ApiResponse localVarResponse = await UpdateLocationAreaAsyncWithHttpInfo(locationAreaInput, appId, storeId, locationAreaId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultLocationArea) + public async System.Threading.Tasks.Task> UpdateLocationAreaAsyncWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) + { + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput == null) + throw new ApiException(400, "Missing required parameter 'locationAreaInput' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling LocationAreasApi->UpdateLocationArea"); + // verify the required parameter 'locationAreaId' is set + if (locationAreaId == null) + throw new ApiException(400, "Missing required parameter 'locationAreaId' when calling LocationAreasApi->UpdateLocationArea"); + + var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (locationAreaId != null) localVarPathParams.Add("locationAreaId", this.Configuration.ApiClient.ParameterToString(locationAreaId)); // path parameter + if (locationAreaInput != null && locationAreaInput.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locationAreaInput); // http body (model) parameter + } + else + { + localVarPostBody = locationAreaInput; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateLocationArea", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultLocationArea) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultLocationArea))); + } + + } +} diff --git a/src/Flipdish/Api/LookerDashboardApi.cs b/src/Flipdish/Api/LookerDashboardApi.cs new file mode 100644 index 00000000..7e3bf522 --- /dev/null +++ b/src/Flipdish/Api/LookerDashboardApi.cs @@ -0,0 +1,321 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILookerDashboardApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void LookerDashboardGetAll (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse LookerDashboardGetAllWithHttpInfo (string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task LookerDashboardGetAllAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> LookerDashboardGetAllAsyncWithHttpInfo (string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LookerDashboardApi : ILookerDashboardApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LookerDashboardApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LookerDashboardApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void LookerDashboardGetAll (string appId) + { + LookerDashboardGetAllWithHttpInfo(appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse LookerDashboardGetAllWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LookerDashboardApi->LookerDashboardGetAll"); + + var localVarPath = "./api/v1.0/{appId}/looker/dashboards"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LookerDashboardGetAll", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task LookerDashboardGetAllAsync (string appId) + { + await LookerDashboardGetAllAsyncWithHttpInfo(appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> LookerDashboardGetAllAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LookerDashboardApi->LookerDashboardGetAll"); + + var localVarPath = "./api/v1.0/{appId}/looker/dashboards"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("LookerDashboardGetAll", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/LookerSingleSignOnApi.cs b/src/Flipdish/Api/LookerSingleSignOnApi.cs new file mode 100644 index 00000000..71112801 --- /dev/null +++ b/src/Flipdish/Api/LookerSingleSignOnApi.cs @@ -0,0 +1,349 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILookerSingleSignOnApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// DashboardEmbed + DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of DashboardEmbed + ApiResponse GetSSOEndpointWithHttpInfo (string appId, string embedPath, string filters = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of DashboardEmbed + System.Threading.Tasks.Task GetSSOEndpointAsync (string appId, string embedPath, string filters = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (DashboardEmbed) + System.Threading.Tasks.Task> GetSSOEndpointAsyncWithHttpInfo (string appId, string embedPath, string filters = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LookerSingleSignOnApi : ILookerSingleSignOnApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LookerSingleSignOnApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LookerSingleSignOnApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// DashboardEmbed + public DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null) + { + ApiResponse localVarResponse = GetSSOEndpointWithHttpInfo(appId, embedPath, filters); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of DashboardEmbed + public ApiResponse< DashboardEmbed > GetSSOEndpointWithHttpInfo (string appId, string embedPath, string filters = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LookerSingleSignOnApi->GetSSOEndpoint"); + // verify the required parameter 'embedPath' is set + if (embedPath == null) + throw new ApiException(400, "Missing required parameter 'embedPath' when calling LookerSingleSignOnApi->GetSSOEndpoint"); + + var localVarPath = "./api/v1.0/{appId}/looker/sso"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (embedPath != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "embedPath", embedPath)); // query parameter + if (filters != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "filters", filters)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSSOEndpoint", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (DashboardEmbed) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DashboardEmbed))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of DashboardEmbed + public async System.Threading.Tasks.Task GetSSOEndpointAsync (string appId, string embedPath, string filters = null) + { + ApiResponse localVarResponse = await GetSSOEndpointAsyncWithHttpInfo(appId, embedPath, filters); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (DashboardEmbed) + public async System.Threading.Tasks.Task> GetSSOEndpointAsyncWithHttpInfo (string appId, string embedPath, string filters = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling LookerSingleSignOnApi->GetSSOEndpoint"); + // verify the required parameter 'embedPath' is set + if (embedPath == null) + throw new ApiException(400, "Missing required parameter 'embedPath' when calling LookerSingleSignOnApi->GetSSOEndpoint"); + + var localVarPath = "./api/v1.0/{appId}/looker/sso"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (embedPath != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "embedPath", embedPath)); // query parameter + if (filters != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "filters", filters)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSSOEndpoint", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (DashboardEmbed) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DashboardEmbed))); + } + + } +} diff --git a/src/Flipdish/Api/MenuOptionSetItemsApi.cs b/src/Flipdish/Api/MenuOptionSetItemsApi.cs new file mode 100644 index 00000000..dcba48fd --- /dev/null +++ b/src/Flipdish/Api/MenuOptionSetItemsApi.cs @@ -0,0 +1,2270 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenuOptionSetItemsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Create menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Object + Object AddMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem); + + /// + /// Create menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// ApiResponse of Object + ApiResponse AddMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem); + /// + /// Delete menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// + void DeleteOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Delete menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of Object(void) + ApiResponse DeleteOptionSetItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Get menu item option set item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// RestApiResultMenuItemOptionSetItem + RestApiResultMenuItemOptionSetItem GetMenuItemOptionSetItemById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Get menu item option set item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of RestApiResultMenuItemOptionSetItem + ApiResponse GetMenuItemOptionSetItemByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Get menu item option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// RestApiArrayResultMenuItemOptionSetItem + RestApiArrayResultMenuItemOptionSetItem GetMenuItemOptionSetItems (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Get menu item option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// ApiResponse of RestApiArrayResultMenuItemOptionSetItem + ApiResponse GetMenuItemOptionSetItemsWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Delete menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// + void RemoveMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Delete menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of Object(void) + ApiResponse RemoveMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Set Tax Rate on OptionSetItem + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// + void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); + + /// + /// Set Tax Rate on OptionSetItem + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// ApiResponse of Object(void) + ApiResponse SetOptionSetItemTaxWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); + /// + /// Update menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// + void UpdateMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null); + + /// + /// Update menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// ApiResponse of Object(void) + ApiResponse UpdateMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null); + /// + /// Upload menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// RestApiStringResult + RestApiStringResult UploadOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image); + + /// + /// Upload menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// ApiResponse of RestApiStringResult + ApiResponse UploadOptionSetItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Create menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Task of Object + System.Threading.Tasks.Task AddMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem); + + /// + /// Create menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AddMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem); + /// + /// Delete menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of void + System.Threading.Tasks.Task DeleteOptionSetItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Delete menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteOptionSetItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Get menu item option set item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of RestApiResultMenuItemOptionSetItem + System.Threading.Tasks.Task GetMenuItemOptionSetItemByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Get menu item option set item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse (RestApiResultMenuItemOptionSetItem) + System.Threading.Tasks.Task> GetMenuItemOptionSetItemByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Get menu item option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of RestApiArrayResultMenuItemOptionSetItem + System.Threading.Tasks.Task GetMenuItemOptionSetItemsAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Get menu item option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of ApiResponse (RestApiArrayResultMenuItemOptionSetItem) + System.Threading.Tasks.Task> GetMenuItemOptionSetItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Delete menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of void + System.Threading.Tasks.Task RemoveMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + + /// + /// Delete menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> RemoveMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); + /// + /// Set Tax Rate on OptionSetItem + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// Task of void + System.Threading.Tasks.Task SetOptionSetItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); + + /// + /// Set Tax Rate on OptionSetItem + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// Task of ApiResponse + System.Threading.Tasks.Task> SetOptionSetItemTaxAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); + /// + /// Update menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of void + System.Threading.Tasks.Task UpdateMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null); + + /// + /// Update menu item option set item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null); + /// + /// Upload menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// Task of RestApiStringResult + System.Threading.Tasks.Task UploadOptionSetItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image); + + /// + /// Upload menu item option set item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> UploadOptionSetItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenuOptionSetItemsApi : IMenuOptionSetItemsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenuOptionSetItemsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenuOptionSetItemsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Create menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Object + public Object AddMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem) + { + ApiResponse localVarResponse = AddMenuItemOptionSetItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem); + return localVarResponse.Data; + } + + /// + /// Create menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// ApiResponse of Object + public ApiResponse< Object > AddMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItem' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItem != null && menuItemOptionSetItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSetItem); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSetItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Task of Object + public async System.Threading.Tasks.Task AddMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem) + { + ApiResponse localVarResponse = await AddMenuItemOptionSetItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem); + return localVarResponse.Data; + + } + + /// + /// Create menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AddMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetItemBase menuItemOptionSetItem) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItem' when calling MenuOptionSetItemsApi->AddMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItem != null && menuItemOptionSetItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSetItem); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSetItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Delete menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// + public void DeleteOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + DeleteOptionSetItemImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + } + + /// + /// Delete menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteOptionSetItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOptionSetItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteOptionSetItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + await DeleteOptionSetItemImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + + } + + /// + /// Delete menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteOptionSetItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->DeleteOptionSetItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOptionSetItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get menu item option set item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// RestApiResultMenuItemOptionSetItem + public RestApiResultMenuItemOptionSetItem GetMenuItemOptionSetItemById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + ApiResponse localVarResponse = GetMenuItemOptionSetItemByIdWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + return localVarResponse.Data; + } + + /// + /// Get menu item option set item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of RestApiResultMenuItemOptionSetItem + public ApiResponse< RestApiResultMenuItemOptionSetItem > GetMenuItemOptionSetItemByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuItemOptionSetItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuItemOptionSetItem))); + } + + /// + /// Get menu item option set item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of RestApiResultMenuItemOptionSetItem + public async System.Threading.Tasks.Task GetMenuItemOptionSetItemByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + ApiResponse localVarResponse = await GetMenuItemOptionSetItemByIdAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + return localVarResponse.Data; + + } + + /// + /// Get menu item option set item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse (RestApiResultMenuItemOptionSetItem) + public async System.Threading.Tasks.Task> GetMenuItemOptionSetItemByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItemById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuItemOptionSetItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuItemOptionSetItem))); + } + + /// + /// Get menu item option set items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// RestApiArrayResultMenuItemOptionSetItem + public RestApiArrayResultMenuItemOptionSetItem GetMenuItemOptionSetItems (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + ApiResponse localVarResponse = GetMenuItemOptionSetItemsWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + return localVarResponse.Data; + } + + /// + /// Get menu item option set items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// ApiResponse of RestApiArrayResultMenuItemOptionSetItem + public ApiResponse< RestApiArrayResultMenuItemOptionSetItem > GetMenuItemOptionSetItemsWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuItemOptionSetItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuItemOptionSetItem))); + } + + /// + /// Get menu item option set items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of RestApiArrayResultMenuItemOptionSetItem + public async System.Threading.Tasks.Task GetMenuItemOptionSetItemsAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + ApiResponse localVarResponse = await GetMenuItemOptionSetItemsAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + return localVarResponse.Data; + + } + + /// + /// Get menu item option set items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of ApiResponse (RestApiArrayResultMenuItemOptionSetItem) + public async System.Threading.Tasks.Task> GetMenuItemOptionSetItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->GetMenuItemOptionSetItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuItemOptionSetItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuItemOptionSetItem))); + } + + /// + /// Delete menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// + public void RemoveMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + RemoveMenuItemOptionSetItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + } + + /// + /// Delete menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// ApiResponse of Object(void) + public ApiResponse RemoveMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of void + public async System.Threading.Tasks.Task RemoveMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + await RemoveMenuItemOptionSetItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId); + + } + + /// + /// Delete menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RemoveMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->RemoveMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set Tax Rate on OptionSetItem + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// + public void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) + { + SetOptionSetItemTaxWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId); + } + + /// + /// Set Tax Rate on OptionSetItem + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// ApiResponse of Object(void) + public ApiResponse SetOptionSetItemTaxWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'taxRateId' is set + if (taxRateId == null) + throw new ApiException(400, "Missing required parameter 'taxRateId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (taxRateId != null) localVarPathParams.Add("taxRateId", this.Configuration.ApiClient.ParameterToString(taxRateId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetOptionSetItemTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set Tax Rate on OptionSetItem + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// Task of void + public async System.Threading.Tasks.Task SetOptionSetItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) + { + await SetOptionSetItemTaxAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId); + + } + + /// + /// Set Tax Rate on OptionSetItem + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + /// + /// + /// Option set item identifier + /// Tax Rate to use + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetOptionSetItemTaxAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + // verify the required parameter 'taxRateId' is set + if (taxRateId == null) + throw new ApiException(400, "Missing required parameter 'taxRateId' when calling MenuOptionSetItemsApi->SetOptionSetItemTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (taxRateId != null) localVarPathParams.Add("taxRateId", this.Configuration.ApiClient.ParameterToString(taxRateId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetOptionSetItemTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// + public void UpdateMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null) + { + UpdateMenuItemOptionSetItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, undoAfter); + } + + /// + /// Update menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItem' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuItemOptionSetItem != null && menuItemOptionSetItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSetItem); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSetItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuItemOptionSetItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null) + { + await UpdateMenuItemOptionSetItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, undoAfter); + + } + + /// + /// Update menu item option set item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, MenuItemOptionSetItemBase menuItemOptionSetItem, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItem' when calling MenuOptionSetItemsApi->UpdateMenuItemOptionSetItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuItemOptionSetItem != null && menuItemOptionSetItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSetItem); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSetItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuItemOptionSetItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Upload menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// RestApiStringResult + public RestApiStringResult UploadOptionSetItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadOptionSetItemImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image); + return localVarResponse.Data; + } + + /// + /// Upload menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > UploadOptionSetItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadOptionSetItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Upload menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task UploadOptionSetItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadOptionSetItemImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, image); + return localVarResponse.Data; + + } + + /// + /// Upload menu item option set item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set item identifier + /// Option set item image + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> UploadOptionSetItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSetItemId' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuOptionSetItemsApi->UploadOptionSetItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSetItemId != null) localVarPathParams.Add("menuItemOptionSetItemId", this.Configuration.ApiClient.ParameterToString(menuItemOptionSetItemId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadOptionSetItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + } +} diff --git a/src/Flipdish/Api/MenuOptionSetsApi.cs b/src/Flipdish/Api/MenuOptionSetsApi.cs new file mode 100644 index 00000000..4ed0c8f9 --- /dev/null +++ b/src/Flipdish/Api/MenuOptionSetsApi.cs @@ -0,0 +1,1877 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenuOptionSetsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Create menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Object + Object CreateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet); + + /// + /// Create menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// ApiResponse of Object + ApiResponse CreateMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet); + /// + /// Delete menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// + void DeleteMenuItemOptionSet (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId); + + /// + /// Delete menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId); + /// + /// Delete option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// + void DeleteOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Delete option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// ApiResponse of Object(void) + ApiResponse DeleteOptionSetImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Get menu item option set by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// RestApiResultMenuItemOptionSet + RestApiResultMenuItemOptionSet GetMenuItemOptionSetById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Get menu item option set by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// ApiResponse of RestApiResultMenuItemOptionSet + ApiResponse GetMenuItemOptionSetByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Get menu item option sets + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// RestApiArrayResultMenuItemOptionSet + RestApiArrayResultMenuItemOptionSet GetMenuItemOptionSets (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Get menu item option sets + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of RestApiArrayResultMenuItemOptionSet + ApiResponse GetMenuItemOptionSetsWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Update menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// + void UpdateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet); + + /// + /// Update menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// ApiResponse of Object(void) + ApiResponse UpdateMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet); + /// + /// Upload menu item option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// RestApiStringResult + RestApiStringResult UploadOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image); + + /// + /// Upload menu item option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// ApiResponse of RestApiStringResult + ApiResponse UploadOptionSetImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Create menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Task of Object + System.Threading.Tasks.Task CreateMenuItemOptionSetAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet); + + /// + /// Create menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet); + /// + /// Delete menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuItemOptionSetAsync (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId); + + /// + /// Delete menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId); + /// + /// Delete option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of void + System.Threading.Tasks.Task DeleteOptionSetImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Delete option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteOptionSetImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Get menu item option set by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// Task of RestApiResultMenuItemOptionSet + System.Threading.Tasks.Task GetMenuItemOptionSetByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + + /// + /// Get menu item option set by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// Task of ApiResponse (RestApiResultMenuItemOptionSet) + System.Threading.Tasks.Task> GetMenuItemOptionSetByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId); + /// + /// Get menu item option sets + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of RestApiArrayResultMenuItemOptionSet + System.Threading.Tasks.Task GetMenuItemOptionSetsAsync (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Get menu item option sets + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse (RestApiArrayResultMenuItemOptionSet) + System.Threading.Tasks.Task> GetMenuItemOptionSetsAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Update menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// Task of void + System.Threading.Tasks.Task UpdateMenuItemOptionSetAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet); + + /// + /// Update menu item option set + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet); + /// + /// Upload menu item option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// Task of RestApiStringResult + System.Threading.Tasks.Task UploadOptionSetImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image); + + /// + /// Upload menu item option set image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> UploadOptionSetImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenuOptionSetsApi : IMenuOptionSetsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenuOptionSetsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenuOptionSetsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Create menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Object + public Object CreateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet) + { + ApiResponse localVarResponse = CreateMenuItemOptionSetWithHttpInfo(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet); + return localVarResponse.Data; + } + + /// + /// Create menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSet' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (menuItemOptionSet != null && menuItemOptionSet.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSet); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSet; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuItemOptionSetAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet) + { + ApiResponse localVarResponse = await CreateMenuItemOptionSetAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet); + return localVarResponse.Data; + + } + + /// + /// Create menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuItemOptionSetBase menuItemOptionSet) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSet' when calling MenuOptionSetsApi->CreateMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (menuItemOptionSet != null && menuItemOptionSet.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSet); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSet; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Delete menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// + public void DeleteMenuItemOptionSet (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId) + { + DeleteMenuItemOptionSetWithHttpInfo(menuId, menuSectionItemId, menuSectionId, optionSetId); + } + + /// + /// Delete menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuItemOptionSetAsync (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId) + { + await DeleteMenuItemOptionSetAsyncWithHttpInfo(menuId, menuSectionItemId, menuSectionId, optionSetId); + + } + + /// + /// Delete menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section item identifier + /// Menu section identifier + /// Option set identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionItemId, int? menuSectionId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->DeleteMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// + public void DeleteOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + DeleteOptionSetImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + } + + /// + /// Delete option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteOptionSetImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOptionSetImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteOptionSetImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + await DeleteOptionSetImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + + } + + /// + /// Delete option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteOptionSetImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->DeleteOptionSetImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOptionSetImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get menu item option set by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// RestApiResultMenuItemOptionSet + public RestApiResultMenuItemOptionSet GetMenuItemOptionSetById (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + ApiResponse localVarResponse = GetMenuItemOptionSetByIdWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + return localVarResponse.Data; + } + + /// + /// Get menu item option set by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// ApiResponse of RestApiResultMenuItemOptionSet + public ApiResponse< RestApiResultMenuItemOptionSet > GetMenuItemOptionSetByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuItemOptionSet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuItemOptionSet))); + } + + /// + /// Get menu item option set by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// Task of RestApiResultMenuItemOptionSet + public async System.Threading.Tasks.Task GetMenuItemOptionSetByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + ApiResponse localVarResponse = await GetMenuItemOptionSetByIdAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId); + return localVarResponse.Data; + + } + + /// + /// Get menu item option set by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu item option set identifier + /// Task of ApiResponse (RestApiResultMenuItemOptionSet) + public async System.Threading.Tasks.Task> GetMenuItemOptionSetByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->GetMenuItemOptionSetById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuItemOptionSet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuItemOptionSet))); + } + + /// + /// Get menu item option sets + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// RestApiArrayResultMenuItemOptionSet + public RestApiArrayResultMenuItemOptionSet GetMenuItemOptionSets (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = GetMenuItemOptionSetsWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + } + + /// + /// Get menu item option sets + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of RestApiArrayResultMenuItemOptionSet + public ApiResponse< RestApiArrayResultMenuItemOptionSet > GetMenuItemOptionSetsWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSets", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuItemOptionSet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuItemOptionSet))); + } + + /// + /// Get menu item option sets + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of RestApiArrayResultMenuItemOptionSet + public async System.Threading.Tasks.Task GetMenuItemOptionSetsAsync (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = await GetMenuItemOptionSetsAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + + } + + /// + /// Get menu item option sets + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse (RestApiArrayResultMenuItemOptionSet) + public async System.Threading.Tasks.Task> GetMenuItemOptionSetsAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->GetMenuItemOptionSets"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSets", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuItemOptionSet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuItemOptionSet))); + } + + /// + /// Update menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// + public void UpdateMenuItemOptionSet (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet) + { + UpdateMenuItemOptionSetWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet); + } + + /// + /// Update menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuItemOptionSetWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSet' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSet != null && menuItemOptionSet.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSet); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSet; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuItemOptionSetAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet) + { + await UpdateMenuItemOptionSetAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet); + + } + + /// + /// Update menu item option set + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Menu item option set (delta) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuItemOptionSetAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, MenuItemOptionSetBase menuItemOptionSet) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet == null) + throw new ApiException(400, "Missing required parameter 'menuItemOptionSet' when calling MenuOptionSetsApi->UpdateMenuItemOptionSet"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (menuItemOptionSet != null && menuItemOptionSet.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuItemOptionSet); // http body (model) parameter + } + else + { + localVarPostBody = menuItemOptionSet; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuItemOptionSet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Upload menu item option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// RestApiStringResult + public RestApiStringResult UploadOptionSetImage (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadOptionSetImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, image); + return localVarResponse.Data; + } + + /// + /// Upload menu item option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > UploadOptionSetImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuOptionSetsApi->UploadOptionSetImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadOptionSetImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Upload menu item option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task UploadOptionSetImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadOptionSetImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, optionSetId, image); + return localVarResponse.Data; + + } + + /// + /// Upload menu item option set image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Option set identifier + /// Option set image + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> UploadOptionSetImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'optionSetId' is set + if (optionSetId == null) + throw new ApiException(400, "Missing required parameter 'optionSetId' when calling MenuOptionSetsApi->UploadOptionSetImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuOptionSetsApi->UploadOptionSetImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (optionSetId != null) localVarPathParams.Add("optionSetId", this.Configuration.ApiClient.ParameterToString(optionSetId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadOptionSetImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + } +} diff --git a/src/Flipdish/Api/MenuSectionItemsApi.cs b/src/Flipdish/Api/MenuSectionItemsApi.cs new file mode 100644 index 00000000..647f21a1 --- /dev/null +++ b/src/Flipdish/Api/MenuSectionItemsApi.cs @@ -0,0 +1,2727 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenuSectionItemsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clone menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// RestApiResultMenuSectionItem + RestApiResultMenuSectionItem CloneMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Clone menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of RestApiResultMenuSectionItem + ApiResponse CloneMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Create menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Object + Object CreateMenuSectionItem (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem); + + /// + /// Create menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// ApiResponse of Object + ApiResponse CreateMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem); + /// + /// Create menu section items from a list of Catalog Items + /// + /// + /// BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Object + Object CreateMenuSectionItemFromCatalogItems (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems); + + /// + /// Create menu section items from a list of Catalog Items + /// + /// + /// BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// ApiResponse of Object + ApiResponse CreateMenuSectionItemFromCatalogItemsWithHttpInfo (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems); + /// + /// Delete menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// + void DeleteMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Delete menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Delete menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// + void DeleteMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Delete menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuSectionItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Get menu item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// RestApiResultMenuSectionItem + RestApiResultMenuSectionItem GetMenuItemById (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Get menu item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// ApiResponse of RestApiResultMenuSectionItem + ApiResponse GetMenuItemByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Get menu items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiArrayResultMenuSectionItem + RestApiArrayResultMenuSectionItem GetMenuItems (int? menuId, int? menuSectionId); + + /// + /// Get menu items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiArrayResultMenuSectionItem + ApiResponse GetMenuItemsWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Move an Item within a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// + void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); + + /// + /// Move an Item within a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// ApiResponse of Object(void) + ApiResponse MoveMenuItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); + /// + /// Set tax rate for menu item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// + void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); + + /// + /// Set tax rate for menu item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// ApiResponse of Object(void) + ApiResponse SetSectionItemTaxWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); + /// + /// Update menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// + void UpdateMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null); + + /// + /// Update menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// ApiResponse of Object(void) + ApiResponse UpdateMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null); + /// + /// Upload menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// RestApiStringResult + RestApiStringResult UploadMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image); + + /// + /// Upload menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// ApiResponse of RestApiStringResult + ApiResponse UploadMenuSectionItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clone menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of RestApiResultMenuSectionItem + System.Threading.Tasks.Task CloneMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Clone menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse (RestApiResultMenuSectionItem) + System.Threading.Tasks.Task> CloneMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Create menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Task of Object + System.Threading.Tasks.Task CreateMenuSectionItemAsync (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem); + + /// + /// Create menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem); + /// + /// Create menu section items from a list of Catalog Items + /// + /// + /// BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Task of Object + System.Threading.Tasks.Task CreateMenuSectionItemFromCatalogItemsAsync (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems); + + /// + /// Create menu section items from a list of Catalog Items + /// + /// + /// BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuSectionItemFromCatalogItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems); + /// + /// Delete menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Delete menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Delete menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuSectionItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Delete menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuSectionItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Get menu item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// Task of RestApiResultMenuSectionItem + System.Threading.Tasks.Task GetMenuItemByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId); + + /// + /// Get menu item by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// Task of ApiResponse (RestApiResultMenuSectionItem) + System.Threading.Tasks.Task> GetMenuItemByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId); + /// + /// Get menu items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiArrayResultMenuSectionItem + System.Threading.Tasks.Task GetMenuItemsAsync (int? menuId, int? menuSectionId); + + /// + /// Get menu items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiArrayResultMenuSectionItem) + System.Threading.Tasks.Task> GetMenuItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Move an Item within a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// Task of void + System.Threading.Tasks.Task MoveMenuItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); + + /// + /// Move an Item within a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// Task of ApiResponse + System.Threading.Tasks.Task> MoveMenuItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); + /// + /// Set tax rate for menu item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// Task of void + System.Threading.Tasks.Task SetSectionItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); + + /// + /// Set tax rate for menu item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// Task of ApiResponse + System.Threading.Tasks.Task> SetSectionItemTaxAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); + /// + /// Update menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// Task of void + System.Threading.Tasks.Task UpdateMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null); + + /// + /// Update menu section item + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null); + /// + /// Upload menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// Task of RestApiStringResult + System.Threading.Tasks.Task UploadMenuSectionItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image); + + /// + /// Upload menu section item image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> UploadMenuSectionItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenuSectionItemsApi : IMenuSectionItemsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenuSectionItemsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenuSectionItemsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clone menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// RestApiResultMenuSectionItem + public RestApiResultMenuSectionItem CloneMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = CloneMenuSectionItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + } + + /// + /// Clone menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of RestApiResultMenuSectionItem + public ApiResponse< RestApiResultMenuSectionItem > CloneMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSectionItem))); + } + + /// + /// Clone menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of RestApiResultMenuSectionItem + public async System.Threading.Tasks.Task CloneMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = await CloneMenuSectionItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + + } + + /// + /// Clone menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse (RestApiResultMenuSectionItem) + public async System.Threading.Tasks.Task> CloneMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->CloneMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSectionItem))); + } + + /// + /// Create menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Object + public Object CreateMenuSectionItem (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem) + { + ApiResponse localVarResponse = CreateMenuSectionItemWithHttpInfo(menuId, menuSectionId, menuSectionItem); + return localVarResponse.Data; + } + + /// + /// Create menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItem' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItem != null && menuSectionItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionItem); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuSectionItemAsync (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem) + { + ApiResponse localVarResponse = await CreateMenuSectionItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItem); + return localVarResponse.Data; + + } + + /// + /// Create menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionItemBase menuSectionItem) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItem' when calling MenuSectionItemsApi->CreateMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItem != null && menuSectionItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionItem); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu section items from a list of Catalog Items BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Object + public Object CreateMenuSectionItemFromCatalogItems (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems) + { + ApiResponse localVarResponse = CreateMenuSectionItemFromCatalogItemsWithHttpInfo(menuId, menuSectionId, createFromCatalogItems); + return localVarResponse.Data; + } + + /// + /// Create menu section items from a list of Catalog Items BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuSectionItemFromCatalogItemsWithHttpInfo (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + // verify the required parameter 'createFromCatalogItems' is set + if (createFromCatalogItems == null) + throw new ApiException(400, "Missing required parameter 'createFromCatalogItems' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (createFromCatalogItems != null && createFromCatalogItems.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createFromCatalogItems); // http body (model) parameter + } + else + { + localVarPostBody = createFromCatalogItems; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionItemFromCatalogItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu section items from a list of Catalog Items BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuSectionItemFromCatalogItemsAsync (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems) + { + ApiResponse localVarResponse = await CreateMenuSectionItemFromCatalogItemsAsyncWithHttpInfo(menuId, menuSectionId, createFromCatalogItems); + return localVarResponse.Data; + + } + + /// + /// Create menu section items from a list of Catalog Items BETA - this endpoint is under development, do not use it in your production system + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Information to create the new MenuSectionItems + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuSectionItemFromCatalogItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId, CreateMenuSectionItemFromCatalogItems createFromCatalogItems) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + // verify the required parameter 'createFromCatalogItems' is set + if (createFromCatalogItems == null) + throw new ApiException(400, "Missing required parameter 'createFromCatalogItems' when calling MenuSectionItemsApi->CreateMenuSectionItemFromCatalogItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (createFromCatalogItems != null && createFromCatalogItems.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createFromCatalogItems); // http body (model) parameter + } + else + { + localVarPostBody = createFromCatalogItems; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionItemFromCatalogItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Delete menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// + public void DeleteMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + DeleteMenuSectionItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + } + + /// + /// Delete menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + await DeleteMenuSectionItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + + } + + /// + /// Delete menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->DeleteMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// + public void DeleteMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + DeleteMenuSectionItemImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + } + + /// + /// Delete menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuSectionItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuSectionItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + await DeleteMenuSectionItemImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + + } + + /// + /// Delete menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuSectionItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->DeleteMenuSectionItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get menu item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// RestApiResultMenuSectionItem + public RestApiResultMenuSectionItem GetMenuItemById (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = GetMenuItemByIdWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + } + + /// + /// Get menu item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// ApiResponse of RestApiResultMenuSectionItem + public ApiResponse< RestApiResultMenuSectionItem > GetMenuItemByIdWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->GetMenuItemById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->GetMenuItemById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->GetMenuItemById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSectionItem))); + } + + /// + /// Get menu item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// Task of RestApiResultMenuSectionItem + public async System.Threading.Tasks.Task GetMenuItemByIdAsync (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + ApiResponse localVarResponse = await GetMenuItemByIdAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId); + return localVarResponse.Data; + + } + + /// + /// Get menu item by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu item identifier + /// Task of ApiResponse (RestApiResultMenuSectionItem) + public async System.Threading.Tasks.Task> GetMenuItemByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->GetMenuItemById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->GetMenuItemById"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->GetMenuItemById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSectionItem))); + } + + /// + /// Get menu items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiArrayResultMenuSectionItem + public RestApiArrayResultMenuSectionItem GetMenuItems (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = GetMenuItemsWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + } + + /// + /// Get menu items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiArrayResultMenuSectionItem + public ApiResponse< RestApiArrayResultMenuSectionItem > GetMenuItemsWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->GetMenuItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->GetMenuItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSectionItem))); + } + + /// + /// Get menu items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiArrayResultMenuSectionItem + public async System.Threading.Tasks.Task GetMenuItemsAsync (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = await GetMenuItemsAsyncWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + + } + + /// + /// Get menu items + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiArrayResultMenuSectionItem) + public async System.Threading.Tasks.Task> GetMenuItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->GetMenuItems"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->GetMenuItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSectionItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSectionItem))); + } + + /// + /// Move an Item within a menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// + public void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) + { + MoveMenuItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder); + } + + /// + /// Move an Item within a menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// ApiResponse of Object(void) + public ApiResponse MoveMenuItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'destinationDisplayOrder' is set + if (destinationDisplayOrder == null) + throw new ApiException(400, "Missing required parameter 'destinationDisplayOrder' when calling MenuSectionItemsApi->MoveMenuItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (destinationDisplayOrder != null) localVarPathParams.Add("destinationDisplayOrder", this.Configuration.ApiClient.ParameterToString(destinationDisplayOrder)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MoveMenuItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Move an Item within a menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// Task of void + public async System.Threading.Tasks.Task MoveMenuItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) + { + await MoveMenuItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder); + + } + + /// + /// Move an Item within a menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// New Display Order of item + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MoveMenuItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->MoveMenuItem"); + // verify the required parameter 'destinationDisplayOrder' is set + if (destinationDisplayOrder == null) + throw new ApiException(400, "Missing required parameter 'destinationDisplayOrder' when calling MenuSectionItemsApi->MoveMenuItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (destinationDisplayOrder != null) localVarPathParams.Add("destinationDisplayOrder", this.Configuration.ApiClient.ParameterToString(destinationDisplayOrder)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MoveMenuItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set tax rate for menu item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// + public void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) + { + SetSectionItemTaxWithHttpInfo(menuId, menuSectionId, menuSectionItemId, taxRateId); + } + + /// + /// Set tax rate for menu item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// ApiResponse of Object(void) + public ApiResponse SetSectionItemTaxWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'taxRateId' is set + if (taxRateId == null) + throw new ApiException(400, "Missing required parameter 'taxRateId' when calling MenuSectionItemsApi->SetSectionItemTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (taxRateId != null) localVarPathParams.Add("taxRateId", this.Configuration.ApiClient.ParameterToString(taxRateId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetSectionItemTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set tax rate for menu item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// Task of void + public async System.Threading.Tasks.Task SetSectionItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) + { + await SetSectionItemTaxAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, taxRateId); + + } + + /// + /// Set tax rate for menu item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section to put item in (will usually be original section) + /// ID of Item to be moved + /// tax rate to be set against item + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetSectionItemTaxAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->SetSectionItemTax"); + // verify the required parameter 'taxRateId' is set + if (taxRateId == null) + throw new ApiException(400, "Missing required parameter 'taxRateId' when calling MenuSectionItemsApi->SetSectionItemTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (taxRateId != null) localVarPathParams.Add("taxRateId", this.Configuration.ApiClient.ParameterToString(taxRateId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetSectionItemTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// + public void UpdateMenuSectionItem (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null) + { + UpdateMenuSectionItemWithHttpInfo(menuId, menuSectionId, menuSectionItemId, menuSectionItem, undoAfter); + } + + /// + /// Update menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuSectionItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItem' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuSectionItem != null && menuSectionItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionItem); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuSectionItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null) + { + await UpdateMenuSectionItemAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, menuSectionItem, undoAfter); + + } + + /// + /// Update menu section item + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone (optional) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuSectionItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, MenuSectionItemBase menuSectionItem, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItem' when calling MenuSectionItemsApi->UpdateMenuSectionItem"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuSectionItem != null && menuSectionItem.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionItem); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionItem; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuSectionItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Upload menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// RestApiStringResult + public RestApiStringResult UploadMenuSectionItemImage (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadMenuSectionItemImageWithHttpInfo(menuId, menuSectionId, menuSectionItemId, image); + return localVarResponse.Data; + } + + /// + /// Upload menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > UploadMenuSectionItemImageWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuSectionItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Upload menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task UploadMenuSectionItemImageAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadMenuSectionItemImageAsyncWithHttpInfo(menuId, menuSectionId, menuSectionItemId, image); + return localVarResponse.Data; + + } + + /// + /// Upload menu section item image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section item identifier + /// Menu section item image + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> UploadMenuSectionItemImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionItemId' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuSectionItemsApi->UploadMenuSectionItemImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionItemId != null) localVarPathParams.Add("menuSectionItemId", this.Configuration.ApiClient.ParameterToString(menuSectionItemId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuSectionItemImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + } +} diff --git a/src/Flipdish/Api/MenuSectionsApi.cs b/src/Flipdish/Api/MenuSectionsApi.cs new file mode 100644 index 00000000..f1d0331a --- /dev/null +++ b/src/Flipdish/Api/MenuSectionsApi.cs @@ -0,0 +1,2633 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenuSectionsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clone menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiResultMenuSection + RestApiResultMenuSection CloneMenuSection (int? menuId, int? menuSectionId); + + /// + /// Clone menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiResultMenuSection + ApiResponse CloneMenuSectionWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Set/update menu section availability hours. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Object + Object CreateMenuAvailabilityForDay (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod); + + /// + /// Set/update menu section availability hours. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// ApiResponse of Object + ApiResponse CreateMenuAvailabilityForDayWithHttpInfo (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// Create menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Object + Object CreateMenuSection (int? menuId, MenuSectionBase menuSection); + + /// + /// Create menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// ApiResponse of Object + ApiResponse CreateMenuSectionWithHttpInfo (int? menuId, MenuSectionBase menuSection); + /// + /// Create menu availability type + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Object + Object CreateMenuSectionAvailability (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability); + + /// + /// Create menu availability type + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// ApiResponse of Object + ApiResponse CreateMenuSectionAvailabilityWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability); + /// + /// Delete menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// + void DeleteMenuSection (int? menuId, int? menuSectionId); + + /// + /// Delete menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuSectionWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Delete menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// + void DeleteMenuSectionImage (int? menuId, int? menuSectionId); + + /// + /// Delete menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuSectionImageWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Get menu section by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiResultMenuSection + RestApiResultMenuSection GetMenuSectionById (int? menuId, int? menuSectionId); + + /// + /// Get menu section by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiResultMenuSection + ApiResponse GetMenuSectionByIdWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Get menu sections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuSection + RestApiArrayResultMenuSection GetMenuSections (int? menuId); + + /// + /// Get menu sections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuSection + ApiResponse GetMenuSectionsWithHttpInfo (int? menuId); + /// + /// Re-arrange Items within a Section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// + void MenuSectionsSetItemDisplayOrders (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders); + + /// + /// Re-arrange Items within a Section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// ApiResponse of Object(void) + ApiResponse MenuSectionsSetItemDisplayOrdersWithHttpInfo (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders); + /// + /// Update menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// + void UpdateMenuSection (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null); + + /// + /// Update menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// ApiResponse of Object(void) + ApiResponse UpdateMenuSectionWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null); + /// + /// Upload menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// RestApiStringResult + RestApiStringResult UploadMenuSectionImage (int? menuId, int? menuSectionId, System.IO.Stream image); + + /// + /// Upload menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// ApiResponse of RestApiStringResult + ApiResponse UploadMenuSectionImageWithHttpInfo (int? menuId, int? menuSectionId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clone menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiResultMenuSection + System.Threading.Tasks.Task CloneMenuSectionAsync (int? menuId, int? menuSectionId); + + /// + /// Clone menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiResultMenuSection) + System.Threading.Tasks.Task> CloneMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Set/update menu section availability hours. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Task of Object + System.Threading.Tasks.Task CreateMenuAvailabilityForDayAsync (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod); + + /// + /// Set/update menu section availability hours. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuAvailabilityForDayAsyncWithHttpInfo (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// Create menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Task of Object + System.Threading.Tasks.Task CreateMenuSectionAsync (int? menuId, MenuSectionBase menuSection); + + /// + /// Create menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuSectionAsyncWithHttpInfo (int? menuId, MenuSectionBase menuSection); + /// + /// Create menu availability type + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Task of Object + System.Threading.Tasks.Task CreateMenuSectionAvailabilityAsync (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability); + + /// + /// Create menu availability type + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateMenuSectionAvailabilityAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability); + /// + /// Delete menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuSectionAsync (int? menuId, int? menuSectionId); + + /// + /// Delete menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Delete menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuSectionImageAsync (int? menuId, int? menuSectionId); + + /// + /// Delete menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuSectionImageAsyncWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Get menu section by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiResultMenuSection + System.Threading.Tasks.Task GetMenuSectionByIdAsync (int? menuId, int? menuSectionId); + + /// + /// Get menu section by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiResultMenuSection) + System.Threading.Tasks.Task> GetMenuSectionByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId); + /// + /// Get menu sections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuSection + System.Threading.Tasks.Task GetMenuSectionsAsync (int? menuId); + + /// + /// Get menu sections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuSection) + System.Threading.Tasks.Task> GetMenuSectionsAsyncWithHttpInfo (int? menuId); + /// + /// Re-arrange Items within a Section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// Task of void + System.Threading.Tasks.Task MenuSectionsSetItemDisplayOrdersAsync (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders); + + /// + /// Re-arrange Items within a Section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// Task of ApiResponse + System.Threading.Tasks.Task> MenuSectionsSetItemDisplayOrdersAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders); + /// + /// Update menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of void + System.Threading.Tasks.Task UpdateMenuSectionAsync (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null); + + /// + /// Update menu section + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null); + /// + /// Upload menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// Task of RestApiStringResult + System.Threading.Tasks.Task UploadMenuSectionImageAsync (int? menuId, int? menuSectionId, System.IO.Stream image); + + /// + /// Upload menu section image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> UploadMenuSectionImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenuSectionsApi : IMenuSectionsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenuSectionsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenuSectionsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clone menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiResultMenuSection + public RestApiResultMenuSection CloneMenuSection (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = CloneMenuSectionWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + } + + /// + /// Clone menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiResultMenuSection + public ApiResponse< RestApiResultMenuSection > CloneMenuSectionWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CloneMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CloneMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSection))); + } + + /// + /// Clone menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiResultMenuSection + public async System.Threading.Tasks.Task CloneMenuSectionAsync (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = await CloneMenuSectionAsyncWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + + } + + /// + /// Clone menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiResultMenuSection) + public async System.Threading.Tasks.Task> CloneMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CloneMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CloneMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSection))); + } + + /// + /// Set/update menu section availability hours. + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Object + public Object CreateMenuAvailabilityForDay (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod) + { + ApiResponse localVarResponse = CreateMenuAvailabilityForDayWithHttpInfo(menuId, menuSectionId, dayOfWeek, businessHoursPeriod); + return localVarResponse.Data; + } + + /// + /// Set/update menu section availability hours. + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuAvailabilityForDayWithHttpInfo (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'dayOfWeek' is set + if (dayOfWeek == null) + throw new ApiException(400, "Missing required parameter 'dayOfWeek' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod == null) + throw new ApiException(400, "Missing required parameter 'businessHoursPeriod' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (dayOfWeek != null) localVarPathParams.Add("dayOfWeek", this.Configuration.ApiClient.ParameterToString(dayOfWeek)); // path parameter + if (businessHoursPeriod != null && businessHoursPeriod.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursPeriod); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursPeriod; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuAvailabilityForDay", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Set/update menu section availability hours. + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuAvailabilityForDayAsync (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod) + { + ApiResponse localVarResponse = await CreateMenuAvailabilityForDayAsyncWithHttpInfo(menuId, menuSectionId, dayOfWeek, businessHoursPeriod); + return localVarResponse.Data; + + } + + /// + /// Set/update menu section availability hours. + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Day of the week + /// Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuAvailabilityForDayAsyncWithHttpInfo (int? menuId, int? menuSectionId, string dayOfWeek, BusinessHoursPeriodBase businessHoursPeriod) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'dayOfWeek' is set + if (dayOfWeek == null) + throw new ApiException(400, "Missing required parameter 'dayOfWeek' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod == null) + throw new ApiException(400, "Missing required parameter 'businessHoursPeriod' when calling MenuSectionsApi->CreateMenuAvailabilityForDay"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (dayOfWeek != null) localVarPathParams.Add("dayOfWeek", this.Configuration.ApiClient.ParameterToString(dayOfWeek)); // path parameter + if (businessHoursPeriod != null && businessHoursPeriod.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursPeriod); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursPeriod; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuAvailabilityForDay", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Object + public Object CreateMenuSection (int? menuId, MenuSectionBase menuSection) + { + ApiResponse localVarResponse = CreateMenuSectionWithHttpInfo(menuId, menuSection); + return localVarResponse.Data; + } + + /// + /// Create menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuSectionWithHttpInfo (int? menuId, MenuSectionBase menuSection) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuSection"); + // verify the required parameter 'menuSection' is set + if (menuSection == null) + throw new ApiException(400, "Missing required parameter 'menuSection' when calling MenuSectionsApi->CreateMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSection != null && menuSection.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSection); // http body (model) parameter + } + else + { + localVarPostBody = menuSection; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuSectionAsync (int? menuId, MenuSectionBase menuSection) + { + ApiResponse localVarResponse = await CreateMenuSectionAsyncWithHttpInfo(menuId, menuSection); + return localVarResponse.Data; + + } + + /// + /// Create menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuSectionAsyncWithHttpInfo (int? menuId, MenuSectionBase menuSection) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuSection"); + // verify the required parameter 'menuSection' is set + if (menuSection == null) + throw new ApiException(400, "Missing required parameter 'menuSection' when calling MenuSectionsApi->CreateMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSection != null && menuSection.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSection); // http body (model) parameter + } + else + { + localVarPostBody = menuSection; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu availability type + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Object + public Object CreateMenuSectionAvailability (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability) + { + ApiResponse localVarResponse = CreateMenuSectionAvailabilityWithHttpInfo(menuId, menuSectionId, menuSectionAvailability); + return localVarResponse.Data; + } + + /// + /// Create menu availability type + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// ApiResponse of Object + public ApiResponse< Object > CreateMenuSectionAvailabilityWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + // verify the required parameter 'menuSectionAvailability' is set + if (menuSectionAvailability == null) + throw new ApiException(400, "Missing required parameter 'menuSectionAvailability' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionAvailability != null && menuSectionAvailability.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionAvailability); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionAvailability; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionAvailability", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create menu availability type + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Task of Object + public async System.Threading.Tasks.Task CreateMenuSectionAvailabilityAsync (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability) + { + ApiResponse localVarResponse = await CreateMenuSectionAvailabilityAsyncWithHttpInfo(menuId, menuSectionId, menuSectionAvailability); + return localVarResponse.Data; + + } + + /// + /// Create menu availability type + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateMenuSectionAvailabilityAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionAvailabilityBase menuSectionAvailability) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + // verify the required parameter 'menuSectionAvailability' is set + if (menuSectionAvailability == null) + throw new ApiException(400, "Missing required parameter 'menuSectionAvailability' when calling MenuSectionsApi->CreateMenuSectionAvailability"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (menuSectionAvailability != null && menuSectionAvailability.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSectionAvailability); // http body (model) parameter + } + else + { + localVarPostBody = menuSectionAvailability; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMenuSectionAvailability", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Delete menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// + public void DeleteMenuSection (int? menuId, int? menuSectionId) + { + DeleteMenuSectionWithHttpInfo(menuId, menuSectionId); + } + + /// + /// Delete menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuSectionWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->DeleteMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->DeleteMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuSectionAsync (int? menuId, int? menuSectionId) + { + await DeleteMenuSectionAsyncWithHttpInfo(menuId, menuSectionId); + + } + + /// + /// Delete menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->DeleteMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->DeleteMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// + public void DeleteMenuSectionImage (int? menuId, int? menuSectionId) + { + DeleteMenuSectionImageWithHttpInfo(menuId, menuSectionId); + } + + /// + /// Delete menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuSectionImageWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->DeleteMenuSectionImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->DeleteMenuSectionImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuSectionImageAsync (int? menuId, int? menuSectionId) + { + await DeleteMenuSectionImageAsyncWithHttpInfo(menuId, menuSectionId); + + } + + /// + /// Delete menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuSectionImageAsyncWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->DeleteMenuSectionImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->DeleteMenuSectionImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuSectionImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get menu section by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// RestApiResultMenuSection + public RestApiResultMenuSection GetMenuSectionById (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = GetMenuSectionByIdWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + } + + /// + /// Get menu section by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// ApiResponse of RestApiResultMenuSection + public ApiResponse< RestApiResultMenuSection > GetMenuSectionByIdWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->GetMenuSectionById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->GetMenuSectionById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuSectionById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSection))); + } + + /// + /// Get menu section by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of RestApiResultMenuSection + public async System.Threading.Tasks.Task GetMenuSectionByIdAsync (int? menuId, int? menuSectionId) + { + ApiResponse localVarResponse = await GetMenuSectionByIdAsyncWithHttpInfo(menuId, menuSectionId); + return localVarResponse.Data; + + } + + /// + /// Get menu section by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Task of ApiResponse (RestApiResultMenuSection) + public async System.Threading.Tasks.Task> GetMenuSectionByIdAsyncWithHttpInfo (int? menuId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->GetMenuSectionById"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->GetMenuSectionById"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuSectionById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuSection))); + } + + /// + /// Get menu sections + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuSection + public RestApiArrayResultMenuSection GetMenuSections (int? menuId) + { + ApiResponse localVarResponse = GetMenuSectionsWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get menu sections + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuSection + public ApiResponse< RestApiArrayResultMenuSection > GetMenuSectionsWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->GetMenuSections"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuSections", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSection))); + } + + /// + /// Get menu sections + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuSection + public async System.Threading.Tasks.Task GetMenuSectionsAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuSectionsAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get menu sections + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuSection) + public async System.Threading.Tasks.Task> GetMenuSectionsAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->GetMenuSections"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuSections", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSection) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSection))); + } + + /// + /// Re-arrange Items within a Section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// + public void MenuSectionsSetItemDisplayOrders (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders) + { + MenuSectionsSetItemDisplayOrdersWithHttpInfo(menuId, menuSectionId, displayOrders); + } + + /// + /// Re-arrange Items within a Section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// ApiResponse of Object(void) + public ApiResponse MenuSectionsSetItemDisplayOrdersWithHttpInfo (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + // verify the required parameter 'displayOrders' is set + if (displayOrders == null) + throw new ApiException(400, "Missing required parameter 'displayOrders' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (displayOrders != null && displayOrders.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(displayOrders); // http body (model) parameter + } + else + { + localVarPostBody = displayOrders; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenuSectionsSetItemDisplayOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Re-arrange Items within a Section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// Task of void + public async System.Threading.Tasks.Task MenuSectionsSetItemDisplayOrdersAsync (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders) + { + await MenuSectionsSetItemDisplayOrdersAsyncWithHttpInfo(menuId, menuSectionId, displayOrders); + + } + + /// + /// Re-arrange Items within a Section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Item Ids and their new display order + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MenuSectionsSetItemDisplayOrdersAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuObjectDisplayOrders displayOrders) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + // verify the required parameter 'displayOrders' is set + if (displayOrders == null) + throw new ApiException(400, "Missing required parameter 'displayOrders' when calling MenuSectionsApi->MenuSectionsSetItemDisplayOrders"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (displayOrders != null && displayOrders.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(displayOrders); // http body (model) parameter + } + else + { + localVarPostBody = displayOrders; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenuSectionsSetItemDisplayOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// + public void UpdateMenuSection (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null) + { + UpdateMenuSectionWithHttpInfo(menuId, menuSectionId, menuSection, undoAfter); + } + + /// + /// Update menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuSectionWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->UpdateMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->UpdateMenuSection"); + // verify the required parameter 'menuSection' is set + if (menuSection == null) + throw new ApiException(400, "Missing required parameter 'menuSection' when calling MenuSectionsApi->UpdateMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuSection != null && menuSection.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSection); // http body (model) parameter + } + else + { + localVarPostBody = menuSection; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuSectionAsync (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null) + { + await UpdateMenuSectionAsyncWithHttpInfo(menuId, menuSectionId, menuSection, undoAfter); + + } + + /// + /// Update menu section + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section changes (delta) + /// An optional time period, in hours, after which the hide-section operation will be undone. (optional) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuSectionAsyncWithHttpInfo (int? menuId, int? menuSectionId, MenuSectionBase menuSection, double? undoAfter = null) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->UpdateMenuSection"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->UpdateMenuSection"); + // verify the required parameter 'menuSection' is set + if (menuSection == null) + throw new ApiException(400, "Missing required parameter 'menuSection' when calling MenuSectionsApi->UpdateMenuSection"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (undoAfter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "undoAfter", undoAfter)); // query parameter + if (menuSection != null && menuSection.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuSection); // http body (model) parameter + } + else + { + localVarPostBody = menuSection; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuSection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Upload menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// RestApiStringResult + public RestApiStringResult UploadMenuSectionImage (int? menuId, int? menuSectionId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadMenuSectionImageWithHttpInfo(menuId, menuSectionId, image); + return localVarResponse.Data; + } + + /// + /// Upload menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > UploadMenuSectionImageWithHttpInfo (int? menuId, int? menuSectionId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->UploadMenuSectionImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->UploadMenuSectionImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuSectionsApi->UploadMenuSectionImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuSectionImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Upload menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task UploadMenuSectionImageAsync (int? menuId, int? menuSectionId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadMenuSectionImageAsyncWithHttpInfo(menuId, menuSectionId, image); + return localVarResponse.Data; + + } + + /// + /// Upload menu section image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu section identifier + /// Menu section image + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> UploadMenuSectionImageAsyncWithHttpInfo (int? menuId, int? menuSectionId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuSectionsApi->UploadMenuSectionImage"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuSectionsApi->UploadMenuSectionImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenuSectionsApi->UploadMenuSectionImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sections/{menuSectionId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuSectionImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + } +} diff --git a/src/Flipdish/Api/MenuZonesApi.cs b/src/Flipdish/Api/MenuZonesApi.cs new file mode 100644 index 00000000..8fd17b7a --- /dev/null +++ b/src/Flipdish/Api/MenuZonesApi.cs @@ -0,0 +1,2589 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenuZonesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Adds a new menu zone to a menu. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// RestApiResultMenuZone + RestApiResultMenuZone AddMenuZone (int? menuId, MenuZone menuZone); + + /// + /// Adds a new menu zone to a menu. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// ApiResponse of RestApiResultMenuZone + ApiResponse AddMenuZoneWithHttpInfo (int? menuId, MenuZone menuZone); + /// + /// Deletes a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// + void DeleteMenuZone (int? menuId, int? menuZoneId); + + /// + /// Deletes a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// ApiResponse of Object(void) + ApiResponse DeleteMenuZoneWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Deletes a menu zone image. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// + void DeleteMenuZoneImage (int? menuId, int? menuZoneId); + + /// + /// Deletes a menu zone image. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// ApiResponse of Object(void) + ApiResponse DeleteMenuZoneImageWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Flips the order of two menu zones. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// + void FlipMenuZones (int? menuId, int? menuZoneId, int? menuZoneI2); + + /// + /// Flips the order of two menu zones. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// ApiResponse of Object(void) + ApiResponse FlipMenuZonesWithHttpInfo (int? menuId, int? menuZoneId, int? menuZoneI2); + /// + /// Gets a specific menu zone for a given zone id + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// RestApiResultMenuZone + RestApiResultMenuZone GetMenuZone (int? menuId, int? menuZoneId); + + /// + /// Gets a specific menu zone for a given zone id + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// ApiResponse of RestApiResultMenuZone + ApiResponse GetMenuZoneWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Gets all the menu zones for a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// RestApiArrayResultMenuZone + RestApiArrayResultMenuZone GetMenuZonesForMenuId (int? menuId); + + /// + /// Gets all the menu zones for a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// ApiResponse of RestApiArrayResultMenuZone + ApiResponse GetMenuZonesForMenuIdWithHttpInfo (int? menuId); + /// + /// Assigns a zone to a menu section. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// + void SetMenuSectionMenuZone (int? menuId, int? menuZoneId, int? menuSectionId); + + /// + /// Assigns a zone to a menu section. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// ApiResponse of Object(void) + ApiResponse SetMenuSectionMenuZoneWithHttpInfo (int? menuId, int? menuZoneId, int? menuSectionId); + /// + /// Sets the description of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// + void SetMenuZoneDescription (int? menuId, int? menuZoneId, string description); + + /// + /// Sets the description of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// ApiResponse of Object(void) + ApiResponse SetMenuZoneDescriptionWithHttpInfo (int? menuId, int? menuZoneId, string description); + /// + /// Sets the name of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// + void SetMenuZoneName (int? menuId, int? menuZoneId, string menuZoneName); + + /// + /// Sets the name of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// ApiResponse of Object(void) + ApiResponse SetMenuZoneNameWithHttpInfo (int? menuId, int? menuZoneId, string menuZoneName); + /// + /// Updates a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// + void UpdateMenuZone (int? menuId, int? menuZoneId, MenuZone menuZone); + + /// + /// Updates a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// ApiResponse of Object(void) + ApiResponse UpdateMenuZoneWithHttpInfo (int? menuId, int? menuZoneId, MenuZone menuZone); + /// + /// Uploads an image for a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// + void UploadMenuZoneImage (int? menuId, int? menuZoneId, List _file); + + /// + /// Uploads an image for a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// ApiResponse of Object(void) + ApiResponse UploadMenuZoneImageWithHttpInfo (int? menuId, int? menuZoneId, List _file); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Adds a new menu zone to a menu. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// Task of RestApiResultMenuZone + System.Threading.Tasks.Task AddMenuZoneAsync (int? menuId, MenuZone menuZone); + + /// + /// Adds a new menu zone to a menu. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// Task of ApiResponse (RestApiResultMenuZone) + System.Threading.Tasks.Task> AddMenuZoneAsyncWithHttpInfo (int? menuId, MenuZone menuZone); + /// + /// Deletes a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// Task of void + System.Threading.Tasks.Task DeleteMenuZoneAsync (int? menuId, int? menuZoneId); + + /// + /// Deletes a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Deletes a menu zone image. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// Task of void + System.Threading.Tasks.Task DeleteMenuZoneImageAsync (int? menuId, int? menuZoneId); + + /// + /// Deletes a menu zone image. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuZoneImageAsyncWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Flips the order of two menu zones. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// Task of void + System.Threading.Tasks.Task FlipMenuZonesAsync (int? menuId, int? menuZoneId, int? menuZoneI2); + + /// + /// Flips the order of two menu zones. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// Task of ApiResponse + System.Threading.Tasks.Task> FlipMenuZonesAsyncWithHttpInfo (int? menuId, int? menuZoneId, int? menuZoneI2); + /// + /// Gets a specific menu zone for a given zone id + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// Task of RestApiResultMenuZone + System.Threading.Tasks.Task GetMenuZoneAsync (int? menuId, int? menuZoneId); + + /// + /// Gets a specific menu zone for a given zone id + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// Task of ApiResponse (RestApiResultMenuZone) + System.Threading.Tasks.Task> GetMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId); + /// + /// Gets all the menu zones for a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// Task of RestApiArrayResultMenuZone + System.Threading.Tasks.Task GetMenuZonesForMenuIdAsync (int? menuId); + + /// + /// Gets all the menu zones for a menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// Task of ApiResponse (RestApiArrayResultMenuZone) + System.Threading.Tasks.Task> GetMenuZonesForMenuIdAsyncWithHttpInfo (int? menuId); + /// + /// Assigns a zone to a menu section. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// Task of void + System.Threading.Tasks.Task SetMenuSectionMenuZoneAsync (int? menuId, int? menuZoneId, int? menuSectionId); + + /// + /// Assigns a zone to a menu section. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuSectionMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId, int? menuSectionId); + /// + /// Sets the description of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// Task of void + System.Threading.Tasks.Task SetMenuZoneDescriptionAsync (int? menuId, int? menuZoneId, string description); + + /// + /// Sets the description of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuZoneDescriptionAsyncWithHttpInfo (int? menuId, int? menuZoneId, string description); + /// + /// Sets the name of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// Task of void + System.Threading.Tasks.Task SetMenuZoneNameAsync (int? menuId, int? menuZoneId, string menuZoneName); + + /// + /// Sets the name of a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuZoneNameAsyncWithHttpInfo (int? menuId, int? menuZoneId, string menuZoneName); + /// + /// Updates a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// Task of void + System.Threading.Tasks.Task UpdateMenuZoneAsync (int? menuId, int? menuZoneId, MenuZone menuZone); + + /// + /// Updates a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId, MenuZone menuZone); + /// + /// Uploads an image for a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// Task of void + System.Threading.Tasks.Task UploadMenuZoneImageAsync (int? menuId, int? menuZoneId, List _file); + + /// + /// Uploads an image for a menu zone. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// Task of ApiResponse + System.Threading.Tasks.Task> UploadMenuZoneImageAsyncWithHttpInfo (int? menuId, int? menuZoneId, List _file); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenuZonesApi : IMenuZonesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenuZonesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenuZonesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Adds a new menu zone to a menu. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// RestApiResultMenuZone + public RestApiResultMenuZone AddMenuZone (int? menuId, MenuZone menuZone) + { + ApiResponse localVarResponse = AddMenuZoneWithHttpInfo(menuId, menuZone); + return localVarResponse.Data; + } + + /// + /// Adds a new menu zone to a menu. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// ApiResponse of RestApiResultMenuZone + public ApiResponse< RestApiResultMenuZone > AddMenuZoneWithHttpInfo (int? menuId, MenuZone menuZone) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->AddMenuZone"); + // verify the required parameter 'menuZone' is set + if (menuZone == null) + throw new ApiException(400, "Missing required parameter 'menuZone' when calling MenuZonesApi->AddMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZone != null && menuZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuZone); // http body (model) parameter + } + else + { + localVarPostBody = menuZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuZone))); + } + + /// + /// Adds a new menu zone to a menu. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// Task of RestApiResultMenuZone + public async System.Threading.Tasks.Task AddMenuZoneAsync (int? menuId, MenuZone menuZone) + { + ApiResponse localVarResponse = await AddMenuZoneAsyncWithHttpInfo(menuId, menuZone); + return localVarResponse.Data; + + } + + /// + /// Adds a new menu zone to a menu. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + /// Task of ApiResponse (RestApiResultMenuZone) + public async System.Threading.Tasks.Task> AddMenuZoneAsyncWithHttpInfo (int? menuId, MenuZone menuZone) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->AddMenuZone"); + // verify the required parameter 'menuZone' is set + if (menuZone == null) + throw new ApiException(400, "Missing required parameter 'menuZone' when calling MenuZonesApi->AddMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZone != null && menuZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuZone); // http body (model) parameter + } + else + { + localVarPostBody = menuZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuZone))); + } + + /// + /// Deletes a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// + public void DeleteMenuZone (int? menuId, int? menuZoneId) + { + DeleteMenuZoneWithHttpInfo(menuId, menuZoneId); + } + + /// + /// Deletes a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuZoneWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->DeleteMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->DeleteMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Deletes a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuZoneAsync (int? menuId, int? menuZoneId) + { + await DeleteMenuZoneAsyncWithHttpInfo(menuId, menuZoneId); + + } + + /// + /// Deletes a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->DeleteMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->DeleteMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Deletes a menu zone image. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// + public void DeleteMenuZoneImage (int? menuId, int? menuZoneId) + { + DeleteMenuZoneImageWithHttpInfo(menuId, menuZoneId); + } + + /// + /// Deletes a menu zone image. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuZoneImageWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->DeleteMenuZoneImage"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->DeleteMenuZoneImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuZoneImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Deletes a menu zone image. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuZoneImageAsync (int? menuId, int? menuZoneId) + { + await DeleteMenuZoneImageAsyncWithHttpInfo(menuId, menuZoneId); + + } + + /// + /// Deletes a menu zone image. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone Id/ + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuZoneImageAsyncWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->DeleteMenuZoneImage"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->DeleteMenuZoneImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuZoneImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Flips the order of two menu zones. + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// + public void FlipMenuZones (int? menuId, int? menuZoneId, int? menuZoneI2) + { + FlipMenuZonesWithHttpInfo(menuId, menuZoneId, menuZoneI2); + } + + /// + /// Flips the order of two menu zones. + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// ApiResponse of Object(void) + public ApiResponse FlipMenuZonesWithHttpInfo (int? menuId, int? menuZoneId, int? menuZoneI2) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->FlipMenuZones"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->FlipMenuZones"); + // verify the required parameter 'menuZoneI2' is set + if (menuZoneI2 == null) + throw new ApiException(400, "Missing required parameter 'menuZoneI2' when calling MenuZonesApi->FlipMenuZones"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZoneI2 != null) localVarPathParams.Add("menuZoneI2", this.Configuration.ApiClient.ParameterToString(menuZoneI2)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FlipMenuZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Flips the order of two menu zones. + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// Task of void + public async System.Threading.Tasks.Task FlipMenuZonesAsync (int? menuId, int? menuZoneId, int? menuZoneI2) + { + await FlipMenuZonesAsyncWithHttpInfo(menuId, menuZoneId, menuZoneI2); + + } + + /// + /// Flips the order of two menu zones. + /// + /// Thrown when fails to make API call + /// + /// Source. + /// Destination. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> FlipMenuZonesAsyncWithHttpInfo (int? menuId, int? menuZoneId, int? menuZoneI2) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->FlipMenuZones"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->FlipMenuZones"); + // verify the required parameter 'menuZoneI2' is set + if (menuZoneI2 == null) + throw new ApiException(400, "Missing required parameter 'menuZoneI2' when calling MenuZonesApi->FlipMenuZones"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZoneI2 != null) localVarPathParams.Add("menuZoneI2", this.Configuration.ApiClient.ParameterToString(menuZoneI2)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("FlipMenuZones", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Gets a specific menu zone for a given zone id + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// RestApiResultMenuZone + public RestApiResultMenuZone GetMenuZone (int? menuId, int? menuZoneId) + { + ApiResponse localVarResponse = GetMenuZoneWithHttpInfo(menuId, menuZoneId); + return localVarResponse.Data; + } + + /// + /// Gets a specific menu zone for a given zone id + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// ApiResponse of RestApiResultMenuZone + public ApiResponse< RestApiResultMenuZone > GetMenuZoneWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->GetMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->GetMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuZone))); + } + + /// + /// Gets a specific menu zone for a given zone id + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// Task of RestApiResultMenuZone + public async System.Threading.Tasks.Task GetMenuZoneAsync (int? menuId, int? menuZoneId) + { + ApiResponse localVarResponse = await GetMenuZoneAsyncWithHttpInfo(menuId, menuZoneId); + return localVarResponse.Data; + + } + + /// + /// Gets a specific menu zone for a given zone id + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// Task of ApiResponse (RestApiResultMenuZone) + public async System.Threading.Tasks.Task> GetMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->GetMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->GetMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuZone))); + } + + /// + /// Gets all the menu zones for a menu + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// RestApiArrayResultMenuZone + public RestApiArrayResultMenuZone GetMenuZonesForMenuId (int? menuId) + { + ApiResponse localVarResponse = GetMenuZonesForMenuIdWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Gets all the menu zones for a menu + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// ApiResponse of RestApiArrayResultMenuZone + public ApiResponse< RestApiArrayResultMenuZone > GetMenuZonesForMenuIdWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->GetMenuZonesForMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuZonesForMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuZone))); + } + + /// + /// Gets all the menu zones for a menu + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// Task of RestApiArrayResultMenuZone + public async System.Threading.Tasks.Task GetMenuZonesForMenuIdAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuZonesForMenuIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Gets all the menu zones for a menu + /// + /// Thrown when fails to make API call + /// The menu id to load zones for + /// Task of ApiResponse (RestApiArrayResultMenuZone) + public async System.Threading.Tasks.Task> GetMenuZonesForMenuIdAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->GetMenuZonesForMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuZonesForMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuZone) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuZone))); + } + + /// + /// Assigns a zone to a menu section. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// + public void SetMenuSectionMenuZone (int? menuId, int? menuZoneId, int? menuSectionId) + { + SetMenuSectionMenuZoneWithHttpInfo(menuId, menuZoneId, menuSectionId); + } + + /// + /// Assigns a zone to a menu section. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// ApiResponse of Object(void) + public ApiResponse SetMenuSectionMenuZoneWithHttpInfo (int? menuId, int? menuZoneId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuSectionMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Assigns a zone to a menu section. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// Task of void + public async System.Threading.Tasks.Task SetMenuSectionMenuZoneAsync (int? menuId, int? menuZoneId, int? menuSectionId) + { + await SetMenuSectionMenuZoneAsyncWithHttpInfo(menuId, menuZoneId, menuSectionId); + + } + + /// + /// Assigns a zone to a menu section. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu id. + /// The menu section id. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuSectionMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId, int? menuSectionId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + // verify the required parameter 'menuSectionId' is set + if (menuSectionId == null) + throw new ApiException(400, "Missing required parameter 'menuSectionId' when calling MenuZonesApi->SetMenuSectionMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuSectionId != null) localVarPathParams.Add("menuSectionId", this.Configuration.ApiClient.ParameterToString(menuSectionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuSectionMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Sets the description of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// + public void SetMenuZoneDescription (int? menuId, int? menuZoneId, string description) + { + SetMenuZoneDescriptionWithHttpInfo(menuId, menuZoneId, description); + } + + /// + /// Sets the description of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// ApiResponse of Object(void) + public ApiResponse SetMenuZoneDescriptionWithHttpInfo (int? menuId, int? menuZoneId, string description) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuZoneDescription"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuZoneDescription"); + // verify the required parameter 'description' is set + if (description == null) + throw new ApiException(400, "Missing required parameter 'description' when calling MenuZonesApi->SetMenuZoneDescription"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/description"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (description != null && description.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(description); // http body (model) parameter + } + else + { + localVarPostBody = description; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuZoneDescription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Sets the description of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// Task of void + public async System.Threading.Tasks.Task SetMenuZoneDescriptionAsync (int? menuId, int? menuZoneId, string description) + { + await SetMenuZoneDescriptionAsyncWithHttpInfo(menuId, menuZoneId, description); + + } + + /// + /// Sets the description of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The new description. Add as a raw string in the request, without any JSON wrapper. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuZoneDescriptionAsyncWithHttpInfo (int? menuId, int? menuZoneId, string description) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuZoneDescription"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuZoneDescription"); + // verify the required parameter 'description' is set + if (description == null) + throw new ApiException(400, "Missing required parameter 'description' when calling MenuZonesApi->SetMenuZoneDescription"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/description"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (description != null && description.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(description); // http body (model) parameter + } + else + { + localVarPostBody = description; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuZoneDescription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Sets the name of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// + public void SetMenuZoneName (int? menuId, int? menuZoneId, string menuZoneName) + { + SetMenuZoneNameWithHttpInfo(menuId, menuZoneId, menuZoneName); + } + + /// + /// Sets the name of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// ApiResponse of Object(void) + public ApiResponse SetMenuZoneNameWithHttpInfo (int? menuId, int? menuZoneId, string menuZoneName) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuZoneName"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuZoneName"); + // verify the required parameter 'menuZoneName' is set + if (menuZoneName == null) + throw new ApiException(400, "Missing required parameter 'menuZoneName' when calling MenuZonesApi->SetMenuZoneName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZoneName != null) localVarPathParams.Add("menuZoneName", this.Configuration.ApiClient.ParameterToString(menuZoneName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuZoneName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Sets the name of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// Task of void + public async System.Threading.Tasks.Task SetMenuZoneNameAsync (int? menuId, int? menuZoneId, string menuZoneName) + { + await SetMenuZoneNameAsyncWithHttpInfo(menuId, menuZoneId, menuZoneName); + + } + + /// + /// Sets the name of a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The menu zone id. + /// The new name. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuZoneNameAsyncWithHttpInfo (int? menuId, int? menuZoneId, string menuZoneName) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->SetMenuZoneName"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->SetMenuZoneName"); + // verify the required parameter 'menuZoneName' is set + if (menuZoneName == null) + throw new ApiException(400, "Missing required parameter 'menuZoneName' when calling MenuZonesApi->SetMenuZoneName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZoneName != null) localVarPathParams.Add("menuZoneName", this.Configuration.ApiClient.ParameterToString(menuZoneName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuZoneName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Updates a menu zone. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// + public void UpdateMenuZone (int? menuId, int? menuZoneId, MenuZone menuZone) + { + UpdateMenuZoneWithHttpInfo(menuId, menuZoneId, menuZone); + } + + /// + /// Updates a menu zone. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuZoneWithHttpInfo (int? menuId, int? menuZoneId, MenuZone menuZone) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->UpdateMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->UpdateMenuZone"); + // verify the required parameter 'menuZone' is set + if (menuZone == null) + throw new ApiException(400, "Missing required parameter 'menuZone' when calling MenuZonesApi->UpdateMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZone != null && menuZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuZone); // http body (model) parameter + } + else + { + localVarPostBody = menuZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Updates a menu zone. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuZoneAsync (int? menuId, int? menuZoneId, MenuZone menuZone) + { + await UpdateMenuZoneAsyncWithHttpInfo(menuId, menuZoneId, menuZone); + + } + + /// + /// Updates a menu zone. + /// + /// Thrown when fails to make API call + /// The menu id. + /// The menu zone id. + /// The object containing the updated values. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuZoneAsyncWithHttpInfo (int? menuId, int? menuZoneId, MenuZone menuZone) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->UpdateMenuZone"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->UpdateMenuZone"); + // verify the required parameter 'menuZone' is set + if (menuZone == null) + throw new ApiException(400, "Missing required parameter 'menuZone' when calling MenuZonesApi->UpdateMenuZone"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (menuZone != null && menuZone.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuZone); // http body (model) parameter + } + else + { + localVarPostBody = menuZone; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenuZone", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Uploads an image for a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// + public void UploadMenuZoneImage (int? menuId, int? menuZoneId, List _file) + { + UploadMenuZoneImageWithHttpInfo(menuId, menuZoneId, _file); + } + + /// + /// Uploads an image for a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// ApiResponse of Object(void) + public ApiResponse UploadMenuZoneImageWithHttpInfo (int? menuId, int? menuZoneId, List _file) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->UploadMenuZoneImage"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->UploadMenuZoneImage"); + // verify the required parameter '_file' is set + if (_file == null) + throw new ApiException(400, "Missing required parameter '_file' when calling MenuZonesApi->UploadMenuZoneImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (_file != null && _file.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(_file); // http body (model) parameter + } + else + { + localVarPostBody = _file; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuZoneImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Uploads an image for a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// Task of void + public async System.Threading.Tasks.Task UploadMenuZoneImageAsync (int? menuId, int? menuZoneId, List _file) + { + await UploadMenuZoneImageAsyncWithHttpInfo(menuId, menuZoneId, _file); + + } + + /// + /// Uploads an image for a menu zone. + /// + /// Thrown when fails to make API call + /// Menu id. + /// The zone id. + /// The file to upload. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UploadMenuZoneImageAsyncWithHttpInfo (int? menuId, int? menuZoneId, List _file) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenuZonesApi->UploadMenuZoneImage"); + // verify the required parameter 'menuZoneId' is set + if (menuZoneId == null) + throw new ApiException(400, "Missing required parameter 'menuZoneId' when calling MenuZonesApi->UploadMenuZoneImage"); + // verify the required parameter '_file' is set + if (_file == null) + throw new ApiException(400, "Missing required parameter '_file' when calling MenuZonesApi->UploadMenuZoneImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/zones/{menuZoneId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menuZoneId != null) localVarPathParams.Add("menuZoneId", this.Configuration.ApiClient.ParameterToString(menuZoneId)); // path parameter + if (_file != null && _file.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(_file); // http body (model) parameter + } + else + { + localVarPostBody = _file; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuZoneImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/MenusApi.cs b/src/Flipdish/Api/MenusApi.cs new file mode 100644 index 00000000..5c18ef69 --- /dev/null +++ b/src/Flipdish/Api/MenusApi.cs @@ -0,0 +1,6885 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenusApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clone a menu, (without attaching stores) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// RestApiResultMenu + RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string newName); + + /// + /// Clone a menu, (without attaching stores) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// ApiResponse of RestApiResultMenu + ApiResponse CreateDraftMenuFromExistingMenuWithHttpInfo (int? menuId, string newName); + /// + /// Create a new menu asynchronously + /// + /// + /// You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Object + Object CreateNewMenuAsync (string appId, CreateFullMenu menu, string orgId = null); + + /// + /// Create a new menu asynchronously + /// + /// + /// You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// ApiResponse of Object + ApiResponse CreateNewMenuAsyncWithHttpInfo (string appId, CreateFullMenu menu, string orgId = null); + /// + /// Create a new menu + /// + /// + /// [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// int? + int? CreateNewMenuForApp (string appId, CreateFullMenu menu); + + /// + /// Create a new menu + /// + /// + /// [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// ApiResponse of int? + ApiResponse CreateNewMenuForAppWithHttpInfo (string appId, CreateFullMenu menu); + /// + /// Mark a Menu as Deleted + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// + void DeleteMenu (int? menuId); + + /// + /// Mark a Menu as Deleted + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuWithHttpInfo (int? menuId); + /// + /// Delete menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + void DeleteMenuImage (int? menuId); + + /// + /// Delete menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of Object(void) + ApiResponse DeleteMenuImageWithHttpInfo (int? menuId); + /// + /// Delete menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// + void DeleteMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, string key); + + /// + /// Delete menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// ApiResponse of Object(void) + ApiResponse DeleteMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); + /// + /// Get all menu metadata by menu ID and store ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// RestApiArrayResultAllMetadataResult + RestApiArrayResultAllMetadataResult GetAllMenuMetadataByMenuIdAndStoreId (int? menuId, int? storeId); + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// ApiResponse of RestApiArrayResultAllMetadataResult + ApiResponse GetAllMenuMetadataByMenuIdAndStoreIdWithHttpInfo (int? menuId, int? storeId); + /// + /// Get menu by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultMenu + RestApiResultMenu GetMenuById (int? menuId); + + /// + /// Get menu by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultMenu + ApiResponse GetMenuByIdWithHttpInfo (int? menuId); + /// + /// Get menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// RestApiArrayResultMetadata + RestApiArrayResultMetadata GetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId); + + /// + /// Get menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// ApiResponse of RestApiArrayResultMetadata + ApiResponse GetMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId); + /// + /// Get menu item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// RestApiResultMetadata + RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key); + + /// + /// Get menu item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// ApiResponse of RestApiResultMetadata + ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); + /// + /// Get menu item option set item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// RestApiResultMetadata + RestApiResultMetadata GetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId); + + /// + /// Get menu item option set item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// ApiResponse of RestApiResultMetadata + ApiResponse GetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId); + /// + /// Get Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// string + string GetMenuName (int? menuId); + + /// + /// Get Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of string + ApiResponse GetMenuNameWithHttpInfo (int? menuId); + /// + /// Get menus store names + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuStoreNames + RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId); + + /// + /// Get menus store names + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuStoreNames + ApiResponse GetMenuStoreNamesWithHttpInfo (int? menuId); + /// + /// Get menus tax details + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuTaxDetails + RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId); + + /// + /// Get menus tax details + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuTaxDetails + ApiResponse GetMenuTaxDetailsWithHttpInfo (int? menuId); + /// + /// Get menus by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// RestApiArrayResultMenuSummary + RestApiArrayResultMenuSummary GetMenusByAppId (string appId); + + /// + /// Get menus by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// ApiResponse of RestApiArrayResultMenuSummary + ApiResponse GetMenusByAppIdWithHttpInfo (string appId); + /// + /// Get a Menus Checkpoints + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuCheckpoint + RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId); + + /// + /// Get a Menus Checkpoints + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuCheckpoint + ApiResponse GetMenusCheckpointsWithHttpInfo (int? menuId); + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// + void MenusDeleteTaxRate (int? menuId, int? taxId); + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// ApiResponse of Object(void) + ApiResponse MenusDeleteTaxRateWithHttpInfo (int? menuId, int? taxId); + /// + /// Get bulk show/hide menu items and option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// RestApiArrayResultMenuElementListResponse + RestApiArrayResultMenuElementListResponse MenusGetMenuBulkShowHide (int? menuId, bool? isAvailable); + + /// + /// Get bulk show/hide menu items and option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// ApiResponse of RestApiArrayResultMenuElementListResponse + ApiResponse MenusGetMenuBulkShowHideWithHttpInfo (int? menuId, bool? isAvailable); + /// + /// Set if tax shows for a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// + void MenusSetDisplayOnMenuTax (int? menuId, bool? show); + + /// + /// Set if tax shows for a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// ApiResponse of Object(void) + ApiResponse MenusSetDisplayOnMenuTaxWithHttpInfo (int? menuId, bool? show); + /// + /// Re-arrange Sections within a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// + void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders displayOrders); + + /// + /// Re-arrange Sections within a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// ApiResponse of Object(void) + ApiResponse MenusSetItemDisplayOrdersWithHttpInfo (int? menuId, MenuObjectDisplayOrders displayOrders); + /// + /// Bulk show/hide menu items or option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// RestApiArrayResultMenuElementEditResponse + RestApiArrayResultMenuElementEditResponse MenusShowHideBulkItems (int? menuId, List menuElements, bool? isAvailable); + + /// + /// Bulk show/hide menu items or option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// ApiResponse of RestApiArrayResultMenuElementEditResponse + ApiResponse MenusShowHideBulkItemsWithHttpInfo (int? menuId, List menuElements, bool? isAvailable); + /// + /// Set the type of Tax on a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// + void MenusUpdateTaxType (int? menuId, string type); + + /// + /// Set the type of Tax on a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// ApiResponse of Object(void) + ApiResponse MenusUpdateTaxTypeWithHttpInfo (int? menuId, string type); + /// + /// Add/Update a Tax Rate + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// MenuTaxRate + MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate); + + /// + /// Add/Update a Tax Rate + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// ApiResponse of MenuTaxRate + ApiResponse MenusUpsertTaxRateWithHttpInfo (int? menuId, MenuTaxRate taxRate); + /// + /// Restore a Menu to a checkpoint + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// + void RestoreAMenuCheckpoint (int? menuId, int? checkpointId); + + /// + /// Restore a Menu to a checkpoint + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// ApiResponse of Object(void) + ApiResponse RestoreAMenuCheckpointWithHttpInfo (int? menuId, int? checkpointId); + /// + /// Update menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// + void SetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, Metadata metadata); + + /// + /// Update menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// ApiResponse of Object(void) + ApiResponse SetMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId, Metadata metadata); + /// + /// Update menu item option set item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// + void SetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); + + /// + /// Update menu item option set item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// ApiResponse of Object(void) + ApiResponse SetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); + /// + /// Lock/Unlock a Menu for Editing + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// + void SetMenuLock (int? menuId, bool? locked); + + /// + /// Lock/Unlock a Menu for Editing + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// ApiResponse of Object(void) + ApiResponse SetMenuLockWithHttpInfo (int? menuId, bool? locked); + /// + /// Set Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// + void SetMenuName (int? menuId, string name); + + /// + /// Set Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// ApiResponse of Object(void) + ApiResponse SetMenuNameWithHttpInfo (int? menuId, string name); + /// + /// Update menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// + void UpdateMenu (int? menuId, MenuBase menu); + + /// + /// Update menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// ApiResponse of Object(void) + ApiResponse UpdateMenuWithHttpInfo (int? menuId, MenuBase menu); + /// + /// Upload menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// RestApiStringResult + RestApiStringResult UploadMenuImage (int? menuId, System.IO.Stream image); + + /// + /// Upload menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// ApiResponse of RestApiStringResult + ApiResponse UploadMenuImageWithHttpInfo (int? menuId, System.IO.Stream image); + /// + /// Create a new menu from xlsx file. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// int? + int? UploadNewMenuForApp (string appId, System.IO.Stream menu); + + /// + /// Create a new menu from xlsx file. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// ApiResponse of int? + ApiResponse UploadNewMenuForAppWithHttpInfo (string appId, System.IO.Stream menu); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clone a menu, (without attaching stores) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// Task of RestApiResultMenu + System.Threading.Tasks.Task CreateDraftMenuFromExistingMenuAsync (int? menuId, string newName); + + /// + /// Clone a menu, (without attaching stores) + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// Task of ApiResponse (RestApiResultMenu) + System.Threading.Tasks.Task> CreateDraftMenuFromExistingMenuAsyncWithHttpInfo (int? menuId, string newName); + /// + /// Create a new menu asynchronously + /// + /// + /// You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Task of Object + System.Threading.Tasks.Task CreateNewMenuAsyncAsync (string appId, CreateFullMenu menu, string orgId = null); + + /// + /// Create a new menu asynchronously + /// + /// + /// You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> CreateNewMenuAsyncAsyncWithHttpInfo (string appId, CreateFullMenu menu, string orgId = null); + /// + /// Create a new menu + /// + /// + /// [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// Task of int? + System.Threading.Tasks.Task CreateNewMenuForAppAsync (string appId, CreateFullMenu menu); + + /// + /// Create a new menu + /// + /// + /// [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// Task of ApiResponse (int?) + System.Threading.Tasks.Task> CreateNewMenuForAppAsyncWithHttpInfo (string appId, CreateFullMenu menu); + /// + /// Mark a Menu as Deleted + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuAsync (int? menuId); + + /// + /// Mark a Menu as Deleted + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuAsyncWithHttpInfo (int? menuId); + /// + /// Delete menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of void + System.Threading.Tasks.Task DeleteMenuImageAsync (int? menuId); + + /// + /// Delete menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuImageAsyncWithHttpInfo (int? menuId); + /// + /// Delete menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of void + System.Threading.Tasks.Task DeleteMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId, string key); + + /// + /// Delete menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); + /// + /// Get all menu metadata by menu ID and store ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Task of RestApiArrayResultAllMetadataResult + System.Threading.Tasks.Task GetAllMenuMetadataByMenuIdAndStoreIdAsync (int? menuId, int? storeId); + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Task of ApiResponse (RestApiArrayResultAllMetadataResult) + System.Threading.Tasks.Task> GetAllMenuMetadataByMenuIdAndStoreIdAsyncWithHttpInfo (int? menuId, int? storeId); + /// + /// Get menu by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultMenu + System.Threading.Tasks.Task GetMenuByIdAsync (int? menuId); + + /// + /// Get menu by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenu) + System.Threading.Tasks.Task> GetMenuByIdAsyncWithHttpInfo (int? menuId); + /// + /// Get menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Task of RestApiArrayResultMetadata + System.Threading.Tasks.Task GetMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId); + + /// + /// Get menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Task of ApiResponse (RestApiArrayResultMetadata) + System.Threading.Tasks.Task> GetMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId); + /// + /// Get menu item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of RestApiResultMetadata + System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key); + + /// + /// Get menu item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of ApiResponse (RestApiResultMetadata) + System.Threading.Tasks.Task> GetMenuItemMetadataByKeyAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); + /// + /// Get menu item option set item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Task of RestApiResultMetadata + System.Threading.Tasks.Task GetMenuItemOptionSetItemMetadataAsync (int? menuId, int? storeId, int? optionSetItemId); + + /// + /// Get menu item option set item metadata by key + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Task of ApiResponse (RestApiResultMetadata) + System.Threading.Tasks.Task> GetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId); + /// + /// Get Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of string + System.Threading.Tasks.Task GetMenuNameAsync (int? menuId); + + /// + /// Get Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId); + /// + /// Get menus store names + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuStoreNames + System.Threading.Tasks.Task GetMenuStoreNamesAsync (int? menuId); + + /// + /// Get menus store names + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuStoreNames) + System.Threading.Tasks.Task> GetMenuStoreNamesAsyncWithHttpInfo (int? menuId); + /// + /// Get menus tax details + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuTaxDetails + System.Threading.Tasks.Task GetMenuTaxDetailsAsync (int? menuId); + + /// + /// Get menus tax details + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuTaxDetails) + System.Threading.Tasks.Task> GetMenuTaxDetailsAsyncWithHttpInfo (int? menuId); + /// + /// Get menus by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// Task of RestApiArrayResultMenuSummary + System.Threading.Tasks.Task GetMenusByAppIdAsync (string appId); + + /// + /// Get menus by appId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// Task of ApiResponse (RestApiArrayResultMenuSummary) + System.Threading.Tasks.Task> GetMenusByAppIdAsyncWithHttpInfo (string appId); + /// + /// Get a Menus Checkpoints + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuCheckpoint + System.Threading.Tasks.Task GetMenusCheckpointsAsync (int? menuId); + + /// + /// Get a Menus Checkpoints + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuCheckpoint) + System.Threading.Tasks.Task> GetMenusCheckpointsAsyncWithHttpInfo (int? menuId); + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// Task of void + System.Threading.Tasks.Task MenusDeleteTaxRateAsync (int? menuId, int? taxId); + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// Task of ApiResponse + System.Threading.Tasks.Task> MenusDeleteTaxRateAsyncWithHttpInfo (int? menuId, int? taxId); + /// + /// Get bulk show/hide menu items and option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// Task of RestApiArrayResultMenuElementListResponse + System.Threading.Tasks.Task MenusGetMenuBulkShowHideAsync (int? menuId, bool? isAvailable); + + /// + /// Get bulk show/hide menu items and option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// Task of ApiResponse (RestApiArrayResultMenuElementListResponse) + System.Threading.Tasks.Task> MenusGetMenuBulkShowHideAsyncWithHttpInfo (int? menuId, bool? isAvailable); + /// + /// Set if tax shows for a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// Task of void + System.Threading.Tasks.Task MenusSetDisplayOnMenuTaxAsync (int? menuId, bool? show); + + /// + /// Set if tax shows for a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// Task of ApiResponse + System.Threading.Tasks.Task> MenusSetDisplayOnMenuTaxAsyncWithHttpInfo (int? menuId, bool? show); + /// + /// Re-arrange Sections within a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// Task of void + System.Threading.Tasks.Task MenusSetItemDisplayOrdersAsync (int? menuId, MenuObjectDisplayOrders displayOrders); + + /// + /// Re-arrange Sections within a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// Task of ApiResponse + System.Threading.Tasks.Task> MenusSetItemDisplayOrdersAsyncWithHttpInfo (int? menuId, MenuObjectDisplayOrders displayOrders); + /// + /// Bulk show/hide menu items or option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// Task of RestApiArrayResultMenuElementEditResponse + System.Threading.Tasks.Task MenusShowHideBulkItemsAsync (int? menuId, List menuElements, bool? isAvailable); + + /// + /// Bulk show/hide menu items or option set items + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// Task of ApiResponse (RestApiArrayResultMenuElementEditResponse) + System.Threading.Tasks.Task> MenusShowHideBulkItemsAsyncWithHttpInfo (int? menuId, List menuElements, bool? isAvailable); + /// + /// Set the type of Tax on a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// Task of void + System.Threading.Tasks.Task MenusUpdateTaxTypeAsync (int? menuId, string type); + + /// + /// Set the type of Tax on a Menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// Task of ApiResponse + System.Threading.Tasks.Task> MenusUpdateTaxTypeAsyncWithHttpInfo (int? menuId, string type); + /// + /// Add/Update a Tax Rate + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// Task of MenuTaxRate + System.Threading.Tasks.Task MenusUpsertTaxRateAsync (int? menuId, MenuTaxRate taxRate); + + /// + /// Add/Update a Tax Rate + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// Task of ApiResponse (MenuTaxRate) + System.Threading.Tasks.Task> MenusUpsertTaxRateAsyncWithHttpInfo (int? menuId, MenuTaxRate taxRate); + /// + /// Restore a Menu to a checkpoint + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// Task of void + System.Threading.Tasks.Task RestoreAMenuCheckpointAsync (int? menuId, int? checkpointId); + + /// + /// Restore a Menu to a checkpoint + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// Task of ApiResponse + System.Threading.Tasks.Task> RestoreAMenuCheckpointAsyncWithHttpInfo (int? menuId, int? checkpointId); + /// + /// Update menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// Task of void + System.Threading.Tasks.Task SetMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId, Metadata metadata); + + /// + /// Update menu item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, Metadata metadata); + /// + /// Update menu item option set item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// Task of void + System.Threading.Tasks.Task SetMenuItemOptionSetItemMetadataAsync (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); + + /// + /// Update menu item option set item metadata + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); + /// + /// Lock/Unlock a Menu for Editing + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// Task of void + System.Threading.Tasks.Task SetMenuLockAsync (int? menuId, bool? locked); + + /// + /// Lock/Unlock a Menu for Editing + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuLockAsyncWithHttpInfo (int? menuId, bool? locked); + /// + /// Set Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// Task of void + System.Threading.Tasks.Task SetMenuNameAsync (int? menuId, string name); + + /// + /// Set Menus Name + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// Task of ApiResponse + System.Threading.Tasks.Task> SetMenuNameAsyncWithHttpInfo (int? menuId, string name); + /// + /// Update menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// Task of void + System.Threading.Tasks.Task UpdateMenuAsync (int? menuId, MenuBase menu); + + /// + /// Update menu + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateMenuAsyncWithHttpInfo (int? menuId, MenuBase menu); + /// + /// Upload menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// Task of RestApiStringResult + System.Threading.Tasks.Task UploadMenuImageAsync (int? menuId, System.IO.Stream image); + + /// + /// Upload menu image + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> UploadMenuImageAsyncWithHttpInfo (int? menuId, System.IO.Stream image); + /// + /// Create a new menu from xlsx file. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// Task of int? + System.Threading.Tasks.Task UploadNewMenuForAppAsync (string appId, System.IO.Stream menu); + + /// + /// Create a new menu from xlsx file. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// Task of ApiResponse (int?) + System.Threading.Tasks.Task> UploadNewMenuForAppAsyncWithHttpInfo (string appId, System.IO.Stream menu); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenusApi : IMenusApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenusApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenusApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clone a menu, (without attaching stores) + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// RestApiResultMenu + public RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string newName) + { + ApiResponse localVarResponse = CreateDraftMenuFromExistingMenuWithHttpInfo(menuId, newName); + return localVarResponse.Data; + } + + /// + /// Clone a menu, (without attaching stores) + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// ApiResponse of RestApiResultMenu + public ApiResponse< RestApiResultMenu > CreateDraftMenuFromExistingMenuWithHttpInfo (int? menuId, string newName) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->CreateDraftMenuFromExistingMenu"); + // verify the required parameter 'newName' is set + if (newName == null) + throw new ApiException(400, "Missing required parameter 'newName' when calling MenusApi->CreateDraftMenuFromExistingMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}/clone/{newName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (newName != null) localVarPathParams.Add("newName", this.Configuration.ApiClient.ParameterToString(newName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateDraftMenuFromExistingMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenu) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenu))); + } + + /// + /// Clone a menu, (without attaching stores) + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// Task of RestApiResultMenu + public async System.Threading.Tasks.Task CreateDraftMenuFromExistingMenuAsync (int? menuId, string newName) + { + ApiResponse localVarResponse = await CreateDraftMenuFromExistingMenuAsyncWithHttpInfo(menuId, newName); + return localVarResponse.Data; + + } + + /// + /// Clone a menu, (without attaching stores) + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name of the new Menu + /// Task of ApiResponse (RestApiResultMenu) + public async System.Threading.Tasks.Task> CreateDraftMenuFromExistingMenuAsyncWithHttpInfo (int? menuId, string newName) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->CreateDraftMenuFromExistingMenu"); + // verify the required parameter 'newName' is set + if (newName == null) + throw new ApiException(400, "Missing required parameter 'newName' when calling MenusApi->CreateDraftMenuFromExistingMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}/clone/{newName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (newName != null) localVarPathParams.Add("newName", this.Configuration.ApiClient.ParameterToString(newName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateDraftMenuFromExistingMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenu) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenu))); + } + + /// + /// Create a new menu asynchronously You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Object + public Object CreateNewMenuAsync (string appId, CreateFullMenu menu, string orgId = null) + { + ApiResponse localVarResponse = CreateNewMenuAsyncWithHttpInfo(appId, menu, orgId); + return localVarResponse.Data; + } + + /// + /// Create a new menu asynchronously You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// ApiResponse of Object + public ApiResponse< Object > CreateNewMenuAsyncWithHttpInfo (string appId, CreateFullMenu menu, string orgId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->CreateNewMenuAsync"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->CreateNewMenuAsync"); + + var localVarPath = "./api/v1.0/{appId}/menus/async"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgId", orgId)); // query parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateNewMenuAsync", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create a new menu asynchronously You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Task of Object + public async System.Threading.Tasks.Task CreateNewMenuAsyncAsync (string appId, CreateFullMenu menu, string orgId = null) + { + ApiResponse localVarResponse = await CreateNewMenuAsyncAsyncWithHttpInfo(appId, menu, orgId); + return localVarResponse.Data; + + } + + /// + /// Create a new menu asynchronously You must listen to the webhook menu.async_creation.completed to know when the menu is ready + /// + /// Thrown when fails to make API call + /// App id + /// Menu + /// Org id (optional) + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> CreateNewMenuAsyncAsyncWithHttpInfo (string appId, CreateFullMenu menu, string orgId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->CreateNewMenuAsync"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->CreateNewMenuAsync"); + + var localVarPath = "./api/v1.0/{appId}/menus/async"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orgId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgId", orgId)); // query parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateNewMenuAsync", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Create a new menu [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// int? + public int? CreateNewMenuForApp (string appId, CreateFullMenu menu) + { + ApiResponse localVarResponse = CreateNewMenuForAppWithHttpInfo(appId, menu); + return localVarResponse.Data; + } + + /// + /// Create a new menu [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// ApiResponse of int? + public ApiResponse< int? > CreateNewMenuForAppWithHttpInfo (string appId, CreateFullMenu menu) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->CreateNewMenuForApp"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->CreateNewMenuForApp"); + + var localVarPath = "./api/v1.0/{appId}/menus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateNewMenuForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); + } + + /// + /// Create a new menu [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// Task of int? + public async System.Threading.Tasks.Task CreateNewMenuForAppAsync (string appId, CreateFullMenu menu) + { + ApiResponse localVarResponse = await CreateNewMenuForAppAsyncWithHttpInfo(appId, menu); + return localVarResponse.Data; + + } + + /// + /// Create a new menu [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + /// + /// Thrown when fails to make API call + /// App identifier + /// Menu. If empty the system will create a menu with default items + /// Task of ApiResponse (int?) + public async System.Threading.Tasks.Task> CreateNewMenuForAppAsyncWithHttpInfo (string appId, CreateFullMenu menu) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->CreateNewMenuForApp"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->CreateNewMenuForApp"); + + var localVarPath = "./api/v1.0/{appId}/menus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateNewMenuForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); + } + + /// + /// Mark a Menu as Deleted + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// + public void DeleteMenu (int? menuId) + { + DeleteMenuWithHttpInfo(menuId); + } + + /// + /// Mark a Menu as Deleted + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Mark a Menu as Deleted + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuAsync (int? menuId) + { + await DeleteMenuAsyncWithHttpInfo(menuId); + + } + + /// + /// Mark a Menu as Deleted + /// + /// Thrown when fails to make API call + /// Menu Identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// + public void DeleteMenuImage (int? menuId) + { + DeleteMenuImageWithHttpInfo(menuId); + } + + /// + /// Delete menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuImageWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenuImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuImageAsync (int? menuId) + { + await DeleteMenuImageAsyncWithHttpInfo(menuId); + + } + + /// + /// Delete menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuImageAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenuImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// + public void DeleteMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, string key) + { + DeleteMenuItemMetadataWithHttpInfo(menuId, storeId, menuItemId, key); + } + + /// + /// Delete menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// ApiResponse of Object(void) + public ApiResponse DeleteMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MenusApi->DeleteMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Delete menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of void + public async System.Threading.Tasks.Task DeleteMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId, string key) + { + await DeleteMenuItemMetadataAsyncWithHttpInfo(menuId, storeId, menuItemId, key); + + } + + /// + /// Delete menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->DeleteMenuItemMetadata"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MenusApi->DeleteMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// RestApiArrayResultAllMetadataResult + public RestApiArrayResultAllMetadataResult GetAllMenuMetadataByMenuIdAndStoreId (int? menuId, int? storeId) + { + ApiResponse localVarResponse = GetAllMenuMetadataByMenuIdAndStoreIdWithHttpInfo(menuId, storeId); + return localVarResponse.Data; + } + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// ApiResponse of RestApiArrayResultAllMetadataResult + public ApiResponse< RestApiArrayResultAllMetadataResult > GetAllMenuMetadataByMenuIdAndStoreIdWithHttpInfo (int? menuId, int? storeId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetAllMenuMetadataByMenuIdAndStoreId"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetAllMenuMetadataByMenuIdAndStoreId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllMenuMetadataByMenuIdAndStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllMetadataResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllMetadataResult))); + } + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Task of RestApiArrayResultAllMetadataResult + public async System.Threading.Tasks.Task GetAllMenuMetadataByMenuIdAndStoreIdAsync (int? menuId, int? storeId) + { + ApiResponse localVarResponse = await GetAllMenuMetadataByMenuIdAndStoreIdAsyncWithHttpInfo(menuId, storeId); + return localVarResponse.Data; + + } + + /// + /// Get all menu metadata by menu ID and store ID + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Task of ApiResponse (RestApiArrayResultAllMetadataResult) + public async System.Threading.Tasks.Task> GetAllMenuMetadataByMenuIdAndStoreIdAsyncWithHttpInfo (int? menuId, int? storeId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetAllMenuMetadataByMenuIdAndStoreId"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetAllMenuMetadataByMenuIdAndStoreId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllMenuMetadataByMenuIdAndStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllMetadataResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllMetadataResult))); + } + + /// + /// Get menu by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultMenu + public RestApiResultMenu GetMenuById (int? menuId) + { + ApiResponse localVarResponse = GetMenuByIdWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get menu by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultMenu + public ApiResponse< RestApiResultMenu > GetMenuByIdWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuById"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenu) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenu))); + } + + /// + /// Get menu by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultMenu + public async System.Threading.Tasks.Task GetMenuByIdAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuByIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get menu by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenu) + public async System.Threading.Tasks.Task> GetMenuByIdAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuById"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenu) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenu))); + } + + /// + /// Get menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// RestApiArrayResultMetadata + public RestApiArrayResultMetadata GetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId) + { + ApiResponse localVarResponse = GetMenuItemMetadataWithHttpInfo(menuId, storeId, menuItemId); + return localVarResponse.Data; + } + + /// + /// Get menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// ApiResponse of RestApiArrayResultMetadata + public ApiResponse< RestApiArrayResultMetadata > GetMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->GetMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMetadata))); + } + + /// + /// Get menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Task of RestApiArrayResultMetadata + public async System.Threading.Tasks.Task GetMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId) + { + ApiResponse localVarResponse = await GetMenuItemMetadataAsyncWithHttpInfo(menuId, storeId, menuItemId); + return localVarResponse.Data; + + } + + /// + /// Get menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Task of ApiResponse (RestApiArrayResultMetadata) + public async System.Threading.Tasks.Task> GetMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->GetMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMetadata))); + } + + /// + /// Get menu item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// RestApiResultMetadata + public RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) + { + ApiResponse localVarResponse = GetMenuItemMetadataByKeyWithHttpInfo(menuId, storeId, menuItemId, key); + return localVarResponse.Data; + } + + /// + /// Get menu item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// ApiResponse of RestApiResultMetadata + public ApiResponse< RestApiResultMetadata > GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MenusApi->GetMenuItemMetadataByKey"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemMetadataByKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); + } + + /// + /// Get menu item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of RestApiResultMetadata + public async System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key) + { + ApiResponse localVarResponse = await GetMenuItemMetadataByKeyAsyncWithHttpInfo(menuId, storeId, menuItemId, key); + return localVarResponse.Data; + + } + + /// + /// Get menu item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata key + /// Task of ApiResponse (RestApiResultMetadata) + public async System.Threading.Tasks.Task> GetMenuItemMetadataByKeyAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->GetMenuItemMetadataByKey"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MenusApi->GetMenuItemMetadataByKey"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemMetadataByKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); + } + + /// + /// Get menu item option set item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// RestApiResultMetadata + public RestApiResultMetadata GetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId) + { + ApiResponse localVarResponse = GetMenuItemOptionSetItemMetadataWithHttpInfo(menuId, storeId, optionSetItemId); + return localVarResponse.Data; + } + + /// + /// Get menu item option set item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// ApiResponse of RestApiResultMetadata + public ApiResponse< RestApiResultMetadata > GetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'optionSetItemId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (optionSetItemId != null) localVarPathParams.Add("optionSetItemId", this.Configuration.ApiClient.ParameterToString(optionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); + } + + /// + /// Get menu item option set item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Task of RestApiResultMetadata + public async System.Threading.Tasks.Task GetMenuItemOptionSetItemMetadataAsync (int? menuId, int? storeId, int? optionSetItemId) + { + ApiResponse localVarResponse = await GetMenuItemOptionSetItemMetadataAsyncWithHttpInfo(menuId, storeId, optionSetItemId); + return localVarResponse.Data; + + } + + /// + /// Get menu item option set item metadata by key + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Task of ApiResponse (RestApiResultMetadata) + public async System.Threading.Tasks.Task> GetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'optionSetItemId' when calling MenusApi->GetMenuItemOptionSetItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (optionSetItemId != null) localVarPathParams.Add("optionSetItemId", this.Configuration.ApiClient.ParameterToString(optionSetItemId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuItemOptionSetItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); + } + + /// + /// Get Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// string + public string GetMenuName (int? menuId) + { + ApiResponse localVarResponse = GetMenuNameWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of string + public ApiResponse< string > GetMenuNameWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Get Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of string + public async System.Threading.Tasks.Task GetMenuNameAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuNameAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Get menus store names + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuStoreNames + public RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId) + { + ApiResponse localVarResponse = GetMenuStoreNamesWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get menus store names + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuStoreNames + public ApiResponse< RestApiArrayResultMenuStoreNames > GetMenuStoreNamesWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuStoreNames"); + + var localVarPath = "./api/v1.0/menus/{menuId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuStoreNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuStoreNames) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuStoreNames))); + } + + /// + /// Get menus store names + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuStoreNames + public async System.Threading.Tasks.Task GetMenuStoreNamesAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuStoreNamesAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get menus store names + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuStoreNames) + public async System.Threading.Tasks.Task> GetMenuStoreNamesAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuStoreNames"); + + var localVarPath = "./api/v1.0/menus/{menuId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuStoreNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuStoreNames) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuStoreNames))); + } + + /// + /// Get menus tax details + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuTaxDetails + public RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId) + { + ApiResponse localVarResponse = GetMenuTaxDetailsWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get menus tax details + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuTaxDetails + public ApiResponse< RestApiArrayResultMenuTaxDetails > GetMenuTaxDetailsWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuTaxDetails"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuTaxDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuTaxDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuTaxDetails))); + } + + /// + /// Get menus tax details + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuTaxDetails + public async System.Threading.Tasks.Task GetMenuTaxDetailsAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuTaxDetailsAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get menus tax details + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuTaxDetails) + public async System.Threading.Tasks.Task> GetMenuTaxDetailsAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenuTaxDetails"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuTaxDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuTaxDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuTaxDetails))); + } + + /// + /// Get menus by appId + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// RestApiArrayResultMenuSummary + public RestApiArrayResultMenuSummary GetMenusByAppId (string appId) + { + ApiResponse localVarResponse = GetMenusByAppIdWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// Get menus by appId + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// ApiResponse of RestApiArrayResultMenuSummary + public ApiResponse< RestApiArrayResultMenuSummary > GetMenusByAppIdWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->GetMenusByAppId"); + + var localVarPath = "./api/v1.0/{appId}/menus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenusByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSummary))); + } + + /// + /// Get menus by appId + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// Task of RestApiArrayResultMenuSummary + public async System.Threading.Tasks.Task GetMenusByAppIdAsync (string appId) + { + ApiResponse localVarResponse = await GetMenusByAppIdAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// Get menus by appId + /// + /// Thrown when fails to make API call + /// Get Menus for this appId + /// Task of ApiResponse (RestApiArrayResultMenuSummary) + public async System.Threading.Tasks.Task> GetMenusByAppIdAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->GetMenusByAppId"); + + var localVarPath = "./api/v1.0/{appId}/menus"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenusByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuSummary))); + } + + /// + /// Get a Menus Checkpoints + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiArrayResultMenuCheckpoint + public RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId) + { + ApiResponse localVarResponse = GetMenusCheckpointsWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get a Menus Checkpoints + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiArrayResultMenuCheckpoint + public ApiResponse< RestApiArrayResultMenuCheckpoint > GetMenusCheckpointsWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenusCheckpoints"); + + var localVarPath = "./api/v1.0/menus/{menuId}/checkpoints"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenusCheckpoints", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuCheckpoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuCheckpoint))); + } + + /// + /// Get a Menus Checkpoints + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiArrayResultMenuCheckpoint + public async System.Threading.Tasks.Task GetMenusCheckpointsAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenusCheckpointsAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get a Menus Checkpoints + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiArrayResultMenuCheckpoint) + public async System.Threading.Tasks.Task> GetMenusCheckpointsAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->GetMenusCheckpoints"); + + var localVarPath = "./api/v1.0/menus/{menuId}/checkpoints"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenusCheckpoints", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuCheckpoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuCheckpoint))); + } + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// + public void MenusDeleteTaxRate (int? menuId, int? taxId) + { + MenusDeleteTaxRateWithHttpInfo(menuId, taxId); + } + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// ApiResponse of Object(void) + public ApiResponse MenusDeleteTaxRateWithHttpInfo (int? menuId, int? taxId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusDeleteTaxRate"); + // verify the required parameter 'taxId' is set + if (taxId == null) + throw new ApiException(400, "Missing required parameter 'taxId' when calling MenusApi->MenusDeleteTaxRate"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/{taxId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (taxId != null) localVarPathParams.Add("taxId", this.Configuration.ApiClient.ParameterToString(taxId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusDeleteTaxRate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// Task of void + public async System.Threading.Tasks.Task MenusDeleteTaxRateAsync (int? menuId, int? taxId) + { + await MenusDeleteTaxRateAsyncWithHttpInfo(menuId, taxId); + + } + + /// + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Id of Menu Tax to be removed + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MenusDeleteTaxRateAsyncWithHttpInfo (int? menuId, int? taxId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusDeleteTaxRate"); + // verify the required parameter 'taxId' is set + if (taxId == null) + throw new ApiException(400, "Missing required parameter 'taxId' when calling MenusApi->MenusDeleteTaxRate"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/{taxId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (taxId != null) localVarPathParams.Add("taxId", this.Configuration.ApiClient.ParameterToString(taxId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusDeleteTaxRate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Get bulk show/hide menu items and option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// RestApiArrayResultMenuElementListResponse + public RestApiArrayResultMenuElementListResponse MenusGetMenuBulkShowHide (int? menuId, bool? isAvailable) + { + ApiResponse localVarResponse = MenusGetMenuBulkShowHideWithHttpInfo(menuId, isAvailable); + return localVarResponse.Data; + } + + /// + /// Get bulk show/hide menu items and option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// ApiResponse of RestApiArrayResultMenuElementListResponse + public ApiResponse< RestApiArrayResultMenuElementListResponse > MenusGetMenuBulkShowHideWithHttpInfo (int? menuId, bool? isAvailable) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusGetMenuBulkShowHide"); + // verify the required parameter 'isAvailable' is set + if (isAvailable == null) + throw new ApiException(400, "Missing required parameter 'isAvailable' when calling MenusApi->MenusGetMenuBulkShowHide"); + + var localVarPath = "./api/v1.0/menus/{menuId}/bulkshowhide/list"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (isAvailable != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isAvailable", isAvailable)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusGetMenuBulkShowHide", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuElementListResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuElementListResponse))); + } + + /// + /// Get bulk show/hide menu items and option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// Task of RestApiArrayResultMenuElementListResponse + public async System.Threading.Tasks.Task MenusGetMenuBulkShowHideAsync (int? menuId, bool? isAvailable) + { + ApiResponse localVarResponse = await MenusGetMenuBulkShowHideAsyncWithHttpInfo(menuId, isAvailable); + return localVarResponse.Data; + + } + + /// + /// Get bulk show/hide menu items and option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Is available flag + /// Task of ApiResponse (RestApiArrayResultMenuElementListResponse) + public async System.Threading.Tasks.Task> MenusGetMenuBulkShowHideAsyncWithHttpInfo (int? menuId, bool? isAvailable) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusGetMenuBulkShowHide"); + // verify the required parameter 'isAvailable' is set + if (isAvailable == null) + throw new ApiException(400, "Missing required parameter 'isAvailable' when calling MenusApi->MenusGetMenuBulkShowHide"); + + var localVarPath = "./api/v1.0/menus/{menuId}/bulkshowhide/list"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (isAvailable != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isAvailable", isAvailable)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusGetMenuBulkShowHide", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuElementListResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuElementListResponse))); + } + + /// + /// Set if tax shows for a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// + public void MenusSetDisplayOnMenuTax (int? menuId, bool? show) + { + MenusSetDisplayOnMenuTaxWithHttpInfo(menuId, show); + } + + /// + /// Set if tax shows for a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// ApiResponse of Object(void) + public ApiResponse MenusSetDisplayOnMenuTaxWithHttpInfo (int? menuId, bool? show) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusSetDisplayOnMenuTax"); + // verify the required parameter 'show' is set + if (show == null) + throw new ApiException(400, "Missing required parameter 'show' when calling MenusApi->MenusSetDisplayOnMenuTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/show/{show}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (show != null) localVarPathParams.Add("show", this.Configuration.ApiClient.ParameterToString(show)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusSetDisplayOnMenuTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set if tax shows for a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// Task of void + public async System.Threading.Tasks.Task MenusSetDisplayOnMenuTaxAsync (int? menuId, bool? show) + { + await MenusSetDisplayOnMenuTaxAsyncWithHttpInfo(menuId, show); + + } + + /// + /// Set if tax shows for a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MenusSetDisplayOnMenuTaxAsyncWithHttpInfo (int? menuId, bool? show) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusSetDisplayOnMenuTax"); + // verify the required parameter 'show' is set + if (show == null) + throw new ApiException(400, "Missing required parameter 'show' when calling MenusApi->MenusSetDisplayOnMenuTax"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/show/{show}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (show != null) localVarPathParams.Add("show", this.Configuration.ApiClient.ParameterToString(show)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusSetDisplayOnMenuTax", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Re-arrange Sections within a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// + public void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders displayOrders) + { + MenusSetItemDisplayOrdersWithHttpInfo(menuId, displayOrders); + } + + /// + /// Re-arrange Sections within a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// ApiResponse of Object(void) + public ApiResponse MenusSetItemDisplayOrdersWithHttpInfo (int? menuId, MenuObjectDisplayOrders displayOrders) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusSetItemDisplayOrders"); + // verify the required parameter 'displayOrders' is set + if (displayOrders == null) + throw new ApiException(400, "Missing required parameter 'displayOrders' when calling MenusApi->MenusSetItemDisplayOrders"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sectiondisplayorders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (displayOrders != null && displayOrders.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(displayOrders); // http body (model) parameter + } + else + { + localVarPostBody = displayOrders; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusSetItemDisplayOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Re-arrange Sections within a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// Task of void + public async System.Threading.Tasks.Task MenusSetItemDisplayOrdersAsync (int? menuId, MenuObjectDisplayOrders displayOrders) + { + await MenusSetItemDisplayOrdersAsyncWithHttpInfo(menuId, displayOrders); + + } + + /// + /// Re-arrange Sections within a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Section Ids and their new display order + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MenusSetItemDisplayOrdersAsyncWithHttpInfo (int? menuId, MenuObjectDisplayOrders displayOrders) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusSetItemDisplayOrders"); + // verify the required parameter 'displayOrders' is set + if (displayOrders == null) + throw new ApiException(400, "Missing required parameter 'displayOrders' when calling MenusApi->MenusSetItemDisplayOrders"); + + var localVarPath = "./api/v1.0/menus/{menuId}/sectiondisplayorders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (displayOrders != null && displayOrders.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(displayOrders); // http body (model) parameter + } + else + { + localVarPostBody = displayOrders; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusSetItemDisplayOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Bulk show/hide menu items or option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// RestApiArrayResultMenuElementEditResponse + public RestApiArrayResultMenuElementEditResponse MenusShowHideBulkItems (int? menuId, List menuElements, bool? isAvailable) + { + ApiResponse localVarResponse = MenusShowHideBulkItemsWithHttpInfo(menuId, menuElements, isAvailable); + return localVarResponse.Data; + } + + /// + /// Bulk show/hide menu items or option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// ApiResponse of RestApiArrayResultMenuElementEditResponse + public ApiResponse< RestApiArrayResultMenuElementEditResponse > MenusShowHideBulkItemsWithHttpInfo (int? menuId, List menuElements, bool? isAvailable) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusShowHideBulkItems"); + // verify the required parameter 'menuElements' is set + if (menuElements == null) + throw new ApiException(400, "Missing required parameter 'menuElements' when calling MenusApi->MenusShowHideBulkItems"); + // verify the required parameter 'isAvailable' is set + if (isAvailable == null) + throw new ApiException(400, "Missing required parameter 'isAvailable' when calling MenusApi->MenusShowHideBulkItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/bulkshowhide"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (isAvailable != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isAvailable", isAvailable)); // query parameter + if (menuElements != null && menuElements.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuElements); // http body (model) parameter + } + else + { + localVarPostBody = menuElements; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusShowHideBulkItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuElementEditResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuElementEditResponse))); + } + + /// + /// Bulk show/hide menu items or option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// Task of RestApiArrayResultMenuElementEditResponse + public async System.Threading.Tasks.Task MenusShowHideBulkItemsAsync (int? menuId, List menuElements, bool? isAvailable) + { + ApiResponse localVarResponse = await MenusShowHideBulkItemsAsyncWithHttpInfo(menuId, menuElements, isAvailable); + return localVarResponse.Data; + + } + + /// + /// Bulk show/hide menu items or option set items + /// + /// Thrown when fails to make API call + /// Menu id + /// Elements to be show/hide + /// Is available flag + /// Task of ApiResponse (RestApiArrayResultMenuElementEditResponse) + public async System.Threading.Tasks.Task> MenusShowHideBulkItemsAsyncWithHttpInfo (int? menuId, List menuElements, bool? isAvailable) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusShowHideBulkItems"); + // verify the required parameter 'menuElements' is set + if (menuElements == null) + throw new ApiException(400, "Missing required parameter 'menuElements' when calling MenusApi->MenusShowHideBulkItems"); + // verify the required parameter 'isAvailable' is set + if (isAvailable == null) + throw new ApiException(400, "Missing required parameter 'isAvailable' when calling MenusApi->MenusShowHideBulkItems"); + + var localVarPath = "./api/v1.0/menus/{menuId}/bulkshowhide"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (isAvailable != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "isAvailable", isAvailable)); // query parameter + if (menuElements != null && menuElements.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menuElements); // http body (model) parameter + } + else + { + localVarPostBody = menuElements; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusShowHideBulkItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMenuElementEditResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMenuElementEditResponse))); + } + + /// + /// Set the type of Tax on a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// + public void MenusUpdateTaxType (int? menuId, string type) + { + MenusUpdateTaxTypeWithHttpInfo(menuId, type); + } + + /// + /// Set the type of Tax on a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// ApiResponse of Object(void) + public ApiResponse MenusUpdateTaxTypeWithHttpInfo (int? menuId, string type) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusUpdateTaxType"); + // verify the required parameter 'type' is set + if (type == null) + throw new ApiException(400, "Missing required parameter 'type' when calling MenusApi->MenusUpdateTaxType"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/type/{type}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusUpdateTaxType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set the type of Tax on a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// Task of void + public async System.Threading.Tasks.Task MenusUpdateTaxTypeAsync (int? menuId, string type) + { + await MenusUpdateTaxTypeAsyncWithHttpInfo(menuId, type); + + } + + /// + /// Set the type of Tax on a Menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Type of Tax + /// Task of ApiResponse + public async System.Threading.Tasks.Task> MenusUpdateTaxTypeAsyncWithHttpInfo (int? menuId, string type) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusUpdateTaxType"); + // verify the required parameter 'type' is set + if (type == null) + throw new ApiException(400, "Missing required parameter 'type' when calling MenusApi->MenusUpdateTaxType"); + + var localVarPath = "./api/v1.0/menus/{menuId}/tax/type/{type}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (type != null) localVarPathParams.Add("type", this.Configuration.ApiClient.ParameterToString(type)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusUpdateTaxType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Add/Update a Tax Rate + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// MenuTaxRate + public MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate) + { + ApiResponse localVarResponse = MenusUpsertTaxRateWithHttpInfo(menuId, taxRate); + return localVarResponse.Data; + } + + /// + /// Add/Update a Tax Rate + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// ApiResponse of MenuTaxRate + public ApiResponse< MenuTaxRate > MenusUpsertTaxRateWithHttpInfo (int? menuId, MenuTaxRate taxRate) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusUpsertTaxRate"); + // verify the required parameter 'taxRate' is set + if (taxRate == null) + throw new ApiException(400, "Missing required parameter 'taxRate' when calling MenusApi->MenusUpsertTaxRate"); + + var localVarPath = "./api/v1.0/menus/{menuId}/taxrate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (taxRate != null && taxRate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(taxRate); // http body (model) parameter + } + else + { + localVarPostBody = taxRate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusUpsertTaxRate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (MenuTaxRate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MenuTaxRate))); + } + + /// + /// Add/Update a Tax Rate + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// Task of MenuTaxRate + public async System.Threading.Tasks.Task MenusUpsertTaxRateAsync (int? menuId, MenuTaxRate taxRate) + { + ApiResponse localVarResponse = await MenusUpsertTaxRateAsyncWithHttpInfo(menuId, taxRate); + return localVarResponse.Data; + + } + + /// + /// Add/Update a Tax Rate + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Tax rate to add/update + /// Task of ApiResponse (MenuTaxRate) + public async System.Threading.Tasks.Task> MenusUpsertTaxRateAsyncWithHttpInfo (int? menuId, MenuTaxRate taxRate) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->MenusUpsertTaxRate"); + // verify the required parameter 'taxRate' is set + if (taxRate == null) + throw new ApiException(400, "Missing required parameter 'taxRate' when calling MenusApi->MenusUpsertTaxRate"); + + var localVarPath = "./api/v1.0/menus/{menuId}/taxrate"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (taxRate != null && taxRate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(taxRate); // http body (model) parameter + } + else + { + localVarPostBody = taxRate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MenusUpsertTaxRate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (MenuTaxRate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(MenuTaxRate))); + } + + /// + /// Restore a Menu to a checkpoint + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// + public void RestoreAMenuCheckpoint (int? menuId, int? checkpointId) + { + RestoreAMenuCheckpointWithHttpInfo(menuId, checkpointId); + } + + /// + /// Restore a Menu to a checkpoint + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// ApiResponse of Object(void) + public ApiResponse RestoreAMenuCheckpointWithHttpInfo (int? menuId, int? checkpointId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->RestoreAMenuCheckpoint"); + // verify the required parameter 'checkpointId' is set + if (checkpointId == null) + throw new ApiException(400, "Missing required parameter 'checkpointId' when calling MenusApi->RestoreAMenuCheckpoint"); + + var localVarPath = "./api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (checkpointId != null) localVarPathParams.Add("checkpointId", this.Configuration.ApiClient.ParameterToString(checkpointId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RestoreAMenuCheckpoint", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Restore a Menu to a checkpoint + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// Task of void + public async System.Threading.Tasks.Task RestoreAMenuCheckpointAsync (int? menuId, int? checkpointId) + { + await RestoreAMenuCheckpointAsyncWithHttpInfo(menuId, checkpointId); + + } + + /// + /// Restore a Menu to a checkpoint + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Checkpoint to restore menu to + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RestoreAMenuCheckpointAsyncWithHttpInfo (int? menuId, int? checkpointId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->RestoreAMenuCheckpoint"); + // verify the required parameter 'checkpointId' is set + if (checkpointId == null) + throw new ApiException(400, "Missing required parameter 'checkpointId' when calling MenusApi->RestoreAMenuCheckpoint"); + + var localVarPath = "./api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (checkpointId != null) localVarPathParams.Add("checkpointId", this.Configuration.ApiClient.ParameterToString(checkpointId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RestoreAMenuCheckpoint", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// + public void SetMenuItemMetadata (int? menuId, int? storeId, int? menuItemId, Metadata metadata) + { + SetMenuItemMetadataWithHttpInfo(menuId, storeId, menuItemId, metadata); + } + + /// + /// Update menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// ApiResponse of Object(void) + public ApiResponse SetMenuItemMetadataWithHttpInfo (int? menuId, int? storeId, int? menuItemId, Metadata metadata) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'metadata' is set + if (metadata == null) + throw new ApiException(400, "Missing required parameter 'metadata' when calling MenusApi->SetMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (metadata != null && metadata.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(metadata); // http body (model) parameter + } + else + { + localVarPostBody = metadata; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// Task of void + public async System.Threading.Tasks.Task SetMenuItemMetadataAsync (int? menuId, int? storeId, int? menuItemId, Metadata metadata) + { + await SetMenuItemMetadataAsyncWithHttpInfo(menuId, storeId, menuItemId, metadata); + + } + + /// + /// Update menu item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item identifier + /// Metadata object + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, Metadata metadata) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'menuItemId' is set + if (menuItemId == null) + throw new ApiException(400, "Missing required parameter 'menuItemId' when calling MenusApi->SetMenuItemMetadata"); + // verify the required parameter 'metadata' is set + if (metadata == null) + throw new ApiException(400, "Missing required parameter 'metadata' when calling MenusApi->SetMenuItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuItemId != null) localVarPathParams.Add("menuItemId", this.Configuration.ApiClient.ParameterToString(menuItemId)); // path parameter + if (metadata != null && metadata.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(metadata); // http body (model) parameter + } + else + { + localVarPostBody = metadata; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item option set item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// + public void SetMenuItemOptionSetItemMetadata (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata) + { + SetMenuItemOptionSetItemMetadataWithHttpInfo(menuId, storeId, optionSetItemId, metadata); + } + + /// + /// Update menu item option set item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// ApiResponse of Object(void) + public ApiResponse SetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'optionSetItemId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'metadata' is set + if (metadata == null) + throw new ApiException(400, "Missing required parameter 'metadata' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (optionSetItemId != null) localVarPathParams.Add("optionSetItemId", this.Configuration.ApiClient.ParameterToString(optionSetItemId)); // path parameter + if (metadata != null && metadata.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(metadata); // http body (model) parameter + } + else + { + localVarPostBody = metadata; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuItemOptionSetItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu item option set item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// Task of void + public async System.Threading.Tasks.Task SetMenuItemOptionSetItemMetadataAsync (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata) + { + await SetMenuItemOptionSetItemMetadataAsyncWithHttpInfo(menuId, storeId, optionSetItemId, metadata); + + } + + /// + /// Update menu item option set item metadata + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Store identifier + /// Menu item option set item identifier + /// Metadata object + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId == null) + throw new ApiException(400, "Missing required parameter 'optionSetItemId' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + // verify the required parameter 'metadata' is set + if (metadata == null) + throw new ApiException(400, "Missing required parameter 'metadata' when calling MenusApi->SetMenuItemOptionSetItemMetadata"); + + var localVarPath = "./api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (optionSetItemId != null) localVarPathParams.Add("optionSetItemId", this.Configuration.ApiClient.ParameterToString(optionSetItemId)); // path parameter + if (metadata != null && metadata.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(metadata); // http body (model) parameter + } + else + { + localVarPostBody = metadata; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuItemOptionSetItemMetadata", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Lock/Unlock a Menu for Editing + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// + public void SetMenuLock (int? menuId, bool? locked) + { + SetMenuLockWithHttpInfo(menuId, locked); + } + + /// + /// Lock/Unlock a Menu for Editing + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// ApiResponse of Object(void) + public ApiResponse SetMenuLockWithHttpInfo (int? menuId, bool? locked) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuLock"); + // verify the required parameter 'locked' is set + if (locked == null) + throw new ApiException(400, "Missing required parameter 'locked' when calling MenusApi->SetMenuLock"); + + var localVarPath = "./api/v1.0/menus/{menuId}/lock"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (locked != null && locked.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locked); // http body (model) parameter + } + else + { + localVarPostBody = locked; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuLock", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Lock/Unlock a Menu for Editing + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// Task of void + public async System.Threading.Tasks.Task SetMenuLockAsync (int? menuId, bool? locked) + { + await SetMenuLockAsyncWithHttpInfo(menuId, locked); + + } + + /// + /// Lock/Unlock a Menu for Editing + /// + /// Thrown when fails to make API call + /// Menu identifier + /// True: Locks menu for editing, False: Unlocks for editing + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuLockAsyncWithHttpInfo (int? menuId, bool? locked) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuLock"); + // verify the required parameter 'locked' is set + if (locked == null) + throw new ApiException(400, "Missing required parameter 'locked' when calling MenusApi->SetMenuLock"); + + var localVarPath = "./api/v1.0/menus/{menuId}/lock"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (locked != null && locked.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(locked); // http body (model) parameter + } + else + { + localVarPostBody = locked; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuLock", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// + public void SetMenuName (int? menuId, string name) + { + SetMenuNameWithHttpInfo(menuId, name); + } + + /// + /// Set Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// ApiResponse of Object(void) + public ApiResponse SetMenuNameWithHttpInfo (int? menuId, string name) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuName"); + // verify the required parameter 'name' is set + if (name == null) + throw new ApiException(400, "Missing required parameter 'name' when calling MenusApi->SetMenuName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (name != null && name.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter + } + else + { + localVarPostBody = name; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Set Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// Task of void + public async System.Threading.Tasks.Task SetMenuNameAsync (int? menuId, string name) + { + await SetMenuNameAsyncWithHttpInfo(menuId, name); + + } + + /// + /// Set Menus Name + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Name to set for this Menu + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetMenuNameAsyncWithHttpInfo (int? menuId, string name) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->SetMenuName"); + // verify the required parameter 'name' is set + if (name == null) + throw new ApiException(400, "Missing required parameter 'name' when calling MenusApi->SetMenuName"); + + var localVarPath = "./api/v1.0/menus/{menuId}/name"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (name != null && name.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(name); // http body (model) parameter + } + else + { + localVarPostBody = name; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetMenuName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// + public void UpdateMenu (int? menuId, MenuBase menu) + { + UpdateMenuWithHttpInfo(menuId, menu); + } + + /// + /// Update menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// ApiResponse of Object(void) + public ApiResponse UpdateMenuWithHttpInfo (int? menuId, MenuBase menu) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->UpdateMenu"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->UpdateMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Update menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// Task of void + public async System.Threading.Tasks.Task UpdateMenuAsync (int? menuId, MenuBase menu) + { + await UpdateMenuAsyncWithHttpInfo(menuId, menu); + + } + + /// + /// Update menu + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Full menu data + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateMenuAsyncWithHttpInfo (int? menuId, MenuBase menu) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->UpdateMenu"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->UpdateMenu"); + + var localVarPath = "./api/v1.0/menus/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (menu != null && menu.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(menu); // http body (model) parameter + } + else + { + localVarPostBody = menu; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// Upload menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// RestApiStringResult + public RestApiStringResult UploadMenuImage (int? menuId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadMenuImageWithHttpInfo(menuId, image); + return localVarResponse.Data; + } + + /// + /// Upload menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > UploadMenuImageWithHttpInfo (int? menuId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->UploadMenuImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenusApi->UploadMenuImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Upload menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task UploadMenuImageAsync (int? menuId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadMenuImageAsyncWithHttpInfo(menuId, image); + return localVarResponse.Data; + + } + + /// + /// Upload menu image + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu image + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> UploadMenuImageAsyncWithHttpInfo (int? menuId, System.IO.Stream image) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusApi->UploadMenuImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MenusApi->UploadMenuImage"); + + var localVarPath = "./api/v1.0/menus/{menuId}/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadMenuImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// Create a new menu from xlsx file. + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// int? + public int? UploadNewMenuForApp (string appId, System.IO.Stream menu) + { + ApiResponse localVarResponse = UploadNewMenuForAppWithHttpInfo(appId, menu); + return localVarResponse.Data; + } + + /// + /// Create a new menu from xlsx file. + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// ApiResponse of int? + public ApiResponse< int? > UploadNewMenuForAppWithHttpInfo (string appId, System.IO.Stream menu) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->UploadNewMenuForApp"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->UploadNewMenuForApp"); + + var localVarPath = "./api/v1.0/{appId}/menus/xlsx"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menu != null) localVarFileParams.Add("Menu", this.Configuration.ApiClient.ParameterToFile("Menu", menu)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadNewMenuForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); + } + + /// + /// Create a new menu from xlsx file. + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// Task of int? + public async System.Threading.Tasks.Task UploadNewMenuForAppAsync (string appId, System.IO.Stream menu) + { + ApiResponse localVarResponse = await UploadNewMenuForAppAsyncWithHttpInfo(appId, menu); + return localVarResponse.Data; + + } + + /// + /// Create a new menu from xlsx file. + /// + /// Thrown when fails to make API call + /// App identifier + /// Uploaded xlsx menu + /// Task of ApiResponse (int?) + public async System.Threading.Tasks.Task> UploadNewMenuForAppAsyncWithHttpInfo (string appId, System.IO.Stream menu) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusApi->UploadNewMenuForApp"); + // verify the required parameter 'menu' is set + if (menu == null) + throw new ApiException(400, "Missing required parameter 'menu' when calling MenusApi->UploadNewMenuForApp"); + + var localVarPath = "./api/v1.0/{appId}/menus/xlsx"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menu != null) localVarFileParams.Add("Menu", this.Configuration.ApiClient.ParameterToFile("Menu", menu)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadNewMenuForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (int?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(int?))); + } + + } +} diff --git a/src/Flipdish/Api/MenusNutritionInfoApi.cs b/src/Flipdish/Api/MenusNutritionInfoApi.cs new file mode 100644 index 00000000..8ca23af7 --- /dev/null +++ b/src/Flipdish/Api/MenusNutritionInfoApi.cs @@ -0,0 +1,1410 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenusNutritionInfoApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemNutritionInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuItemNutritionInfoWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemOptionSetItemNutritionInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + /// + /// Add or update menu nutrition by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuNutritionInfoByMenuId (int? menuId); + + /// + /// Add or update menu nutrition by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); + /// + /// Delete menu nutrition information by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Object + Object DeleteMenuNutritionInfoByMenuId (int? menuId); + + /// + /// Delete menu nutrition information by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of Object + ApiResponse DeleteMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultAllergen + RestApiArrayResultAllergen GetAllergens (string appId, string languageId = null); + + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultAllergen + ApiResponse GetAllergensWithHttpInfo (string appId, string languageId = null); + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultNutritionInfo + RestApiResultNutritionInfo GetMenuNutritionInfoByMenuId (int? menuId); + + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultNutritionInfo + ApiResponse GetMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoAsync (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuItemNutritionInfoAsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoAsync (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuItemOptionSetItemNutritionInfoAsyncWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); + /// + /// Add or update menu nutrition by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuNutritionInfoByMenuIdAsync (int? menuId); + + /// + /// Add or update menu nutrition by identifier + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId); + /// + /// Delete menu nutrition information by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of Object + System.Threading.Tasks.Task DeleteMenuNutritionInfoByMenuIdAsync (int? menuId); + + /// + /// Delete menu nutrition information by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId); + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + System.Threading.Tasks.Task GetAllergensAsync (string appId, string languageId = null); + + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultAllergen) + System.Threading.Tasks.Task> GetAllergensAsyncWithHttpInfo (string appId, string languageId = null); + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultNutritionInfo + System.Threading.Tasks.Task GetMenuNutritionInfoByMenuIdAsync (int? menuId); + + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultNutritionInfo) + System.Threading.Tasks.Task> GetMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenusNutritionInfoApi : IMenusNutritionInfoApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenusNutritionInfoApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenusNutritionInfoApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemNutritionInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + ApiResponse localVarResponse = AddOrUpdateMenuItemNutritionInfoWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuItemNutritionInfoWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuItem/{publicId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoAsync (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + ApiResponse localVarResponse = await AddOrUpdateMenuItemNutritionInfoAsyncWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; + + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + public async System.Threading.Tasks.Task> AddOrUpdateMenuItemNutritionInfoAsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemNutritionInfo"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuItem/{publicId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemOptionSetItemNutritionInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + ApiResponse localVarResponse = AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; + } + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoAsync (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + ApiResponse localVarResponse = await AddOrUpdateMenuItemOptionSetItemNutritionInfoAsyncWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; + + } + + /// + /// Add or update menuitem optionsetitem nutrition info its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + public async System.Threading.Tasks.Task> AddOrUpdateMenuItemOptionSetItemNutritionInfoAsyncWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoApi->AddOrUpdateMenuItemOptionSetItemNutritionInfo"); + + var localVarPath = "./api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Add or update menu nutrition by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuNutritionInfoByMenuId (int? menuId) + { + ApiResponse localVarResponse = AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Add or update menu nutrition by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Add or update menu nutrition by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuNutritionInfoByMenuIdAsync (int? menuId) + { + ApiResponse localVarResponse = await AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Add or update menu nutrition by identifier + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + public async System.Threading.Tasks.Task> AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->AddOrUpdateMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); + } + + /// + /// Delete menu nutrition information by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Object + public Object DeleteMenuNutritionInfoByMenuId (int? menuId) + { + ApiResponse localVarResponse = DeleteMenuNutritionInfoByMenuIdWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Delete menu nutrition information by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of Object + public ApiResponse< Object > DeleteMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->DeleteMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Delete menu nutrition information by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of Object + public async System.Threading.Tasks.Task DeleteMenuNutritionInfoByMenuIdAsync (int? menuId) + { + ApiResponse localVarResponse = await DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Delete menu nutrition information by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->DeleteMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultAllergen + public RestApiArrayResultAllergen GetAllergens (string appId, string languageId = null) + { + ApiResponse localVarResponse = GetAllergensWithHttpInfo(appId, languageId); + return localVarResponse.Data; + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultAllergen + public ApiResponse< RestApiArrayResultAllergen > GetAllergensWithHttpInfo (string appId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoApi->GetAllergens"); + + var localVarPath = "./api/v1.0/{appId}/menus/nutrition/allergens"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllergens", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + public async System.Threading.Tasks.Task GetAllergensAsync (string appId, string languageId = null) + { + ApiResponse localVarResponse = await GetAllergensAsyncWithHttpInfo(appId, languageId); + return localVarResponse.Data; + + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultAllergen) + public async System.Threading.Tasks.Task> GetAllergensAsyncWithHttpInfo (string appId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoApi->GetAllergens"); + + var localVarPath = "./api/v1.0/{appId}/menus/nutrition/allergens"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllergens", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// RestApiResultNutritionInfo + public RestApiResultNutritionInfo GetMenuNutritionInfoByMenuId (int? menuId) + { + ApiResponse localVarResponse = GetMenuNutritionInfoByMenuIdWithHttpInfo(menuId); + return localVarResponse.Data; + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// ApiResponse of RestApiResultNutritionInfo + public ApiResponse< RestApiResultNutritionInfo > GetMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->GetMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultNutritionInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultNutritionInfo))); + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of RestApiResultNutritionInfo + public async System.Threading.Tasks.Task GetMenuNutritionInfoByMenuIdAsync (int? menuId) + { + ApiResponse localVarResponse = await GetMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; + + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Task of ApiResponse (RestApiResultNutritionInfo) + public async System.Threading.Tasks.Task> GetMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoApi->GetMenuNutritionInfoByMenuId"); + + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuNutritionInfoByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultNutritionInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultNutritionInfo))); + } + + } +} diff --git a/src/Flipdish/Api/MenusNutritionInfoV2Api.cs b/src/Flipdish/Api/MenusNutritionInfoV2Api.cs new file mode 100644 index 00000000..a82430d5 --- /dev/null +++ b/src/Flipdish/Api/MenusNutritionInfoV2Api.cs @@ -0,0 +1,1082 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMenusNutritionInfoV2Api : IApiAccessor + { + #region Synchronous Operations + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Object + Object AddOrUpdateMenuItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// ApiResponse of Object + ApiResponse AddOrUpdateMenuItemNutritionInfoV2WithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Object + Object AddOrUpdateMenuItemOptionSetItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// ApiResponse of Object + ApiResponse AddOrUpdateMenuItemOptionSetItemNutritionInfoV2WithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultAllergen + RestApiArrayResultAllergen GetAllergensV2 (string appId, string languageId = null); + + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultAllergen + ApiResponse GetAllergensV2WithHttpInfo (string appId, string languageId = null); + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// RestApiResultNutritionInfoV2 + RestApiResultNutritionInfoV2 GetMenuNutritionInfoV2ByMenuId (string appId, int? menuId, string languageId = null); + + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// ApiResponse of RestApiResultNutritionInfoV2 + ApiResponse GetMenuNutritionInfoV2ByMenuIdWithHttpInfo (string appId, int? menuId, string languageId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Task of Object + System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoV2Async (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AddOrUpdateMenuItemNutritionInfoV2AsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Task of Object + System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoV2Async (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AddOrUpdateMenuItemOptionSetItemNutritionInfoV2AsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId); + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + System.Threading.Tasks.Task GetAllergensV2Async (string appId, string languageId = null); + + /// + /// Get allergens + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultAllergen) + System.Threading.Tasks.Task> GetAllergensV2AsyncWithHttpInfo (string appId, string languageId = null); + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// Task of RestApiResultNutritionInfoV2 + System.Threading.Tasks.Task GetMenuNutritionInfoV2ByMenuIdAsync (string appId, int? menuId, string languageId = null); + + /// + /// Get menu nutrition by menuId + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// Task of ApiResponse (RestApiResultNutritionInfoV2) + System.Threading.Tasks.Task> GetMenuNutritionInfoV2ByMenuIdAsyncWithHttpInfo (string appId, int? menuId, string languageId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MenusNutritionInfoV2Api : IMenusNutritionInfoV2Api + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MenusNutritionInfoV2Api(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MenusNutritionInfoV2Api(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Object + public Object AddOrUpdateMenuItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + ApiResponse localVarResponse = AddOrUpdateMenuItemNutritionInfoV2WithHttpInfo(menuId, publicId, addOrUpdateModel, appId); + return localVarResponse.Data; + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// ApiResponse of Object + public ApiResponse< Object > AddOrUpdateMenuItemNutritionInfoV2WithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/menuItem/{publicId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfoV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Task of Object + public async System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoV2Async (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + ApiResponse localVarResponse = await AddOrUpdateMenuItemNutritionInfoV2AsyncWithHttpInfo(menuId, publicId, addOrUpdateModel, appId); + return localVarResponse.Data; + + } + + /// + /// Add or update menuitem nutrition info by menu item's publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item's publicId + /// Allergen ids + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AddOrUpdateMenuItemNutritionInfoV2AsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemNutritionInfoV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/menuItem/{publicId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfoV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Object + public Object AddOrUpdateMenuItemOptionSetItemNutritionInfoV2 (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + ApiResponse localVarResponse = AddOrUpdateMenuItemOptionSetItemNutritionInfoV2WithHttpInfo(menuId, publicId, addOrUpdateModel, appId); + return localVarResponse.Data; + } + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// ApiResponse of Object + public ApiResponse< Object > AddOrUpdateMenuItemOptionSetItemNutritionInfoV2WithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/menuItemOption/{publicId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfoV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Task of Object + public async System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoV2Async (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + ApiResponse localVarResponse = await AddOrUpdateMenuItemOptionSetItemNutritionInfoV2AsyncWithHttpInfo(menuId, publicId, addOrUpdateModel, appId); + return localVarResponse.Data; + + } + + /// + /// Add or update menuitem option set item's nutrition info by its publicId + /// + /// Thrown when fails to make API call + /// Menu identifier + /// Menu item option set item's publicId + /// Allergen ids + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> AddOrUpdateMenuItemOptionSetItemNutritionInfoV2AsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoV2AddUpdateModel addOrUpdateModel, string appId) + { + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'publicId' is set + if (publicId == null) + throw new ApiException(400, "Missing required parameter 'publicId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel == null) + throw new ApiException(400, "Missing required parameter 'addOrUpdateModel' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->AddOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/menuItemOption/{publicId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (publicId != null) localVarPathParams.Add("publicId", this.Configuration.ApiClient.ParameterToString(publicId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (addOrUpdateModel != null && addOrUpdateModel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter + } + else + { + localVarPostBody = addOrUpdateModel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfoV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultAllergen + public RestApiArrayResultAllergen GetAllergensV2 (string appId, string languageId = null) + { + ApiResponse localVarResponse = GetAllergensV2WithHttpInfo(appId, languageId); + return localVarResponse.Data; + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultAllergen + public ApiResponse< RestApiArrayResultAllergen > GetAllergensV2WithHttpInfo (string appId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->GetAllergensV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/nutritionv2/allergens"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllergensV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + public async System.Threading.Tasks.Task GetAllergensV2Async (string appId, string languageId = null) + { + ApiResponse localVarResponse = await GetAllergensV2AsyncWithHttpInfo(appId, languageId); + return localVarResponse.Data; + + } + + /// + /// Get allergens + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultAllergen) + public async System.Threading.Tasks.Task> GetAllergensV2AsyncWithHttpInfo (string appId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->GetAllergensV2"); + + var localVarPath = "./api/v1.0/{appId}/menus/nutritionv2/allergens"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllergensV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// RestApiResultNutritionInfoV2 + public RestApiResultNutritionInfoV2 GetMenuNutritionInfoV2ByMenuId (string appId, int? menuId, string languageId = null) + { + ApiResponse localVarResponse = GetMenuNutritionInfoV2ByMenuIdWithHttpInfo(appId, menuId, languageId); + return localVarResponse.Data; + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// ApiResponse of RestApiResultNutritionInfoV2 + public ApiResponse< RestApiResultNutritionInfoV2 > GetMenuNutritionInfoV2ByMenuIdWithHttpInfo (string appId, int? menuId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->GetMenuNutritionInfoV2ByMenuId"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->GetMenuNutritionInfoV2ByMenuId"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuNutritionInfoV2ByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultNutritionInfoV2) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultNutritionInfoV2))); + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// Task of RestApiResultNutritionInfoV2 + public async System.Threading.Tasks.Task GetMenuNutritionInfoV2ByMenuIdAsync (string appId, int? menuId, string languageId = null) + { + ApiResponse localVarResponse = await GetMenuNutritionInfoV2ByMenuIdAsyncWithHttpInfo(appId, menuId, languageId); + return localVarResponse.Data; + + } + + /// + /// Get menu nutrition by menuId + /// + /// Thrown when fails to make API call + /// + /// Menu identifier + /// (optional) + /// Task of ApiResponse (RestApiResultNutritionInfoV2) + public async System.Threading.Tasks.Task> GetMenuNutritionInfoV2ByMenuIdAsyncWithHttpInfo (string appId, int? menuId, string languageId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoV2Api->GetMenuNutritionInfoV2ByMenuId"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling MenusNutritionInfoV2Api->GetMenuNutritionInfoV2ByMenuId"); + + var localVarPath = "./api/v1.0/{appId}/menus/{menuId}/nutritionv2"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMenuNutritionInfoV2ByMenuId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultNutritionInfoV2) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultNutritionInfoV2))); + } + + } +} diff --git a/src/Flipdish/Api/MetafieldDefinitionsApi.cs b/src/Flipdish/Api/MetafieldDefinitionsApi.cs new file mode 100644 index 00000000..31ea5bb9 --- /dev/null +++ b/src/Flipdish/Api/MetafieldDefinitionsApi.cs @@ -0,0 +1,1540 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetafieldDefinitionsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultMetafieldDefinition + RestApiResultMetafieldDefinition CreateMetafieldDefinition (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + ApiResponse CreateMetafieldDefinitionWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultMetafieldDefinition + RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appId, string ownerEntity, string key); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + ApiResponse GetMetafieldDefinitionByKeyWithHttpInfo (string appId, string ownerEntity, string key); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultMetafieldDefinition + RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultMetafieldDefinition + ApiResponse GetMetafieldDefinitionsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// OwnerEntityConfigurations + OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of OwnerEntityConfigurations + ApiResponse GetOwnerEntityConfigurationsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultMetafieldDefinitionRecommendation + RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRecommendations (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultMetafieldDefinitionRecommendation + ApiResponse GetOwnerEntityRecommendationsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultMetafieldDefinition + RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + ApiResponse UpdateMetafieldDefinitionWithHttpInfo (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + System.Threading.Tasks.Task CreateMetafieldDefinitionAsync (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + System.Threading.Tasks.Task> CreateMetafieldDefinitionAsyncWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + System.Threading.Tasks.Task GetMetafieldDefinitionByKeyAsync (string appId, string ownerEntity, string key); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + System.Threading.Tasks.Task> GetMetafieldDefinitionByKeyAsyncWithHttpInfo (string appId, string ownerEntity, string key); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultMetafieldDefinition + System.Threading.Tasks.Task GetMetafieldDefinitionsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinition) + System.Threading.Tasks.Task> GetMetafieldDefinitionsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of OwnerEntityConfigurations + System.Threading.Tasks.Task GetOwnerEntityConfigurationsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (OwnerEntityConfigurations) + System.Threading.Tasks.Task> GetOwnerEntityConfigurationsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultMetafieldDefinitionRecommendation + System.Threading.Tasks.Task GetOwnerEntityRecommendationsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinitionRecommendation) + System.Threading.Tasks.Task> GetOwnerEntityRecommendationsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + System.Threading.Tasks.Task UpdateMetafieldDefinitionAsync (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + System.Threading.Tasks.Task> UpdateMetafieldDefinitionAsyncWithHttpInfo (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MetafieldDefinitionsApi : IMetafieldDefinitionsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MetafieldDefinitionsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MetafieldDefinitionsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultMetafieldDefinition + public RestApiResultMetafieldDefinition CreateMetafieldDefinition (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition) + { + ApiResponse localVarResponse = CreateMetafieldDefinitionWithHttpInfo(appId, ownerEntity, createMetafieldDefinition); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + public ApiResponse< RestApiResultMetafieldDefinition > CreateMetafieldDefinitionWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + // verify the required parameter 'createMetafieldDefinition' is set + if (createMetafieldDefinition == null) + throw new ApiException(400, "Missing required parameter 'createMetafieldDefinition' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (createMetafieldDefinition != null && createMetafieldDefinition.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createMetafieldDefinition); // http body (model) parameter + } + else + { + localVarPostBody = createMetafieldDefinition; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMetafieldDefinition", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + public async System.Threading.Tasks.Task CreateMetafieldDefinitionAsync (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition) + { + ApiResponse localVarResponse = await CreateMetafieldDefinitionAsyncWithHttpInfo(appId, ownerEntity, createMetafieldDefinition); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + public async System.Threading.Tasks.Task> CreateMetafieldDefinitionAsyncWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + // verify the required parameter 'createMetafieldDefinition' is set + if (createMetafieldDefinition == null) + throw new ApiException(400, "Missing required parameter 'createMetafieldDefinition' when calling MetafieldDefinitionsApi->CreateMetafieldDefinition"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (createMetafieldDefinition != null && createMetafieldDefinition.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(createMetafieldDefinition); // http body (model) parameter + } + else + { + localVarPostBody = createMetafieldDefinition; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateMetafieldDefinition", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultMetafieldDefinition + public RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appId, string ownerEntity, string key) + { + ApiResponse localVarResponse = GetMetafieldDefinitionByKeyWithHttpInfo(appId, ownerEntity, key); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + public ApiResponse< RestApiResultMetafieldDefinition > GetMetafieldDefinitionByKeyWithHttpInfo (string appId, string ownerEntity, string key) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMetafieldDefinitionByKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + public async System.Threading.Tasks.Task GetMetafieldDefinitionByKeyAsync (string appId, string ownerEntity, string key) + { + ApiResponse localVarResponse = await GetMetafieldDefinitionByKeyAsyncWithHttpInfo(appId, ownerEntity, key); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + public async System.Threading.Tasks.Task> GetMetafieldDefinitionByKeyAsyncWithHttpInfo (string appId, string ownerEntity, string key) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MetafieldDefinitionsApi->GetMetafieldDefinitionByKey"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMetafieldDefinitionByKey", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultMetafieldDefinition + public RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetMetafieldDefinitionsWithHttpInfo(appId, ownerEntity, searchTerm, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultMetafieldDefinition + public ApiResponse< RestApiPaginationResultMetafieldDefinition > GetMetafieldDefinitionsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetMetafieldDefinitions"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetMetafieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMetafieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultMetafieldDefinition + public async System.Threading.Tasks.Task GetMetafieldDefinitionsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetMetafieldDefinitionsAsyncWithHttpInfo(appId, ownerEntity, searchTerm, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinition) + public async System.Threading.Tasks.Task> GetMetafieldDefinitionsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetMetafieldDefinitions"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetMetafieldDefinitions"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetMetafieldDefinitions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// OwnerEntityConfigurations + public OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId) + { + ApiResponse localVarResponse = GetOwnerEntityConfigurationsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of OwnerEntityConfigurations + public ApiResponse< OwnerEntityConfigurations > GetOwnerEntityConfigurationsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetOwnerEntityConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOwnerEntityConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (OwnerEntityConfigurations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OwnerEntityConfigurations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of OwnerEntityConfigurations + public async System.Threading.Tasks.Task GetOwnerEntityConfigurationsAsync (string appId) + { + ApiResponse localVarResponse = await GetOwnerEntityConfigurationsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (OwnerEntityConfigurations) + public async System.Threading.Tasks.Task> GetOwnerEntityConfigurationsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetOwnerEntityConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOwnerEntityConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (OwnerEntityConfigurations) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OwnerEntityConfigurations))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultMetafieldDefinitionRecommendation + public RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRecommendations (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetOwnerEntityRecommendationsWithHttpInfo(appId, ownerEntity, searchTerm, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultMetafieldDefinitionRecommendation + public ApiResponse< RestApiPaginationResultMetafieldDefinitionRecommendation > GetOwnerEntityRecommendationsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetOwnerEntityRecommendations"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetOwnerEntityRecommendations"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOwnerEntityRecommendations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultMetafieldDefinitionRecommendation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultMetafieldDefinitionRecommendation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultMetafieldDefinitionRecommendation + public async System.Threading.Tasks.Task GetOwnerEntityRecommendationsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetOwnerEntityRecommendationsAsyncWithHttpInfo(appId, ownerEntity, searchTerm, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinitionRecommendation) + public async System.Threading.Tasks.Task> GetOwnerEntityRecommendationsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->GetOwnerEntityRecommendations"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->GetOwnerEntityRecommendations"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (searchTerm != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchTerm", searchTerm)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOwnerEntityRecommendations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultMetafieldDefinitionRecommendation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultMetafieldDefinitionRecommendation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultMetafieldDefinition + public RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) + { + ApiResponse localVarResponse = UpdateMetafieldDefinitionWithHttpInfo(appId, ownerEntity, key, updateMetafieldDefinition); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultMetafieldDefinition + public ApiResponse< RestApiResultMetafieldDefinition > UpdateMetafieldDefinitionWithHttpInfo (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'updateMetafieldDefinition' is set + if (updateMetafieldDefinition == null) + throw new ApiException(400, "Missing required parameter 'updateMetafieldDefinition' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + if (updateMetafieldDefinition != null && updateMetafieldDefinition.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateMetafieldDefinition); // http body (model) parameter + } + else + { + localVarPostBody = updateMetafieldDefinition; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMetafieldDefinition", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultMetafieldDefinition + public async System.Threading.Tasks.Task UpdateMetafieldDefinitionAsync (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) + { + ApiResponse localVarResponse = await UpdateMetafieldDefinitionAsyncWithHttpInfo(appId, ownerEntity, key, updateMetafieldDefinition); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultMetafieldDefinition) + public async System.Threading.Tasks.Task> UpdateMetafieldDefinitionAsyncWithHttpInfo (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'ownerEntity' is set + if (ownerEntity == null) + throw new ApiException(400, "Missing required parameter 'ownerEntity' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'key' is set + if (key == null) + throw new ApiException(400, "Missing required parameter 'key' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + // verify the required parameter 'updateMetafieldDefinition' is set + if (updateMetafieldDefinition == null) + throw new ApiException(400, "Missing required parameter 'updateMetafieldDefinition' when calling MetafieldDefinitionsApi->UpdateMetafieldDefinition"); + + var localVarPath = "./api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (ownerEntity != null) localVarPathParams.Add("ownerEntity", this.Configuration.ApiClient.ParameterToString(ownerEntity)); // path parameter + if (key != null) localVarPathParams.Add("key", this.Configuration.ApiClient.ParameterToString(key)); // path parameter + if (updateMetafieldDefinition != null && updateMetafieldDefinition.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateMetafieldDefinition); // http body (model) parameter + } + else + { + localVarPostBody = updateMetafieldDefinition; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateMetafieldDefinition", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMetafieldDefinition) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetafieldDefinition))); + } + + } +} diff --git a/src/Flipdish/Api/MobileAppsApi.cs b/src/Flipdish/Api/MobileAppsApi.cs new file mode 100644 index 00000000..aecf6d97 --- /dev/null +++ b/src/Flipdish/Api/MobileAppsApi.cs @@ -0,0 +1,2531 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMobileAppsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppConfigSalesChannel + RestApiResultAppConfigSalesChannel GetAppConfigSalesChannel (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppConfigSalesChannel + ApiResponse GetAppConfigSalesChannelWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultMobileAppsStatistics + RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List platformTypes); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultMobileAppsStatistics + ApiResponse GetStatisticsWithHttpInfo (string appId, List platformTypes); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultMobileAppsSubmissionDetails + RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultMobileAppsSubmissionDetails + ApiResponse GetSubmissionDetailsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmissionStatus + RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmissionStatus + ApiResponse GetSubmissionStatusWithHttpInfo (string appId, int? submissionId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultRestApiIntegerResult + RestApiResultRestApiIntegerResult Publish (string appId, int? submissionId, string platformType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultRestApiIntegerResult + ApiResponse PublishWithHttpInfo (string appId, int? submissionId, string platformType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmission + RestApiResultMobileAppsSubmission Resubmission (string appId, MobileAppsSubmission mobileAppsSubmission); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmission + ApiResponse ResubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmission + RestApiResultMobileAppsSubmission Submission (string appId, MobileAppsSubmission mobileAppsSubmission); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmission + ApiResponse SubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiIntegerResult + RestApiIntegerResult Unpublish (string appId, int? submissionId, string platformType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiIntegerResult + ApiResponse UnpublishWithHttpInfo (string appId, int? submissionId, string platformType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppConfigSalesChannel + RestApiResultAppConfigSalesChannel UpdateAppConfigSalesChannel (string appId, AppConfigSalesChannel appConfigSalesChannel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppConfigSalesChannel + ApiResponse UpdateAppConfigSalesChannelWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultUpdateMobileAppsSubmissionStatus + RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultUpdateMobileAppsSubmissionStatus + ApiResponse UpdateSubmissionStatusWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// RestApiResultMobileAppsImage + RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// ApiResponse of RestApiResultMobileAppsImage + ApiResponse UploadImageWithHttpInfo (string appId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppConfigSalesChannel + System.Threading.Tasks.Task GetAppConfigSalesChannelAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) + System.Threading.Tasks.Task> GetAppConfigSalesChannelAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultMobileAppsStatistics + System.Threading.Tasks.Task GetStatisticsAsync (string appId, List platformTypes); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultMobileAppsStatistics) + System.Threading.Tasks.Task> GetStatisticsAsyncWithHttpInfo (string appId, List platformTypes); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultMobileAppsSubmissionDetails + System.Threading.Tasks.Task GetSubmissionDetailsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmissionDetails) + System.Threading.Tasks.Task> GetSubmissionDetailsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmissionStatus + System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? submissionId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmissionStatus) + System.Threading.Tasks.Task> GetSubmissionStatusAsyncWithHttpInfo (string appId, int? submissionId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultRestApiIntegerResult + System.Threading.Tasks.Task PublishAsync (string appId, int? submissionId, string platformType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultRestApiIntegerResult) + System.Threading.Tasks.Task> PublishAsyncWithHttpInfo (string appId, int? submissionId, string platformType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmission + System.Threading.Tasks.Task ResubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmission) + System.Threading.Tasks.Task> ResubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmission + System.Threading.Tasks.Task SubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmission) + System.Threading.Tasks.Task> SubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiIntegerResult + System.Threading.Tasks.Task UnpublishAsync (string appId, int? submissionId, string platformType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiIntegerResult) + System.Threading.Tasks.Task> UnpublishAsyncWithHttpInfo (string appId, int? submissionId, string platformType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppConfigSalesChannel + System.Threading.Tasks.Task UpdateAppConfigSalesChannelAsync (string appId, AppConfigSalesChannel appConfigSalesChannel); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) + System.Threading.Tasks.Task> UpdateAppConfigSalesChannelAsyncWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultUpdateMobileAppsSubmissionStatus + System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultUpdateMobileAppsSubmissionStatus) + System.Threading.Tasks.Task> UpdateSubmissionStatusAsyncWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// Task of RestApiResultMobileAppsImage + System.Threading.Tasks.Task UploadImageAsync (string appId, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// Task of ApiResponse (RestApiResultMobileAppsImage) + System.Threading.Tasks.Task> UploadImageAsyncWithHttpInfo (string appId, System.IO.Stream image); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MobileAppsApi : IMobileAppsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public MobileAppsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public MobileAppsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppConfigSalesChannel + public RestApiResultAppConfigSalesChannel GetAppConfigSalesChannel (string appId) + { + ApiResponse localVarResponse = GetAppConfigSalesChannelWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppConfigSalesChannel + public ApiResponse< RestApiResultAppConfigSalesChannel > GetAppConfigSalesChannelWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetAppConfigSalesChannel"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/saleschannel/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppConfigSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppConfigSalesChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppConfigSalesChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppConfigSalesChannel + public async System.Threading.Tasks.Task GetAppConfigSalesChannelAsync (string appId) + { + ApiResponse localVarResponse = await GetAppConfigSalesChannelAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) + public async System.Threading.Tasks.Task> GetAppConfigSalesChannelAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetAppConfigSalesChannel"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/saleschannel/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppConfigSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppConfigSalesChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppConfigSalesChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultMobileAppsStatistics + public RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List platformTypes) + { + ApiResponse localVarResponse = GetStatisticsWithHttpInfo(appId, platformTypes); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultMobileAppsStatistics + public ApiResponse< RestApiArrayResultMobileAppsStatistics > GetStatisticsWithHttpInfo (string appId, List platformTypes) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetStatistics"); + // verify the required parameter 'platformTypes' is set + if (platformTypes == null) + throw new ApiException(400, "Missing required parameter 'platformTypes' when calling MobileAppsApi->GetStatistics"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/statistics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (platformTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "platformTypes", platformTypes)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMobileAppsStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMobileAppsStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultMobileAppsStatistics + public async System.Threading.Tasks.Task GetStatisticsAsync (string appId, List platformTypes) + { + ApiResponse localVarResponse = await GetStatisticsAsyncWithHttpInfo(appId, platformTypes); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultMobileAppsStatistics) + public async System.Threading.Tasks.Task> GetStatisticsAsyncWithHttpInfo (string appId, List platformTypes) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetStatistics"); + // verify the required parameter 'platformTypes' is set + if (platformTypes == null) + throw new ApiException(400, "Missing required parameter 'platformTypes' when calling MobileAppsApi->GetStatistics"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/statistics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (platformTypes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "platformTypes", platformTypes)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStatistics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultMobileAppsStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultMobileAppsStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultMobileAppsSubmissionDetails + public RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string appId) + { + ApiResponse localVarResponse = GetSubmissionDetailsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultMobileAppsSubmissionDetails + public ApiResponse< RestApiResultMobileAppsSubmissionDetails > GetSubmissionDetailsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetSubmissionDetails"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubmissionDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmissionDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmissionDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultMobileAppsSubmissionDetails + public async System.Threading.Tasks.Task GetSubmissionDetailsAsync (string appId) + { + ApiResponse localVarResponse = await GetSubmissionDetailsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmissionDetails) + public async System.Threading.Tasks.Task> GetSubmissionDetailsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetSubmissionDetails"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubmissionDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmissionDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmissionDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmissionStatus + public RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId) + { + ApiResponse localVarResponse = GetSubmissionStatusWithHttpInfo(appId, submissionId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmissionStatus + public ApiResponse< RestApiResultMobileAppsSubmissionStatus > GetSubmissionStatusWithHttpInfo (string appId, int? submissionId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetSubmissionStatus"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->GetSubmissionStatus"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubmissionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmissionStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmissionStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmissionStatus + public async System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? submissionId) + { + ApiResponse localVarResponse = await GetSubmissionStatusAsyncWithHttpInfo(appId, submissionId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmissionStatus) + public async System.Threading.Tasks.Task> GetSubmissionStatusAsyncWithHttpInfo (string appId, int? submissionId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->GetSubmissionStatus"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->GetSubmissionStatus"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubmissionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmissionStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmissionStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultRestApiIntegerResult + public RestApiResultRestApiIntegerResult Publish (string appId, int? submissionId, string platformType = null) + { + ApiResponse localVarResponse = PublishWithHttpInfo(appId, submissionId, platformType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultRestApiIntegerResult + public ApiResponse< RestApiResultRestApiIntegerResult > PublishWithHttpInfo (string appId, int? submissionId, string platformType = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Publish"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->Publish"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (platformType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "platformType", platformType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Publish", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultRestApiIntegerResult + public async System.Threading.Tasks.Task PublishAsync (string appId, int? submissionId, string platformType = null) + { + ApiResponse localVarResponse = await PublishAsyncWithHttpInfo(appId, submissionId, platformType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultRestApiIntegerResult) + public async System.Threading.Tasks.Task> PublishAsyncWithHttpInfo (string appId, int? submissionId, string platformType = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Publish"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->Publish"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (platformType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "platformType", platformType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Publish", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmission + public RestApiResultMobileAppsSubmission Resubmission (string appId, MobileAppsSubmission mobileAppsSubmission) + { + ApiResponse localVarResponse = ResubmissionWithHttpInfo(appId, mobileAppsSubmission); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmission + public ApiResponse< RestApiResultMobileAppsSubmission > ResubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Resubmission"); + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission == null) + throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Resubmission"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/resubmission"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (mobileAppsSubmission != null && mobileAppsSubmission.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(mobileAppsSubmission); // http body (model) parameter + } + else + { + localVarPostBody = mobileAppsSubmission; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Resubmission", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmission))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmission + public async System.Threading.Tasks.Task ResubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission) + { + ApiResponse localVarResponse = await ResubmissionAsyncWithHttpInfo(appId, mobileAppsSubmission); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmission) + public async System.Threading.Tasks.Task> ResubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Resubmission"); + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission == null) + throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Resubmission"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/resubmission"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (mobileAppsSubmission != null && mobileAppsSubmission.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(mobileAppsSubmission); // http body (model) parameter + } + else + { + localVarPostBody = mobileAppsSubmission; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Resubmission", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmission))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultMobileAppsSubmission + public RestApiResultMobileAppsSubmission Submission (string appId, MobileAppsSubmission mobileAppsSubmission) + { + ApiResponse localVarResponse = SubmissionWithHttpInfo(appId, mobileAppsSubmission); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultMobileAppsSubmission + public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Submission"); + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission == null) + throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Submission"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (mobileAppsSubmission != null && mobileAppsSubmission.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(mobileAppsSubmission); // http body (model) parameter + } + else + { + localVarPostBody = mobileAppsSubmission; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Submission", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmission))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultMobileAppsSubmission + public async System.Threading.Tasks.Task SubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission) + { + ApiResponse localVarResponse = await SubmissionAsyncWithHttpInfo(appId, mobileAppsSubmission); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultMobileAppsSubmission) + public async System.Threading.Tasks.Task> SubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Submission"); + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission == null) + throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Submission"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (mobileAppsSubmission != null && mobileAppsSubmission.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(mobileAppsSubmission); // http body (model) parameter + } + else + { + localVarPostBody = mobileAppsSubmission; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Submission", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsSubmission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmission))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiIntegerResult + public RestApiIntegerResult Unpublish (string appId, int? submissionId, string platformType = null) + { + ApiResponse localVarResponse = UnpublishWithHttpInfo(appId, submissionId, platformType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiIntegerResult + public ApiResponse< RestApiIntegerResult > UnpublishWithHttpInfo (string appId, int? submissionId, string platformType = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Unpublish"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->Unpublish"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (platformType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "platformType", platformType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Unpublish", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiIntegerResult + public async System.Threading.Tasks.Task UnpublishAsync (string appId, int? submissionId, string platformType = null) + { + ApiResponse localVarResponse = await UnpublishAsyncWithHttpInfo(appId, submissionId, platformType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiIntegerResult) + public async System.Threading.Tasks.Task> UnpublishAsyncWithHttpInfo (string appId, int? submissionId, string platformType = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->Unpublish"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->Unpublish"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (platformType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "platformType", platformType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Unpublish", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppConfigSalesChannel + public RestApiResultAppConfigSalesChannel UpdateAppConfigSalesChannel (string appId, AppConfigSalesChannel appConfigSalesChannel) + { + ApiResponse localVarResponse = UpdateAppConfigSalesChannelWithHttpInfo(appId, appConfigSalesChannel); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppConfigSalesChannel + public ApiResponse< RestApiResultAppConfigSalesChannel > UpdateAppConfigSalesChannelWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UpdateAppConfigSalesChannel"); + // verify the required parameter 'appConfigSalesChannel' is set + if (appConfigSalesChannel == null) + throw new ApiException(400, "Missing required parameter 'appConfigSalesChannel' when calling MobileAppsApi->UpdateAppConfigSalesChannel"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/saleschannel"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appConfigSalesChannel != null && appConfigSalesChannel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigSalesChannel); // http body (model) parameter + } + else + { + localVarPostBody = appConfigSalesChannel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppConfigSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppConfigSalesChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppConfigSalesChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppConfigSalesChannel + public async System.Threading.Tasks.Task UpdateAppConfigSalesChannelAsync (string appId, AppConfigSalesChannel appConfigSalesChannel) + { + ApiResponse localVarResponse = await UpdateAppConfigSalesChannelAsyncWithHttpInfo(appId, appConfigSalesChannel); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) + public async System.Threading.Tasks.Task> UpdateAppConfigSalesChannelAsyncWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UpdateAppConfigSalesChannel"); + // verify the required parameter 'appConfigSalesChannel' is set + if (appConfigSalesChannel == null) + throw new ApiException(400, "Missing required parameter 'appConfigSalesChannel' when calling MobileAppsApi->UpdateAppConfigSalesChannel"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/saleschannel"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appConfigSalesChannel != null && appConfigSalesChannel.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigSalesChannel); // http body (model) parameter + } + else + { + localVarPostBody = appConfigSalesChannel; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppConfigSalesChannel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppConfigSalesChannel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppConfigSalesChannel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultUpdateMobileAppsSubmissionStatus + public RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + { + ApiResponse localVarResponse = UpdateSubmissionStatusWithHttpInfo(appId, submissionId, updateSubmissionStatus); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultUpdateMobileAppsSubmissionStatus + public ApiResponse< RestApiResultUpdateMobileAppsSubmissionStatus > UpdateSubmissionStatusWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UpdateSubmissionStatus"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->UpdateSubmissionStatus"); + // verify the required parameter 'updateSubmissionStatus' is set + if (updateSubmissionStatus == null) + throw new ApiException(400, "Missing required parameter 'updateSubmissionStatus' when calling MobileAppsApi->UpdateSubmissionStatus"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (updateSubmissionStatus != null && updateSubmissionStatus.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateSubmissionStatus); // http body (model) parameter + } + else + { + localVarPostBody = updateSubmissionStatus; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateSubmissionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUpdateMobileAppsSubmissionStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUpdateMobileAppsSubmissionStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultUpdateMobileAppsSubmissionStatus + public async System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + { + ApiResponse localVarResponse = await UpdateSubmissionStatusAsyncWithHttpInfo(appId, submissionId, updateSubmissionStatus); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultUpdateMobileAppsSubmissionStatus) + public async System.Threading.Tasks.Task> UpdateSubmissionStatusAsyncWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UpdateSubmissionStatus"); + // verify the required parameter 'submissionId' is set + if (submissionId == null) + throw new ApiException(400, "Missing required parameter 'submissionId' when calling MobileAppsApi->UpdateSubmissionStatus"); + // verify the required parameter 'updateSubmissionStatus' is set + if (updateSubmissionStatus == null) + throw new ApiException(400, "Missing required parameter 'updateSubmissionStatus' when calling MobileAppsApi->UpdateSubmissionStatus"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{submissionId}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter + if (updateSubmissionStatus != null && updateSubmissionStatus.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateSubmissionStatus); // http body (model) parameter + } + else + { + localVarPostBody = updateSubmissionStatus; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateSubmissionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUpdateMobileAppsSubmissionStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUpdateMobileAppsSubmissionStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// RestApiResultMobileAppsImage + public RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadImageWithHttpInfo(appId, image); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// ApiResponse of RestApiResultMobileAppsImage + public ApiResponse< RestApiResultMobileAppsImage > UploadImageWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UploadImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MobileAppsApi->UploadImage"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsImage))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// Task of RestApiResultMobileAppsImage + public async System.Threading.Tasks.Task UploadImageAsync (string appId, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadImageAsyncWithHttpInfo(appId, image); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Mobile Apps image + /// Task of ApiResponse (RestApiResultMobileAppsImage) + public async System.Threading.Tasks.Task> UploadImageAsyncWithHttpInfo (string appId, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling MobileAppsApi->UploadImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling MobileAppsApi->UploadImage"); + + var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/image"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultMobileAppsImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsImage))); + } + + } +} diff --git a/src/Flipdish/Api/OAuthClientsApi.cs b/src/Flipdish/Api/OAuthClientsApi.cs new file mode 100644 index 00000000..34b6651d --- /dev/null +++ b/src/Flipdish/Api/OAuthClientsApi.cs @@ -0,0 +1,2519 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOAuthClientsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultOauthClientRedirectUri + RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, string uri, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultOauthClientRedirectUri + ApiResponse AddRedirectUriWithHttpInfo (string oauthAppId, string uri, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void CreateOAuthApp (OAuthApp oAuthApp, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse CreateOAuthAppWithHttpInfo (OAuthApp oAuthApp, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeleteOAuthApp (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteOAuthAppWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultOAuthApp + RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppName = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultOAuthApp + ApiResponse GetOAuthAppsWithHttpInfo (string appId, string oauthAppName = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOAuthApp + RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOAuthApp + ApiResponse GetOAuthClientByClientIdWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetOAuthClientSecretWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetOauthAccessTokenWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultOauthClientRedirectUri + RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultOauthClientRedirectUri + ApiResponse GetRedirectUrisWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object OAuthClientsGetApplications (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse OAuthClientsGetApplicationsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void RemoveRedirectUri (string oauthAppId, int? uriId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse RemoveRedirectUriWithHttpInfo (string oauthAppId, int? uriId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateOAuthAppWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultOauthClientRedirectUri + System.Threading.Tasks.Task AddRedirectUriAsync (string oauthAppId, string uri, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultOauthClientRedirectUri) + System.Threading.Tasks.Task> AddRedirectUriAsyncWithHttpInfo (string oauthAppId, string uri, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task CreateOAuthAppAsync (OAuthApp oAuthApp, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateOAuthAppAsyncWithHttpInfo (OAuthApp oAuthApp, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteOAuthAppAsync (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteOAuthAppAsyncWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultOAuthApp + System.Threading.Tasks.Task GetOAuthAppsAsync (string appId, string oauthAppName = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultOAuthApp) + System.Threading.Tasks.Task> GetOAuthAppsAsyncWithHttpInfo (string appId, string oauthAppName = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOAuthApp + System.Threading.Tasks.Task GetOAuthClientByClientIdAsync (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOAuthApp) + System.Threading.Tasks.Task> GetOAuthClientByClientIdAsyncWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetOAuthClientSecretAsync (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetOAuthClientSecretAsyncWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetOauthAccessTokenAsync (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetOauthAccessTokenAsyncWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultOauthClientRedirectUri + System.Threading.Tasks.Task GetRedirectUrisAsync (string oauthAppId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultOauthClientRedirectUri) + System.Threading.Tasks.Task> GetRedirectUrisAsyncWithHttpInfo (string oauthAppId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task OAuthClientsGetApplicationsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OAuthClientsGetApplicationsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task RemoveRedirectUriAsync (string oauthAppId, int? uriId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RemoveRedirectUriAsyncWithHttpInfo (string oauthAppId, int? uriId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateOAuthAppAsync (string oauthAppId, OAuthApp oAuthApp, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateOAuthAppAsyncWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OAuthClientsApi : IOAuthClientsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OAuthClientsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OAuthClientsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultOauthClientRedirectUri + public RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, string uri, string appId) + { + ApiResponse localVarResponse = AddRedirectUriWithHttpInfo(oauthAppId, uri, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultOauthClientRedirectUri + public ApiResponse< RestApiResultOauthClientRedirectUri > AddRedirectUriWithHttpInfo (string oauthAppId, string uri, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->AddRedirectUri"); + // verify the required parameter 'uri' is set + if (uri == null) + throw new ApiException(400, "Missing required parameter 'uri' when calling OAuthClientsApi->AddRedirectUri"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->AddRedirectUri"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (uri != null && uri.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(uri); // http body (model) parameter + } + else + { + localVarPostBody = uri; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddRedirectUri", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOauthClientRedirectUri) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOauthClientRedirectUri))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultOauthClientRedirectUri + public async System.Threading.Tasks.Task AddRedirectUriAsync (string oauthAppId, string uri, string appId) + { + ApiResponse localVarResponse = await AddRedirectUriAsyncWithHttpInfo(oauthAppId, uri, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultOauthClientRedirectUri) + public async System.Threading.Tasks.Task> AddRedirectUriAsyncWithHttpInfo (string oauthAppId, string uri, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->AddRedirectUri"); + // verify the required parameter 'uri' is set + if (uri == null) + throw new ApiException(400, "Missing required parameter 'uri' when calling OAuthClientsApi->AddRedirectUri"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->AddRedirectUri"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (uri != null && uri.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(uri); // http body (model) parameter + } + else + { + localVarPostBody = uri; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddRedirectUri", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOauthClientRedirectUri) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOauthClientRedirectUri))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void CreateOAuthApp (OAuthApp oAuthApp, string appId) + { + CreateOAuthAppWithHttpInfo(oAuthApp, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse CreateOAuthAppWithHttpInfo (OAuthApp oAuthApp, string appId) + { + // verify the required parameter 'oAuthApp' is set + if (oAuthApp == null) + throw new ApiException(400, "Missing required parameter 'oAuthApp' when calling OAuthClientsApi->CreateOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->CreateOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oAuthApp != null && oAuthApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(oAuthApp); // http body (model) parameter + } + else + { + localVarPostBody = oAuthApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task CreateOAuthAppAsync (OAuthApp oAuthApp, string appId) + { + await CreateOAuthAppAsyncWithHttpInfo(oAuthApp, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateOAuthAppAsyncWithHttpInfo (OAuthApp oAuthApp, string appId) + { + // verify the required parameter 'oAuthApp' is set + if (oAuthApp == null) + throw new ApiException(400, "Missing required parameter 'oAuthApp' when calling OAuthClientsApi->CreateOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->CreateOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oAuthApp != null && oAuthApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(oAuthApp); // http body (model) parameter + } + else + { + localVarPostBody = oAuthApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeleteOAuthApp (string oauthAppId, string appId) + { + DeleteOAuthAppWithHttpInfo(oauthAppId, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteOAuthAppWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->DeleteOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->DeleteOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteOAuthAppAsync (string oauthAppId, string appId) + { + await DeleteOAuthAppAsyncWithHttpInfo(oauthAppId, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteOAuthAppAsyncWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->DeleteOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->DeleteOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultOAuthApp + public RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppName = null) + { + ApiResponse localVarResponse = GetOAuthAppsWithHttpInfo(appId, oauthAppName); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultOAuthApp + public ApiResponse< RestApiArrayResultOAuthApp > GetOAuthAppsWithHttpInfo (string appId, string oauthAppName = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthApps"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oauthAppName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "oauthAppName", oauthAppName)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOAuthApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOAuthApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultOAuthApp + public async System.Threading.Tasks.Task GetOAuthAppsAsync (string appId, string oauthAppName = null) + { + ApiResponse localVarResponse = await GetOAuthAppsAsyncWithHttpInfo(appId, oauthAppName); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultOAuthApp) + public async System.Threading.Tasks.Task> GetOAuthAppsAsyncWithHttpInfo (string appId, string oauthAppName = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthApps"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oauthAppName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "oauthAppName", oauthAppName)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOAuthApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOAuthApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOAuthApp + public RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId) + { + ApiResponse localVarResponse = GetOAuthClientByClientIdWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOAuthApp + public ApiResponse< RestApiResultOAuthApp > GetOAuthClientByClientIdWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOAuthClientByClientId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthClientByClientId"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthClientByClientId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOAuthApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOAuthApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOAuthApp + public async System.Threading.Tasks.Task GetOAuthClientByClientIdAsync (string oauthAppId, string appId) + { + ApiResponse localVarResponse = await GetOAuthClientByClientIdAsyncWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOAuthApp) + public async System.Threading.Tasks.Task> GetOAuthClientByClientIdAsyncWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOAuthClientByClientId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthClientByClientId"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthClientByClientId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOAuthApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOAuthApp))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId) + { + ApiResponse localVarResponse = GetOAuthClientSecretWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetOAuthClientSecretWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOAuthClientSecret"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthClientSecret"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/secret"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthClientSecret", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetOAuthClientSecretAsync (string oauthAppId, string appId) + { + ApiResponse localVarResponse = await GetOAuthClientSecretAsyncWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetOAuthClientSecretAsyncWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOAuthClientSecret"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOAuthClientSecret"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/secret"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOAuthClientSecret", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId) + { + ApiResponse localVarResponse = GetOauthAccessTokenWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetOauthAccessTokenWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOauthAccessToken"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOauthAccessToken"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOauthAccessToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetOauthAccessTokenAsync (string oauthAppId, string appId) + { + ApiResponse localVarResponse = await GetOauthAccessTokenAsyncWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetOauthAccessTokenAsyncWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetOauthAccessToken"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetOauthAccessToken"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOauthAccessToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultOauthClientRedirectUri + public RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId) + { + ApiResponse localVarResponse = GetRedirectUrisWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultOauthClientRedirectUri + public ApiResponse< RestApiArrayResultOauthClientRedirectUri > GetRedirectUrisWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetRedirectUris"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetRedirectUris"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRedirectUris", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOauthClientRedirectUri) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOauthClientRedirectUri))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultOauthClientRedirectUri + public async System.Threading.Tasks.Task GetRedirectUrisAsync (string oauthAppId, string appId) + { + ApiResponse localVarResponse = await GetRedirectUrisAsyncWithHttpInfo(oauthAppId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultOauthClientRedirectUri) + public async System.Threading.Tasks.Task> GetRedirectUrisAsyncWithHttpInfo (string oauthAppId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->GetRedirectUris"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->GetRedirectUris"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRedirectUris", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOauthClientRedirectUri) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOauthClientRedirectUri))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object OAuthClientsGetApplications (string appId) + { + ApiResponse localVarResponse = OAuthClientsGetApplicationsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > OAuthClientsGetApplicationsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->OAuthClientsGetApplications"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/appnames"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OAuthClientsGetApplications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task OAuthClientsGetApplicationsAsync (string appId) + { + ApiResponse localVarResponse = await OAuthClientsGetApplicationsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OAuthClientsGetApplicationsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->OAuthClientsGetApplications"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/appnames"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OAuthClientsGetApplications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void RemoveRedirectUri (string oauthAppId, int? uriId, string appId) + { + RemoveRedirectUriWithHttpInfo(oauthAppId, uriId, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RemoveRedirectUriWithHttpInfo (string oauthAppId, int? uriId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->RemoveRedirectUri"); + // verify the required parameter 'uriId' is set + if (uriId == null) + throw new ApiException(400, "Missing required parameter 'uriId' when calling OAuthClientsApi->RemoveRedirectUri"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->RemoveRedirectUri"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (uriId != null) localVarPathParams.Add("uriId", this.Configuration.ApiClient.ParameterToString(uriId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveRedirectUri", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RemoveRedirectUriAsync (string oauthAppId, int? uriId, string appId) + { + await RemoveRedirectUriAsyncWithHttpInfo(oauthAppId, uriId, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RemoveRedirectUriAsyncWithHttpInfo (string oauthAppId, int? uriId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->RemoveRedirectUri"); + // verify the required parameter 'uriId' is set + if (uriId == null) + throw new ApiException(400, "Missing required parameter 'uriId' when calling OAuthClientsApi->RemoveRedirectUri"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->RemoveRedirectUri"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (uriId != null) localVarPathParams.Add("uriId", this.Configuration.ApiClient.ParameterToString(uriId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveRedirectUri", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId) + { + UpdateOAuthAppWithHttpInfo(oauthAppId, oAuthApp, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateOAuthAppWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->UpdateOAuthApp"); + // verify the required parameter 'oAuthApp' is set + if (oAuthApp == null) + throw new ApiException(400, "Missing required parameter 'oAuthApp' when calling OAuthClientsApi->UpdateOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->UpdateOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oAuthApp != null && oAuthApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(oAuthApp); // http body (model) parameter + } + else + { + localVarPostBody = oAuthApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateOAuthAppAsync (string oauthAppId, OAuthApp oAuthApp, string appId) + { + await UpdateOAuthAppAsyncWithHttpInfo(oauthAppId, oAuthApp, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateOAuthAppAsyncWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling OAuthClientsApi->UpdateOAuthApp"); + // verify the required parameter 'oAuthApp' is set + if (oAuthApp == null) + throw new ApiException(400, "Missing required parameter 'oAuthApp' when calling OAuthClientsApi->UpdateOAuthApp"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OAuthClientsApi->UpdateOAuthApp"); + + var localVarPath = "./api/v1.0/{appId}/oauthclients/{oauthAppId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oAuthApp != null && oAuthApp.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(oAuthApp); // http body (model) parameter + } + else + { + localVarPostBody = oAuthApp; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateOAuthApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/OnboardingApi.cs b/src/Flipdish/Api/OnboardingApi.cs new file mode 100644 index 00000000..bd971d65 --- /dev/null +++ b/src/Flipdish/Api/OnboardingApi.cs @@ -0,0 +1,1954 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOnboardingApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object OnboardingGetOnboardingConfig (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse OnboardingGetOnboardingConfigWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object OnboardingGetOnboardingConfigs (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse OnboardingGetOnboardingConfigsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Object + Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of Object + ApiResponse OnboardingGetOnboardingItemsWithHttpInfo (string appId, int? storeId, int? milestoneId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Object + Object OnboardingGetOnboardingItemsV2 (string appId, int? storeId = null, int? milestoneId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of Object + ApiResponse OnboardingGetOnboardingItemsV2WithHttpInfo (string appId, int? storeId = null, int? milestoneId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object OnboardingUpdateOnboardingConfig (string appId, OnboardingConfigUpdate configUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse OnboardingUpdateOnboardingConfigWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + Object OnboardingUpdateOnboardingConfigById (string appId, int? configId, OnboardingConfigUpdate configUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + ApiResponse OnboardingUpdateOnboardingConfigByIdWithHttpInfo (string appId, int? configId, OnboardingConfigUpdate configUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + Object OnboardingUpdateOnboardingItem (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + ApiResponse OnboardingUpdateOnboardingItemWithHttpInfo (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Object + Object OnboardingUpdateOnboardingItemV2 (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of Object + ApiResponse OnboardingUpdateOnboardingItemV2WithHttpInfo (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task OnboardingGetOnboardingConfigAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingGetOnboardingConfigAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task OnboardingGetOnboardingConfigsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingGetOnboardingConfigsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of Object + System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsync (string appId, int? storeId, int? milestoneId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingGetOnboardingItemsAsyncWithHttpInfo (string appId, int? storeId, int? milestoneId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of Object + System.Threading.Tasks.Task OnboardingGetOnboardingItemsV2Async (string appId, int? storeId = null, int? milestoneId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingGetOnboardingItemsV2AsyncWithHttpInfo (string appId, int? storeId = null, int? milestoneId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task OnboardingUpdateOnboardingConfigAsync (string appId, OnboardingConfigUpdate configUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingUpdateOnboardingConfigAsyncWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task OnboardingUpdateOnboardingConfigByIdAsync (string appId, int? configId, OnboardingConfigUpdate configUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingUpdateOnboardingConfigByIdAsyncWithHttpInfo (string appId, int? configId, OnboardingConfigUpdate configUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + System.Threading.Tasks.Task OnboardingUpdateOnboardingItemAsync (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingUpdateOnboardingItemAsyncWithHttpInfo (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of Object + System.Threading.Tasks.Task OnboardingUpdateOnboardingItemV2Async (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> OnboardingUpdateOnboardingItemV2AsyncWithHttpInfo (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OnboardingApi : IOnboardingApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OnboardingApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OnboardingApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object OnboardingGetOnboardingConfig (string appId) + { + ApiResponse localVarResponse = OnboardingGetOnboardingConfigWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > OnboardingGetOnboardingConfigWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfig"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task OnboardingGetOnboardingConfigAsync (string appId) + { + ApiResponse localVarResponse = await OnboardingGetOnboardingConfigAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingGetOnboardingConfigAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfig"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object OnboardingGetOnboardingConfigs (string appId) + { + ApiResponse localVarResponse = OnboardingGetOnboardingConfigsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > OnboardingGetOnboardingConfigsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfigs"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/configs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfigs", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task OnboardingGetOnboardingConfigsAsync (string appId) + { + ApiResponse localVarResponse = await OnboardingGetOnboardingConfigsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingGetOnboardingConfigsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfigs"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/configs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfigs", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Object + public Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null) + { + ApiResponse localVarResponse = OnboardingGetOnboardingItemsWithHttpInfo(appId, storeId, milestoneId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of Object + public ApiResponse< Object > OnboardingGetOnboardingItemsWithHttpInfo (string appId, int? storeId, int? milestoneId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (milestoneId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "milestoneId", milestoneId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of Object + public async System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsync (string appId, int? storeId, int? milestoneId = null) + { + ApiResponse localVarResponse = await OnboardingGetOnboardingItemsAsyncWithHttpInfo(appId, storeId, milestoneId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingGetOnboardingItemsAsyncWithHttpInfo (string appId, int? storeId, int? milestoneId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (milestoneId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "milestoneId", milestoneId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Object + public Object OnboardingGetOnboardingItemsV2 (string appId, int? storeId = null, int? milestoneId = null) + { + ApiResponse localVarResponse = OnboardingGetOnboardingItemsV2WithHttpInfo(appId, storeId, milestoneId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of Object + public ApiResponse< Object > OnboardingGetOnboardingItemsV2WithHttpInfo (string appId, int? storeId = null, int? milestoneId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingItemsV2"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (milestoneId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "milestoneId", milestoneId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingItemsV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of Object + public async System.Threading.Tasks.Task OnboardingGetOnboardingItemsV2Async (string appId, int? storeId = null, int? milestoneId = null) + { + ApiResponse localVarResponse = await OnboardingGetOnboardingItemsV2AsyncWithHttpInfo(appId, storeId, milestoneId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingGetOnboardingItemsV2AsyncWithHttpInfo (string appId, int? storeId = null, int? milestoneId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingItemsV2"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (milestoneId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "milestoneId", milestoneId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingGetOnboardingItemsV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object OnboardingUpdateOnboardingConfig (string appId, OnboardingConfigUpdate configUpdate) + { + ApiResponse localVarResponse = OnboardingUpdateOnboardingConfigWithHttpInfo(appId, configUpdate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + // verify the required parameter 'configUpdate' is set + if (configUpdate == null) + throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configUpdate != null && configUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(configUpdate); // http body (model) parameter + } + else + { + localVarPostBody = configUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task OnboardingUpdateOnboardingConfigAsync (string appId, OnboardingConfigUpdate configUpdate) + { + ApiResponse localVarResponse = await OnboardingUpdateOnboardingConfigAsyncWithHttpInfo(appId, configUpdate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingUpdateOnboardingConfigAsyncWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + // verify the required parameter 'configUpdate' is set + if (configUpdate == null) + throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configUpdate != null && configUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(configUpdate); // http body (model) parameter + } + else + { + localVarPostBody = configUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Object + public Object OnboardingUpdateOnboardingConfigById (string appId, int? configId, OnboardingConfigUpdate configUpdate) + { + ApiResponse localVarResponse = OnboardingUpdateOnboardingConfigByIdWithHttpInfo(appId, configId, configUpdate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > OnboardingUpdateOnboardingConfigByIdWithHttpInfo (string appId, int? configId, OnboardingConfigUpdate configUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + // verify the required parameter 'configUpdate' is set + if (configUpdate == null) + throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (configUpdate != null && configUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(configUpdate); // http body (model) parameter + } + else + { + localVarPostBody = configUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfigById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task OnboardingUpdateOnboardingConfigByIdAsync (string appId, int? configId, OnboardingConfigUpdate configUpdate) + { + ApiResponse localVarResponse = await OnboardingUpdateOnboardingConfigByIdAsyncWithHttpInfo(appId, configId, configUpdate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingUpdateOnboardingConfigByIdAsyncWithHttpInfo (string appId, int? configId, OnboardingConfigUpdate configUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + // verify the required parameter 'configId' is set + if (configId == null) + throw new ApiException(400, "Missing required parameter 'configId' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + // verify the required parameter 'configUpdate' is set + if (configUpdate == null) + throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfigById"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/config/{configId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (configId != null) localVarPathParams.Add("configId", this.Configuration.ApiClient.ParameterToString(configId)); // path parameter + if (configUpdate != null && configUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(configUpdate); // http body (model) parameter + } + else + { + localVarPostBody = configUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfigById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Object + public Object OnboardingUpdateOnboardingItem (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + { + ApiResponse localVarResponse = OnboardingUpdateOnboardingItemWithHttpInfo(appId, storeId, onboardingItemId, itemUpdate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > OnboardingUpdateOnboardingItemWithHttpInfo (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId == null) + throw new ApiException(400, "Missing required parameter 'onboardingItemId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'itemUpdate' is set + if (itemUpdate == null) + throw new ApiException(400, "Missing required parameter 'itemUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (onboardingItemId != null) localVarPathParams.Add("onboardingItemId", this.Configuration.ApiClient.ParameterToString(onboardingItemId)); // path parameter + if (itemUpdate != null && itemUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(itemUpdate); // http body (model) parameter + } + else + { + localVarPostBody = itemUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task OnboardingUpdateOnboardingItemAsync (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + { + ApiResponse localVarResponse = await OnboardingUpdateOnboardingItemAsyncWithHttpInfo(appId, storeId, onboardingItemId, itemUpdate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingUpdateOnboardingItemAsyncWithHttpInfo (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId == null) + throw new ApiException(400, "Missing required parameter 'onboardingItemId' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + // verify the required parameter 'itemUpdate' is set + if (itemUpdate == null) + throw new ApiException(400, "Missing required parameter 'itemUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingItem"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (onboardingItemId != null) localVarPathParams.Add("onboardingItemId", this.Configuration.ApiClient.ParameterToString(onboardingItemId)); // path parameter + if (itemUpdate != null && itemUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(itemUpdate); // http body (model) parameter + } + else + { + localVarPostBody = itemUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingItem", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Object + public Object OnboardingUpdateOnboardingItemV2 (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null) + { + ApiResponse localVarResponse = OnboardingUpdateOnboardingItemV2WithHttpInfo(appId, onboardingItemId, itemUpdate, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of Object + public ApiResponse< Object > OnboardingUpdateOnboardingItemV2WithHttpInfo (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId == null) + throw new ApiException(400, "Missing required parameter 'onboardingItemId' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + // verify the required parameter 'itemUpdate' is set + if (itemUpdate == null) + throw new ApiException(400, "Missing required parameter 'itemUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (onboardingItemId != null) localVarPathParams.Add("onboardingItemId", this.Configuration.ApiClient.ParameterToString(onboardingItemId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (itemUpdate != null && itemUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(itemUpdate); // http body (model) parameter + } + else + { + localVarPostBody = itemUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingItemV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of Object + public async System.Threading.Tasks.Task OnboardingUpdateOnboardingItemV2Async (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null) + { + ApiResponse localVarResponse = await OnboardingUpdateOnboardingItemV2AsyncWithHttpInfo(appId, onboardingItemId, itemUpdate, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> OnboardingUpdateOnboardingItemV2AsyncWithHttpInfo (string appId, int? onboardingItemId, OnboardingItemUpdate itemUpdate, int? storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId == null) + throw new ApiException(400, "Missing required parameter 'onboardingItemId' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + // verify the required parameter 'itemUpdate' is set + if (itemUpdate == null) + throw new ApiException(400, "Missing required parameter 'itemUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingItemV2"); + + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (onboardingItemId != null) localVarPathParams.Add("onboardingItemId", this.Configuration.ApiClient.ParameterToString(onboardingItemId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + if (itemUpdate != null && itemUpdate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(itemUpdate); // http body (model) parameter + } + else + { + localVarPostBody = itemUpdate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("OnboardingUpdateOnboardingItemV2", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/OrderBatchesApi.cs b/src/Flipdish/Api/OrderBatchesApi.cs new file mode 100644 index 00000000..339790ba --- /dev/null +++ b/src/Flipdish/Api/OrderBatchesApi.cs @@ -0,0 +1,562 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrderBatchesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultOrderBatch + RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultOrderBatch + ApiResponse GetAllOrderBatchesWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrderBatch + RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrderBatch + ApiResponse GetOrderBatchWithHttpInfo (string appId, int? orderBatchId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultOrderBatch + System.Threading.Tasks.Task GetAllOrderBatchesAsync (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultOrderBatch) + System.Threading.Tasks.Task> GetAllOrderBatchesAsyncWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrderBatch + System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? orderBatchId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrderBatch) + System.Threading.Tasks.Task> GetOrderBatchAsyncWithHttpInfo (string appId, int? orderBatchId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OrderBatchesApi : IOrderBatchesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OrderBatchesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OrderBatchesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultOrderBatch + public RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) + { + ApiResponse localVarResponse = GetAllOrderBatchesWithHttpInfo(appId, storeIds, createdFrom, createdTo); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultOrderBatch + public ApiResponse< RestApiArrayResultOrderBatch > GetAllOrderBatchesWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrderBatchesApi->GetAllOrderBatches"); + + var localVarPath = "./api/v1.0/{appId}/order-batches"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (createdFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createdFrom", createdFrom)); // query parameter + if (createdTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createdTo", createdTo)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllOrderBatches", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatch))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultOrderBatch + public async System.Threading.Tasks.Task GetAllOrderBatchesAsync (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) + { + ApiResponse localVarResponse = await GetAllOrderBatchesAsyncWithHttpInfo(appId, storeIds, createdFrom, createdTo); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultOrderBatch) + public async System.Threading.Tasks.Task> GetAllOrderBatchesAsyncWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrderBatchesApi->GetAllOrderBatches"); + + var localVarPath = "./api/v1.0/{appId}/order-batches"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (createdFrom != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createdFrom", createdFrom)); // query parameter + if (createdTo != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "createdTo", createdTo)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAllOrderBatches", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatch))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrderBatch + public RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId) + { + ApiResponse localVarResponse = GetOrderBatchWithHttpInfo(appId, orderBatchId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrderBatch + public ApiResponse< RestApiResultOrderBatch > GetOrderBatchWithHttpInfo (string appId, int? orderBatchId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrderBatchesApi->GetOrderBatch"); + // verify the required parameter 'orderBatchId' is set + if (orderBatchId == null) + throw new ApiException(400, "Missing required parameter 'orderBatchId' when calling OrderBatchesApi->GetOrderBatch"); + + var localVarPath = "./api/v1.0/{appId}/order-batches/{orderBatchId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderBatchId != null) localVarPathParams.Add("orderBatchId", this.Configuration.ApiClient.ParameterToString(orderBatchId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderBatch", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderBatch))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrderBatch + public async System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? orderBatchId) + { + ApiResponse localVarResponse = await GetOrderBatchAsyncWithHttpInfo(appId, orderBatchId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrderBatch) + public async System.Threading.Tasks.Task> GetOrderBatchAsyncWithHttpInfo (string appId, int? orderBatchId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrderBatchesApi->GetOrderBatch"); + // verify the required parameter 'orderBatchId' is set + if (orderBatchId == null) + throw new ApiException(400, "Missing required parameter 'orderBatchId' when calling OrderBatchesApi->GetOrderBatch"); + + var localVarPath = "./api/v1.0/{appId}/order-batches/{orderBatchId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderBatchId != null) localVarPathParams.Add("orderBatchId", this.Configuration.ApiClient.ParameterToString(orderBatchId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderBatch", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderBatch))); + } + + } +} diff --git a/src/Flipdish/Api/OrderBatchingConfigurationApi.cs b/src/Flipdish/Api/OrderBatchingConfigurationApi.cs new file mode 100644 index 00000000..063dbd54 --- /dev/null +++ b/src/Flipdish/Api/OrderBatchingConfigurationApi.cs @@ -0,0 +1,554 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrderBatchingConfigurationApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderBatchingConfiguration + RestApiResultOrderBatchingConfiguration Get (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderBatchingConfiguration + ApiResponse GetWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse PostWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderBatchingConfiguration + System.Threading.Tasks.Task GetAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderBatchingConfiguration) + System.Threading.Tasks.Task> GetAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task PostAsync (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PostAsyncWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OrderBatchingConfigurationApi : IOrderBatchingConfigurationApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OrderBatchingConfigurationApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OrderBatchingConfigurationApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderBatchingConfiguration + public RestApiResultOrderBatchingConfiguration Get (int? storeId) + { + ApiResponse localVarResponse = GetWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderBatchingConfiguration + public ApiResponse< RestApiResultOrderBatchingConfiguration > GetWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchingConfigurationApi->Get"); + + var localVarPath = "./api/v1.0/stores/{storeId}/order-batching-configuration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Get", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderBatchingConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderBatchingConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderBatchingConfiguration + public async System.Threading.Tasks.Task GetAsync (int? storeId) + { + ApiResponse localVarResponse = await GetAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderBatchingConfiguration) + public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchingConfigurationApi->Get"); + + var localVarPath = "./api/v1.0/stores/{storeId}/order-batching-configuration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Get", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderBatchingConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderBatchingConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) + { + PostWithHttpInfo(storeId, setOrderBatchingConfiguration); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse PostWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchingConfigurationApi->Post"); + // verify the required parameter 'setOrderBatchingConfiguration' is set + if (setOrderBatchingConfiguration == null) + throw new ApiException(400, "Missing required parameter 'setOrderBatchingConfiguration' when calling OrderBatchingConfigurationApi->Post"); + + var localVarPath = "./api/v1.0/stores/{storeId}/order-batching-configuration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (setOrderBatchingConfiguration != null && setOrderBatchingConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(setOrderBatchingConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = setOrderBatchingConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Post", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task PostAsync (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) + { + await PostAsyncWithHttpInfo(storeId, setOrderBatchingConfiguration); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PostAsyncWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchingConfigurationApi->Post"); + // verify the required parameter 'setOrderBatchingConfiguration' is set + if (setOrderBatchingConfiguration == null) + throw new ApiException(400, "Missing required parameter 'setOrderBatchingConfiguration' when calling OrderBatchingConfigurationApi->Post"); + + var localVarPath = "./api/v1.0/stores/{storeId}/order-batching-configuration"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (setOrderBatchingConfiguration != null && setOrderBatchingConfiguration.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(setOrderBatchingConfiguration); // http body (model) parameter + } + else + { + localVarPostBody = setOrderBatchingConfiguration; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Post", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/OrdersApi.cs b/src/Flipdish/Api/OrdersApi.cs new file mode 100644 index 00000000..48a525af --- /dev/null +++ b/src/Flipdish/Api/OrdersApi.cs @@ -0,0 +1,3503 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void AcceptOrder (int? id, Accept acceptObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse AcceptOrderWithHttpInfo (int? id, Accept acceptObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void DispatchOrder (int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse DispatchOrderWithHttpInfo (int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderDeliveryInformation + RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderDeliveryInformation + ApiResponse GetDeliveryInformationWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderFulfillmentStatus + RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderFulfillmentStatus + ApiResponse GetFulfillmentStateWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderFulfillmentStatusWithConfigurationActions + RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderFulfillmentStatusWithConfigurationActions + ApiResponse GetFulfillmentStatusWithDetailsAndActionsWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrder + RestApiResultOrder GetOrderById (int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrder + ApiResponse GetOrderByIdWithHttpInfo (int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrder + RestApiPaginationResultOrder GetOrders (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrder + ApiResponse GetOrdersWithHttpInfo (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrderSummary + RestApiPaginationResultOrderSummary GetOrdersSummary (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrderSummary + ApiResponse GetOrdersSummaryWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrderSummary + RestApiPaginationResultOrderSummary GetOrdersSummaryNew (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrderSummary + ApiResponse GetOrdersSummaryNewWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// OrderList + OrderList GetReadyToProcess (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of OrderList + ApiResponse GetReadyToProcessWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void RefundOrder (int? id, Refund refundObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse RefundOrderWithHttpInfo (int? id, Refund refundObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void RejectOrder (int? id, Reject rejectObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse RejectOrderWithHttpInfo (int? id, Reject rejectObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultOrderFulfillmentStatus + RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultOrderFulfillmentStatus + ApiResponse SearchFulfillmentStatusesWithHttpInfo (string appId, string orderIds); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateDeliveryInformationWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateFulfillmentStateWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task AcceptOrderAsync (int? id, Accept acceptObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AcceptOrderAsyncWithHttpInfo (int? id, Accept acceptObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task DispatchOrderAsync (int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DispatchOrderAsyncWithHttpInfo (int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderDeliveryInformation + System.Threading.Tasks.Task GetDeliveryInformationAsync (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderDeliveryInformation) + System.Threading.Tasks.Task> GetDeliveryInformationAsyncWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderFulfillmentStatus + System.Threading.Tasks.Task GetFulfillmentStateAsync (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderFulfillmentStatus) + System.Threading.Tasks.Task> GetFulfillmentStateAsyncWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderFulfillmentStatusWithConfigurationActions + System.Threading.Tasks.Task GetFulfillmentStatusWithDetailsAndActionsAsync (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderFulfillmentStatusWithConfigurationActions) + System.Threading.Tasks.Task> GetFulfillmentStatusWithDetailsAndActionsAsyncWithHttpInfo (int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrder + System.Threading.Tasks.Task GetOrderByIdAsync (int? id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrder) + System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (int? id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrder + System.Threading.Tasks.Task GetOrdersAsync (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrder) + System.Threading.Tasks.Task> GetOrdersAsyncWithHttpInfo (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrderSummary + System.Threading.Tasks.Task GetOrdersSummaryAsync (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrderSummary) + System.Threading.Tasks.Task> GetOrdersSummaryAsyncWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrderSummary + System.Threading.Tasks.Task GetOrdersSummaryNewAsync (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrderSummary) + System.Threading.Tasks.Task> GetOrdersSummaryNewAsyncWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of OrderList + System.Threading.Tasks.Task GetReadyToProcessAsync (string appId, List storeId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (OrderList) + System.Threading.Tasks.Task> GetReadyToProcessAsyncWithHttpInfo (string appId, List storeId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task RefundOrderAsync (int? id, Refund refundObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RefundOrderAsyncWithHttpInfo (int? id, Refund refundObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task RejectOrderAsync (int? id, Reject rejectObject); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RejectOrderAsyncWithHttpInfo (int? id, Reject rejectObject); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultOrderFulfillmentStatus + System.Threading.Tasks.Task SearchFulfillmentStatusesAsync (string appId, string orderIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultOrderFulfillmentStatus) + System.Threading.Tasks.Task> SearchFulfillmentStatusesAsyncWithHttpInfo (string appId, string orderIds); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateDeliveryInformationAsync (int? orderId, OrderDeliveryInformationBase deliveryInformation); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateDeliveryInformationAsyncWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateFulfillmentStateAsync (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateFulfillmentStateAsyncWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OrdersApi : IOrdersApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OrdersApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OrdersApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void AcceptOrder (int? id, Accept acceptObject) + { + AcceptOrderWithHttpInfo(id, acceptObject); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AcceptOrderWithHttpInfo (int? id, Accept acceptObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->AcceptOrder"); + // verify the required parameter 'acceptObject' is set + if (acceptObject == null) + throw new ApiException(400, "Missing required parameter 'acceptObject' when calling OrdersApi->AcceptOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/accept"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (acceptObject != null && acceptObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(acceptObject); // http body (model) parameter + } + else + { + localVarPostBody = acceptObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AcceptOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AcceptOrderAsync (int? id, Accept acceptObject) + { + await AcceptOrderAsyncWithHttpInfo(id, acceptObject); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AcceptOrderAsyncWithHttpInfo (int? id, Accept acceptObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->AcceptOrder"); + // verify the required parameter 'acceptObject' is set + if (acceptObject == null) + throw new ApiException(400, "Missing required parameter 'acceptObject' when calling OrdersApi->AcceptOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/accept"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (acceptObject != null && acceptObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(acceptObject); // http body (model) parameter + } + else + { + localVarPostBody = acceptObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AcceptOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void DispatchOrder (int? id) + { + DispatchOrderWithHttpInfo(id); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse DispatchOrderWithHttpInfo (int? id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->DispatchOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/dispatch"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DispatchOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task DispatchOrderAsync (int? id) + { + await DispatchOrderAsyncWithHttpInfo(id); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DispatchOrderAsyncWithHttpInfo (int? id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->DispatchOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/dispatch"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DispatchOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderDeliveryInformation + public RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId) + { + ApiResponse localVarResponse = GetDeliveryInformationWithHttpInfo(orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderDeliveryInformation + public ApiResponse< RestApiResultOrderDeliveryInformation > GetDeliveryInformationWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetDeliveryInformation"); + + var localVarPath = "./api/v1.0/orders/{orderId}/deliveryinfo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeliveryInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderDeliveryInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderDeliveryInformation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderDeliveryInformation + public async System.Threading.Tasks.Task GetDeliveryInformationAsync (int? orderId) + { + ApiResponse localVarResponse = await GetDeliveryInformationAsyncWithHttpInfo(orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderDeliveryInformation) + public async System.Threading.Tasks.Task> GetDeliveryInformationAsyncWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetDeliveryInformation"); + + var localVarPath = "./api/v1.0/orders/{orderId}/deliveryinfo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetDeliveryInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderDeliveryInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderDeliveryInformation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderFulfillmentStatus + public RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId) + { + ApiResponse localVarResponse = GetFulfillmentStateWithHttpInfo(orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderFulfillmentStatus + public ApiResponse< RestApiResultOrderFulfillmentStatus > GetFulfillmentStateWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetFulfillmentState"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderFulfillmentStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderFulfillmentStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderFulfillmentStatus + public async System.Threading.Tasks.Task GetFulfillmentStateAsync (int? orderId) + { + ApiResponse localVarResponse = await GetFulfillmentStateAsyncWithHttpInfo(orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderFulfillmentStatus) + public async System.Threading.Tasks.Task> GetFulfillmentStateAsyncWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetFulfillmentState"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderFulfillmentStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderFulfillmentStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderFulfillmentStatusWithConfigurationActions + public RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId) + { + ApiResponse localVarResponse = GetFulfillmentStatusWithDetailsAndActionsWithHttpInfo(orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderFulfillmentStatusWithConfigurationActions + public ApiResponse< RestApiResultOrderFulfillmentStatusWithConfigurationActions > GetFulfillmentStatusWithDetailsAndActionsWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetFulfillmentStatusWithDetailsAndActions"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatusWithDetailsAndActions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderFulfillmentStatusWithConfigurationActions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderFulfillmentStatusWithConfigurationActions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderFulfillmentStatusWithConfigurationActions + public async System.Threading.Tasks.Task GetFulfillmentStatusWithDetailsAndActionsAsync (int? orderId) + { + ApiResponse localVarResponse = await GetFulfillmentStatusWithDetailsAndActionsAsyncWithHttpInfo(orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderFulfillmentStatusWithConfigurationActions) + public async System.Threading.Tasks.Task> GetFulfillmentStatusWithDetailsAndActionsAsyncWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->GetFulfillmentStatusWithDetailsAndActions"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetFulfillmentStatusWithDetailsAndActions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderFulfillmentStatusWithConfigurationActions) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderFulfillmentStatusWithConfigurationActions))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrder + public RestApiResultOrder GetOrderById (int? id) + { + ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrder + public ApiResponse< RestApiResultOrder > GetOrderByIdWithHttpInfo (int? id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->GetOrderById"); + + var localVarPath = "./api/v1.0/orders/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrder + public async System.Threading.Tasks.Task GetOrderByIdAsync (int? id) + { + ApiResponse localVarResponse = await GetOrderByIdAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrder) + public async System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (int? id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->GetOrderById"); + + var localVarPath = "./api/v1.0/orders/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrder + public RestApiPaginationResultOrder GetOrders (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetOrdersWithHttpInfo(physicalRestaurantId, state, from, to, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrder + public ApiResponse< RestApiPaginationResultOrder > GetOrdersWithHttpInfo (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) + { + + var localVarPath = "./api/v1.0/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrder + public async System.Threading.Tasks.Task GetOrdersAsync (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetOrdersAsyncWithHttpInfo(physicalRestaurantId, state, from, to, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrder) + public async System.Threading.Tasks.Task> GetOrdersAsyncWithHttpInfo (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) + { + + var localVarPath = "./api/v1.0/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrderSummary + public RestApiPaginationResultOrderSummary GetOrdersSummary (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + ApiResponse localVarResponse = GetOrdersSummaryWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrderSummary + public ApiResponse< RestApiPaginationResultOrderSummary > GetOrdersSummaryWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetOrdersSummary"); + + var localVarPath = "./api/v1.0/{appId}/orders/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (orderByRequestedForTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderByRequestedForTime", orderByRequestedForTime)); // query parameter + if (channels != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channels", channels)); // query parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "orderIds", orderIds)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (logSql != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "logSql", logSql)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrdersSummary", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrderSummary + public async System.Threading.Tasks.Task GetOrdersSummaryAsync (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + ApiResponse localVarResponse = await GetOrdersSummaryAsyncWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrderSummary) + public async System.Threading.Tasks.Task> GetOrdersSummaryAsyncWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetOrdersSummary"); + + var localVarPath = "./api/v1.0/{appId}/orders/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (orderByRequestedForTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderByRequestedForTime", orderByRequestedForTime)); // query parameter + if (channels != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channels", channels)); // query parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "orderIds", orderIds)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (logSql != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "logSql", logSql)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrdersSummary", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultOrderSummary + public RestApiPaginationResultOrderSummary GetOrdersSummaryNew (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + ApiResponse localVarResponse = GetOrdersSummaryNewWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultOrderSummary + public ApiResponse< RestApiPaginationResultOrderSummary > GetOrdersSummaryNewWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetOrdersSummaryNew"); + + var localVarPath = "./api/v1.0/{appId}/orders/summariesNew"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (orderByRequestedForTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderByRequestedForTime", orderByRequestedForTime)); // query parameter + if (channels != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channels", channels)); // query parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "orderIds", orderIds)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (logSql != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "logSql", logSql)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrdersSummaryNew", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultOrderSummary + public async System.Threading.Tasks.Task GetOrdersSummaryNewAsync (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + ApiResponse localVarResponse = await GetOrdersSummaryNewAsyncWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultOrderSummary) + public async System.Threading.Tasks.Task> GetOrdersSummaryNewAsyncWithHttpInfo (string appId, string searchQuery = null, List physicalRestaurantId = null, List state = null, int? page = null, int? limit = null, bool? orderByRequestedForTime = null, List channels = null, List orderIds = null, DateTime? from = null, DateTime? to = null, bool? logSql = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetOrdersSummaryNew"); + + var localVarPath = "./api/v1.0/{appId}/orders/summariesNew"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (physicalRestaurantId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "physicalRestaurantId", physicalRestaurantId)); // query parameter + if (state != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "state", state)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (orderByRequestedForTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderByRequestedForTime", orderByRequestedForTime)); // query parameter + if (channels != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channels", channels)); // query parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "orderIds", orderIds)); // query parameter + if (from != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from", from)); // query parameter + if (to != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "to", to)); // query parameter + if (logSql != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "logSql", logSql)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrdersSummaryNew", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// OrderList + public OrderList GetReadyToProcess (string appId, List storeId = null) + { + ApiResponse localVarResponse = GetReadyToProcessWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of OrderList + public ApiResponse< OrderList > GetReadyToProcessWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetReadyToProcess"); + + var localVarPath = "./api/v1.0/{appId}/orders/ready_to_process"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetReadyToProcess", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (OrderList) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OrderList))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of OrderList + public async System.Threading.Tasks.Task GetReadyToProcessAsync (string appId, List storeId = null) + { + ApiResponse localVarResponse = await GetReadyToProcessAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (OrderList) + public async System.Threading.Tasks.Task> GetReadyToProcessAsyncWithHttpInfo (string appId, List storeId = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->GetReadyToProcess"); + + var localVarPath = "./api/v1.0/{appId}/orders/ready_to_process"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetReadyToProcess", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (OrderList) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OrderList))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void RefundOrder (int? id, Refund refundObject) + { + RefundOrderWithHttpInfo(id, refundObject); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RefundOrderWithHttpInfo (int? id, Refund refundObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->RefundOrder"); + // verify the required parameter 'refundObject' is set + if (refundObject == null) + throw new ApiException(400, "Missing required parameter 'refundObject' when calling OrdersApi->RefundOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/refund"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (refundObject != null && refundObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(refundObject); // http body (model) parameter + } + else + { + localVarPostBody = refundObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RefundOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RefundOrderAsync (int? id, Refund refundObject) + { + await RefundOrderAsyncWithHttpInfo(id, refundObject); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RefundOrderAsyncWithHttpInfo (int? id, Refund refundObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->RefundOrder"); + // verify the required parameter 'refundObject' is set + if (refundObject == null) + throw new ApiException(400, "Missing required parameter 'refundObject' when calling OrdersApi->RefundOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/refund"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (refundObject != null && refundObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(refundObject); // http body (model) parameter + } + else + { + localVarPostBody = refundObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RefundOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void RejectOrder (int? id, Reject rejectObject) + { + RejectOrderWithHttpInfo(id, rejectObject); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse RejectOrderWithHttpInfo (int? id, Reject rejectObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->RejectOrder"); + // verify the required parameter 'rejectObject' is set + if (rejectObject == null) + throw new ApiException(400, "Missing required parameter 'rejectObject' when calling OrdersApi->RejectOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/reject"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (rejectObject != null && rejectObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(rejectObject); // http body (model) parameter + } + else + { + localVarPostBody = rejectObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RejectOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task RejectOrderAsync (int? id, Reject rejectObject) + { + await RejectOrderAsyncWithHttpInfo(id, rejectObject); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RejectOrderAsyncWithHttpInfo (int? id, Reject rejectObject) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OrdersApi->RejectOrder"); + // verify the required parameter 'rejectObject' is set + if (rejectObject == null) + throw new ApiException(400, "Missing required parameter 'rejectObject' when calling OrdersApi->RejectOrder"); + + var localVarPath = "./api/v1.0/orders/{id}/reject"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (rejectObject != null && rejectObject.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(rejectObject); // http body (model) parameter + } + else + { + localVarPostBody = rejectObject; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RejectOrder", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultOrderFulfillmentStatus + public RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds) + { + ApiResponse localVarResponse = SearchFulfillmentStatusesWithHttpInfo(appId, orderIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultOrderFulfillmentStatus + public ApiResponse< RestApiArrayResultOrderFulfillmentStatus > SearchFulfillmentStatusesWithHttpInfo (string appId, string orderIds) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->SearchFulfillmentStatuses"); + // verify the required parameter 'orderIds' is set + if (orderIds == null) + throw new ApiException(400, "Missing required parameter 'orderIds' when calling OrdersApi->SearchFulfillmentStatuses"); + + var localVarPath = "./api/v1.0/{appId}/orders/fulfillmentstatuses"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderIds", orderIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFulfillmentStatuses", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOrderFulfillmentStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderFulfillmentStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultOrderFulfillmentStatus + public async System.Threading.Tasks.Task SearchFulfillmentStatusesAsync (string appId, string orderIds) + { + ApiResponse localVarResponse = await SearchFulfillmentStatusesAsyncWithHttpInfo(appId, orderIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultOrderFulfillmentStatus) + public async System.Threading.Tasks.Task> SearchFulfillmentStatusesAsyncWithHttpInfo (string appId, string orderIds) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling OrdersApi->SearchFulfillmentStatuses"); + // verify the required parameter 'orderIds' is set + if (orderIds == null) + throw new ApiException(400, "Missing required parameter 'orderIds' when calling OrdersApi->SearchFulfillmentStatuses"); + + var localVarPath = "./api/v1.0/{appId}/orders/fulfillmentstatuses"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (orderIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orderIds", orderIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFulfillmentStatuses", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultOrderFulfillmentStatus) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderFulfillmentStatus))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation) + { + UpdateDeliveryInformationWithHttpInfo(orderId, deliveryInformation); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateDeliveryInformationWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->UpdateDeliveryInformation"); + // verify the required parameter 'deliveryInformation' is set + if (deliveryInformation == null) + throw new ApiException(400, "Missing required parameter 'deliveryInformation' when calling OrdersApi->UpdateDeliveryInformation"); + + var localVarPath = "./api/v1.0/orders/{orderId}/deliveryinfo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (deliveryInformation != null && deliveryInformation.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryInformation); // http body (model) parameter + } + else + { + localVarPostBody = deliveryInformation; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateDeliveryInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateDeliveryInformationAsync (int? orderId, OrderDeliveryInformationBase deliveryInformation) + { + await UpdateDeliveryInformationAsyncWithHttpInfo(orderId, deliveryInformation); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateDeliveryInformationAsyncWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->UpdateDeliveryInformation"); + // verify the required parameter 'deliveryInformation' is set + if (deliveryInformation == null) + throw new ApiException(400, "Missing required parameter 'deliveryInformation' when calling OrdersApi->UpdateDeliveryInformation"); + + var localVarPath = "./api/v1.0/orders/{orderId}/deliveryinfo"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (deliveryInformation != null && deliveryInformation.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(deliveryInformation); // http body (model) parameter + } + else + { + localVarPostBody = deliveryInformation; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateDeliveryInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) + { + UpdateFulfillmentStateWithHttpInfo(orderId, fulfillmentStatusRequest); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateFulfillmentStateWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->UpdateFulfillmentState"); + // verify the required parameter 'fulfillmentStatusRequest' is set + if (fulfillmentStatusRequest == null) + throw new ApiException(400, "Missing required parameter 'fulfillmentStatusRequest' when calling OrdersApi->UpdateFulfillmentState"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (fulfillmentStatusRequest != null && fulfillmentStatusRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(fulfillmentStatusRequest); // http body (model) parameter + } + else + { + localVarPostBody = fulfillmentStatusRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateFulfillmentState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateFulfillmentStateAsync (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) + { + await UpdateFulfillmentStateAsyncWithHttpInfo(orderId, fulfillmentStatusRequest); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateFulfillmentStateAsyncWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->UpdateFulfillmentState"); + // verify the required parameter 'fulfillmentStatusRequest' is set + if (fulfillmentStatusRequest == null) + throw new ApiException(400, "Missing required parameter 'fulfillmentStatusRequest' when calling OrdersApi->UpdateFulfillmentState"); + + var localVarPath = "./api/v1.0/orders/{orderId}/fulfillment/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + if (fulfillmentStatusRequest != null && fulfillmentStatusRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(fulfillmentStatusRequest); // http body (model) parameter + } + else + { + localVarPostBody = fulfillmentStatusRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateFulfillmentState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/PaymentIntentsApi.cs b/src/Flipdish/Api/PaymentIntentsApi.cs new file mode 100644 index 00000000..e20cd553 --- /dev/null +++ b/src/Flipdish/Api/PaymentIntentsApi.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPaymentIntentsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPaymentIntent + RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPaymentIntent + ApiResponse GetPaymentIntentWithHttpInfo (string paymentIntentId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPaymentIntent + System.Threading.Tasks.Task GetPaymentIntentAsync (string paymentIntentId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPaymentIntent) + System.Threading.Tasks.Task> GetPaymentIntentAsyncWithHttpInfo (string paymentIntentId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PaymentIntentsApi : IPaymentIntentsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PaymentIntentsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PaymentIntentsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPaymentIntent + public RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId) + { + ApiResponse localVarResponse = GetPaymentIntentWithHttpInfo(paymentIntentId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPaymentIntent + public ApiResponse< RestApiResultPaymentIntent > GetPaymentIntentWithHttpInfo (string paymentIntentId) + { + // verify the required parameter 'paymentIntentId' is set + if (paymentIntentId == null) + throw new ApiException(400, "Missing required parameter 'paymentIntentId' when calling PaymentIntentsApi->GetPaymentIntent"); + + var localVarPath = "./api/v1.0/payment_intents/{paymentIntentId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (paymentIntentId != null) localVarPathParams.Add("paymentIntentId", this.Configuration.ApiClient.ParameterToString(paymentIntentId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPaymentIntent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentIntent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentIntent))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPaymentIntent + public async System.Threading.Tasks.Task GetPaymentIntentAsync (string paymentIntentId) + { + ApiResponse localVarResponse = await GetPaymentIntentAsyncWithHttpInfo(paymentIntentId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPaymentIntent) + public async System.Threading.Tasks.Task> GetPaymentIntentAsyncWithHttpInfo (string paymentIntentId) + { + // verify the required parameter 'paymentIntentId' is set + if (paymentIntentId == null) + throw new ApiException(400, "Missing required parameter 'paymentIntentId' when calling PaymentIntentsApi->GetPaymentIntent"); + + var localVarPath = "./api/v1.0/payment_intents/{paymentIntentId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (paymentIntentId != null) localVarPathParams.Add("paymentIntentId", this.Configuration.ApiClient.ParameterToString(paymentIntentId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPaymentIntent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPaymentIntent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentIntent))); + } + + } +} diff --git a/src/Flipdish/Api/PaymentsApi.cs b/src/Flipdish/Api/PaymentsApi.cs new file mode 100644 index 00000000..8db117bb --- /dev/null +++ b/src/Flipdish/Api/PaymentsApi.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPaymentsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderPaymentInformation + RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderPaymentInformation + ApiResponse GetOrderPaymentInformationWithHttpInfo (int? orderId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderPaymentInformation + System.Threading.Tasks.Task GetOrderPaymentInformationAsync (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderPaymentInformation) + System.Threading.Tasks.Task> GetOrderPaymentInformationAsyncWithHttpInfo (int? orderId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PaymentsApi : IPaymentsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PaymentsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PaymentsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderPaymentInformation + public RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId) + { + ApiResponse localVarResponse = GetOrderPaymentInformationWithHttpInfo(orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderPaymentInformation + public ApiResponse< RestApiResultOrderPaymentInformation > GetOrderPaymentInformationWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling PaymentsApi->GetOrderPaymentInformation"); + + var localVarPath = "./api/v1.0/payments/payment/{orderId}/refundable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderPaymentInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderPaymentInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderPaymentInformation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderPaymentInformation + public async System.Threading.Tasks.Task GetOrderPaymentInformationAsync (int? orderId) + { + ApiResponse localVarResponse = await GetOrderPaymentInformationAsyncWithHttpInfo(orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderPaymentInformation) + public async System.Threading.Tasks.Task> GetOrderPaymentInformationAsyncWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling PaymentsApi->GetOrderPaymentInformation"); + + var localVarPath = "./api/v1.0/payments/payment/{orderId}/refundable"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetOrderPaymentInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderPaymentInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderPaymentInformation))); + } + + } +} diff --git a/src/Flipdish/Api/PayoutReportsApi.cs b/src/Flipdish/Api/PayoutReportsApi.cs new file mode 100644 index 00000000..430695d6 --- /dev/null +++ b/src/Flipdish/Api/PayoutReportsApi.cs @@ -0,0 +1,1325 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPayoutReportsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultPayoutReport3Details + RestApiResultPayoutReport3Details GetPayoutReport3Details (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3Details + ApiResponse GetPayoutReport3DetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultPayoutReport3Overview + RestApiResultPayoutReport3Overview GetPayoutReport3Overview (string appId, int? bankAccountId, int? payoutId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultPayoutReport3Overview + ApiResponse GetPayoutReport3OverviewWithHttpInfo (string appId, int? bankAccountId, int? payoutId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// RestApiResultPayoutReport3PropertyDetails + RestApiResultPayoutReport3PropertyDetails GetPayoutReport3PropertyDetails (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3PropertyDetails + ApiResponse GetPayoutReport3PropertyDetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutReport3RefundedOrder + RestApiPaginationResultPayoutReport3RefundedOrder GetPayoutReport3RefundedOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutReport3RefundedOrder + ApiResponse GetPayoutReport3RefundedOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultPayoutReport3StorePayouts + RestApiResultPayoutReport3StorePayouts GetPayoutReport3Stores (string appId, int? bankAccountId, int? payoutId, List stores = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3StorePayouts + ApiResponse GetPayoutReport3StoresWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List stores = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultPayoutReport3Details + System.Threading.Tasks.Task GetPayoutReport3DetailsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3Details) + System.Threading.Tasks.Task> GetPayoutReport3DetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultPayoutReport3Overview + System.Threading.Tasks.Task GetPayoutReport3OverviewAsync (string appId, int? bankAccountId, int? payoutId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultPayoutReport3Overview) + System.Threading.Tasks.Task> GetPayoutReport3OverviewAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiResultPayoutReport3PropertyDetails + System.Threading.Tasks.Task GetPayoutReport3PropertyDetailsAsync (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3PropertyDetails) + System.Threading.Tasks.Task> GetPayoutReport3PropertyDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutReport3RefundedOrder + System.Threading.Tasks.Task GetPayoutReport3RefundedOrdersAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutReport3RefundedOrder) + System.Threading.Tasks.Task> GetPayoutReport3RefundedOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultPayoutReport3StorePayouts + System.Threading.Tasks.Task GetPayoutReport3StoresAsync (string appId, int? bankAccountId, int? payoutId, List stores = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3StorePayouts) + System.Threading.Tasks.Task> GetPayoutReport3StoresAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List stores = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PayoutReportsApi : IPayoutReportsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PayoutReportsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PayoutReportsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultPayoutReport3Details + public RestApiResultPayoutReport3Details GetPayoutReport3Details (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutReport3DetailsWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3Details + public ApiResponse< RestApiResultPayoutReport3Details > GetPayoutReport3DetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Details"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Details"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Details"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Details", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3Details) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Details))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultPayoutReport3Details + public async System.Threading.Tasks.Task GetPayoutReport3DetailsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutReport3DetailsAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3Details) + public async System.Threading.Tasks.Task> GetPayoutReport3DetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Details"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Details"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Details"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Details", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3Details) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Details))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultPayoutReport3Overview + public RestApiResultPayoutReport3Overview GetPayoutReport3Overview (string appId, int? bankAccountId, int? payoutId) + { + ApiResponse localVarResponse = GetPayoutReport3OverviewWithHttpInfo(appId, bankAccountId, payoutId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultPayoutReport3Overview + public ApiResponse< RestApiResultPayoutReport3Overview > GetPayoutReport3OverviewWithHttpInfo (string appId, int? bankAccountId, int? payoutId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Overview", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3Overview) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Overview))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultPayoutReport3Overview + public async System.Threading.Tasks.Task GetPayoutReport3OverviewAsync (string appId, int? bankAccountId, int? payoutId) + { + ApiResponse localVarResponse = await GetPayoutReport3OverviewAsyncWithHttpInfo(appId, bankAccountId, payoutId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultPayoutReport3Overview) + public async System.Threading.Tasks.Task> GetPayoutReport3OverviewAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Overview"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Overview", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3Overview) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Overview))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// RestApiResultPayoutReport3PropertyDetails + public RestApiResultPayoutReport3PropertyDetails GetPayoutReport3PropertyDetails (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutReport3PropertyDetailsWithHttpInfo(appId, bankAccountId, payoutId, propertyIds, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3PropertyDetails + public ApiResponse< RestApiResultPayoutReport3PropertyDetails > GetPayoutReport3PropertyDetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/properties"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (propertyIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "propertyIds", propertyIds)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3PropertyDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3PropertyDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3PropertyDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiResultPayoutReport3PropertyDetails + public async System.Threading.Tasks.Task GetPayoutReport3PropertyDetailsAsync (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutReport3PropertyDetailsAsyncWithHttpInfo(appId, bankAccountId, payoutId, propertyIds, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3PropertyDetails) + public async System.Threading.Tasks.Task> GetPayoutReport3PropertyDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/properties"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (propertyIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "propertyIds", propertyIds)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3PropertyDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3PropertyDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3PropertyDetails))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutReport3RefundedOrder + public RestApiPaginationResultPayoutReport3RefundedOrder GetPayoutReport3RefundedOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetPayoutReport3RefundedOrdersWithHttpInfo(appId, bankAccountId, payoutId, storeIds, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutReport3RefundedOrder + public ApiResponse< RestApiPaginationResultPayoutReport3RefundedOrder > GetPayoutReport3RefundedOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3RefundedOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutReport3RefundedOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutReport3RefundedOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutReport3RefundedOrder + public async System.Threading.Tasks.Task GetPayoutReport3RefundedOrdersAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetPayoutReport3RefundedOrdersAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutReport3RefundedOrder) + public async System.Threading.Tasks.Task> GetPayoutReport3RefundedOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3RefundedOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutReport3RefundedOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutReport3RefundedOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultPayoutReport3StorePayouts + public RestApiResultPayoutReport3StorePayouts GetPayoutReport3Stores (string appId, int? bankAccountId, int? payoutId, List stores = null) + { + ApiResponse localVarResponse = GetPayoutReport3StoresWithHttpInfo(appId, bankAccountId, payoutId, stores); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3StorePayouts + public ApiResponse< RestApiResultPayoutReport3StorePayouts > GetPayoutReport3StoresWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List stores = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (stores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "stores", stores)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Stores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3StorePayouts) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3StorePayouts))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultPayoutReport3StorePayouts + public async System.Threading.Tasks.Task GetPayoutReport3StoresAsync (string appId, int? bankAccountId, int? payoutId, List stores = null) + { + ApiResponse localVarResponse = await GetPayoutReport3StoresAsyncWithHttpInfo(appId, bankAccountId, payoutId, stores); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultPayoutReport3StorePayouts) + public async System.Threading.Tasks.Task> GetPayoutReport3StoresAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List stores = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Stores"); + + var localVarPath = "./api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (stores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "stores", stores)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutReport3Stores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPayoutReport3StorePayouts) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3StorePayouts))); + } + + } +} diff --git a/src/Flipdish/Api/PayoutsApi.cs b/src/Flipdish/Api/PayoutsApi.cs new file mode 100644 index 00000000..b0a69afd --- /dev/null +++ b/src/Flipdish/Api/PayoutsApi.cs @@ -0,0 +1,1861 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPayoutsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// PayoutDetail + PayoutDetail GetPayout (string appId, int? bankAccountId, int? payoutId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of PayoutDetail + ApiResponse GetPayoutWithHttpInfo (string appId, int? bankAccountId, int? payoutId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutChargeback + RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutChargeback + ApiResponse GetPayoutChargebacksWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutOrder + RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutOrder + ApiResponse GetPayoutOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutOtherCharge + RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutOtherCharge + ApiResponse GetPayoutOtherChargesWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutRefund + RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutRefund + ApiResponse GetPayoutRefundsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// RestApiArrayResultPayoutSummary + RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// ApiResponse of RestApiArrayResultPayoutSummary + ApiResponse GetPayoutSummariesWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// RestApiPaginationResultPayout + RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// ApiResponse of RestApiPaginationResultPayout + ApiResponse GetPayoutsWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of PayoutDetail + System.Threading.Tasks.Task GetPayoutAsync (string appId, int? bankAccountId, int? payoutId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (PayoutDetail) + System.Threading.Tasks.Task> GetPayoutAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutChargeback + System.Threading.Tasks.Task GetPayoutChargebacksAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutChargeback) + System.Threading.Tasks.Task> GetPayoutChargebacksAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutOrder + System.Threading.Tasks.Task GetPayoutOrdersAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutOrder) + System.Threading.Tasks.Task> GetPayoutOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutOtherCharge + System.Threading.Tasks.Task GetPayoutOtherChargesAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutOtherCharge) + System.Threading.Tasks.Task> GetPayoutOtherChargesAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutRefund + System.Threading.Tasks.Task GetPayoutRefundsAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutRefund) + System.Threading.Tasks.Task> GetPayoutRefundsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of RestApiArrayResultPayoutSummary + System.Threading.Tasks.Task GetPayoutSummariesAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of ApiResponse (RestApiArrayResultPayoutSummary) + System.Threading.Tasks.Task> GetPayoutSummariesAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of RestApiPaginationResultPayout + System.Threading.Tasks.Task GetPayoutsAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of ApiResponse (RestApiPaginationResultPayout) + System.Threading.Tasks.Task> GetPayoutsAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PayoutsApi : IPayoutsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PayoutsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PayoutsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// PayoutDetail + public PayoutDetail GetPayout (string appId, int? bankAccountId, int? payoutId) + { + ApiResponse localVarResponse = GetPayoutWithHttpInfo(appId, bankAccountId, payoutId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of PayoutDetail + public ApiResponse< PayoutDetail > GetPayoutWithHttpInfo (string appId, int? bankAccountId, int? payoutId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayout"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayout"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayout"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (PayoutDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PayoutDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of PayoutDetail + public async System.Threading.Tasks.Task GetPayoutAsync (string appId, int? bankAccountId, int? payoutId) + { + ApiResponse localVarResponse = await GetPayoutAsyncWithHttpInfo(appId, bankAccountId, payoutId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (PayoutDetail) + public async System.Threading.Tasks.Task> GetPayoutAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayout"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayout"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayout"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (PayoutDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PayoutDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutChargeback + public RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutChargebacksWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutChargeback + public ApiResponse< RestApiPaginationResultPayoutChargeback > GetPayoutChargebacksWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutChargebacks"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutChargebacks"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutChargebacks"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutChargebacks", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutChargeback) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutChargeback))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutChargeback + public async System.Threading.Tasks.Task GetPayoutChargebacksAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutChargebacksAsyncWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutChargeback) + public async System.Threading.Tasks.Task> GetPayoutChargebacksAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutChargebacks"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutChargebacks"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutChargebacks"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutChargebacks", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutChargeback) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutChargeback))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutOrder + public RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutOrdersWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutOrder + public ApiResponse< RestApiPaginationResultPayoutOrder > GetPayoutOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutOrders"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutOrders"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutOrders"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutOrder + public async System.Threading.Tasks.Task GetPayoutOrdersAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutOrdersAsyncWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutOrder) + public async System.Threading.Tasks.Task> GetPayoutOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutOrders"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutOrders"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutOrders"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutOrders", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutOtherCharge + public RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutOtherChargesWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutOtherCharge + public ApiResponse< RestApiPaginationResultPayoutOtherCharge > GetPayoutOtherChargesWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutOtherCharges"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutOtherCharges"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutOtherCharges"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutOtherCharges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutOtherCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutOtherCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutOtherCharge + public async System.Threading.Tasks.Task GetPayoutOtherChargesAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutOtherChargesAsyncWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutOtherCharge) + public async System.Threading.Tasks.Task> GetPayoutOtherChargesAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutOtherCharges"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutOtherCharges"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutOtherCharges"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutOtherCharges", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutOtherCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutOtherCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutRefund + public RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = GetPayoutRefundsWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutRefund + public ApiResponse< RestApiPaginationResultPayoutRefund > GetPayoutRefundsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutRefunds"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutRefunds"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutRefunds"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutRefunds", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutRefund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutRefund))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPayoutRefund + public async System.Threading.Tasks.Task GetPayoutRefundsAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + ApiResponse localVarResponse = await GetPayoutRefundsAsyncWithHttpInfo(appId, bankAccountId, payoutId, page, limit, storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPayoutRefund) + public async System.Threading.Tasks.Task> GetPayoutRefundsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutRefunds"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling PayoutsApi->GetPayoutRefunds"); + // verify the required parameter 'payoutId' is set + if (payoutId == null) + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutsApi->GetPayoutRefunds"); + + var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (payoutId != null) localVarPathParams.Add("payoutId", this.Configuration.ApiClient.ParameterToString(payoutId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutRefunds", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayoutRefund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutRefund))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// RestApiArrayResultPayoutSummary + public RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + ApiResponse localVarResponse = GetPayoutSummariesWithHttpInfo(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// ApiResponse of RestApiArrayResultPayoutSummary + public ApiResponse< RestApiArrayResultPayoutSummary > GetPayoutSummariesWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutSummaries"); + + var localVarPath = "./api/v1.0/{appId}/payouts/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (payoutRequestIdsBankAccountIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.bankAccountIds", payoutRequestIdsBankAccountIds)); // query parameter + if (payoutRequestIdsStates != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.states", payoutRequestIdsStates)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutSummaries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPayoutSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPayoutSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of RestApiArrayResultPayoutSummary + public async System.Threading.Tasks.Task GetPayoutSummariesAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + ApiResponse localVarResponse = await GetPayoutSummariesAsyncWithHttpInfo(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of ApiResponse (RestApiArrayResultPayoutSummary) + public async System.Threading.Tasks.Task> GetPayoutSummariesAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayoutSummaries"); + + var localVarPath = "./api/v1.0/{appId}/payouts/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (payoutRequestIdsBankAccountIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.bankAccountIds", payoutRequestIdsBankAccountIds)); // query parameter + if (payoutRequestIdsStates != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.states", payoutRequestIdsStates)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayoutSummaries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPayoutSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPayoutSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// RestApiPaginationResultPayout + public RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + ApiResponse localVarResponse = GetPayoutsWithHttpInfo(appId, startDate, endDate, page, limit, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// ApiResponse of RestApiPaginationResultPayout + public ApiResponse< RestApiPaginationResultPayout > GetPayoutsWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayouts"); + + var localVarPath = "./api/v1.0/{appId}/payouts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (payoutRequestIdsBankAccountIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.bankAccountIds", payoutRequestIdsBankAccountIds)); // query parameter + if (payoutRequestIdsStates != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.states", payoutRequestIdsStates)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayouts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayout) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayout))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of RestApiPaginationResultPayout + public async System.Threading.Tasks.Task GetPayoutsAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + ApiResponse localVarResponse = await GetPayoutsAsyncWithHttpInfo(appId, startDate, endDate, page, limit, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// List of bank account ids to search for (optional) + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for (optional) + /// Task of ApiResponse (RestApiPaginationResultPayout) + public async System.Threading.Tasks.Task> GetPayoutsAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PayoutsApi->GetPayouts"); + + var localVarPath = "./api/v1.0/{appId}/payouts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (payoutRequestIdsBankAccountIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.bankAccountIds", payoutRequestIdsBankAccountIds)); // query parameter + if (payoutRequestIdsStates != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "payoutRequestIds.states", payoutRequestIdsStates)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayouts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPayout) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayout))); + } + + } +} diff --git a/src/Flipdish/Api/ProcessingFeeConfigsApi.cs b/src/Flipdish/Api/ProcessingFeeConfigsApi.cs new file mode 100644 index 00000000..6d027817 --- /dev/null +++ b/src/Flipdish/Api/ProcessingFeeConfigsApi.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProcessingFeeConfigsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultProcessingFeeConfig + RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultProcessingFeeConfig + ApiResponse GetProcessingFeeConfigsByStoreIdsWithHttpInfo (List storeIds); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultProcessingFeeConfig + System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdsAsync (List storeIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) + System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdsAsyncWithHttpInfo (List storeIds); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProcessingFeeConfigsApi : IProcessingFeeConfigsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProcessingFeeConfigsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProcessingFeeConfigsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultProcessingFeeConfig + public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds) + { + ApiResponse localVarResponse = GetProcessingFeeConfigsByStoreIdsWithHttpInfo(storeIds); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultProcessingFeeConfig + public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdsWithHttpInfo (List storeIds) + { + // verify the required parameter 'storeIds' is set + if (storeIds == null) + throw new ApiException(400, "Missing required parameter 'storeIds' when calling ProcessingFeeConfigsApi->GetProcessingFeeConfigsByStoreIds"); + + var localVarPath = "./api/v1.0/processingfeeconfigs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreIds", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultProcessingFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultProcessingFeeConfig + public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdsAsync (List storeIds) + { + ApiResponse localVarResponse = await GetProcessingFeeConfigsByStoreIdsAsyncWithHttpInfo(storeIds); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) + public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdsAsyncWithHttpInfo (List storeIds) + { + // verify the required parameter 'storeIds' is set + if (storeIds == null) + throw new ApiException(400, "Missing required parameter 'storeIds' when calling ProcessingFeeConfigsApi->GetProcessingFeeConfigsByStoreIds"); + + var localVarPath = "./api/v1.0/processingfeeconfigs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreIds", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultProcessingFeeConfig))); + } + + } +} diff --git a/src/Flipdish/Api/PushNotificationsApi.cs b/src/Flipdish/Api/PushNotificationsApi.cs new file mode 100644 index 00000000..9019195e --- /dev/null +++ b/src/Flipdish/Api/PushNotificationsApi.cs @@ -0,0 +1,1032 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPushNotificationsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeletePushNotification (string appId, int? scheduledPushNotificationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeletePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultPushNotificationResponse + RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPushNotificationResponse + ApiResponse GetPushNotificationsWithHttpInfo (string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPushNotificationResponse + RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPushNotificationResponse + ApiResponse SchedulePushNotificationWithHttpInfo (string appId, PushNotificationRequest notification); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultPushNotificationResponse + RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultPushNotificationResponse + ApiResponse UpdatePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeletePushNotificationAsync (string appId, int? scheduledPushNotificationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeletePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPushNotificationResponse + System.Threading.Tasks.Task GetPushNotificationsAsync (string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPushNotificationResponse) + System.Threading.Tasks.Task> GetPushNotificationsAsyncWithHttpInfo (string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPushNotificationResponse + System.Threading.Tasks.Task SchedulePushNotificationAsync (string appId, PushNotificationRequest notification); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPushNotificationResponse) + System.Threading.Tasks.Task> SchedulePushNotificationAsyncWithHttpInfo (string appId, PushNotificationRequest notification); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultPushNotificationResponse + System.Threading.Tasks.Task UpdatePushNotificationAsync (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultPushNotificationResponse) + System.Threading.Tasks.Task> UpdatePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PushNotificationsApi : IPushNotificationsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PushNotificationsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PushNotificationsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeletePushNotification (string appId, int? scheduledPushNotificationId) + { + DeletePushNotificationWithHttpInfo(appId, scheduledPushNotificationId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeletePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->DeletePushNotification"); + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId == null) + throw new ApiException(400, "Missing required parameter 'scheduledPushNotificationId' when calling PushNotificationsApi->DeletePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (scheduledPushNotificationId != null) localVarPathParams.Add("scheduledPushNotificationId", this.Configuration.ApiClient.ParameterToString(scheduledPushNotificationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeletePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeletePushNotificationAsync (string appId, int? scheduledPushNotificationId) + { + await DeletePushNotificationAsyncWithHttpInfo(appId, scheduledPushNotificationId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeletePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->DeletePushNotification"); + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId == null) + throw new ApiException(400, "Missing required parameter 'scheduledPushNotificationId' when calling PushNotificationsApi->DeletePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (scheduledPushNotificationId != null) localVarPathParams.Add("scheduledPushNotificationId", this.Configuration.ApiClient.ParameterToString(scheduledPushNotificationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeletePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultPushNotificationResponse + public RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetPushNotificationsWithHttpInfo(appId, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPushNotificationResponse + public ApiResponse< RestApiPaginationResultPushNotificationResponse > GetPushNotificationsWithHttpInfo (string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->GetPushNotifications"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPushNotifications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPushNotificationResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultPushNotificationResponse + public async System.Threading.Tasks.Task GetPushNotificationsAsync (string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetPushNotificationsAsyncWithHttpInfo(appId, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultPushNotificationResponse) + public async System.Threading.Tasks.Task> GetPushNotificationsAsyncWithHttpInfo (string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->GetPushNotifications"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPushNotifications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPushNotificationResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPushNotificationResponse + public RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification) + { + ApiResponse localVarResponse = SchedulePushNotificationWithHttpInfo(appId, notification); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPushNotificationResponse + public ApiResponse< RestApiResultPushNotificationResponse > SchedulePushNotificationWithHttpInfo (string appId, PushNotificationRequest notification) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->SchedulePushNotification"); + // verify the required parameter 'notification' is set + if (notification == null) + throw new ApiException(400, "Missing required parameter 'notification' when calling PushNotificationsApi->SchedulePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (notification != null && notification.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(notification); // http body (model) parameter + } + else + { + localVarPostBody = notification; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SchedulePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPushNotificationResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPushNotificationResponse + public async System.Threading.Tasks.Task SchedulePushNotificationAsync (string appId, PushNotificationRequest notification) + { + ApiResponse localVarResponse = await SchedulePushNotificationAsyncWithHttpInfo(appId, notification); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPushNotificationResponse) + public async System.Threading.Tasks.Task> SchedulePushNotificationAsyncWithHttpInfo (string appId, PushNotificationRequest notification) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->SchedulePushNotification"); + // verify the required parameter 'notification' is set + if (notification == null) + throw new ApiException(400, "Missing required parameter 'notification' when calling PushNotificationsApi->SchedulePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (notification != null && notification.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(notification); // http body (model) parameter + } + else + { + localVarPostBody = notification; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SchedulePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPushNotificationResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultPushNotificationResponse + public RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) + { + ApiResponse localVarResponse = UpdatePushNotificationWithHttpInfo(appId, scheduledPushNotificationId, notification); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultPushNotificationResponse + public ApiResponse< RestApiResultPushNotificationResponse > UpdatePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->UpdatePushNotification"); + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId == null) + throw new ApiException(400, "Missing required parameter 'scheduledPushNotificationId' when calling PushNotificationsApi->UpdatePushNotification"); + // verify the required parameter 'notification' is set + if (notification == null) + throw new ApiException(400, "Missing required parameter 'notification' when calling PushNotificationsApi->UpdatePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (scheduledPushNotificationId != null) localVarPathParams.Add("scheduledPushNotificationId", this.Configuration.ApiClient.ParameterToString(scheduledPushNotificationId)); // path parameter + if (notification != null && notification.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(notification); // http body (model) parameter + } + else + { + localVarPostBody = notification; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPushNotificationResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultPushNotificationResponse + public async System.Threading.Tasks.Task UpdatePushNotificationAsync (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) + { + ApiResponse localVarResponse = await UpdatePushNotificationAsyncWithHttpInfo(appId, scheduledPushNotificationId, notification); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultPushNotificationResponse) + public async System.Threading.Tasks.Task> UpdatePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling PushNotificationsApi->UpdatePushNotification"); + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId == null) + throw new ApiException(400, "Missing required parameter 'scheduledPushNotificationId' when calling PushNotificationsApi->UpdatePushNotification"); + // verify the required parameter 'notification' is set + if (notification == null) + throw new ApiException(400, "Missing required parameter 'notification' when calling PushNotificationsApi->UpdatePushNotification"); + + var localVarPath = "./api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (scheduledPushNotificationId != null) localVarPathParams.Add("scheduledPushNotificationId", this.Configuration.ApiClient.ParameterToString(scheduledPushNotificationId)); // path parameter + if (notification != null && notification.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(notification); // http body (model) parameter + } + else + { + localVarPostBody = notification; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPushNotificationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPushNotificationResponse))); + } + + } +} diff --git a/src/Flipdish/Api/ReceiptsApi.cs b/src/Flipdish/Api/ReceiptsApi.cs new file mode 100644 index 00000000..ce8f27aa --- /dev/null +++ b/src/Flipdish/Api/ReceiptsApi.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IReceiptsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// GetReceiptByOrderIdQueryResponse + GetReceiptByOrderIdQueryResponse GetReceipt (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of GetReceiptByOrderIdQueryResponse + ApiResponse GetReceiptWithHttpInfo (int? orderId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of GetReceiptByOrderIdQueryResponse + System.Threading.Tasks.Task GetReceiptAsync (int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (GetReceiptByOrderIdQueryResponse) + System.Threading.Tasks.Task> GetReceiptAsyncWithHttpInfo (int? orderId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ReceiptsApi : IReceiptsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ReceiptsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ReceiptsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// GetReceiptByOrderIdQueryResponse + public GetReceiptByOrderIdQueryResponse GetReceipt (int? orderId) + { + ApiResponse localVarResponse = GetReceiptWithHttpInfo(orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of GetReceiptByOrderIdQueryResponse + public ApiResponse< GetReceiptByOrderIdQueryResponse > GetReceiptWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling ReceiptsApi->GetReceipt"); + + var localVarPath = "./api/v1.0/receipts/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetReceipt", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (GetReceiptByOrderIdQueryResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetReceiptByOrderIdQueryResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of GetReceiptByOrderIdQueryResponse + public async System.Threading.Tasks.Task GetReceiptAsync (int? orderId) + { + ApiResponse localVarResponse = await GetReceiptAsyncWithHttpInfo(orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (GetReceiptByOrderIdQueryResponse) + public async System.Threading.Tasks.Task> GetReceiptAsyncWithHttpInfo (int? orderId) + { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling ReceiptsApi->GetReceipt"); + + var localVarPath = "./api/v1.0/receipts/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetReceipt", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (GetReceiptByOrderIdQueryResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetReceiptByOrderIdQueryResponse))); + } + + } +} diff --git a/src/Flipdish/Api/RestaurantVouchersPayGreenApi.cs b/src/Flipdish/Api/RestaurantVouchersPayGreenApi.cs new file mode 100644 index 00000000..c1c1a67b --- /dev/null +++ b/src/Flipdish/Api/RestaurantVouchersPayGreenApi.cs @@ -0,0 +1,2083 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IRestaurantVouchersPayGreenApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + RestApiResultRestaurantVoucherPayGreenConfiguration CreatePayGreenConfiguration (string appId, CreatePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + ApiResponse CreatePayGreenConfigurationWithHttpInfo (string appId, CreatePayGreenConfigurationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object DeletePayGreenConfiguration (string appId, int? paygreenConfigurationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse DeletePayGreenConfigurationWithHttpInfo (string appId, int? paygreenConfigurationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRestaurantVoucherEligibleStore + RestApiArrayResultRestaurantVoucherEligibleStore GetElegibleStores (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherEligibleStore + ApiResponse GetElegibleStoresWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRestaurantVoucherPayGreenConfiguration + RestApiArrayResultRestaurantVoucherPayGreenConfiguration GetPayGreenConfigurations (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherPayGreenConfiguration + ApiResponse GetPayGreenConfigurationsWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary GetStoreAvailablePayGreenConfigurations (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + ApiResponse GetStoreAvailablePayGreenConfigurationsWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenStoreConfiguration + RestApiResultRestaurantVoucherPayGreenStoreConfiguration GetStorePayGreenConfiguration_ (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + ApiResponse GetStorePayGreenConfiguration_WithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + RestApiResultRestaurantVoucherPayGreenConfiguration ListPayGreenConfigurations (string appId, int? paygreenConfigurationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + ApiResponse ListPayGreenConfigurationsWithHttpInfo (string appId, int? paygreenConfigurationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + RestApiResultRestaurantVoucherPayGreenConfiguration UpdatePayGreenConfiguration (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + ApiResponse UpdatePayGreenConfigurationWithHttpInfo (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRestaurantVoucherPayGreenStoreConfiguration + RestApiResultRestaurantVoucherPayGreenStoreConfiguration UpdateStorePayGreenConfiguration_ (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + ApiResponse UpdateStorePayGreenConfiguration_WithHttpInfo (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + System.Threading.Tasks.Task CreatePayGreenConfigurationAsync (string appId, CreatePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + System.Threading.Tasks.Task> CreatePayGreenConfigurationAsyncWithHttpInfo (string appId, CreatePayGreenConfigurationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task DeletePayGreenConfigurationAsync (string appId, int? paygreenConfigurationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DeletePayGreenConfigurationAsyncWithHttpInfo (string appId, int? paygreenConfigurationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRestaurantVoucherEligibleStore + System.Threading.Tasks.Task GetElegibleStoresAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherEligibleStore) + System.Threading.Tasks.Task> GetElegibleStoresAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRestaurantVoucherPayGreenConfiguration + System.Threading.Tasks.Task GetPayGreenConfigurationsAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherPayGreenConfiguration) + System.Threading.Tasks.Task> GetPayGreenConfigurationsAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + System.Threading.Tasks.Task GetStoreAvailablePayGreenConfigurationsAsync (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary) + System.Threading.Tasks.Task> GetStoreAvailablePayGreenConfigurationsAsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + System.Threading.Tasks.Task GetStorePayGreenConfiguration_Async (string appId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) + System.Threading.Tasks.Task> GetStorePayGreenConfiguration_AsyncWithHttpInfo (string appId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + System.Threading.Tasks.Task ListPayGreenConfigurationsAsync (string appId, int? paygreenConfigurationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + System.Threading.Tasks.Task> ListPayGreenConfigurationsAsyncWithHttpInfo (string appId, int? paygreenConfigurationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + System.Threading.Tasks.Task UpdatePayGreenConfigurationAsync (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + System.Threading.Tasks.Task> UpdatePayGreenConfigurationAsyncWithHttpInfo (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + System.Threading.Tasks.Task UpdateStorePayGreenConfiguration_Async (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) + System.Threading.Tasks.Task> UpdateStorePayGreenConfiguration_AsyncWithHttpInfo (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class RestaurantVouchersPayGreenApi : IRestaurantVouchersPayGreenApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public RestaurantVouchersPayGreenApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public RestaurantVouchersPayGreenApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + public RestApiResultRestaurantVoucherPayGreenConfiguration CreatePayGreenConfiguration (string appId, CreatePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = CreatePayGreenConfigurationWithHttpInfo(appId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + public ApiResponse< RestApiResultRestaurantVoucherPayGreenConfiguration > CreatePayGreenConfigurationWithHttpInfo (string appId, CreatePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->CreatePayGreenConfiguration"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->CreatePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreatePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + public async System.Threading.Tasks.Task CreatePayGreenConfigurationAsync (string appId, CreatePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = await CreatePayGreenConfigurationAsyncWithHttpInfo(appId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + public async System.Threading.Tasks.Task> CreatePayGreenConfigurationAsyncWithHttpInfo (string appId, CreatePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->CreatePayGreenConfiguration"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->CreatePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreatePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object DeletePayGreenConfiguration (string appId, int? paygreenConfigurationId) + { + ApiResponse localVarResponse = DeletePayGreenConfigurationWithHttpInfo(appId, paygreenConfigurationId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > DeletePayGreenConfigurationWithHttpInfo (string appId, int? paygreenConfigurationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->DeletePayGreenConfiguration"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->DeletePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeletePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task DeletePayGreenConfigurationAsync (string appId, int? paygreenConfigurationId) + { + ApiResponse localVarResponse = await DeletePayGreenConfigurationAsyncWithHttpInfo(appId, paygreenConfigurationId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DeletePayGreenConfigurationAsyncWithHttpInfo (string appId, int? paygreenConfigurationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->DeletePayGreenConfiguration"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->DeletePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeletePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRestaurantVoucherEligibleStore + public RestApiArrayResultRestaurantVoucherEligibleStore GetElegibleStores (string appId) + { + ApiResponse localVarResponse = GetElegibleStoresWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherEligibleStore + public ApiResponse< RestApiArrayResultRestaurantVoucherEligibleStore > GetElegibleStoresWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetElegibleStores"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetElegibleStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherEligibleStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherEligibleStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRestaurantVoucherEligibleStore + public async System.Threading.Tasks.Task GetElegibleStoresAsync (string appId) + { + ApiResponse localVarResponse = await GetElegibleStoresAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherEligibleStore) + public async System.Threading.Tasks.Task> GetElegibleStoresAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetElegibleStores"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetElegibleStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherEligibleStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherEligibleStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultRestaurantVoucherPayGreenConfiguration + public RestApiArrayResultRestaurantVoucherPayGreenConfiguration GetPayGreenConfigurations (string appId) + { + ApiResponse localVarResponse = GetPayGreenConfigurationsWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherPayGreenConfiguration + public ApiResponse< RestApiArrayResultRestaurantVoucherPayGreenConfiguration > GetPayGreenConfigurationsWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetPayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultRestaurantVoucherPayGreenConfiguration + public async System.Threading.Tasks.Task GetPayGreenConfigurationsAsync (string appId) + { + ApiResponse localVarResponse = await GetPayGreenConfigurationsAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherPayGreenConfiguration) + public async System.Threading.Tasks.Task> GetPayGreenConfigurationsAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetPayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + public RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary GetStoreAvailablePayGreenConfigurations (string appId, int? storeId) + { + ApiResponse localVarResponse = GetStoreAvailablePayGreenConfigurationsWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + public ApiResponse< RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary > GetStoreAvailablePayGreenConfigurationsWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetStoreAvailablePayGreenConfigurations"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->GetStoreAvailablePayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreAvailablePayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + public async System.Threading.Tasks.Task GetStoreAvailablePayGreenConfigurationsAsync (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetStoreAvailablePayGreenConfigurationsAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary) + public async System.Threading.Tasks.Task> GetStoreAvailablePayGreenConfigurationsAsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetStoreAvailablePayGreenConfigurations"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->GetStoreAvailablePayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreAvailablePayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public RestApiResultRestaurantVoucherPayGreenStoreConfiguration GetStorePayGreenConfiguration_ (string appId, int? storeId) + { + ApiResponse localVarResponse = GetStorePayGreenConfiguration_WithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public ApiResponse< RestApiResultRestaurantVoucherPayGreenStoreConfiguration > GetStorePayGreenConfiguration_WithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetStorePayGreenConfiguration_"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->GetStorePayGreenConfiguration_"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStorePayGreenConfiguration_", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenStoreConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public async System.Threading.Tasks.Task GetStorePayGreenConfiguration_Async (string appId, int? storeId) + { + ApiResponse localVarResponse = await GetStorePayGreenConfiguration_AsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) + public async System.Threading.Tasks.Task> GetStorePayGreenConfiguration_AsyncWithHttpInfo (string appId, int? storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->GetStorePayGreenConfiguration_"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->GetStorePayGreenConfiguration_"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStorePayGreenConfiguration_", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenStoreConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + public RestApiResultRestaurantVoucherPayGreenConfiguration ListPayGreenConfigurations (string appId, int? paygreenConfigurationId) + { + ApiResponse localVarResponse = ListPayGreenConfigurationsWithHttpInfo(appId, paygreenConfigurationId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + public ApiResponse< RestApiResultRestaurantVoucherPayGreenConfiguration > ListPayGreenConfigurationsWithHttpInfo (string appId, int? paygreenConfigurationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->ListPayGreenConfigurations"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->ListPayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListPayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + public async System.Threading.Tasks.Task ListPayGreenConfigurationsAsync (string appId, int? paygreenConfigurationId) + { + ApiResponse localVarResponse = await ListPayGreenConfigurationsAsyncWithHttpInfo(appId, paygreenConfigurationId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + public async System.Threading.Tasks.Task> ListPayGreenConfigurationsAsyncWithHttpInfo (string appId, int? paygreenConfigurationId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->ListPayGreenConfigurations"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->ListPayGreenConfigurations"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ListPayGreenConfigurations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRestaurantVoucherPayGreenConfiguration + public RestApiResultRestaurantVoucherPayGreenConfiguration UpdatePayGreenConfiguration (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = UpdatePayGreenConfigurationWithHttpInfo(appId, paygreenConfigurationId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenConfiguration + public ApiResponse< RestApiResultRestaurantVoucherPayGreenConfiguration > UpdatePayGreenConfigurationWithHttpInfo (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenConfiguration + public async System.Threading.Tasks.Task UpdatePayGreenConfigurationAsync (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = await UpdatePayGreenConfigurationAsyncWithHttpInfo(appId, paygreenConfigurationId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenConfiguration) + public async System.Threading.Tasks.Task> UpdatePayGreenConfigurationAsyncWithHttpInfo (string appId, int? paygreenConfigurationId, UpdatePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId == null) + throw new ApiException(400, "Missing required parameter 'paygreenConfigurationId' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->UpdatePayGreenConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (paygreenConfigurationId != null) localVarPathParams.Add("paygreenConfigurationId", this.Configuration.ApiClient.ParameterToString(paygreenConfigurationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePayGreenConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public RestApiResultRestaurantVoucherPayGreenStoreConfiguration UpdateStorePayGreenConfiguration_ (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = UpdateStorePayGreenConfiguration_WithHttpInfo(appId, storeId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public ApiResponse< RestApiResultRestaurantVoucherPayGreenStoreConfiguration > UpdateStorePayGreenConfiguration_WithHttpInfo (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStorePayGreenConfiguration_", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenStoreConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultRestaurantVoucherPayGreenStoreConfiguration + public async System.Threading.Tasks.Task UpdateStorePayGreenConfiguration_Async (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request) + { + ApiResponse localVarResponse = await UpdateStorePayGreenConfiguration_AsyncWithHttpInfo(appId, storeId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) + public async System.Threading.Tasks.Task> UpdateStorePayGreenConfiguration_AsyncWithHttpInfo (string appId, int? storeId, UpdateStorePayGreenConfigurationRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling RestaurantVouchersPayGreenApi->UpdateStorePayGreenConfiguration_"); + + var localVarPath = "./api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStorePayGreenConfiguration_", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestaurantVoucherPayGreenStoreConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestaurantVoucherPayGreenStoreConfiguration))); + } + + } +} diff --git a/src/Flipdish/Api/SearchApi.cs b/src/Flipdish/Api/SearchApi.cs new file mode 100644 index 00000000..990bb62f --- /dev/null +++ b/src/Flipdish/Api/SearchApi.cs @@ -0,0 +1,389 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISearchApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultRestaurant + RestApiPaginationResultRestaurant SearchRestaurants (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultRestaurant + ApiResponse SearchRestaurantsWithHttpInfo (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultRestaurant + System.Threading.Tasks.Task SearchRestaurantsAsync (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultRestaurant) + System.Threading.Tasks.Task> SearchRestaurantsAsyncWithHttpInfo (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SearchApi : ISearchApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SearchApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SearchApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultRestaurant + public RestApiPaginationResultRestaurant SearchRestaurants (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = SearchRestaurantsWithHttpInfo(query, countryId, includeArchivedStores, searchType, publishedStatus, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultRestaurant + public ApiResponse< RestApiPaginationResultRestaurant > SearchRestaurantsWithHttpInfo (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null) + { + // verify the required parameter 'query' is set + if (query == null) + throw new ApiException(400, "Missing required parameter 'query' when calling SearchApi->SearchRestaurants"); + // verify the required parameter 'countryId' is set + if (countryId == null) + throw new ApiException(400, "Missing required parameter 'countryId' when calling SearchApi->SearchRestaurants"); + + var localVarPath = "./api/v1.0/search/restaurants"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (countryId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "countryId", countryId)); // query parameter + if (includeArchivedStores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeArchivedStores", includeArchivedStores)); // query parameter + if (searchType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchType", searchType)); // query parameter + if (publishedStatus != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "publishedStatus", publishedStatus)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchRestaurants", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultRestaurant) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultRestaurant))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultRestaurant + public async System.Threading.Tasks.Task SearchRestaurantsAsync (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await SearchRestaurantsAsyncWithHttpInfo(query, countryId, includeArchivedStores, searchType, publishedStatus, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultRestaurant) + public async System.Threading.Tasks.Task> SearchRestaurantsAsyncWithHttpInfo (string query, string countryId, string includeArchivedStores = null, string searchType = null, string publishedStatus = null, int? page = null, int? limit = null) + { + // verify the required parameter 'query' is set + if (query == null) + throw new ApiException(400, "Missing required parameter 'query' when calling SearchApi->SearchRestaurants"); + // verify the required parameter 'countryId' is set + if (countryId == null) + throw new ApiException(400, "Missing required parameter 'countryId' when calling SearchApi->SearchRestaurants"); + + var localVarPath = "./api/v1.0/search/restaurants"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (countryId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "countryId", countryId)); // query parameter + if (includeArchivedStores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeArchivedStores", includeArchivedStores)); // query parameter + if (searchType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchType", searchType)); // query parameter + if (publishedStatus != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "publishedStatus", publishedStatus)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchRestaurants", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultRestaurant) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultRestaurant))); + } + + } +} diff --git a/src/Flipdish/Api/SmsProviderCredentialsApi.cs b/src/Flipdish/Api/SmsProviderCredentialsApi.cs new file mode 100644 index 00000000..df5ecb20 --- /dev/null +++ b/src/Flipdish/Api/SmsProviderCredentialsApi.cs @@ -0,0 +1,1281 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISmsProviderCredentialsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultSmsProviderCredential + RestApiResultSmsProviderCredential GetBrandSmsProviderCredentialByServiceType (string orgId, string brandId, string serviceType, bool? withFallback = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultSmsProviderCredential + ApiResponse GetBrandSmsProviderCredentialByServiceTypeWithHttpInfo (string orgId, string brandId, string serviceType, bool? withFallback = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultSmsProviderCredential + RestApiArrayResultSmsProviderCredential GetBrandSmsProviderCredentials (string orgId, string brandId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultSmsProviderCredential + ApiResponse GetBrandSmsProviderCredentialsWithHttpInfo (string orgId, string brandId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultSmsProviderCredential + RestApiResultSmsProviderCredential SmsProviderCredentialDelete (string orgId, string brandId, string serviceType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultSmsProviderCredential + ApiResponse SmsProviderCredentialDeleteWithHttpInfo (string orgId, string brandId, string serviceType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultSmsProviderCredential + RestApiResultSmsProviderCredential SmsProviderCredentialUpdate (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultSmsProviderCredential + ApiResponse SmsProviderCredentialUpdateWithHttpInfo (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultSmsProviderCredential + RestApiArrayResultSmsProviderCredential SmsProviderCredentialsBulkUpsert (List credentials); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultSmsProviderCredential + ApiResponse SmsProviderCredentialsBulkUpsertWithHttpInfo (List credentials); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultSmsProviderCredential + System.Threading.Tasks.Task GetBrandSmsProviderCredentialByServiceTypeAsync (string orgId, string brandId, string serviceType, bool? withFallback = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + System.Threading.Tasks.Task> GetBrandSmsProviderCredentialByServiceTypeAsyncWithHttpInfo (string orgId, string brandId, string serviceType, bool? withFallback = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultSmsProviderCredential + System.Threading.Tasks.Task GetBrandSmsProviderCredentialsAsync (string orgId, string brandId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultSmsProviderCredential) + System.Threading.Tasks.Task> GetBrandSmsProviderCredentialsAsyncWithHttpInfo (string orgId, string brandId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultSmsProviderCredential + System.Threading.Tasks.Task SmsProviderCredentialDeleteAsync (string orgId, string brandId, string serviceType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + System.Threading.Tasks.Task> SmsProviderCredentialDeleteAsyncWithHttpInfo (string orgId, string brandId, string serviceType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultSmsProviderCredential + System.Threading.Tasks.Task SmsProviderCredentialUpdateAsync (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + System.Threading.Tasks.Task> SmsProviderCredentialUpdateAsyncWithHttpInfo (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultSmsProviderCredential + System.Threading.Tasks.Task SmsProviderCredentialsBulkUpsertAsync (List credentials); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultSmsProviderCredential) + System.Threading.Tasks.Task> SmsProviderCredentialsBulkUpsertAsyncWithHttpInfo (List credentials); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SmsProviderCredentialsApi : ISmsProviderCredentialsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SmsProviderCredentialsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SmsProviderCredentialsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultSmsProviderCredential + public RestApiResultSmsProviderCredential GetBrandSmsProviderCredentialByServiceType (string orgId, string brandId, string serviceType, bool? withFallback = null) + { + ApiResponse localVarResponse = GetBrandSmsProviderCredentialByServiceTypeWithHttpInfo(orgId, brandId, serviceType, withFallback); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultSmsProviderCredential + public ApiResponse< RestApiResultSmsProviderCredential > GetBrandSmsProviderCredentialByServiceTypeWithHttpInfo (string orgId, string brandId, string serviceType, bool? withFallback = null) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + if (withFallback != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "withFallback", withFallback)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBrandSmsProviderCredentialByServiceType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultSmsProviderCredential + public async System.Threading.Tasks.Task GetBrandSmsProviderCredentialByServiceTypeAsync (string orgId, string brandId, string serviceType, bool? withFallback = null) + { + ApiResponse localVarResponse = await GetBrandSmsProviderCredentialByServiceTypeAsyncWithHttpInfo(orgId, brandId, serviceType, withFallback); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + public async System.Threading.Tasks.Task> GetBrandSmsProviderCredentialByServiceTypeAsyncWithHttpInfo (string orgId, string brandId, string serviceType, bool? withFallback = null) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentialByServiceType"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + if (withFallback != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "withFallback", withFallback)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBrandSmsProviderCredentialByServiceType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultSmsProviderCredential + public RestApiArrayResultSmsProviderCredential GetBrandSmsProviderCredentials (string orgId, string brandId) + { + ApiResponse localVarResponse = GetBrandSmsProviderCredentialsWithHttpInfo(orgId, brandId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultSmsProviderCredential + public ApiResponse< RestApiArrayResultSmsProviderCredential > GetBrandSmsProviderCredentialsWithHttpInfo (string orgId, string brandId) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentials"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentials"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBrandSmsProviderCredentials", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultSmsProviderCredential + public async System.Threading.Tasks.Task GetBrandSmsProviderCredentialsAsync (string orgId, string brandId) + { + ApiResponse localVarResponse = await GetBrandSmsProviderCredentialsAsyncWithHttpInfo(orgId, brandId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultSmsProviderCredential) + public async System.Threading.Tasks.Task> GetBrandSmsProviderCredentialsAsyncWithHttpInfo (string orgId, string brandId) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentials"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->GetBrandSmsProviderCredentials"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBrandSmsProviderCredentials", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultSmsProviderCredential + public RestApiResultSmsProviderCredential SmsProviderCredentialDelete (string orgId, string brandId, string serviceType) + { + ApiResponse localVarResponse = SmsProviderCredentialDeleteWithHttpInfo(orgId, brandId, serviceType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultSmsProviderCredential + public ApiResponse< RestApiResultSmsProviderCredential > SmsProviderCredentialDeleteWithHttpInfo (string orgId, string brandId, string serviceType) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialDelete", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultSmsProviderCredential + public async System.Threading.Tasks.Task SmsProviderCredentialDeleteAsync (string orgId, string brandId, string serviceType) + { + ApiResponse localVarResponse = await SmsProviderCredentialDeleteAsyncWithHttpInfo(orgId, brandId, serviceType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + public async System.Threading.Tasks.Task> SmsProviderCredentialDeleteAsyncWithHttpInfo (string orgId, string brandId, string serviceType) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->SmsProviderCredentialDelete"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialDelete", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultSmsProviderCredential + public RestApiResultSmsProviderCredential SmsProviderCredentialUpdate (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential) + { + ApiResponse localVarResponse = SmsProviderCredentialUpdateWithHttpInfo(orgId, brandId, serviceType, credential); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultSmsProviderCredential + public ApiResponse< RestApiResultSmsProviderCredential > SmsProviderCredentialUpdateWithHttpInfo (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'credential' is set + if (credential == null) + throw new ApiException(400, "Missing required parameter 'credential' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + if (credential != null && credential.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(credential); // http body (model) parameter + } + else + { + localVarPostBody = credential; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultSmsProviderCredential + public async System.Threading.Tasks.Task SmsProviderCredentialUpdateAsync (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential) + { + ApiResponse localVarResponse = await SmsProviderCredentialUpdateAsyncWithHttpInfo(orgId, brandId, serviceType, credential); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultSmsProviderCredential) + public async System.Threading.Tasks.Task> SmsProviderCredentialUpdateAsyncWithHttpInfo (string orgId, string brandId, string serviceType, SmsProviderCredentialUpdateRequest credential) + { + // verify the required parameter 'orgId' is set + if (orgId == null) + throw new ApiException(400, "Missing required parameter 'orgId' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'brandId' is set + if (brandId == null) + throw new ApiException(400, "Missing required parameter 'brandId' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'serviceType' is set + if (serviceType == null) + throw new ApiException(400, "Missing required parameter 'serviceType' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + // verify the required parameter 'credential' is set + if (credential == null) + throw new ApiException(400, "Missing required parameter 'credential' when calling SmsProviderCredentialsApi->SmsProviderCredentialUpdate"); + + var localVarPath = "./api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter + if (brandId != null) localVarPathParams.Add("brandId", this.Configuration.ApiClient.ParameterToString(brandId)); // path parameter + if (serviceType != null) localVarPathParams.Add("serviceType", this.Configuration.ApiClient.ParameterToString(serviceType)); // path parameter + if (credential != null && credential.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(credential); // http body (model) parameter + } + else + { + localVarPostBody = credential; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultSmsProviderCredential + public RestApiArrayResultSmsProviderCredential SmsProviderCredentialsBulkUpsert (List credentials) + { + ApiResponse localVarResponse = SmsProviderCredentialsBulkUpsertWithHttpInfo(credentials); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultSmsProviderCredential + public ApiResponse< RestApiArrayResultSmsProviderCredential > SmsProviderCredentialsBulkUpsertWithHttpInfo (List credentials) + { + // verify the required parameter 'credentials' is set + if (credentials == null) + throw new ApiException(400, "Missing required parameter 'credentials' when calling SmsProviderCredentialsApi->SmsProviderCredentialsBulkUpsert"); + + var localVarPath = "./api/v1.0/sms-providers/bulk-upsert"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (credentials != null && credentials.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter + } + else + { + localVarPostBody = credentials; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialsBulkUpsert", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSmsProviderCredential))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultSmsProviderCredential + public async System.Threading.Tasks.Task SmsProviderCredentialsBulkUpsertAsync (List credentials) + { + ApiResponse localVarResponse = await SmsProviderCredentialsBulkUpsertAsyncWithHttpInfo(credentials); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultSmsProviderCredential) + public async System.Threading.Tasks.Task> SmsProviderCredentialsBulkUpsertAsyncWithHttpInfo (List credentials) + { + // verify the required parameter 'credentials' is set + if (credentials == null) + throw new ApiException(400, "Missing required parameter 'credentials' when calling SmsProviderCredentialsApi->SmsProviderCredentialsBulkUpsert"); + + var localVarPath = "./api/v1.0/sms-providers/bulk-upsert"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (credentials != null && credentials.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(credentials); // http body (model) parameter + } + else + { + localVarPostBody = credentials; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SmsProviderCredentialsBulkUpsert", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSmsProviderCredential) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSmsProviderCredential))); + } + + } +} diff --git a/src/Flipdish/Api/StoreGroupsApi.cs b/src/Flipdish/Api/StoreGroupsApi.cs new file mode 100644 index 00000000..f0c1df97 --- /dev/null +++ b/src/Flipdish/Api/StoreGroupsApi.cs @@ -0,0 +1,1914 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStoreGroupsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void AssignStoresToStoreGroup (string appId, int? storeGroupId, List storeIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse AssignStoresToStoreGroupWithHttpInfo (string appId, int? storeGroupId, List storeIds); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreGroup + RestApiResultStoreGroup CreateStoreGroup (string appNameId, StoreGroupBase storeGroup); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreGroup + ApiResponse CreateStoreGroupWithHttpInfo (string appNameId, StoreGroupBase storeGroup); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStoreGroup + RestApiResultStoreGroup GetStoreGroup (int? storeGroupId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStoreGroup + ApiResponse GetStoreGroupWithHttpInfo (int? storeGroupId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreGroup + RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreGroup + ApiResponse GetStoreGroupsWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreGroupExtended + RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreGroupExtended + ApiResponse GetStoreGroupsExtendedWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void RemoveStoreGroup (int? storeGroupId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse RemoveStoreGroupWithHttpInfo (int? storeGroupId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void SetCustomerMessages (int? storeGroupId, CustomerMessages customerMessages); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetCustomerMessagesWithHttpInfo (int? storeGroupId, CustomerMessages customerMessages); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreGroupBase + RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGroupBase storeGroup); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreGroupBase + ApiResponse UpdateStoreGroupWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task AssignStoresToStoreGroupAsync (string appId, int? storeGroupId, List storeIds); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> AssignStoresToStoreGroupAsyncWithHttpInfo (string appId, int? storeGroupId, List storeIds); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreGroup + System.Threading.Tasks.Task CreateStoreGroupAsync (string appNameId, StoreGroupBase storeGroup); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreGroup) + System.Threading.Tasks.Task> CreateStoreGroupAsyncWithHttpInfo (string appNameId, StoreGroupBase storeGroup); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStoreGroup + System.Threading.Tasks.Task GetStoreGroupAsync (int? storeGroupId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStoreGroup) + System.Threading.Tasks.Task> GetStoreGroupAsyncWithHttpInfo (int? storeGroupId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreGroup + System.Threading.Tasks.Task GetStoreGroupsAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreGroup) + System.Threading.Tasks.Task> GetStoreGroupsAsyncWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreGroupExtended + System.Threading.Tasks.Task GetStoreGroupsExtendedAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreGroupExtended) + System.Threading.Tasks.Task> GetStoreGroupsExtendedAsyncWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task RemoveStoreGroupAsync (int? storeGroupId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RemoveStoreGroupAsyncWithHttpInfo (int? storeGroupId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task SetCustomerMessagesAsync (int? storeGroupId, CustomerMessages customerMessages); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetCustomerMessagesAsyncWithHttpInfo (int? storeGroupId, CustomerMessages customerMessages); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreGroupBase + System.Threading.Tasks.Task UpdateStoreGroupAsync (int? storeGroupId, StoreGroupBase storeGroup); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreGroupBase) + System.Threading.Tasks.Task> UpdateStoreGroupAsyncWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StoreGroupsApi : IStoreGroupsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public StoreGroupsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public StoreGroupsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void AssignStoresToStoreGroup (string appId, int? storeGroupId, List storeIds) + { + AssignStoresToStoreGroupWithHttpInfo(appId, storeGroupId, storeIds); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse AssignStoresToStoreGroupWithHttpInfo (string appId, int? storeGroupId, List storeIds) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + // verify the required parameter 'storeIds' is set + if (storeIds == null) + throw new ApiException(400, "Missing required parameter 'storeIds' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + + var localVarPath = "./api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (storeIds != null && storeIds.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeIds); // http body (model) parameter + } + else + { + localVarPostBody = storeIds; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignStoresToStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task AssignStoresToStoreGroupAsync (string appId, int? storeGroupId, List storeIds) + { + await AssignStoresToStoreGroupAsyncWithHttpInfo(appId, storeGroupId, storeIds); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> AssignStoresToStoreGroupAsyncWithHttpInfo (string appId, int? storeGroupId, List storeIds) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + // verify the required parameter 'storeIds' is set + if (storeIds == null) + throw new ApiException(400, "Missing required parameter 'storeIds' when calling StoreGroupsApi->AssignStoresToStoreGroup"); + + var localVarPath = "./api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (storeIds != null && storeIds.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeIds); // http body (model) parameter + } + else + { + localVarPostBody = storeIds; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignStoresToStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreGroup + public RestApiResultStoreGroup CreateStoreGroup (string appNameId, StoreGroupBase storeGroup) + { + ApiResponse localVarResponse = CreateStoreGroupWithHttpInfo(appNameId, storeGroup); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreGroup + public ApiResponse< RestApiResultStoreGroup > CreateStoreGroupWithHttpInfo (string appNameId, StoreGroupBase storeGroup) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->CreateStoreGroup"); + // verify the required parameter 'storeGroup' is set + if (storeGroup == null) + throw new ApiException(400, "Missing required parameter 'storeGroup' when calling StoreGroupsApi->CreateStoreGroup"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (storeGroup != null && storeGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeGroup); // http body (model) parameter + } + else + { + localVarPostBody = storeGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreGroup + public async System.Threading.Tasks.Task CreateStoreGroupAsync (string appNameId, StoreGroupBase storeGroup) + { + ApiResponse localVarResponse = await CreateStoreGroupAsyncWithHttpInfo(appNameId, storeGroup); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreGroup) + public async System.Threading.Tasks.Task> CreateStoreGroupAsyncWithHttpInfo (string appNameId, StoreGroupBase storeGroup) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->CreateStoreGroup"); + // verify the required parameter 'storeGroup' is set + if (storeGroup == null) + throw new ApiException(400, "Missing required parameter 'storeGroup' when calling StoreGroupsApi->CreateStoreGroup"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (storeGroup != null && storeGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeGroup); // http body (model) parameter + } + else + { + localVarPostBody = storeGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStoreGroup + public RestApiResultStoreGroup GetStoreGroup (int? storeGroupId) + { + ApiResponse localVarResponse = GetStoreGroupWithHttpInfo(storeGroupId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStoreGroup + public ApiResponse< RestApiResultStoreGroup > GetStoreGroupWithHttpInfo (int? storeGroupId) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->GetStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStoreGroup + public async System.Threading.Tasks.Task GetStoreGroupAsync (int? storeGroupId) + { + ApiResponse localVarResponse = await GetStoreGroupAsyncWithHttpInfo(storeGroupId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStoreGroup) + public async System.Threading.Tasks.Task> GetStoreGroupAsyncWithHttpInfo (int? storeGroupId) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->GetStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreGroup + public RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetStoreGroupsWithHttpInfo(appNameId, searchQuery, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreGroup + public ApiResponse< RestApiPaginationResultStoreGroup > GetStoreGroupsWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->GetStoreGroups"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreGroup + public async System.Threading.Tasks.Task GetStoreGroupsAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetStoreGroupsAsyncWithHttpInfo(appNameId, searchQuery, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreGroup) + public async System.Threading.Tasks.Task> GetStoreGroupsAsyncWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->GetStoreGroups"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreGroup))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreGroupExtended + public RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) + { + ApiResponse localVarResponse = GetStoreGroupsExtendedWithHttpInfo(appNameId, searchQuery, page, limit, groupingRadius); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreGroupExtended + public ApiResponse< RestApiPaginationResultStoreGroupExtended > GetStoreGroupsExtendedWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->GetStoreGroupsExtended"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups/extended"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (groupingRadius != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "groupingRadius", groupingRadius)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroupsExtended", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreGroupExtended) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreGroupExtended))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreGroupExtended + public async System.Threading.Tasks.Task GetStoreGroupsExtendedAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) + { + ApiResponse localVarResponse = await GetStoreGroupsExtendedAsyncWithHttpInfo(appNameId, searchQuery, page, limit, groupingRadius); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreGroupExtended) + public async System.Threading.Tasks.Task> GetStoreGroupsExtendedAsyncWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) + { + // verify the required parameter 'appNameId' is set + if (appNameId == null) + throw new ApiException(400, "Missing required parameter 'appNameId' when calling StoreGroupsApi->GetStoreGroupsExtended"); + + var localVarPath = "./api/v1.0/{appNameId}/storegroups/extended"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (groupingRadius != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "groupingRadius", groupingRadius)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreGroupsExtended", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreGroupExtended) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreGroupExtended))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void RemoveStoreGroup (int? storeGroupId) + { + RemoveStoreGroupWithHttpInfo(storeGroupId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse RemoveStoreGroupWithHttpInfo (int? storeGroupId) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->RemoveStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task RemoveStoreGroupAsync (int? storeGroupId) + { + await RemoveStoreGroupAsyncWithHttpInfo(storeGroupId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RemoveStoreGroupAsyncWithHttpInfo (int? storeGroupId) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->RemoveStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void SetCustomerMessages (int? storeGroupId, CustomerMessages customerMessages) + { + SetCustomerMessagesWithHttpInfo(storeGroupId, customerMessages); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetCustomerMessagesWithHttpInfo (int? storeGroupId, CustomerMessages customerMessages) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->SetCustomerMessages"); + // verify the required parameter 'customerMessages' is set + if (customerMessages == null) + throw new ApiException(400, "Missing required parameter 'customerMessages' when calling StoreGroupsApi->SetCustomerMessages"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}/CustomerMessages"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (customerMessages != null && customerMessages.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerMessages); // http body (model) parameter + } + else + { + localVarPostBody = customerMessages; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCustomerMessages", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetCustomerMessagesAsync (int? storeGroupId, CustomerMessages customerMessages) + { + await SetCustomerMessagesAsyncWithHttpInfo(storeGroupId, customerMessages); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetCustomerMessagesAsyncWithHttpInfo (int? storeGroupId, CustomerMessages customerMessages) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->SetCustomerMessages"); + // verify the required parameter 'customerMessages' is set + if (customerMessages == null) + throw new ApiException(400, "Missing required parameter 'customerMessages' when calling StoreGroupsApi->SetCustomerMessages"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}/CustomerMessages"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (customerMessages != null && customerMessages.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerMessages); // http body (model) parameter + } + else + { + localVarPostBody = customerMessages; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCustomerMessages", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreGroupBase + public RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGroupBase storeGroup) + { + ApiResponse localVarResponse = UpdateStoreGroupWithHttpInfo(storeGroupId, storeGroup); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreGroupBase + public ApiResponse< RestApiResultStoreGroupBase > UpdateStoreGroupWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->UpdateStoreGroup"); + // verify the required parameter 'storeGroup' is set + if (storeGroup == null) + throw new ApiException(400, "Missing required parameter 'storeGroup' when calling StoreGroupsApi->UpdateStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (storeGroup != null && storeGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeGroup); // http body (model) parameter + } + else + { + localVarPostBody = storeGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroupBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroupBase))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreGroupBase + public async System.Threading.Tasks.Task UpdateStoreGroupAsync (int? storeGroupId, StoreGroupBase storeGroup) + { + ApiResponse localVarResponse = await UpdateStoreGroupAsyncWithHttpInfo(storeGroupId, storeGroup); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreGroupBase) + public async System.Threading.Tasks.Task> UpdateStoreGroupAsyncWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoreGroupsApi->UpdateStoreGroup"); + // verify the required parameter 'storeGroup' is set + if (storeGroup == null) + throw new ApiException(400, "Missing required parameter 'storeGroup' when calling StoreGroupsApi->UpdateStoreGroup"); + + var localVarPath = "./api/v1.0/storegroups/{storeGroupId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarPathParams.Add("storeGroupId", this.Configuration.ApiClient.ParameterToString(storeGroupId)); // path parameter + if (storeGroup != null && storeGroup.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeGroup); // http body (model) parameter + } + else + { + localVarPostBody = storeGroup; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreGroupBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreGroupBase))); + } + + } +} diff --git a/src/Flipdish/Api/StoreOrderCapacityApi.cs b/src/Flipdish/Api/StoreOrderCapacityApi.cs new file mode 100644 index 00000000..27dfcc41 --- /dev/null +++ b/src/Flipdish/Api/StoreOrderCapacityApi.cs @@ -0,0 +1,618 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStoreOrderCapacityApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStoreOrderCapacityConfig + RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId, int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStoreOrderCapacityConfig + ApiResponse GetStoreOrderCapacityWithHttpInfo (string appId, int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateStoreOrderCapacityConfigWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStoreOrderCapacityConfig + System.Threading.Tasks.Task GetStoreOrderCapacityAsync (string appId, int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStoreOrderCapacityConfig) + System.Threading.Tasks.Task> GetStoreOrderCapacityAsyncWithHttpInfo (string appId, int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateStoreOrderCapacityConfigAsync (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateStoreOrderCapacityConfigAsyncWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StoreOrderCapacityApi : IStoreOrderCapacityApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public StoreOrderCapacityApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public StoreOrderCapacityApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStoreOrderCapacityConfig + public RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId, int? storeId, string deliveryType) + { + ApiResponse localVarResponse = GetStoreOrderCapacityWithHttpInfo(appId, storeId, deliveryType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStoreOrderCapacityConfig + public ApiResponse< RestApiResultStoreOrderCapacityConfig > GetStoreOrderCapacityWithHttpInfo (string appId, int? storeId, string deliveryType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + + var localVarPath = "./api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreOrderCapacity", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreOrderCapacityConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreOrderCapacityConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStoreOrderCapacityConfig + public async System.Threading.Tasks.Task GetStoreOrderCapacityAsync (string appId, int? storeId, string deliveryType) + { + ApiResponse localVarResponse = await GetStoreOrderCapacityAsyncWithHttpInfo(appId, storeId, deliveryType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStoreOrderCapacityConfig) + public async System.Threading.Tasks.Task> GetStoreOrderCapacityAsyncWithHttpInfo (string appId, int? storeId, string deliveryType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoreOrderCapacityApi->GetStoreOrderCapacity"); + + var localVarPath = "./api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreOrderCapacity", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreOrderCapacityConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreOrderCapacityConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) + { + UpdateStoreOrderCapacityConfigWithHttpInfo(storeId, deliveryType, newOrderCapacityConfig, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateStoreOrderCapacityConfigWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'newOrderCapacityConfig' is set + if (newOrderCapacityConfig == null) + throw new ApiException(400, "Missing required parameter 'newOrderCapacityConfig' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + + var localVarPath = "./api/v1.0/{appId}/storeordercapacity/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deliveryType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deliveryType", deliveryType)); // query parameter + if (newOrderCapacityConfig != null && newOrderCapacityConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(newOrderCapacityConfig); // http body (model) parameter + } + else + { + localVarPostBody = newOrderCapacityConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreOrderCapacityConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateStoreOrderCapacityConfigAsync (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) + { + await UpdateStoreOrderCapacityConfigAsyncWithHttpInfo(storeId, deliveryType, newOrderCapacityConfig, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateStoreOrderCapacityConfigAsyncWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'newOrderCapacityConfig' is set + if (newOrderCapacityConfig == null) + throw new ApiException(400, "Missing required parameter 'newOrderCapacityConfig' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoreOrderCapacityApi->UpdateStoreOrderCapacityConfig"); + + var localVarPath = "./api/v1.0/{appId}/storeordercapacity/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (deliveryType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "deliveryType", deliveryType)); // query parameter + if (newOrderCapacityConfig != null && newOrderCapacityConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(newOrderCapacityConfig); // http body (model) parameter + } + else + { + localVarPostBody = newOrderCapacityConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreOrderCapacityConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/StoresApi.cs b/src/Flipdish/Api/StoresApi.cs new file mode 100644 index 00000000..a092671a --- /dev/null +++ b/src/Flipdish/Api/StoresApi.cs @@ -0,0 +1,9014 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStoresApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void ArchiveStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse ArchiveStoreWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + ApiResponse AssignMenuWithHttpInfo (int? storeId, int? menuId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + ApiResponse CloneStoreWithHttpInfo (int? storeId, StoreCloneSettings settings); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultServiceCharge + RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultServiceCharge + ApiResponse ConfigureStoreServiceChargeWithHttpInfo (int? storeId, ServiceCharge serviceCharge); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBusinessHoursOverride + RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBusinessHoursOverride + ApiResponse CreateBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + ApiResponse CreateStoreWithHttpInfo (int? storeGroupId, StoreCreateBase store); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultStore + RestApiResultStore CreateStoreInProperty (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultStore + ApiResponse CreateStoreInPropertyWithHttpInfo (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + ApiResponse DeleteBusinessHoursOverrideWithHttpInfo (int? storeId, int? businessHoursOverrideId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAssignedBankAccount + RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAssignedBankAccount + ApiResponse GetBankAccountForStoreWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultBusinessHoursPeriod + RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultBusinessHoursPeriod + ApiResponse GetBusinessHoursWithHttpInfo (int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultBusinessHoursOverride + RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultBusinessHoursOverride + ApiResponse GetBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultStoreEndOfDayReport + RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultStoreEndOfDayReport + ApiResponse GetEndOfDayReportWithHttpInfo (int? storeId, DateTime? date = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPreOrderConfig + RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPreOrderConfig + ApiResponse GetPreOrderConfigWithHttpInfo (int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// RestApiArrayResultPreOrderTime + RestApiArrayResultPreOrderTime GetPreOrderPreview (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// ApiResponse of RestApiArrayResultPreOrderTime + ApiResponse GetPreOrderPreviewWithHttpInfo (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultProcessingFeeConfig + RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultProcessingFeeConfig + ApiResponse GetProcessingFeeConfigsByStoreIdWithHttpInfo (int? storeId, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultProcessingFeeConfig + RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultProcessingFeeConfig + ApiResponse GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStore + RestApiResultStore GetStoreById (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStore + ApiResponse GetStoreByIdWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultStoreDeliveryZoneFeeConfig + RestApiArrayResultStoreDeliveryZoneFeeConfig GetStoreDeliveryFeeConfig (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultStoreDeliveryZoneFeeConfig + ApiResponse GetStoreDeliveryFeeConfigWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// StoreFeeConfig + StoreFeeConfig GetStoreFeeConfig (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of StoreFeeConfig + ApiResponse GetStoreFeeConfigWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreHeader + RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreHeader + ApiResponse GetStoreHeadersByAppIdWithHttpInfo (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderLeadTimes + RestApiResultOrderLeadTimes GetStoreLeadTimes (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderLeadTimes + ApiResponse GetStoreLeadTimesWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStoreStatistics + RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStoreStatistics + ApiResponse GetStoreNetSalesWithHttpInfo (string appId, List storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ServiceCharge + ServiceCharge GetStoreServiceCharge (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of ServiceCharge + ApiResponse GetStoreServiceChargeWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStore + RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStore + ApiResponse GetStoresWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStore + RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStore + ApiResponse GetStoresByAppIdWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreValidationConfig + RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreValidationConfig + ApiResponse GetStoresByStoreIdWithValidationsWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void PublishStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse PublishStoreWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void PutStoreDeliveryFeeConfig (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse PutStoreDeliveryFeeConfigWithHttpInfo (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultBusinessHoursPeriod + RestApiResultBusinessHoursPeriod SetBusinessHours (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultBusinessHoursPeriod + ApiResponse SetBusinessHoursWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + RestApiArrayResultRestApiDefaultResponse SetPreOrdeEnabled (int? storeId, string deliveryType, bool? enabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + ApiResponse SetPreOrdeEnabledWithHttpInfo (int? storeId, string deliveryType, bool? enabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultRestApiDefaultResponse + RestApiResultRestApiDefaultResponse SetStoreCollectionSettings (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultRestApiDefaultResponse + ApiResponse SetStoreCollectionSettingsWithHttpInfo (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrderLeadTimes + RestApiResultOrderLeadTimes SetStoreLeadTimes (int? storeId, LeadTime leadTime); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrderLeadTimes + ApiResponse SetStoreLeadTimesWithHttpInfo (int? storeId, LeadTime leadTime); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object StoresSetPropertyId (int? storeId, string propertyId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse StoresSetPropertyIdWithHttpInfo (int? storeId, string propertyId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void SupportedSalesChannelsTypes (string propertyId, int? storeId, List salesChannelTypes); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse SupportedSalesChannelsTypesWithHttpInfo (string propertyId, int? storeId, List salesChannelTypes); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void UnpublishStore (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse UnpublishStoreWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + ApiResponse UpdatePreOrderConfigWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + RestApiResultStore UpdateStore (int? storeId, StoreBase store); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + ApiResponse UpdateStoreWithHttpInfo (int? storeId, StoreBase store); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreAddress + RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreAddress + ApiResponse UpdateStoreAddressWithHttpInfo (int? storeId, StoreAddressBase storeAddress); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultCoordinates + RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultCoordinates + ApiResponse UpdateStoreAddressCoordinatesWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse UpdateStoreAddressFormWithHttpInfo (int? storeId, StoreAddressForm address); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task ArchiveStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> ArchiveStoreAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + System.Threading.Tasks.Task AssignMenuAsync (int? storeId, int? menuId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + System.Threading.Tasks.Task> AssignMenuAsyncWithHttpInfo (int? storeId, int? menuId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + System.Threading.Tasks.Task CloneStoreAsync (int? storeId, StoreCloneSettings settings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + System.Threading.Tasks.Task> CloneStoreAsyncWithHttpInfo (int? storeId, StoreCloneSettings settings); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultServiceCharge + System.Threading.Tasks.Task ConfigureStoreServiceChargeAsync (int? storeId, ServiceCharge serviceCharge); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultServiceCharge) + System.Threading.Tasks.Task> ConfigureStoreServiceChargeAsyncWithHttpInfo (int? storeId, ServiceCharge serviceCharge); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBusinessHoursOverride + System.Threading.Tasks.Task CreateBusinessHoursOverrideByStoreIdAsync (int? storeId, BusinessHoursOverrideBase businessHoursOverride); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBusinessHoursOverride) + System.Threading.Tasks.Task> CreateBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + System.Threading.Tasks.Task CreateStoreAsync (int? storeGroupId, StoreCreateBase store); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + System.Threading.Tasks.Task> CreateStoreAsyncWithHttpInfo (int? storeGroupId, StoreCreateBase store); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultStore + System.Threading.Tasks.Task CreateStoreInPropertyAsync (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultStore) + System.Threading.Tasks.Task> CreateStoreInPropertyAsyncWithHttpInfo (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + System.Threading.Tasks.Task DeleteBusinessHoursOverrideAsync (int? storeId, int? businessHoursOverrideId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + System.Threading.Tasks.Task> DeleteBusinessHoursOverrideAsyncWithHttpInfo (int? storeId, int? businessHoursOverrideId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAssignedBankAccount + System.Threading.Tasks.Task GetBankAccountForStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAssignedBankAccount) + System.Threading.Tasks.Task> GetBankAccountForStoreAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultBusinessHoursPeriod + System.Threading.Tasks.Task GetBusinessHoursAsync (int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultBusinessHoursPeriod) + System.Threading.Tasks.Task> GetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultBusinessHoursOverride + System.Threading.Tasks.Task GetBusinessHoursOverrideByStoreIdAsync (int? storeId, DateTime? after = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultBusinessHoursOverride) + System.Threading.Tasks.Task> GetBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultStoreEndOfDayReport + System.Threading.Tasks.Task GetEndOfDayReportAsync (int? storeId, DateTime? date = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultStoreEndOfDayReport) + System.Threading.Tasks.Task> GetEndOfDayReportAsyncWithHttpInfo (int? storeId, DateTime? date = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPreOrderConfig + System.Threading.Tasks.Task GetPreOrderConfigAsync (int? storeId, string deliveryType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPreOrderConfig) + System.Threading.Tasks.Task> GetPreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// Task of RestApiArrayResultPreOrderTime + System.Threading.Tasks.Task GetPreOrderPreviewAsync (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// Task of ApiResponse (RestApiArrayResultPreOrderTime) + System.Threading.Tasks.Task> GetPreOrderPreviewAsyncWithHttpInfo (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultProcessingFeeConfig + System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAsync (int? storeId, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) + System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAsyncWithHttpInfo (int? storeId, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultProcessingFeeConfig + System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsync (int? storeId, string paymentAccountType, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultProcessingFeeConfig) + System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsyncWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStore + System.Threading.Tasks.Task GetStoreByIdAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStore) + System.Threading.Tasks.Task> GetStoreByIdAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultStoreDeliveryZoneFeeConfig + System.Threading.Tasks.Task GetStoreDeliveryFeeConfigAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultStoreDeliveryZoneFeeConfig) + System.Threading.Tasks.Task> GetStoreDeliveryFeeConfigAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of StoreFeeConfig + System.Threading.Tasks.Task GetStoreFeeConfigAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (StoreFeeConfig) + System.Threading.Tasks.Task> GetStoreFeeConfigAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreHeader + System.Threading.Tasks.Task GetStoreHeadersByAppIdAsync (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreHeader) + System.Threading.Tasks.Task> GetStoreHeadersByAppIdAsyncWithHttpInfo (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderLeadTimes + System.Threading.Tasks.Task GetStoreLeadTimesAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderLeadTimes) + System.Threading.Tasks.Task> GetStoreLeadTimesAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStoreStatistics + System.Threading.Tasks.Task GetStoreNetSalesAsync (string appId, List storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStoreStatistics) + System.Threading.Tasks.Task> GetStoreNetSalesAsyncWithHttpInfo (string appId, List storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ServiceCharge + System.Threading.Tasks.Task GetStoreServiceChargeAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (ServiceCharge) + System.Threading.Tasks.Task> GetStoreServiceChargeAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStore + System.Threading.Tasks.Task GetStoresAsync (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStore) + System.Threading.Tasks.Task> GetStoresAsyncWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStore + System.Threading.Tasks.Task GetStoresByAppIdAsync (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStore) + System.Threading.Tasks.Task> GetStoresByAppIdAsyncWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreValidationConfig + System.Threading.Tasks.Task GetStoresByStoreIdWithValidationsAsync (List storeId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreValidationConfig) + System.Threading.Tasks.Task> GetStoresByStoreIdWithValidationsAsyncWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task PublishStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PublishStoreAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task PutStoreDeliveryFeeConfigAsync (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PutStoreDeliveryFeeConfigAsyncWithHttpInfo (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultBusinessHoursPeriod + System.Threading.Tasks.Task SetBusinessHoursAsync (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultBusinessHoursPeriod) + System.Threading.Tasks.Task> SetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + System.Threading.Tasks.Task SetPreOrdeEnabledAsync (int? storeId, string deliveryType, bool? enabled); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + System.Threading.Tasks.Task> SetPreOrdeEnabledAsyncWithHttpInfo (int? storeId, string deliveryType, bool? enabled); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultRestApiDefaultResponse + System.Threading.Tasks.Task SetStoreCollectionSettingsAsync (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultRestApiDefaultResponse) + System.Threading.Tasks.Task> SetStoreCollectionSettingsAsyncWithHttpInfo (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrderLeadTimes + System.Threading.Tasks.Task SetStoreLeadTimesAsync (int? storeId, LeadTime leadTime); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrderLeadTimes) + System.Threading.Tasks.Task> SetStoreLeadTimesAsyncWithHttpInfo (int? storeId, LeadTime leadTime); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task StoresSetPropertyIdAsync (int? storeId, string propertyId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> StoresSetPropertyIdAsyncWithHttpInfo (int? storeId, string propertyId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task SupportedSalesChannelsTypesAsync (string propertyId, int? storeId, List salesChannelTypes); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SupportedSalesChannelsTypesAsyncWithHttpInfo (string propertyId, int? storeId, List salesChannelTypes); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task UnpublishStoreAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UnpublishStoreAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + System.Threading.Tasks.Task UpdatePreOrderConfigAsync (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + System.Threading.Tasks.Task> UpdatePreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + System.Threading.Tasks.Task UpdateStoreAsync (int? storeId, StoreBase store); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + System.Threading.Tasks.Task> UpdateStoreAsyncWithHttpInfo (int? storeId, StoreBase store); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreAddress + System.Threading.Tasks.Task UpdateStoreAddressAsync (int? storeId, StoreAddressBase storeAddress); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreAddress) + System.Threading.Tasks.Task> UpdateStoreAddressAsyncWithHttpInfo (int? storeId, StoreAddressBase storeAddress); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultCoordinates + System.Threading.Tasks.Task UpdateStoreAddressCoordinatesAsync (int? storeId, Coordinates coordinates, string appNameId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultCoordinates) + System.Threading.Tasks.Task> UpdateStoreAddressCoordinatesAsyncWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task UpdateStoreAddressFormAsync (int? storeId, StoreAddressForm address); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> UpdateStoreAddressFormAsyncWithHttpInfo (int? storeId, StoreAddressForm address); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StoresApi : IStoresApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public StoresApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public StoresApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void ArchiveStore (int? storeId) + { + ArchiveStoreWithHttpInfo(storeId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse ArchiveStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->ArchiveStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task ArchiveStoreAsync (int? storeId) + { + await ArchiveStoreAsyncWithHttpInfo(storeId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ArchiveStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->ArchiveStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/archive"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ArchiveStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + public RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId) + { + ApiResponse localVarResponse = AssignMenuWithHttpInfo(storeId, menuId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + public ApiResponse< RestApiArrayResultRestApiDefaultResponse > AssignMenuWithHttpInfo (int? storeId, int? menuId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->AssignMenu"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling StoresApi->AssignMenu"); + + var localVarPath = "./api/v1.0/stores/{storeId}/menu/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + public async System.Threading.Tasks.Task AssignMenuAsync (int? storeId, int? menuId) + { + ApiResponse localVarResponse = await AssignMenuAsyncWithHttpInfo(storeId, menuId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + public async System.Threading.Tasks.Task> AssignMenuAsyncWithHttpInfo (int? storeId, int? menuId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->AssignMenu"); + // verify the required parameter 'menuId' is set + if (menuId == null) + throw new ApiException(400, "Missing required parameter 'menuId' when calling StoresApi->AssignMenu"); + + var localVarPath = "./api/v1.0/stores/{storeId}/menu/{menuId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AssignMenu", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + public RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings) + { + ApiResponse localVarResponse = CloneStoreWithHttpInfo(storeId, settings); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > CloneStoreWithHttpInfo (int? storeId, StoreCloneSettings settings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->CloneStore"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling StoresApi->CloneStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task CloneStoreAsync (int? storeId, StoreCloneSettings settings) + { + ApiResponse localVarResponse = await CloneStoreAsyncWithHttpInfo(storeId, settings); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + public async System.Threading.Tasks.Task> CloneStoreAsyncWithHttpInfo (int? storeId, StoreCloneSettings settings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->CloneStore"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling StoresApi->CloneStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/clone"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CloneStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultServiceCharge + public RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge) + { + ApiResponse localVarResponse = ConfigureStoreServiceChargeWithHttpInfo(storeId, serviceCharge); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultServiceCharge + public ApiResponse< RestApiResultServiceCharge > ConfigureStoreServiceChargeWithHttpInfo (int? storeId, ServiceCharge serviceCharge) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->ConfigureStoreServiceCharge"); + // verify the required parameter 'serviceCharge' is set + if (serviceCharge == null) + throw new ApiException(400, "Missing required parameter 'serviceCharge' when calling StoresApi->ConfigureStoreServiceCharge"); + + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (serviceCharge != null && serviceCharge.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(serviceCharge); // http body (model) parameter + } + else + { + localVarPostBody = serviceCharge; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ConfigureStoreServiceCharge", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultServiceCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultServiceCharge + public async System.Threading.Tasks.Task ConfigureStoreServiceChargeAsync (int? storeId, ServiceCharge serviceCharge) + { + ApiResponse localVarResponse = await ConfigureStoreServiceChargeAsyncWithHttpInfo(storeId, serviceCharge); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultServiceCharge) + public async System.Threading.Tasks.Task> ConfigureStoreServiceChargeAsyncWithHttpInfo (int? storeId, ServiceCharge serviceCharge) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->ConfigureStoreServiceCharge"); + // verify the required parameter 'serviceCharge' is set + if (serviceCharge == null) + throw new ApiException(400, "Missing required parameter 'serviceCharge' when calling StoresApi->ConfigureStoreServiceCharge"); + + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (serviceCharge != null && serviceCharge.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(serviceCharge); // http body (model) parameter + } + else + { + localVarPostBody = serviceCharge; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ConfigureStoreServiceCharge", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultServiceCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBusinessHoursOverride + public RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride) + { + ApiResponse localVarResponse = CreateBusinessHoursOverrideByStoreIdWithHttpInfo(storeId, businessHoursOverride); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBusinessHoursOverride + public ApiResponse< RestApiResultBusinessHoursOverride > CreateBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->CreateBusinessHoursOverrideByStoreId"); + // verify the required parameter 'businessHoursOverride' is set + if (businessHoursOverride == null) + throw new ApiException(400, "Missing required parameter 'businessHoursOverride' when calling StoresApi->CreateBusinessHoursOverrideByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (businessHoursOverride != null && businessHoursOverride.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursOverride); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursOverride; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBusinessHoursOverrideByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBusinessHoursOverride) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursOverride))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBusinessHoursOverride + public async System.Threading.Tasks.Task CreateBusinessHoursOverrideByStoreIdAsync (int? storeId, BusinessHoursOverrideBase businessHoursOverride) + { + ApiResponse localVarResponse = await CreateBusinessHoursOverrideByStoreIdAsyncWithHttpInfo(storeId, businessHoursOverride); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBusinessHoursOverride) + public async System.Threading.Tasks.Task> CreateBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->CreateBusinessHoursOverrideByStoreId"); + // verify the required parameter 'businessHoursOverride' is set + if (businessHoursOverride == null) + throw new ApiException(400, "Missing required parameter 'businessHoursOverride' when calling StoresApi->CreateBusinessHoursOverrideByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (businessHoursOverride != null && businessHoursOverride.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursOverride); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursOverride; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBusinessHoursOverrideByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBusinessHoursOverride) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursOverride))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + public RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store) + { + ApiResponse localVarResponse = CreateStoreWithHttpInfo(storeGroupId, store); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > CreateStoreWithHttpInfo (int? storeGroupId, StoreCreateBase store) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoresApi->CreateStore"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->CreateStore"); + + var localVarPath = "./api/v1.0/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task CreateStoreAsync (int? storeGroupId, StoreCreateBase store) + { + ApiResponse localVarResponse = await CreateStoreAsyncWithHttpInfo(storeGroupId, store); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + public async System.Threading.Tasks.Task> CreateStoreAsyncWithHttpInfo (int? storeGroupId, StoreCreateBase store) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoresApi->CreateStore"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->CreateStore"); + + var localVarPath = "./api/v1.0/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultStore + public RestApiResultStore CreateStoreInProperty (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) + { + ApiResponse localVarResponse = CreateStoreInPropertyWithHttpInfo(storeGroupId, propertyId, store, autoAssignMenu); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > CreateStoreInPropertyWithHttpInfo (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoresApi->CreateStoreInProperty"); + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->CreateStoreInProperty"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->CreateStoreInProperty"); + + var localVarPath = "./api/v1.0/properties/{propertyId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (autoAssignMenu != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "autoAssignMenu", autoAssignMenu)); // query parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStoreInProperty", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task CreateStoreInPropertyAsync (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) + { + ApiResponse localVarResponse = await CreateStoreInPropertyAsyncWithHttpInfo(storeGroupId, propertyId, store, autoAssignMenu); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultStore) + public async System.Threading.Tasks.Task> CreateStoreInPropertyAsyncWithHttpInfo (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) + { + // verify the required parameter 'storeGroupId' is set + if (storeGroupId == null) + throw new ApiException(400, "Missing required parameter 'storeGroupId' when calling StoresApi->CreateStoreInProperty"); + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->CreateStoreInProperty"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->CreateStoreInProperty"); + + var localVarPath = "./api/v1.0/properties/{propertyId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + if (autoAssignMenu != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "autoAssignMenu", autoAssignMenu)); // query parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStoreInProperty", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + public RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId) + { + ApiResponse localVarResponse = DeleteBusinessHoursOverrideWithHttpInfo(storeId, businessHoursOverrideId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + public ApiResponse< RestApiArrayResultRestApiDefaultResponse > DeleteBusinessHoursOverrideWithHttpInfo (int? storeId, int? businessHoursOverrideId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->DeleteBusinessHoursOverride"); + // verify the required parameter 'businessHoursOverrideId' is set + if (businessHoursOverrideId == null) + throw new ApiException(400, "Missing required parameter 'businessHoursOverrideId' when calling StoresApi->DeleteBusinessHoursOverride"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (businessHoursOverrideId != null) localVarPathParams.Add("businessHoursOverrideId", this.Configuration.ApiClient.ParameterToString(businessHoursOverrideId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteBusinessHoursOverride", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + public async System.Threading.Tasks.Task DeleteBusinessHoursOverrideAsync (int? storeId, int? businessHoursOverrideId) + { + ApiResponse localVarResponse = await DeleteBusinessHoursOverrideAsyncWithHttpInfo(storeId, businessHoursOverrideId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + public async System.Threading.Tasks.Task> DeleteBusinessHoursOverrideAsyncWithHttpInfo (int? storeId, int? businessHoursOverrideId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->DeleteBusinessHoursOverride"); + // verify the required parameter 'businessHoursOverrideId' is set + if (businessHoursOverrideId == null) + throw new ApiException(400, "Missing required parameter 'businessHoursOverrideId' when calling StoresApi->DeleteBusinessHoursOverride"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (businessHoursOverrideId != null) localVarPathParams.Add("businessHoursOverrideId", this.Configuration.ApiClient.ParameterToString(businessHoursOverrideId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteBusinessHoursOverride", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAssignedBankAccount + public RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId) + { + ApiResponse localVarResponse = GetBankAccountForStoreWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAssignedBankAccount + public ApiResponse< RestApiResultAssignedBankAccount > GetBankAccountForStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBankAccountForStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/bankaccount"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccountForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAssignedBankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAssignedBankAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAssignedBankAccount + public async System.Threading.Tasks.Task GetBankAccountForStoreAsync (int? storeId) + { + ApiResponse localVarResponse = await GetBankAccountForStoreAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAssignedBankAccount) + public async System.Threading.Tasks.Task> GetBankAccountForStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBankAccountForStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/bankaccount"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBankAccountForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAssignedBankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAssignedBankAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultBusinessHoursPeriod + public RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType) + { + ApiResponse localVarResponse = GetBusinessHoursWithHttpInfo(storeId, deliveryType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultBusinessHoursPeriod + public ApiResponse< RestApiArrayResultBusinessHoursPeriod > GetBusinessHoursWithHttpInfo (int? storeId, string deliveryType) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBusinessHours"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetBusinessHours"); + + var localVarPath = "./api/v1.0/stores/{storeId}/availability/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBusinessHours", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultBusinessHoursPeriod))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultBusinessHoursPeriod + public async System.Threading.Tasks.Task GetBusinessHoursAsync (int? storeId, string deliveryType) + { + ApiResponse localVarResponse = await GetBusinessHoursAsyncWithHttpInfo(storeId, deliveryType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultBusinessHoursPeriod) + public async System.Threading.Tasks.Task> GetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBusinessHours"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetBusinessHours"); + + var localVarPath = "./api/v1.0/stores/{storeId}/availability/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBusinessHours", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultBusinessHoursPeriod))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultBusinessHoursOverride + public RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetBusinessHoursOverrideByStoreIdWithHttpInfo(storeId, after, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultBusinessHoursOverride + public ApiResponse< RestApiPaginationResultBusinessHoursOverride > GetBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBusinessHoursOverrideByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (after != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "after", after)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBusinessHoursOverrideByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultBusinessHoursOverride) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultBusinessHoursOverride))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultBusinessHoursOverride + public async System.Threading.Tasks.Task GetBusinessHoursOverrideByStoreIdAsync (int? storeId, DateTime? after = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetBusinessHoursOverrideByStoreIdAsyncWithHttpInfo(storeId, after, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultBusinessHoursOverride) + public async System.Threading.Tasks.Task> GetBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetBusinessHoursOverrideByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (after != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "after", after)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetBusinessHoursOverrideByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultBusinessHoursOverride) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultBusinessHoursOverride))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultStoreEndOfDayReport + public RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null) + { + ApiResponse localVarResponse = GetEndOfDayReportWithHttpInfo(storeId, date); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultStoreEndOfDayReport + public ApiResponse< RestApiResultStoreEndOfDayReport > GetEndOfDayReportWithHttpInfo (int? storeId, DateTime? date = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetEndOfDayReport"); + + var localVarPath = "./api/v1.0/stores/{storeId}/endofdayreport"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEndOfDayReport", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreEndOfDayReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreEndOfDayReport))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultStoreEndOfDayReport + public async System.Threading.Tasks.Task GetEndOfDayReportAsync (int? storeId, DateTime? date = null) + { + ApiResponse localVarResponse = await GetEndOfDayReportAsyncWithHttpInfo(storeId, date); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultStoreEndOfDayReport) + public async System.Threading.Tasks.Task> GetEndOfDayReportAsyncWithHttpInfo (int? storeId, DateTime? date = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetEndOfDayReport"); + + var localVarPath = "./api/v1.0/stores/{storeId}/endofdayreport"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetEndOfDayReport", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreEndOfDayReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreEndOfDayReport))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPreOrderConfig + public RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType) + { + ApiResponse localVarResponse = GetPreOrderConfigWithHttpInfo(storeId, deliveryType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPreOrderConfig + public ApiResponse< RestApiResultPreOrderConfig > GetPreOrderConfigWithHttpInfo (int? storeId, string deliveryType) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetPreOrderConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetPreOrderConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreOrderConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPreOrderConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPreOrderConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPreOrderConfig + public async System.Threading.Tasks.Task GetPreOrderConfigAsync (int? storeId, string deliveryType) + { + ApiResponse localVarResponse = await GetPreOrderConfigAsyncWithHttpInfo(storeId, deliveryType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPreOrderConfig) + public async System.Threading.Tasks.Task> GetPreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetPreOrderConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetPreOrderConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreOrderConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPreOrderConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPreOrderConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// RestApiArrayResultPreOrderTime + public RestApiArrayResultPreOrderTime GetPreOrderPreview (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null) + { + ApiResponse localVarResponse = GetPreOrderPreviewWithHttpInfo(storeId, deliveryType, preOrderConfigLeadTimeMinutes, preOrderConfigIntervalMinutes, preOrderConfigMaxOrderAheadDays, preOrderConfigIncludeAsap, preOrderConfigIncludeMoreGranularInitialTime, preOrderConfigCutOffTimePreviousDayBasic, preOrderConfigCutOffTimeCurrentDayBasic, preOrderConfigPreOrderTimeDisplayType, preOrderConfigAlwaysAppearOpen, preOrderConfigRequireExplicitSelectAlways); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// ApiResponse of RestApiArrayResultPreOrderTime + public ApiResponse< RestApiArrayResultPreOrderTime > GetPreOrderPreviewWithHttpInfo (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetPreOrderPreview"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetPreOrderPreview"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (preOrderConfigLeadTimeMinutes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.leadTimeMinutes", preOrderConfigLeadTimeMinutes)); // query parameter + if (preOrderConfigIntervalMinutes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.intervalMinutes", preOrderConfigIntervalMinutes)); // query parameter + if (preOrderConfigMaxOrderAheadDays != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.maxOrderAheadDays", preOrderConfigMaxOrderAheadDays)); // query parameter + if (preOrderConfigIncludeAsap != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.includeAsap", preOrderConfigIncludeAsap)); // query parameter + if (preOrderConfigIncludeMoreGranularInitialTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.includeMoreGranularInitialTime", preOrderConfigIncludeMoreGranularInitialTime)); // query parameter + if (preOrderConfigCutOffTimePreviousDayBasic != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.cutOffTimePreviousDayBasic", preOrderConfigCutOffTimePreviousDayBasic)); // query parameter + if (preOrderConfigCutOffTimeCurrentDayBasic != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.cutOffTimeCurrentDayBasic", preOrderConfigCutOffTimeCurrentDayBasic)); // query parameter + if (preOrderConfigPreOrderTimeDisplayType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.preOrderTimeDisplayType", preOrderConfigPreOrderTimeDisplayType)); // query parameter + if (preOrderConfigAlwaysAppearOpen != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.alwaysAppearOpen", preOrderConfigAlwaysAppearOpen)); // query parameter + if (preOrderConfigRequireExplicitSelectAlways != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.requireExplicitSelectAlways", preOrderConfigRequireExplicitSelectAlways)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreOrderPreview", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPreOrderTime) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPreOrderTime))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// Task of RestApiArrayResultPreOrderTime + public async System.Threading.Tasks.Task GetPreOrderPreviewAsync (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null) + { + ApiResponse localVarResponse = await GetPreOrderPreviewAsyncWithHttpInfo(storeId, deliveryType, preOrderConfigLeadTimeMinutes, preOrderConfigIntervalMinutes, preOrderConfigMaxOrderAheadDays, preOrderConfigIncludeAsap, preOrderConfigIncludeMoreGranularInitialTime, preOrderConfigCutOffTimePreviousDayBasic, preOrderConfigCutOffTimeCurrentDayBasic, preOrderConfigPreOrderTimeDisplayType, preOrderConfigAlwaysAppearOpen, preOrderConfigRequireExplicitSelectAlways); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Lead Time in Minutes (optional) + /// Interval in minutes (optional) + /// Max Days to order ahead (optional) + /// Show ASAP as option (optional) + /// Granual Init' Time (optional) + /// Cut off time previous day (optional) + /// Cut off time current day (optional) + /// Type of time displayed. (optional) + /// Specifies whether a customer can pre-order outside the store opening hours or not. (optional) + /// Force customer to select collection time. (optional) + /// Task of ApiResponse (RestApiArrayResultPreOrderTime) + public async System.Threading.Tasks.Task> GetPreOrderPreviewAsyncWithHttpInfo (int? storeId, string deliveryType, int? preOrderConfigLeadTimeMinutes = null, int? preOrderConfigIntervalMinutes = null, int? preOrderConfigMaxOrderAheadDays = null, bool? preOrderConfigIncludeAsap = null, bool? preOrderConfigIncludeMoreGranularInitialTime = null, string preOrderConfigCutOffTimePreviousDayBasic = null, string preOrderConfigCutOffTimeCurrentDayBasic = null, string preOrderConfigPreOrderTimeDisplayType = null, bool? preOrderConfigAlwaysAppearOpen = null, bool? preOrderConfigRequireExplicitSelectAlways = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetPreOrderPreview"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->GetPreOrderPreview"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (preOrderConfigLeadTimeMinutes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.leadTimeMinutes", preOrderConfigLeadTimeMinutes)); // query parameter + if (preOrderConfigIntervalMinutes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.intervalMinutes", preOrderConfigIntervalMinutes)); // query parameter + if (preOrderConfigMaxOrderAheadDays != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.maxOrderAheadDays", preOrderConfigMaxOrderAheadDays)); // query parameter + if (preOrderConfigIncludeAsap != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.includeAsap", preOrderConfigIncludeAsap)); // query parameter + if (preOrderConfigIncludeMoreGranularInitialTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.includeMoreGranularInitialTime", preOrderConfigIncludeMoreGranularInitialTime)); // query parameter + if (preOrderConfigCutOffTimePreviousDayBasic != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.cutOffTimePreviousDayBasic", preOrderConfigCutOffTimePreviousDayBasic)); // query parameter + if (preOrderConfigCutOffTimeCurrentDayBasic != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.cutOffTimeCurrentDayBasic", preOrderConfigCutOffTimeCurrentDayBasic)); // query parameter + if (preOrderConfigPreOrderTimeDisplayType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.preOrderTimeDisplayType", preOrderConfigPreOrderTimeDisplayType)); // query parameter + if (preOrderConfigAlwaysAppearOpen != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.alwaysAppearOpen", preOrderConfigAlwaysAppearOpen)); // query parameter + if (preOrderConfigRequireExplicitSelectAlways != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "preOrderConfig.requireExplicitSelectAlways", preOrderConfigRequireExplicitSelectAlways)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreOrderPreview", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPreOrderTime) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPreOrderTime))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultProcessingFeeConfig + public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null) + { + ApiResponse localVarResponse = GetProcessingFeeConfigsByStoreIdWithHttpInfo(storeId, appNameId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultProcessingFeeConfig + public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdWithHttpInfo (int? storeId, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetProcessingFeeConfigsByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/processingfeeconfigs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultProcessingFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultProcessingFeeConfig + public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAsync (int? storeId, string appNameId = null) + { + ApiResponse localVarResponse = await GetProcessingFeeConfigsByStoreIdAsyncWithHttpInfo(storeId, appNameId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) + public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAsyncWithHttpInfo (int? storeId, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetProcessingFeeConfigsByStoreId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/processingfeeconfigs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultProcessingFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultProcessingFeeConfig + public RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null) + { + ApiResponse localVarResponse = GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeWithHttpInfo(storeId, paymentAccountType, appNameId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultProcessingFeeConfig + public ApiResponse< RestApiResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + // verify the required parameter 'paymentAccountType' is set + if (paymentAccountType == null) + throw new ApiException(400, "Missing required parameter 'paymentAccountType' when calling StoresApi->GetProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + + var localVarPath = "./api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (paymentAccountType != null) localVarPathParams.Add("paymentAccountType", this.Configuration.ApiClient.ParameterToString(paymentAccountType)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreIdAndPaymentAccountType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultProcessingFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultProcessingFeeConfig + public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsync (int? storeId, string paymentAccountType, string appNameId = null) + { + ApiResponse localVarResponse = await GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsyncWithHttpInfo(storeId, paymentAccountType, appNameId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultProcessingFeeConfig) + public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsyncWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + // verify the required parameter 'paymentAccountType' is set + if (paymentAccountType == null) + throw new ApiException(400, "Missing required parameter 'paymentAccountType' when calling StoresApi->GetProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + + var localVarPath = "./api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (paymentAccountType != null) localVarPathParams.Add("paymentAccountType", this.Configuration.ApiClient.ParameterToString(paymentAccountType)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetProcessingFeeConfigsByStoreIdAndPaymentAccountType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultProcessingFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultProcessingFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStore + public RestApiResultStore GetStoreById (int? storeId) + { + ApiResponse localVarResponse = GetStoreByIdWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > GetStoreByIdWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreById"); + + var localVarPath = "./api/v1.0/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task GetStoreByIdAsync (int? storeId) + { + ApiResponse localVarResponse = await GetStoreByIdAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStore) + public async System.Threading.Tasks.Task> GetStoreByIdAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreById"); + + var localVarPath = "./api/v1.0/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultStoreDeliveryZoneFeeConfig + public RestApiArrayResultStoreDeliveryZoneFeeConfig GetStoreDeliveryFeeConfig (int? storeId) + { + ApiResponse localVarResponse = GetStoreDeliveryFeeConfigWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultStoreDeliveryZoneFeeConfig + public ApiResponse< RestApiArrayResultStoreDeliveryZoneFeeConfig > GetStoreDeliveryFeeConfigWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreDeliveryFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreDeliveryFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreDeliveryZoneFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreDeliveryZoneFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultStoreDeliveryZoneFeeConfig + public async System.Threading.Tasks.Task GetStoreDeliveryFeeConfigAsync (int? storeId) + { + ApiResponse localVarResponse = await GetStoreDeliveryFeeConfigAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultStoreDeliveryZoneFeeConfig) + public async System.Threading.Tasks.Task> GetStoreDeliveryFeeConfigAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreDeliveryFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreDeliveryFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreDeliveryZoneFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreDeliveryZoneFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// StoreFeeConfig + public StoreFeeConfig GetStoreFeeConfig (int? storeId) + { + ApiResponse localVarResponse = GetStoreFeeConfigWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of StoreFeeConfig + public ApiResponse< StoreFeeConfig > GetStoreFeeConfigWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of StoreFeeConfig + public async System.Threading.Tasks.Task GetStoreFeeConfigAsync (int? storeId) + { + ApiResponse localVarResponse = await GetStoreFeeConfigAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (StoreFeeConfig) + public async System.Threading.Tasks.Task> GetStoreFeeConfigAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreHeader + public RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetStoreHeadersByAppIdWithHttpInfo(appId, storeNameQuery, salesChannelType, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreHeader + public ApiResponse< RestApiPaginationResultStoreHeader > GetStoreHeadersByAppIdWithHttpInfo (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); + + var localVarPath = "./api/v1.0/{appId}/stores/header"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeNameQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeNameQuery", storeNameQuery)); // query parameter + if (salesChannelType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "salesChannelType", salesChannelType)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreHeadersByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreHeader + public async System.Threading.Tasks.Task GetStoreHeadersByAppIdAsync (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetStoreHeadersByAppIdAsyncWithHttpInfo(appId, storeNameQuery, salesChannelType, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreHeader) + public async System.Threading.Tasks.Task> GetStoreHeadersByAppIdAsyncWithHttpInfo (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); + + var localVarPath = "./api/v1.0/{appId}/stores/header"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeNameQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeNameQuery", storeNameQuery)); // query parameter + if (salesChannelType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "salesChannelType", salesChannelType)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreHeadersByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultOrderLeadTimes + public RestApiResultOrderLeadTimes GetStoreLeadTimes (int? storeId) + { + ApiResponse localVarResponse = GetStoreLeadTimesWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultOrderLeadTimes + public ApiResponse< RestApiResultOrderLeadTimes > GetStoreLeadTimesWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreLeadTimes"); + + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreLeadTimes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultOrderLeadTimes + public async System.Threading.Tasks.Task GetStoreLeadTimesAsync (int? storeId) + { + ApiResponse localVarResponse = await GetStoreLeadTimesAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultOrderLeadTimes) + public async System.Threading.Tasks.Task> GetStoreLeadTimesAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreLeadTimes"); + + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreLeadTimes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStoreStatistics + public RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId) + { + ApiResponse localVarResponse = GetStoreNetSalesWithHttpInfo(appId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStoreStatistics + public ApiResponse< RestApiArrayResultStoreStatistics > GetStoreNetSalesWithHttpInfo (string appId, List storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreNetSales"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreNetSales"); + + var localVarPath = "./api/v1.0/{appId}/stores/stats"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreNetSales", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStoreStatistics + public async System.Threading.Tasks.Task GetStoreNetSalesAsync (string appId, List storeId) + { + ApiResponse localVarResponse = await GetStoreNetSalesAsyncWithHttpInfo(appId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStoreStatistics) + public async System.Threading.Tasks.Task> GetStoreNetSalesAsyncWithHttpInfo (string appId, List storeId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreNetSales"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreNetSales"); + + var localVarPath = "./api/v1.0/{appId}/stores/stats"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreNetSales", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ServiceCharge + public ServiceCharge GetStoreServiceCharge (int? storeId) + { + ApiResponse localVarResponse = GetStoreServiceChargeWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of ServiceCharge + public ApiResponse< ServiceCharge > GetStoreServiceChargeWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreServiceCharge"); + + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreServiceCharge", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ServiceCharge + public async System.Threading.Tasks.Task GetStoreServiceChargeAsync (int? storeId) + { + ApiResponse localVarResponse = await GetStoreServiceChargeAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (ServiceCharge) + public async System.Threading.Tasks.Task> GetStoreServiceChargeAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreServiceCharge"); + + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoreServiceCharge", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStore + public RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + { + ApiResponse localVarResponse = GetStoresWithHttpInfo(searchQuery, page, limit, storeGroupId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStore + public ApiResponse< RestApiPaginationResultStore > GetStoresWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + { + + var localVarPath = "./api/v1.0/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStore + public async System.Threading.Tasks.Task GetStoresAsync (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + { + ApiResponse localVarResponse = await GetStoresAsyncWithHttpInfo(searchQuery, page, limit, storeGroupId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStore) + public async System.Threading.Tasks.Task> GetStoresAsyncWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + { + + var localVarPath = "./api/v1.0/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + if (storeGroupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeGroupId", storeGroupId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStore + public RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetStoresByAppIdWithHttpInfo(appId, searchQuery, salesChannelType, excludeUnpublished, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStore + public ApiResponse< RestApiPaginationResultStore > GetStoresByAppIdWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByAppId"); + + var localVarPath = "./api/v1.0/{appId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (salesChannelType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "salesChannelType", salesChannelType)); // query parameter + if (excludeUnpublished != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeUnpublished", excludeUnpublished)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStore + public async System.Threading.Tasks.Task GetStoresByAppIdAsync (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetStoresByAppIdAsyncWithHttpInfo(appId, searchQuery, salesChannelType, excludeUnpublished, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStore) + public async System.Threading.Tasks.Task> GetStoresByAppIdAsyncWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByAppId"); + + var localVarPath = "./api/v1.0/{appId}/stores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (salesChannelType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "salesChannelType", salesChannelType)); // query parameter + if (excludeUnpublished != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeUnpublished", excludeUnpublished)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreValidationConfig + public RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetStoresByStoreIdWithValidationsWithHttpInfo(storeId, appId, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultStoreValidationConfig + public ApiResponse< RestApiPaginationResultStoreValidationConfig > GetStoresByStoreIdWithValidationsWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoresByStoreIdWithValidations"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByStoreIdWithValidations"); + + var localVarPath = "./api/v1.0/{appId}/storevalidation/kiosk"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresByStoreIdWithValidations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreValidationConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreValidationConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultStoreValidationConfig + public async System.Threading.Tasks.Task GetStoresByStoreIdWithValidationsAsync (List storeId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetStoresByStoreIdWithValidationsAsyncWithHttpInfo(storeId, appId, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultStoreValidationConfig) + public async System.Threading.Tasks.Task> GetStoresByStoreIdWithValidationsAsyncWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoresByStoreIdWithValidations"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByStoreIdWithValidations"); + + var localVarPath = "./api/v1.0/{appId}/storevalidation/kiosk"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetStoresByStoreIdWithValidations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultStoreValidationConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreValidationConfig))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void PublishStore (int? storeId) + { + PublishStoreWithHttpInfo(storeId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse PublishStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->PublishStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PublishStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task PublishStoreAsync (int? storeId) + { + await PublishStoreAsyncWithHttpInfo(storeId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PublishStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->PublishStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/publish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PublishStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void PutStoreDeliveryFeeConfig (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + { + PutStoreDeliveryFeeConfigWithHttpInfo(storeId, feeConfigUpdateRequest); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse PutStoreDeliveryFeeConfigWithHttpInfo (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->PutStoreDeliveryFeeConfig"); + // verify the required parameter 'feeConfigUpdateRequest' is set + if (feeConfigUpdateRequest == null) + throw new ApiException(400, "Missing required parameter 'feeConfigUpdateRequest' when calling StoresApi->PutStoreDeliveryFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (feeConfigUpdateRequest != null && feeConfigUpdateRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(feeConfigUpdateRequest); // http body (model) parameter + } + else + { + localVarPostBody = feeConfigUpdateRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PutStoreDeliveryFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task PutStoreDeliveryFeeConfigAsync (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + { + await PutStoreDeliveryFeeConfigAsyncWithHttpInfo(storeId, feeConfigUpdateRequest); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PutStoreDeliveryFeeConfigAsyncWithHttpInfo (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->PutStoreDeliveryFeeConfig"); + // verify the required parameter 'feeConfigUpdateRequest' is set + if (feeConfigUpdateRequest == null) + throw new ApiException(400, "Missing required parameter 'feeConfigUpdateRequest' when calling StoresApi->PutStoreDeliveryFeeConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (feeConfigUpdateRequest != null && feeConfigUpdateRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(feeConfigUpdateRequest); // http body (model) parameter + } + else + { + localVarPostBody = feeConfigUpdateRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("PutStoreDeliveryFeeConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultBusinessHoursPeriod + public RestApiResultBusinessHoursPeriod SetBusinessHours (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + { + ApiResponse localVarResponse = SetBusinessHoursWithHttpInfo(storeId, deliveryType, businessHoursPeriod); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultBusinessHoursPeriod + public ApiResponse< RestApiResultBusinessHoursPeriod > SetBusinessHoursWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetBusinessHours"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->SetBusinessHours"); + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod == null) + throw new ApiException(400, "Missing required parameter 'businessHoursPeriod' when calling StoresApi->SetBusinessHours"); + + var localVarPath = "./api/v1.0/stores/{storeId}/availability/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (businessHoursPeriod != null && businessHoursPeriod.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursPeriod); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursPeriod; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetBusinessHours", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursPeriod))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultBusinessHoursPeriod + public async System.Threading.Tasks.Task SetBusinessHoursAsync (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + { + ApiResponse localVarResponse = await SetBusinessHoursAsyncWithHttpInfo(storeId, deliveryType, businessHoursPeriod); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultBusinessHoursPeriod) + public async System.Threading.Tasks.Task> SetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetBusinessHours"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->SetBusinessHours"); + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod == null) + throw new ApiException(400, "Missing required parameter 'businessHoursPeriod' when calling StoresApi->SetBusinessHours"); + + var localVarPath = "./api/v1.0/stores/{storeId}/availability/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (businessHoursPeriod != null && businessHoursPeriod.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessHoursPeriod); // http body (model) parameter + } + else + { + localVarPostBody = businessHoursPeriod; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetBusinessHours", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursPeriod))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + public RestApiArrayResultRestApiDefaultResponse SetPreOrdeEnabled (int? storeId, string deliveryType, bool? enabled) + { + ApiResponse localVarResponse = SetPreOrdeEnabledWithHttpInfo(storeId, deliveryType, enabled); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + public ApiResponse< RestApiArrayResultRestApiDefaultResponse > SetPreOrdeEnabledWithHttpInfo (int? storeId, string deliveryType, bool? enabled) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetPreOrdeEnabled"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->SetPreOrdeEnabled"); + // verify the required parameter 'enabled' is set + if (enabled == null) + throw new ApiException(400, "Missing required parameter 'enabled' when calling StoresApi->SetPreOrdeEnabled"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetPreOrdeEnabled", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + public async System.Threading.Tasks.Task SetPreOrdeEnabledAsync (int? storeId, string deliveryType, bool? enabled) + { + ApiResponse localVarResponse = await SetPreOrdeEnabledAsyncWithHttpInfo(storeId, deliveryType, enabled); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetPreOrdeEnabledAsyncWithHttpInfo (int? storeId, string deliveryType, bool? enabled) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetPreOrdeEnabled"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->SetPreOrdeEnabled"); + // verify the required parameter 'enabled' is set + if (enabled == null) + throw new ApiException(400, "Missing required parameter 'enabled' when calling StoresApi->SetPreOrdeEnabled"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetPreOrdeEnabled", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultRestApiDefaultResponse + public RestApiResultRestApiDefaultResponse SetStoreCollectionSettings (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) + { + ApiResponse localVarResponse = SetStoreCollectionSettingsWithHttpInfo(storeId, settings, inheritFromProperty); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultRestApiDefaultResponse + public ApiResponse< RestApiResultRestApiDefaultResponse > SetStoreCollectionSettingsWithHttpInfo (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetStoreCollectionSettings"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling StoresApi->SetStoreCollectionSettings"); + + var localVarPath = "./api/v1.0/stores/{storeId}/collectionsettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (inheritFromProperty != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "inheritFromProperty", inheritFromProperty)); // query parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStoreCollectionSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultRestApiDefaultResponse + public async System.Threading.Tasks.Task SetStoreCollectionSettingsAsync (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) + { + ApiResponse localVarResponse = await SetStoreCollectionSettingsAsyncWithHttpInfo(storeId, settings, inheritFromProperty); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultRestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetStoreCollectionSettingsAsyncWithHttpInfo (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetStoreCollectionSettings"); + // verify the required parameter 'settings' is set + if (settings == null) + throw new ApiException(400, "Missing required parameter 'settings' when calling StoresApi->SetStoreCollectionSettings"); + + var localVarPath = "./api/v1.0/stores/{storeId}/collectionsettings"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (inheritFromProperty != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "inheritFromProperty", inheritFromProperty)); // query parameter + if (settings != null && settings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(settings); // http body (model) parameter + } + else + { + localVarPostBody = settings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStoreCollectionSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrderLeadTimes + public RestApiResultOrderLeadTimes SetStoreLeadTimes (int? storeId, LeadTime leadTime) + { + ApiResponse localVarResponse = SetStoreLeadTimesWithHttpInfo(storeId, leadTime); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrderLeadTimes + public ApiResponse< RestApiResultOrderLeadTimes > SetStoreLeadTimesWithHttpInfo (int? storeId, LeadTime leadTime) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetStoreLeadTimes"); + // verify the required parameter 'leadTime' is set + if (leadTime == null) + throw new ApiException(400, "Missing required parameter 'leadTime' when calling StoresApi->SetStoreLeadTimes"); + + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (leadTime != null && leadTime.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(leadTime); // http body (model) parameter + } + else + { + localVarPostBody = leadTime; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStoreLeadTimes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrderLeadTimes + public async System.Threading.Tasks.Task SetStoreLeadTimesAsync (int? storeId, LeadTime leadTime) + { + ApiResponse localVarResponse = await SetStoreLeadTimesAsyncWithHttpInfo(storeId, leadTime); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrderLeadTimes) + public async System.Threading.Tasks.Task> SetStoreLeadTimesAsyncWithHttpInfo (int? storeId, LeadTime leadTime) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SetStoreLeadTimes"); + // verify the required parameter 'leadTime' is set + if (leadTime == null) + throw new ApiException(400, "Missing required parameter 'leadTime' when calling StoresApi->SetStoreLeadTimes"); + + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (leadTime != null && leadTime.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(leadTime); // http body (model) parameter + } + else + { + localVarPostBody = leadTime; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetStoreLeadTimes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object StoresSetPropertyId (int? storeId, string propertyId) + { + ApiResponse localVarResponse = StoresSetPropertyIdWithHttpInfo(storeId, propertyId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > StoresSetPropertyIdWithHttpInfo (int? storeId, string propertyId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->StoresSetPropertyId"); + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->StoresSetPropertyId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/propertyId/{propertyId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StoresSetPropertyId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task StoresSetPropertyIdAsync (int? storeId, string propertyId) + { + ApiResponse localVarResponse = await StoresSetPropertyIdAsyncWithHttpInfo(storeId, propertyId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> StoresSetPropertyIdAsyncWithHttpInfo (int? storeId, string propertyId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->StoresSetPropertyId"); + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->StoresSetPropertyId"); + + var localVarPath = "./api/v1.0/stores/{storeId}/propertyId/{propertyId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StoresSetPropertyId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void SupportedSalesChannelsTypes (string propertyId, int? storeId, List salesChannelTypes) + { + SupportedSalesChannelsTypesWithHttpInfo(propertyId, storeId, salesChannelTypes); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SupportedSalesChannelsTypesWithHttpInfo (string propertyId, int? storeId, List salesChannelTypes) + { + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->SupportedSalesChannelsTypes"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SupportedSalesChannelsTypes"); + // verify the required parameter 'salesChannelTypes' is set + if (salesChannelTypes == null) + throw new ApiException(400, "Missing required parameter 'salesChannelTypes' when calling StoresApi->SupportedSalesChannelsTypes"); + + var localVarPath = "./api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (salesChannelTypes != null && salesChannelTypes.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(salesChannelTypes); // http body (model) parameter + } + else + { + localVarPostBody = salesChannelTypes; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SupportedSalesChannelsTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SupportedSalesChannelsTypesAsync (string propertyId, int? storeId, List salesChannelTypes) + { + await SupportedSalesChannelsTypesAsyncWithHttpInfo(propertyId, storeId, salesChannelTypes); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SupportedSalesChannelsTypesAsyncWithHttpInfo (string propertyId, int? storeId, List salesChannelTypes) + { + // verify the required parameter 'propertyId' is set + if (propertyId == null) + throw new ApiException(400, "Missing required parameter 'propertyId' when calling StoresApi->SupportedSalesChannelsTypes"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->SupportedSalesChannelsTypes"); + // verify the required parameter 'salesChannelTypes' is set + if (salesChannelTypes == null) + throw new ApiException(400, "Missing required parameter 'salesChannelTypes' when calling StoresApi->SupportedSalesChannelsTypes"); + + var localVarPath = "./api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (salesChannelTypes != null && salesChannelTypes.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(salesChannelTypes); // http body (model) parameter + } + else + { + localVarPostBody = salesChannelTypes; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SupportedSalesChannelsTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void UnpublishStore (int? storeId) + { + UnpublishStoreWithHttpInfo(storeId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse UnpublishStoreWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UnpublishStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/unpublish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnpublishStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task UnpublishStoreAsync (int? storeId) + { + await UnpublishStoreAsyncWithHttpInfo(storeId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UnpublishStoreAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UnpublishStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}/unpublish"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnpublishStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + public RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) + { + ApiResponse localVarResponse = UpdatePreOrderConfigWithHttpInfo(storeId, deliveryType, preOrderConfig); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + public ApiResponse< RestApiArrayResultRestApiDefaultResponse > UpdatePreOrderConfigWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdatePreOrderConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->UpdatePreOrderConfig"); + // verify the required parameter 'preOrderConfig' is set + if (preOrderConfig == null) + throw new ApiException(400, "Missing required parameter 'preOrderConfig' when calling StoresApi->UpdatePreOrderConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (preOrderConfig != null && preOrderConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(preOrderConfig); // http body (model) parameter + } + else + { + localVarPostBody = preOrderConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePreOrderConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiArrayResultRestApiDefaultResponse + public async System.Threading.Tasks.Task UpdatePreOrderConfigAsync (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) + { + ApiResponse localVarResponse = await UpdatePreOrderConfigAsyncWithHttpInfo(storeId, deliveryType, preOrderConfig); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) + public async System.Threading.Tasks.Task> UpdatePreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdatePreOrderConfig"); + // verify the required parameter 'deliveryType' is set + if (deliveryType == null) + throw new ApiException(400, "Missing required parameter 'deliveryType' when calling StoresApi->UpdatePreOrderConfig"); + // verify the required parameter 'preOrderConfig' is set + if (preOrderConfig == null) + throw new ApiException(400, "Missing required parameter 'preOrderConfig' when calling StoresApi->UpdatePreOrderConfig"); + + var localVarPath = "./api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (deliveryType != null) localVarPathParams.Add("deliveryType", this.Configuration.ApiClient.ParameterToString(deliveryType)); // path parameter + if (preOrderConfig != null && preOrderConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(preOrderConfig); // http body (model) parameter + } + else + { + localVarPostBody = preOrderConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePreOrderConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStore + public RestApiResultStore UpdateStore (int? storeId, StoreBase store) + { + ApiResponse localVarResponse = UpdateStoreWithHttpInfo(storeId, store); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > UpdateStoreWithHttpInfo (int? storeId, StoreBase store) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStore"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->UpdateStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task UpdateStoreAsync (int? storeId, StoreBase store) + { + ApiResponse localVarResponse = await UpdateStoreAsyncWithHttpInfo(storeId, store); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStore) + public async System.Threading.Tasks.Task> UpdateStoreAsyncWithHttpInfo (int? storeId, StoreBase store) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStore"); + // verify the required parameter 'store' is set + if (store == null) + throw new ApiException(400, "Missing required parameter 'store' when calling StoresApi->UpdateStore"); + + var localVarPath = "./api/v1.0/stores/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (store != null && store.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(store); // http body (model) parameter + } + else + { + localVarPostBody = store; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStoreAddress + public RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress) + { + ApiResponse localVarResponse = UpdateStoreAddressWithHttpInfo(storeId, storeAddress); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStoreAddress + public ApiResponse< RestApiResultStoreAddress > UpdateStoreAddressWithHttpInfo (int? storeId, StoreAddressBase storeAddress) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddress"); + // verify the required parameter 'storeAddress' is set + if (storeAddress == null) + throw new ApiException(400, "Missing required parameter 'storeAddress' when calling StoresApi->UpdateStoreAddress"); + + var localVarPath = "./api/v1.0/stores/{storeId}/address"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (storeAddress != null && storeAddress.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeAddress); // http body (model) parameter + } + else + { + localVarPostBody = storeAddress; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddress", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreAddress))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStoreAddress + public async System.Threading.Tasks.Task UpdateStoreAddressAsync (int? storeId, StoreAddressBase storeAddress) + { + ApiResponse localVarResponse = await UpdateStoreAddressAsyncWithHttpInfo(storeId, storeAddress); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStoreAddress) + public async System.Threading.Tasks.Task> UpdateStoreAddressAsyncWithHttpInfo (int? storeId, StoreAddressBase storeAddress) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddress"); + // verify the required parameter 'storeAddress' is set + if (storeAddress == null) + throw new ApiException(400, "Missing required parameter 'storeAddress' when calling StoresApi->UpdateStoreAddress"); + + var localVarPath = "./api/v1.0/stores/{storeId}/address"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (storeAddress != null && storeAddress.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(storeAddress); // http body (model) parameter + } + else + { + localVarPostBody = storeAddress; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddress", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStoreAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreAddress))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiResultCoordinates + public RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null) + { + ApiResponse localVarResponse = UpdateStoreAddressCoordinatesWithHttpInfo(storeId, coordinates, appNameId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiResultCoordinates + public ApiResponse< RestApiResultCoordinates > UpdateStoreAddressCoordinatesWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddressCoordinates"); + // verify the required parameter 'coordinates' is set + if (coordinates == null) + throw new ApiException(400, "Missing required parameter 'coordinates' when calling StoresApi->UpdateStoreAddressCoordinates"); + + var localVarPath = "./api/v1.0/stores/{storeId}/address/coordinates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + if (coordinates != null && coordinates.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(coordinates); // http body (model) parameter + } + else + { + localVarPostBody = coordinates; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddressCoordinates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCoordinates) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCoordinates))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiResultCoordinates + public async System.Threading.Tasks.Task UpdateStoreAddressCoordinatesAsync (int? storeId, Coordinates coordinates, string appNameId = null) + { + ApiResponse localVarResponse = await UpdateStoreAddressCoordinatesAsyncWithHttpInfo(storeId, coordinates, appNameId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultCoordinates) + public async System.Threading.Tasks.Task> UpdateStoreAddressCoordinatesAsyncWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddressCoordinates"); + // verify the required parameter 'coordinates' is set + if (coordinates == null) + throw new ApiException(400, "Missing required parameter 'coordinates' when calling StoresApi->UpdateStoreAddressCoordinates"); + + var localVarPath = "./api/v1.0/stores/{storeId}/address/coordinates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appNameId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "appNameId", appNameId)); // query parameter + if (coordinates != null && coordinates.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(coordinates); // http body (model) parameter + } + else + { + localVarPostBody = coordinates; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddressCoordinates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultCoordinates) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCoordinates))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address) + { + ApiResponse localVarResponse = UpdateStoreAddressFormWithHttpInfo(storeId, address); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > UpdateStoreAddressFormWithHttpInfo (int? storeId, StoreAddressForm address) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddressForm"); + // verify the required parameter 'address' is set + if (address == null) + throw new ApiException(400, "Missing required parameter 'address' when calling StoresApi->UpdateStoreAddressForm"); + + var localVarPath = "./api/v1.0/stores/{storeId}/addressform"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (address != null && address.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(address); // http body (model) parameter + } + else + { + localVarPostBody = address; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddressForm", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task UpdateStoreAddressFormAsync (int? storeId, StoreAddressForm address) + { + ApiResponse localVarResponse = await UpdateStoreAddressFormAsyncWithHttpInfo(storeId, address); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> UpdateStoreAddressFormAsyncWithHttpInfo (int? storeId, StoreAddressForm address) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->UpdateStoreAddressForm"); + // verify the required parameter 'address' is set + if (address == null) + throw new ApiException(400, "Missing required parameter 'address' when calling StoresApi->UpdateStoreAddressForm"); + + var localVarPath = "./api/v1.0/stores/{storeId}/addressform"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (address != null && address.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(address); // http body (model) parameter + } + else + { + localVarPostBody = address; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateStoreAddressForm", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/StripeCustomConnectApi.cs b/src/Flipdish/Api/StripeCustomConnectApi.cs new file mode 100644 index 00000000..a01cc1a8 --- /dev/null +++ b/src/Flipdish/Api/StripeCustomConnectApi.cs @@ -0,0 +1,1962 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStripeCustomConnectApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (string appId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + ApiResponse CreateBankAccountAndConnectedAccountWithHttpInfo (string appId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStripeConnectedAccount + RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + ApiResponse CreateStripeConnectedAccountWithHttpInfo (string appId, int? bankAccountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStripeConnectedAccount + RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + ApiResponse CreateStripeConnectedAccountLinkWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStripeCustomConnectedAccount + RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStripeCustomConnectedAccount + ApiResponse GetCustomConnectWithHttpInfo (int? storeId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultBankAccountDetail + RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + ApiResponse SetBankAccountBusinessTypeWithHttpInfo (string appId, int? bankAccountId, string businessType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object StripeCustomConnectRefresh (int? linkRequestId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse StripeCustomConnectRefreshWithHttpInfo (int? linkRequestId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStripeConnectedAccount + RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + ApiResponse UpdateBankAccountDetailsWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultModelBase + RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeConnectedAccountId, string interval); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultModelBase + ApiResponse UpdatePayoutScheduleWithHttpInfo (string appId, string stripeConnectedAccountId, string interval); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + System.Threading.Tasks.Task CreateBankAccountAndConnectedAccountAsync (string appId, BankAccountCreate account); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + System.Threading.Tasks.Task> CreateBankAccountAndConnectedAccountAsyncWithHttpInfo (string appId, BankAccountCreate account); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStripeConnectedAccount + System.Threading.Tasks.Task CreateStripeConnectedAccountAsync (string appId, int? bankAccountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + System.Threading.Tasks.Task> CreateStripeConnectedAccountAsyncWithHttpInfo (string appId, int? bankAccountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStripeConnectedAccount + System.Threading.Tasks.Task CreateStripeConnectedAccountLinkAsync (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + System.Threading.Tasks.Task> CreateStripeConnectedAccountLinkAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStripeCustomConnectedAccount + System.Threading.Tasks.Task GetCustomConnectAsync (int? storeId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStripeCustomConnectedAccount) + System.Threading.Tasks.Task> GetCustomConnectAsyncWithHttpInfo (int? storeId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultBankAccountDetail + System.Threading.Tasks.Task SetBankAccountBusinessTypeAsync (string appId, int? bankAccountId, string businessType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + System.Threading.Tasks.Task> SetBankAccountBusinessTypeAsyncWithHttpInfo (string appId, int? bankAccountId, string businessType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task StripeCustomConnectRefreshAsync (int? linkRequestId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> StripeCustomConnectRefreshAsyncWithHttpInfo (int? linkRequestId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStripeConnectedAccount + System.Threading.Tasks.Task UpdateBankAccountDetailsAsync (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + System.Threading.Tasks.Task> UpdateBankAccountDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultModelBase + System.Threading.Tasks.Task UpdatePayoutScheduleAsync (string appId, string stripeConnectedAccountId, string interval); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultModelBase) + System.Threading.Tasks.Task> UpdatePayoutScheduleAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, string interval); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StripeCustomConnectApi : IStripeCustomConnectApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public StripeCustomConnectApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public StripeCustomConnectApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultBankAccountDetail + public RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (string appId, BankAccountCreate account) + { + ApiResponse localVarResponse = CreateBankAccountAndConnectedAccountWithHttpInfo(appId, account); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountAndConnectedAccountWithHttpInfo (string appId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateBankAccountAndConnectedAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling StripeCustomConnectApi->CreateBankAccountAndConnectedAccount"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/bank-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBankAccountAndConnectedAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultBankAccountDetail + public async System.Threading.Tasks.Task CreateBankAccountAndConnectedAccountAsync (string appId, BankAccountCreate account) + { + ApiResponse localVarResponse = await CreateBankAccountAndConnectedAccountAsyncWithHttpInfo(appId, account); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + public async System.Threading.Tasks.Task> CreateBankAccountAndConnectedAccountAsyncWithHttpInfo (string appId, BankAccountCreate account) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateBankAccountAndConnectedAccount"); + // verify the required parameter 'account' is set + if (account == null) + throw new ApiException(400, "Missing required parameter 'account' when calling StripeCustomConnectApi->CreateBankAccountAndConnectedAccount"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/bank-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (account != null && account.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(account); // http body (model) parameter + } + else + { + localVarPostBody = account; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateBankAccountAndConnectedAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultStripeConnectedAccount + public RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId) + { + ApiResponse localVarResponse = CreateStripeConnectedAccountWithHttpInfo(appId, bankAccountId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedAccountWithHttpInfo (string appId, int? bankAccountId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateStripeConnectedAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->CreateStripeConnectedAccount"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStripeConnectedAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultStripeConnectedAccount + public async System.Threading.Tasks.Task CreateStripeConnectedAccountAsync (string appId, int? bankAccountId) + { + ApiResponse localVarResponse = await CreateStripeConnectedAccountAsyncWithHttpInfo(appId, bankAccountId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + public async System.Threading.Tasks.Task> CreateStripeConnectedAccountAsyncWithHttpInfo (string appId, int? bankAccountId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateStripeConnectedAccount"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->CreateStripeConnectedAccount"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStripeConnectedAccount", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStripeConnectedAccount + public RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) + { + ApiResponse localVarResponse = CreateStripeConnectedAccountLinkWithHttpInfo(appId, stripeConnectedAccountId, stripeAccountLinkRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedAccountLinkWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId == null) + throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + // verify the required parameter 'stripeAccountLinkRequest' is set + if (stripeAccountLinkRequest == null) + throw new ApiException(400, "Missing required parameter 'stripeAccountLinkRequest' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (stripeConnectedAccountId != null) localVarPathParams.Add("stripeConnectedAccountId", this.Configuration.ApiClient.ParameterToString(stripeConnectedAccountId)); // path parameter + if (stripeAccountLinkRequest != null && stripeAccountLinkRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stripeAccountLinkRequest); // http body (model) parameter + } + else + { + localVarPostBody = stripeAccountLinkRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStripeConnectedAccountLink", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStripeConnectedAccount + public async System.Threading.Tasks.Task CreateStripeConnectedAccountLinkAsync (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) + { + ApiResponse localVarResponse = await CreateStripeConnectedAccountLinkAsyncWithHttpInfo(appId, stripeConnectedAccountId, stripeAccountLinkRequest); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + public async System.Threading.Tasks.Task> CreateStripeConnectedAccountLinkAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId == null) + throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + // verify the required parameter 'stripeAccountLinkRequest' is set + if (stripeAccountLinkRequest == null) + throw new ApiException(400, "Missing required parameter 'stripeAccountLinkRequest' when calling StripeCustomConnectApi->CreateStripeConnectedAccountLink"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (stripeConnectedAccountId != null) localVarPathParams.Add("stripeConnectedAccountId", this.Configuration.ApiClient.ParameterToString(stripeConnectedAccountId)); // path parameter + if (stripeAccountLinkRequest != null && stripeAccountLinkRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stripeAccountLinkRequest); // http body (model) parameter + } + else + { + localVarPostBody = stripeAccountLinkRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateStripeConnectedAccountLink", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultStripeCustomConnectedAccount + public RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId) + { + ApiResponse localVarResponse = GetCustomConnectWithHttpInfo(storeId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultStripeCustomConnectedAccount + public ApiResponse< RestApiArrayResultStripeCustomConnectedAccount > GetCustomConnectWithHttpInfo (int? storeId, string appId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StripeCustomConnectApi->GetCustomConnect"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->GetCustomConnect"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomConnect", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStripeCustomConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStripeCustomConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultStripeCustomConnectedAccount + public async System.Threading.Tasks.Task GetCustomConnectAsync (int? storeId, string appId) + { + ApiResponse localVarResponse = await GetCustomConnectAsyncWithHttpInfo(storeId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultStripeCustomConnectedAccount) + public async System.Threading.Tasks.Task> GetCustomConnectAsyncWithHttpInfo (int? storeId, string appId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StripeCustomConnectApi->GetCustomConnect"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->GetCustomConnect"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetCustomConnect", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultStripeCustomConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStripeCustomConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultBankAccountDetail + public RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType) + { + ApiResponse localVarResponse = SetBankAccountBusinessTypeWithHttpInfo(appId, bankAccountId, businessType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultBankAccountDetail + public ApiResponse< RestApiResultBankAccountDetail > SetBankAccountBusinessTypeWithHttpInfo (string appId, int? bankAccountId, string businessType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + // verify the required parameter 'businessType' is set + if (businessType == null) + throw new ApiException(400, "Missing required parameter 'businessType' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (businessType != null && businessType.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessType); // http body (model) parameter + } + else + { + localVarPostBody = businessType; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetBankAccountBusinessType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultBankAccountDetail + public async System.Threading.Tasks.Task SetBankAccountBusinessTypeAsync (string appId, int? bankAccountId, string businessType) + { + ApiResponse localVarResponse = await SetBankAccountBusinessTypeAsyncWithHttpInfo(appId, bankAccountId, businessType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultBankAccountDetail) + public async System.Threading.Tasks.Task> SetBankAccountBusinessTypeAsyncWithHttpInfo (string appId, int? bankAccountId, string businessType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + // verify the required parameter 'businessType' is set + if (businessType == null) + throw new ApiException(400, "Missing required parameter 'businessType' when calling StripeCustomConnectApi->SetBankAccountBusinessType"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (businessType != null && businessType.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(businessType); // http body (model) parameter + } + else + { + localVarPostBody = businessType; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetBankAccountBusinessType", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object StripeCustomConnectRefresh (int? linkRequestId, string appId) + { + ApiResponse localVarResponse = StripeCustomConnectRefreshWithHttpInfo(linkRequestId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > StripeCustomConnectRefreshWithHttpInfo (int? linkRequestId, string appId) + { + // verify the required parameter 'linkRequestId' is set + if (linkRequestId == null) + throw new ApiException(400, "Missing required parameter 'linkRequestId' when calling StripeCustomConnectApi->StripeCustomConnectRefresh"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->StripeCustomConnectRefresh"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/refresh-link"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (linkRequestId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "linkRequestId", linkRequestId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StripeCustomConnectRefresh", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task StripeCustomConnectRefreshAsync (int? linkRequestId, string appId) + { + ApiResponse localVarResponse = await StripeCustomConnectRefreshAsyncWithHttpInfo(linkRequestId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> StripeCustomConnectRefreshAsyncWithHttpInfo (int? linkRequestId, string appId) + { + // verify the required parameter 'linkRequestId' is set + if (linkRequestId == null) + throw new ApiException(400, "Missing required parameter 'linkRequestId' when calling StripeCustomConnectApi->StripeCustomConnectRefresh"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->StripeCustomConnectRefresh"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/refresh-link"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (linkRequestId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "linkRequestId", linkRequestId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StripeCustomConnectRefresh", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultStripeConnectedAccount + public RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) + { + ApiResponse localVarResponse = UpdateBankAccountDetailsWithHttpInfo(appId, bankAccountId, updateRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultStripeConnectedAccount + public ApiResponse< RestApiResultStripeConnectedAccount > UpdateBankAccountDetailsWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + // verify the required parameter 'updateRequest' is set + if (updateRequest == null) + throw new ApiException(400, "Missing required parameter 'updateRequest' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateRequest); // http body (model) parameter + } + else + { + localVarPostBody = updateRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccountDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultStripeConnectedAccount + public async System.Threading.Tasks.Task UpdateBankAccountDetailsAsync (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) + { + ApiResponse localVarResponse = await UpdateBankAccountDetailsAsyncWithHttpInfo(appId, bankAccountId, updateRequest); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultStripeConnectedAccount) + public async System.Threading.Tasks.Task> UpdateBankAccountDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + // verify the required parameter 'bankAccountId' is set + if (bankAccountId == null) + throw new ApiException(400, "Missing required parameter 'bankAccountId' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + // verify the required parameter 'updateRequest' is set + if (updateRequest == null) + throw new ApiException(400, "Missing required parameter 'updateRequest' when calling StripeCustomConnectApi->UpdateBankAccountDetails"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (bankAccountId != null) localVarPathParams.Add("bankAccountId", this.Configuration.ApiClient.ParameterToString(bankAccountId)); // path parameter + if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateRequest); // http body (model) parameter + } + else + { + localVarPostBody = updateRequest; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateBankAccountDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultModelBase + public RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeConnectedAccountId, string interval) + { + ApiResponse localVarResponse = UpdatePayoutScheduleWithHttpInfo(appId, stripeConnectedAccountId, interval); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultModelBase + public ApiResponse< RestApiResultModelBase > UpdatePayoutScheduleWithHttpInfo (string appId, string stripeConnectedAccountId, string interval) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId == null) + throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + // verify the required parameter 'interval' is set + if (interval == null) + throw new ApiException(400, "Missing required parameter 'interval' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (stripeConnectedAccountId != null) localVarPathParams.Add("stripeConnectedAccountId", this.Configuration.ApiClient.ParameterToString(stripeConnectedAccountId)); // path parameter + if (interval != null) localVarPathParams.Add("interval", this.Configuration.ApiClient.ParameterToString(interval)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePayoutSchedule", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultModelBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultModelBase))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultModelBase + public async System.Threading.Tasks.Task UpdatePayoutScheduleAsync (string appId, string stripeConnectedAccountId, string interval) + { + ApiResponse localVarResponse = await UpdatePayoutScheduleAsyncWithHttpInfo(appId, stripeConnectedAccountId, interval); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultModelBase) + public async System.Threading.Tasks.Task> UpdatePayoutScheduleAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, string interval) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId == null) + throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + // verify the required parameter 'interval' is set + if (interval == null) + throw new ApiException(400, "Missing required parameter 'interval' when calling StripeCustomConnectApi->UpdatePayoutSchedule"); + + var localVarPath = "./api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (stripeConnectedAccountId != null) localVarPathParams.Add("stripeConnectedAccountId", this.Configuration.ApiClient.ParameterToString(stripeConnectedAccountId)); // path parameter + if (interval != null) localVarPathParams.Add("interval", this.Configuration.ApiClient.ParameterToString(interval)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePayoutSchedule", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultModelBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultModelBase))); + } + + } +} diff --git a/src/Flipdish/Api/StuartApi.cs b/src/Flipdish/Api/StuartApi.cs new file mode 100644 index 00000000..81e3d89d --- /dev/null +++ b/src/Flipdish/Api/StuartApi.cs @@ -0,0 +1,974 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStuartApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object StuartCancelJob (int? jobId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse StuartCancelJobWithHttpInfo (int? jobId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultJobResponse + RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultJobResponse + ApiResponse StuartGetJobWithHttpInfo (int? jobId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStuartSettings + RestApiResultStuartSettings StuartGetStuartSettings (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStuartSettings + ApiResponse StuartGetStuartSettingsWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse StuartPostStuartSettingsWithHttpInfo (int? storeId, StuartSettings stuartSettings); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task StuartCancelJobAsync (int? jobId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> StuartCancelJobAsyncWithHttpInfo (int? jobId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultJobResponse + System.Threading.Tasks.Task StuartGetJobAsync (int? jobId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultJobResponse) + System.Threading.Tasks.Task> StuartGetJobAsyncWithHttpInfo (int? jobId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStuartSettings + System.Threading.Tasks.Task StuartGetStuartSettingsAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStuartSettings) + System.Threading.Tasks.Task> StuartGetStuartSettingsAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task StuartPostStuartSettingsAsync (int? storeId, StuartSettings stuartSettings); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> StuartPostStuartSettingsAsyncWithHttpInfo (int? storeId, StuartSettings stuartSettings); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StuartApi : IStuartApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public StuartApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public StuartApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object StuartCancelJob (int? jobId, int? storeId) + { + ApiResponse localVarResponse = StuartCancelJobWithHttpInfo(jobId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > StuartCancelJobWithHttpInfo (int? jobId, int? storeId) + { + // verify the required parameter 'jobId' is set + if (jobId == null) + throw new ApiException(400, "Missing required parameter 'jobId' when calling StuartApi->StuartCancelJob"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartCancelJob"); + + var localVarPath = "./api/v1.0/stuart/jobs/{jobId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartCancelJob", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task StuartCancelJobAsync (int? jobId, int? storeId) + { + ApiResponse localVarResponse = await StuartCancelJobAsyncWithHttpInfo(jobId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> StuartCancelJobAsyncWithHttpInfo (int? jobId, int? storeId) + { + // verify the required parameter 'jobId' is set + if (jobId == null) + throw new ApiException(400, "Missing required parameter 'jobId' when calling StuartApi->StuartCancelJob"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartCancelJob"); + + var localVarPath = "./api/v1.0/stuart/jobs/{jobId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartCancelJob", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultJobResponse + public RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId) + { + ApiResponse localVarResponse = StuartGetJobWithHttpInfo(jobId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultJobResponse + public ApiResponse< RestApiResultJobResponse > StuartGetJobWithHttpInfo (int? jobId, int? storeId) + { + // verify the required parameter 'jobId' is set + if (jobId == null) + throw new ApiException(400, "Missing required parameter 'jobId' when calling StuartApi->StuartGetJob"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartGetJob"); + + var localVarPath = "./api/v1.0/stuart/jobs/{jobId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartGetJob", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultJobResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultJobResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultJobResponse + public async System.Threading.Tasks.Task StuartGetJobAsync (int? jobId, int? storeId) + { + ApiResponse localVarResponse = await StuartGetJobAsyncWithHttpInfo(jobId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultJobResponse) + public async System.Threading.Tasks.Task> StuartGetJobAsyncWithHttpInfo (int? jobId, int? storeId) + { + // verify the required parameter 'jobId' is set + if (jobId == null) + throw new ApiException(400, "Missing required parameter 'jobId' when calling StuartApi->StuartGetJob"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartGetJob"); + + var localVarPath = "./api/v1.0/stuart/jobs/{jobId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (jobId != null) localVarPathParams.Add("jobId", this.Configuration.ApiClient.ParameterToString(jobId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartGetJob", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultJobResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultJobResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultStuartSettings + public RestApiResultStuartSettings StuartGetStuartSettings (int? storeId) + { + ApiResponse localVarResponse = StuartGetStuartSettingsWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultStuartSettings + public ApiResponse< RestApiResultStuartSettings > StuartGetStuartSettingsWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartGetStuartSettings"); + + var localVarPath = "./api/v1.0/stuart/settings/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartGetStuartSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStuartSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStuartSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultStuartSettings + public async System.Threading.Tasks.Task StuartGetStuartSettingsAsync (int? storeId) + { + ApiResponse localVarResponse = await StuartGetStuartSettingsAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultStuartSettings) + public async System.Threading.Tasks.Task> StuartGetStuartSettingsAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartGetStuartSettings"); + + var localVarPath = "./api/v1.0/stuart/settings/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartGetStuartSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultStuartSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStuartSettings))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings) + { + ApiResponse localVarResponse = StuartPostStuartSettingsWithHttpInfo(storeId, stuartSettings); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > StuartPostStuartSettingsWithHttpInfo (int? storeId, StuartSettings stuartSettings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartPostStuartSettings"); + // verify the required parameter 'stuartSettings' is set + if (stuartSettings == null) + throw new ApiException(400, "Missing required parameter 'stuartSettings' when calling StuartApi->StuartPostStuartSettings"); + + var localVarPath = "./api/v1.0/stuart/settings/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (stuartSettings != null && stuartSettings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stuartSettings); // http body (model) parameter + } + else + { + localVarPostBody = stuartSettings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartPostStuartSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task StuartPostStuartSettingsAsync (int? storeId, StuartSettings stuartSettings) + { + ApiResponse localVarResponse = await StuartPostStuartSettingsAsyncWithHttpInfo(storeId, stuartSettings); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> StuartPostStuartSettingsAsyncWithHttpInfo (int? storeId, StuartSettings stuartSettings) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling StuartApi->StuartPostStuartSettings"); + // verify the required parameter 'stuartSettings' is set + if (stuartSettings == null) + throw new ApiException(400, "Missing required parameter 'stuartSettings' when calling StuartApi->StuartPostStuartSettings"); + + var localVarPath = "./api/v1.0/stuart/settings/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (stuartSettings != null && stuartSettings.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(stuartSettings); // http body (model) parameter + } + else + { + localVarPostBody = stuartSettings; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("StuartPostStuartSettings", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + } +} diff --git a/src/Flipdish/Api/SubscriptionsApi.cs b/src/Flipdish/Api/SubscriptionsApi.cs new file mode 100644 index 00000000..6d444459 --- /dev/null +++ b/src/Flipdish/Api/SubscriptionsApi.cs @@ -0,0 +1,765 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISubscriptionsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultSubscription + RestApiResultSubscription GetSubscriptionById (string appId, string subscriptionId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultSubscription + ApiResponse GetSubscriptionByIdWithHttpInfo (string appId, string subscriptionId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultSubscriptionSummary + RestApiArrayResultSubscriptionSummary GetSubscriptionsForApp (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultSubscriptionSummary + ApiResponse GetSubscriptionsForAppWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultHasPaymentMethodResponse + RestApiResultHasPaymentMethodResponse HasCustomerGotPaymentMethodOnFile (string appId, string email = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultHasPaymentMethodResponse + ApiResponse HasCustomerGotPaymentMethodOnFileWithHttpInfo (string appId, string email = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultSubscription + System.Threading.Tasks.Task GetSubscriptionByIdAsync (string appId, string subscriptionId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultSubscription) + System.Threading.Tasks.Task> GetSubscriptionByIdAsyncWithHttpInfo (string appId, string subscriptionId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultSubscriptionSummary + System.Threading.Tasks.Task GetSubscriptionsForAppAsync (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultSubscriptionSummary) + System.Threading.Tasks.Task> GetSubscriptionsForAppAsyncWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultHasPaymentMethodResponse + System.Threading.Tasks.Task HasCustomerGotPaymentMethodOnFileAsync (string appId, string email = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultHasPaymentMethodResponse) + System.Threading.Tasks.Task> HasCustomerGotPaymentMethodOnFileAsyncWithHttpInfo (string appId, string email = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SubscriptionsApi : ISubscriptionsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SubscriptionsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SubscriptionsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultSubscription + public RestApiResultSubscription GetSubscriptionById (string appId, string subscriptionId) + { + ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(appId, subscriptionId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultSubscription + public ApiResponse< RestApiResultSubscription > GetSubscriptionByIdWithHttpInfo (string appId, string subscriptionId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->GetSubscriptionById"); + // verify the required parameter 'subscriptionId' is set + if (subscriptionId == null) + throw new ApiException(400, "Missing required parameter 'subscriptionId' when calling SubscriptionsApi->GetSubscriptionById"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions/{subscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarPathParams.Add("subscriptionId", this.Configuration.ApiClient.ParameterToString(subscriptionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubscriptionById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSubscription))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultSubscription + public async System.Threading.Tasks.Task GetSubscriptionByIdAsync (string appId, string subscriptionId) + { + ApiResponse localVarResponse = await GetSubscriptionByIdAsyncWithHttpInfo(appId, subscriptionId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultSubscription) + public async System.Threading.Tasks.Task> GetSubscriptionByIdAsyncWithHttpInfo (string appId, string subscriptionId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->GetSubscriptionById"); + // verify the required parameter 'subscriptionId' is set + if (subscriptionId == null) + throw new ApiException(400, "Missing required parameter 'subscriptionId' when calling SubscriptionsApi->GetSubscriptionById"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions/{subscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (subscriptionId != null) localVarPathParams.Add("subscriptionId", this.Configuration.ApiClient.ParameterToString(subscriptionId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubscriptionById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSubscription))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultSubscriptionSummary + public RestApiArrayResultSubscriptionSummary GetSubscriptionsForApp (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) + { + ApiResponse localVarResponse = GetSubscriptionsForAppWithHttpInfo(appId, excludeNotOwnedSubscriptions, storeId, excludeCancelledSubscriptions); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultSubscriptionSummary + public ApiResponse< RestApiArrayResultSubscriptionSummary > GetSubscriptionsForAppWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->GetSubscriptionsForApp"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (excludeNotOwnedSubscriptions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedSubscriptions", excludeNotOwnedSubscriptions)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (excludeCancelledSubscriptions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeCancelledSubscriptions", excludeCancelledSubscriptions)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubscriptionsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSubscriptionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSubscriptionSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultSubscriptionSummary + public async System.Threading.Tasks.Task GetSubscriptionsForAppAsync (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) + { + ApiResponse localVarResponse = await GetSubscriptionsForAppAsyncWithHttpInfo(appId, excludeNotOwnedSubscriptions, storeId, excludeCancelledSubscriptions); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultSubscriptionSummary) + public async System.Threading.Tasks.Task> GetSubscriptionsForAppAsyncWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->GetSubscriptionsForApp"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (excludeNotOwnedSubscriptions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeNotOwnedSubscriptions", excludeNotOwnedSubscriptions)); // query parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (excludeCancelledSubscriptions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "excludeCancelledSubscriptions", excludeCancelledSubscriptions)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetSubscriptionsForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultSubscriptionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSubscriptionSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiResultHasPaymentMethodResponse + public RestApiResultHasPaymentMethodResponse HasCustomerGotPaymentMethodOnFile (string appId, string email = null) + { + ApiResponse localVarResponse = HasCustomerGotPaymentMethodOnFileWithHttpInfo(appId, email); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiResultHasPaymentMethodResponse + public ApiResponse< RestApiResultHasPaymentMethodResponse > HasCustomerGotPaymentMethodOnFileWithHttpInfo (string appId, string email = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->HasCustomerGotPaymentMethodOnFile"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions/hasPaymentMethod"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (email != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "email", email)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HasCustomerGotPaymentMethodOnFile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHasPaymentMethodResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHasPaymentMethodResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiResultHasPaymentMethodResponse + public async System.Threading.Tasks.Task HasCustomerGotPaymentMethodOnFileAsync (string appId, string email = null) + { + ApiResponse localVarResponse = await HasCustomerGotPaymentMethodOnFileAsyncWithHttpInfo(appId, email); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiResultHasPaymentMethodResponse) + public async System.Threading.Tasks.Task> HasCustomerGotPaymentMethodOnFileAsyncWithHttpInfo (string appId, string email = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling SubscriptionsApi->HasCustomerGotPaymentMethodOnFile"); + + var localVarPath = "./api/v1.0/{appId}/subscriptions/hasPaymentMethod"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (email != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "email", email)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HasCustomerGotPaymentMethodOnFile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultHasPaymentMethodResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHasPaymentMethodResponse))); + } + + } +} diff --git a/src/Flipdish/Api/TeammatesApi.cs b/src/Flipdish/Api/TeammatesApi.cs new file mode 100644 index 00000000..332776fb --- /dev/null +++ b/src/Flipdish/Api/TeammatesApi.cs @@ -0,0 +1,2419 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITeammatesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTeammate + RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTeammate + ApiResponse CreateTeammateWithHttpInfo (string appId, CreateTeammate teammate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeleteTeammate (string appId, string id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteTeammateWithHttpInfo (string appId, string id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTeammate + RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, string id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTeammate + ApiResponse GetTeammateByAppIdAndTeammateIdWithHttpInfo (string appId, string id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultTeammate + RestApiArrayResultTeammate GetTeammatesByAppId (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultTeammate + ApiResponse GetTeammatesByAppIdWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + Object Grantaccess (string appId, CreateTeammate teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + ApiResponse GrantaccessWithHttpInfo (string appId, CreateTeammate teammate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRedeemInvitationResult + RestApiResultRedeemInvitationResult RedeemInvitation (string otc, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRedeemInvitationResult + ApiResponse RedeemInvitationWithHttpInfo (string otc, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + Object TeammateMobileRedirect (string portalUrl); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + ApiResponse TeammateMobileRedirectWithHttpInfo (string portalUrl); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAcceptInvitationResult + RestApiResultAcceptInvitationResult TeammatesAcceptInvitation (string otc, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAcceptInvitationResult + ApiResponse TeammatesAcceptInvitationWithHttpInfo (string otc, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultRedeemInvitationResult + RestApiArrayResultRedeemInvitationResult TeammatesAcceptInvitations (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultRedeemInvitationResult + ApiResponse TeammatesAcceptInvitationsWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultPendingInvitation + RestApiArrayResultPendingInvitation TeammatesPendingInvitations (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultPendingInvitation + ApiResponse TeammatesPendingInvitationsWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultTeammate + RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBase teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultTeammate + ApiResponse UpdateTeammateWithHttpInfo (string appId, string id, TeammateBase teammate); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTeammate + System.Threading.Tasks.Task CreateTeammateAsync (string appId, CreateTeammate teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + System.Threading.Tasks.Task> CreateTeammateAsyncWithHttpInfo (string appId, CreateTeammate teammate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteTeammateAsync (string appId, string id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteTeammateAsyncWithHttpInfo (string appId, string id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTeammate + System.Threading.Tasks.Task GetTeammateByAppIdAndTeammateIdAsync (string appId, string id); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + System.Threading.Tasks.Task> GetTeammateByAppIdAndTeammateIdAsyncWithHttpInfo (string appId, string id); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultTeammate + System.Threading.Tasks.Task GetTeammatesByAppIdAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultTeammate) + System.Threading.Tasks.Task> GetTeammatesByAppIdAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + System.Threading.Tasks.Task GrantaccessAsync (string appId, CreateTeammate teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> GrantaccessAsyncWithHttpInfo (string appId, CreateTeammate teammate); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRedeemInvitationResult + System.Threading.Tasks.Task RedeemInvitationAsync (string otc, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRedeemInvitationResult) + System.Threading.Tasks.Task> RedeemInvitationAsyncWithHttpInfo (string otc, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + System.Threading.Tasks.Task TeammateMobileRedirectAsync (string portalUrl); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> TeammateMobileRedirectAsyncWithHttpInfo (string portalUrl); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAcceptInvitationResult + System.Threading.Tasks.Task TeammatesAcceptInvitationAsync (string otc, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAcceptInvitationResult) + System.Threading.Tasks.Task> TeammatesAcceptInvitationAsyncWithHttpInfo (string otc, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultRedeemInvitationResult + System.Threading.Tasks.Task TeammatesAcceptInvitationsAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultRedeemInvitationResult) + System.Threading.Tasks.Task> TeammatesAcceptInvitationsAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultPendingInvitation + System.Threading.Tasks.Task TeammatesPendingInvitationsAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultPendingInvitation) + System.Threading.Tasks.Task> TeammatesPendingInvitationsAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultTeammate + System.Threading.Tasks.Task UpdateTeammateAsync (string appId, string id, TeammateBase teammate); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + System.Threading.Tasks.Task> UpdateTeammateAsyncWithHttpInfo (string appId, string id, TeammateBase teammate); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TeammatesApi : ITeammatesApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TeammatesApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TeammatesApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTeammate + public RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teammate) + { + ApiResponse localVarResponse = CreateTeammateWithHttpInfo(appId, teammate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTeammate + public ApiResponse< RestApiResultTeammate > CreateTeammateWithHttpInfo (string appId, CreateTeammate teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->CreateTeammate"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->CreateTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTeammate + public async System.Threading.Tasks.Task CreateTeammateAsync (string appId, CreateTeammate teammate) + { + ApiResponse localVarResponse = await CreateTeammateAsyncWithHttpInfo(appId, teammate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + public async System.Threading.Tasks.Task> CreateTeammateAsyncWithHttpInfo (string appId, CreateTeammate teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->CreateTeammate"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->CreateTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeleteTeammate (string appId, string id) + { + DeleteTeammateWithHttpInfo(appId, id); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteTeammateWithHttpInfo (string appId, string id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->DeleteTeammate"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->DeleteTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteTeammateAsync (string appId, string id) + { + await DeleteTeammateAsyncWithHttpInfo(appId, id); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteTeammateAsyncWithHttpInfo (string appId, string id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->DeleteTeammate"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->DeleteTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTeammate + public RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, string id) + { + ApiResponse localVarResponse = GetTeammateByAppIdAndTeammateIdWithHttpInfo(appId, id); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTeammate + public ApiResponse< RestApiResultTeammate > GetTeammateByAppIdAndTeammateIdWithHttpInfo (string appId, string id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->GetTeammateByAppIdAndTeammateId"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->GetTeammateByAppIdAndTeammateId"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTeammateByAppIdAndTeammateId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTeammate + public async System.Threading.Tasks.Task GetTeammateByAppIdAndTeammateIdAsync (string appId, string id) + { + ApiResponse localVarResponse = await GetTeammateByAppIdAndTeammateIdAsyncWithHttpInfo(appId, id); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + public async System.Threading.Tasks.Task> GetTeammateByAppIdAndTeammateIdAsyncWithHttpInfo (string appId, string id) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->GetTeammateByAppIdAndTeammateId"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->GetTeammateByAppIdAndTeammateId"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTeammateByAppIdAndTeammateId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultTeammate + public RestApiArrayResultTeammate GetTeammatesByAppId (string appId) + { + ApiResponse localVarResponse = GetTeammatesByAppIdWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultTeammate + public ApiResponse< RestApiArrayResultTeammate > GetTeammatesByAppIdWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->GetTeammatesByAppId"); + + var localVarPath = "./api/v1.0/{appId}/teammates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTeammatesByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultTeammate + public async System.Threading.Tasks.Task GetTeammatesByAppIdAsync (string appId) + { + ApiResponse localVarResponse = await GetTeammatesByAppIdAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultTeammate) + public async System.Threading.Tasks.Task> GetTeammatesByAppIdAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->GetTeammatesByAppId"); + + var localVarPath = "./api/v1.0/{appId}/teammates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTeammatesByAppId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Object + public Object Grantaccess (string appId, CreateTeammate teammate) + { + ApiResponse localVarResponse = GrantaccessWithHttpInfo(appId, teammate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object + public ApiResponse< Object > GrantaccessWithHttpInfo (string appId, CreateTeammate teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->Grantaccess"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->Grantaccess"); + + var localVarPath = "./api/v1.0/{appId}/teammates/grantaccess"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Grantaccess", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task GrantaccessAsync (string appId, CreateTeammate teammate) + { + ApiResponse localVarResponse = await GrantaccessAsyncWithHttpInfo(appId, teammate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> GrantaccessAsyncWithHttpInfo (string appId, CreateTeammate teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->Grantaccess"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->Grantaccess"); + + var localVarPath = "./api/v1.0/{appId}/teammates/grantaccess"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Grantaccess", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultRedeemInvitationResult + public RestApiResultRedeemInvitationResult RedeemInvitation (string otc, string appId) + { + ApiResponse localVarResponse = RedeemInvitationWithHttpInfo(otc, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultRedeemInvitationResult + public ApiResponse< RestApiResultRedeemInvitationResult > RedeemInvitationWithHttpInfo (string otc, string appId) + { + // verify the required parameter 'otc' is set + if (otc == null) + throw new ApiException(400, "Missing required parameter 'otc' when calling TeammatesApi->RedeemInvitation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->RedeemInvitation"); + + var localVarPath = "./api/v1.0/{appId}/teammates/redeem/{otc}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (otc != null) localVarPathParams.Add("otc", this.Configuration.ApiClient.ParameterToString(otc)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RedeemInvitation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRedeemInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultRedeemInvitationResult + public async System.Threading.Tasks.Task RedeemInvitationAsync (string otc, string appId) + { + ApiResponse localVarResponse = await RedeemInvitationAsyncWithHttpInfo(otc, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultRedeemInvitationResult) + public async System.Threading.Tasks.Task> RedeemInvitationAsyncWithHttpInfo (string otc, string appId) + { + // verify the required parameter 'otc' is set + if (otc == null) + throw new ApiException(400, "Missing required parameter 'otc' when calling TeammatesApi->RedeemInvitation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->RedeemInvitation"); + + var localVarPath = "./api/v1.0/{appId}/teammates/redeem/{otc}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (otc != null) localVarPathParams.Add("otc", this.Configuration.ApiClient.ParameterToString(otc)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RedeemInvitation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRedeemInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Object + public Object TeammateMobileRedirect (string portalUrl) + { + ApiResponse localVarResponse = TeammateMobileRedirectWithHttpInfo(portalUrl); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object + public ApiResponse< Object > TeammateMobileRedirectWithHttpInfo (string portalUrl) + { + // verify the required parameter 'portalUrl' is set + if (portalUrl == null) + throw new ApiException(400, "Missing required parameter 'portalUrl' when calling TeammatesApi->TeammateMobileRedirect"); + + var localVarPath = "./api/v1.0/teammates/mobile-redirect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portalUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "portalUrl", portalUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammateMobileRedirect", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of Object + public async System.Threading.Tasks.Task TeammateMobileRedirectAsync (string portalUrl) + { + ApiResponse localVarResponse = await TeammateMobileRedirectAsyncWithHttpInfo(portalUrl); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> TeammateMobileRedirectAsyncWithHttpInfo (string portalUrl) + { + // verify the required parameter 'portalUrl' is set + if (portalUrl == null) + throw new ApiException(400, "Missing required parameter 'portalUrl' when calling TeammatesApi->TeammateMobileRedirect"); + + var localVarPath = "./api/v1.0/teammates/mobile-redirect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portalUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "portalUrl", portalUrl)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammateMobileRedirect", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAcceptInvitationResult + public RestApiResultAcceptInvitationResult TeammatesAcceptInvitation (string otc, string appId) + { + ApiResponse localVarResponse = TeammatesAcceptInvitationWithHttpInfo(otc, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAcceptInvitationResult + public ApiResponse< RestApiResultAcceptInvitationResult > TeammatesAcceptInvitationWithHttpInfo (string otc, string appId) + { + // verify the required parameter 'otc' is set + if (otc == null) + throw new ApiException(400, "Missing required parameter 'otc' when calling TeammatesApi->TeammatesAcceptInvitation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->TeammatesAcceptInvitation"); + + var localVarPath = "./api/v1.0/{appId}/teammates/accept/{otc}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (otc != null) localVarPathParams.Add("otc", this.Configuration.ApiClient.ParameterToString(otc)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesAcceptInvitation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAcceptInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAcceptInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAcceptInvitationResult + public async System.Threading.Tasks.Task TeammatesAcceptInvitationAsync (string otc, string appId) + { + ApiResponse localVarResponse = await TeammatesAcceptInvitationAsyncWithHttpInfo(otc, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAcceptInvitationResult) + public async System.Threading.Tasks.Task> TeammatesAcceptInvitationAsyncWithHttpInfo (string otc, string appId) + { + // verify the required parameter 'otc' is set + if (otc == null) + throw new ApiException(400, "Missing required parameter 'otc' when calling TeammatesApi->TeammatesAcceptInvitation"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->TeammatesAcceptInvitation"); + + var localVarPath = "./api/v1.0/{appId}/teammates/accept/{otc}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (otc != null) localVarPathParams.Add("otc", this.Configuration.ApiClient.ParameterToString(otc)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesAcceptInvitation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAcceptInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAcceptInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultRedeemInvitationResult + public RestApiArrayResultRedeemInvitationResult TeammatesAcceptInvitations () + { + ApiResponse localVarResponse = TeammatesAcceptInvitationsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultRedeemInvitationResult + public ApiResponse< RestApiArrayResultRedeemInvitationResult > TeammatesAcceptInvitationsWithHttpInfo () + { + + var localVarPath = "./api/v1.0/teammates/acceptInvitations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesAcceptInvitations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRedeemInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultRedeemInvitationResult + public async System.Threading.Tasks.Task TeammatesAcceptInvitationsAsync () + { + ApiResponse localVarResponse = await TeammatesAcceptInvitationsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultRedeemInvitationResult) + public async System.Threading.Tasks.Task> TeammatesAcceptInvitationsAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/teammates/acceptInvitations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesAcceptInvitations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRedeemInvitationResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiArrayResultPendingInvitation + public RestApiArrayResultPendingInvitation TeammatesPendingInvitations () + { + ApiResponse localVarResponse = TeammatesPendingInvitationsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiArrayResultPendingInvitation + public ApiResponse< RestApiArrayResultPendingInvitation > TeammatesPendingInvitationsWithHttpInfo () + { + + var localVarPath = "./api/v1.0/teammates/pending-invitations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesPendingInvitations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPendingInvitation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPendingInvitation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiArrayResultPendingInvitation + public async System.Threading.Tasks.Task TeammatesPendingInvitationsAsync () + { + ApiResponse localVarResponse = await TeammatesPendingInvitationsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiArrayResultPendingInvitation) + public async System.Threading.Tasks.Task> TeammatesPendingInvitationsAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/teammates/pending-invitations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TeammatesPendingInvitations", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultPendingInvitation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultPendingInvitation))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultTeammate + public RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBase teammate) + { + ApiResponse localVarResponse = UpdateTeammateWithHttpInfo(appId, id, teammate); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultTeammate + public ApiResponse< RestApiResultTeammate > UpdateTeammateWithHttpInfo (string appId, string id, TeammateBase teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->UpdateTeammate"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->UpdateTeammate"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->UpdateTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultTeammate + public async System.Threading.Tasks.Task UpdateTeammateAsync (string appId, string id, TeammateBase teammate) + { + ApiResponse localVarResponse = await UpdateTeammateAsyncWithHttpInfo(appId, id, teammate); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultTeammate) + public async System.Threading.Tasks.Task> UpdateTeammateAsyncWithHttpInfo (string appId, string id, TeammateBase teammate) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling TeammatesApi->UpdateTeammate"); + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TeammatesApi->UpdateTeammate"); + // verify the required parameter 'teammate' is set + if (teammate == null) + throw new ApiException(400, "Missing required parameter 'teammate' when calling TeammatesApi->UpdateTeammate"); + + var localVarPath = "./api/v1.0/{appId}/teammates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (teammate != null && teammate.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(teammate); // http body (model) parameter + } + else + { + localVarPostBody = teammate; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateTeammate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTeammate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTeammate))); + } + + } +} diff --git a/src/Flipdish/Api/TerminalIotApi.cs b/src/Flipdish/Api/TerminalIotApi.cs new file mode 100644 index 00000000..0d1e3423 --- /dev/null +++ b/src/Flipdish/Api/TerminalIotApi.cs @@ -0,0 +1,307 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITerminalIotApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultKioskIotConnectionParameters + RestApiResultKioskIotConnectionParameters GetTerminalIotConnection (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultKioskIotConnectionParameters + ApiResponse GetTerminalIotConnectionWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultKioskIotConnectionParameters + System.Threading.Tasks.Task GetTerminalIotConnectionAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) + System.Threading.Tasks.Task> GetTerminalIotConnectionAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TerminalIotApi : ITerminalIotApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TerminalIotApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TerminalIotApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiResultKioskIotConnectionParameters + public RestApiResultKioskIotConnectionParameters GetTerminalIotConnection () + { + ApiResponse localVarResponse = GetTerminalIotConnectionWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiResultKioskIotConnectionParameters + public ApiResponse< RestApiResultKioskIotConnectionParameters > GetTerminalIotConnectionWithHttpInfo () + { + + var localVarPath = "./api/v1.0/terminaliot/connect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTerminalIotConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskIotConnectionParameters) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskIotConnectionParameters))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiResultKioskIotConnectionParameters + public async System.Threading.Tasks.Task GetTerminalIotConnectionAsync () + { + ApiResponse localVarResponse = await GetTerminalIotConnectionAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) + public async System.Threading.Tasks.Task> GetTerminalIotConnectionAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/terminaliot/connect"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetTerminalIotConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultKioskIotConnectionParameters) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskIotConnectionParameters))); + } + + } +} diff --git a/src/Flipdish/Api/TipsApi.cs b/src/Flipdish/Api/TipsApi.cs new file mode 100644 index 00000000..069e3cf6 --- /dev/null +++ b/src/Flipdish/Api/TipsApi.cs @@ -0,0 +1,556 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITipsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultTipConfiguration + RestApiResultTipConfiguration TipConfigGet (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultTipConfiguration + ApiResponse TipConfigGetWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTipConfiguration + RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTipConfiguration + ApiResponse TipConfigUpsertWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultTipConfiguration + System.Threading.Tasks.Task TipConfigGetAsync (int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultTipConfiguration) + System.Threading.Tasks.Task> TipConfigGetAsyncWithHttpInfo (int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTipConfiguration + System.Threading.Tasks.Task TipConfigUpsertAsync (int? storeId, UpdateTipConfiguration updateConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTipConfiguration) + System.Threading.Tasks.Task> TipConfigUpsertAsyncWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TipsApi : ITipsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TipsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TipsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultTipConfiguration + public RestApiResultTipConfiguration TipConfigGet (int? storeId) + { + ApiResponse localVarResponse = TipConfigGetWithHttpInfo(storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultTipConfiguration + public ApiResponse< RestApiResultTipConfiguration > TipConfigGetWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling TipsApi->TipConfigGet"); + + var localVarPath = "./api/v1.0/stores/{storeId}/tipconfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TipConfigGet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTipConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTipConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultTipConfiguration + public async System.Threading.Tasks.Task TipConfigGetAsync (int? storeId) + { + ApiResponse localVarResponse = await TipConfigGetAsyncWithHttpInfo(storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultTipConfiguration) + public async System.Threading.Tasks.Task> TipConfigGetAsyncWithHttpInfo (int? storeId) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling TipsApi->TipConfigGet"); + + var localVarPath = "./api/v1.0/stores/{storeId}/tipconfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TipConfigGet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTipConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTipConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultTipConfiguration + public RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig) + { + ApiResponse localVarResponse = TipConfigUpsertWithHttpInfo(storeId, updateConfig); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultTipConfiguration + public ApiResponse< RestApiResultTipConfiguration > TipConfigUpsertWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling TipsApi->TipConfigUpsert"); + // verify the required parameter 'updateConfig' is set + if (updateConfig == null) + throw new ApiException(400, "Missing required parameter 'updateConfig' when calling TipsApi->TipConfigUpsert"); + + var localVarPath = "./api/v1.0/stores/{storeId}/tipconfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (updateConfig != null && updateConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateConfig); // http body (model) parameter + } + else + { + localVarPostBody = updateConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TipConfigUpsert", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTipConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTipConfiguration))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultTipConfiguration + public async System.Threading.Tasks.Task TipConfigUpsertAsync (int? storeId, UpdateTipConfiguration updateConfig) + { + ApiResponse localVarResponse = await TipConfigUpsertAsyncWithHttpInfo(storeId, updateConfig); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultTipConfiguration) + public async System.Threading.Tasks.Task> TipConfigUpsertAsyncWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig) + { + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling TipsApi->TipConfigUpsert"); + // verify the required parameter 'updateConfig' is set + if (updateConfig == null) + throw new ApiException(400, "Missing required parameter 'updateConfig' when calling TipsApi->TipConfigUpsert"); + + var localVarPath = "./api/v1.0/stores/{storeId}/tipconfig"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + if (updateConfig != null && updateConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(updateConfig); // http body (model) parameter + } + else + { + localVarPostBody = updateConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("TipConfigUpsert", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultTipConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultTipConfiguration))); + } + + } +} diff --git a/src/Flipdish/Api/UsersApi.cs b/src/Flipdish/Api/UsersApi.cs new file mode 100644 index 00000000..50216477 --- /dev/null +++ b/src/Flipdish/Api/UsersApi.cs @@ -0,0 +1,6830 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUsersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse AddUserNote (int? userId, string note); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse AddUserNoteWithHttpInfo (int? userId, string note); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserRole + RestApiResultUserRole AddUserToRole (int? userId, string roleName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserRole + ApiResponse AddUserToRoleWithHttpInfo (int? userId, string roleName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse AnonymizeUser (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse AnonymizeUserWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse BlockUserPhoneNumber (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse BlockUserPhoneNumberWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse CreateUserDeliveryLocation (int? userId, CreateUserDeliveryLocationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse CreateUserDeliveryLocationWithHttpInfo (int? userId, CreateUserDeliveryLocationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + RestApiStringResult GetPreviousOrderCountForStore (int? userId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse GetPreviousOrderCountForStoreWithHttpInfo (int? userId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserFlipdishAccount + RestApiArrayResultUserFlipdishAccount GetRestaurantUserAccounts (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserFlipdishAccount + ApiResponse GetRestaurantUserAccountsWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserStoreInfo + RestApiArrayResultUserStoreInfo GetRestaurantUserStores (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserStoreInfo + ApiResponse GetRestaurantUserStoresWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringArrayResult + RestApiStringArrayResult GetRoles (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringArrayResult + ApiResponse GetRolesWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultUserRole + RestApiResultUserRole GetRolesAndUnassignedRoles (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultUserRole + ApiResponse GetRolesAndUnassignedRolesWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultUserInfo + RestApiResultUserInfo GetUserById (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultUserInfo + ApiResponse GetUserByIdWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultUserDeliveryLocationAdmin + RestApiArrayResultUserDeliveryLocationAdmin GetUserDeliveryLocationsForAdmin (int? userId, int? whiteLabelId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultUserDeliveryLocationAdmin + ApiResponse GetUserDeliveryLocationsForAdminWithHttpInfo (int? userId, int? whiteLabelId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserNote + RestApiArrayResultUserNote GetUserNotes (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserNote + ApiResponse GetUserNotesWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrder + RestApiResultOrder GetUserOrderByIdForAdmin (int? userId, int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrder + ApiResponse GetUserOrderByIdForAdminWithHttpInfo (int? userId, int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultUserOrderSummary + RestApiArrayResultUserOrderSummary GetUserOrdersForAdmin (int? userId, int? skip = null, int? take = null, string brandId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultUserOrderSummary + ApiResponse GetUserOrdersForAdminWithHttpInfo (int? userId, int? skip = null, int? take = null, string brandId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultUserSmsChatItem + RestApiArrayResultUserSmsChatItem GetUserSmsConversationItems (int? userId, int? mostRecentCount = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultUserSmsChatItem + ApiResponse GetUserSmsConversationItemsWithHttpInfo (int? userId, int? mostRecentCount = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse HideUserDeliveryLocation (int? userId, int? deliveryLocationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse HideUserDeliveryLocationWithHttpInfo (int? userId, int? deliveryLocationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse MarkUserAsFraudulent (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse MarkUserAsFraudulentWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse MarkUserAsSuspicious (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse MarkUserAsSuspiciousWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse RemoveFlipdishAccountIdForUser (int? userId, int? accountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse RemoveFlipdishAccountIdForUserWithHttpInfo (int? userId, int? accountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserRole + RestApiResultUserRole RemoveUserFromRole (int? userId, string roleName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserRole + ApiResponse RemoveUserFromRoleWithHttpInfo (int? userId, string roleName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse ResetMfa (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse ResetMfaWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultFlipdishAccountName + RestApiArrayResultFlipdishAccountName SearchFlipdishAccounts (string searchPattern); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultFlipdishAccountName + ApiResponse SearchFlipdishAccountsWithHttpInfo (string searchPattern); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultUserSearch + RestApiPaginationResultUserSearch SearchUsers (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultUserSearch + ApiResponse SearchUsersWithHttpInfo (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserPushNotificationSentResult + RestApiResultUserPushNotificationSentResult SendUserPushNotification (int? userId, SendUserPushNotificationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserPushNotificationSentResult + ApiResponse SendUserPushNotificationWithHttpInfo (int? userId, SendUserPushNotificationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SendUserSms (int? userId, SendUserSmsRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SendUserSmsWithHttpInfo (int? userId, SendUserSmsRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SetCustomerName (int? userId, string customerName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SetCustomerNameWithHttpInfo (int? userId, string customerName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SetFlipdishAccountIdForUser (int? userId, int? accountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SetFlipdishAccountIdForUserWithHttpInfo (int? userId, int? accountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SetUserDeliveryLocationCoordinates (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SetUserDeliveryLocationCoordinatesWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SetUserDeliveryLocationField (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SetUserDeliveryLocationFieldWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + RestApiDefaultResponse SetUserLanguage (int? userId, string languageId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse SetUserLanguageWithHttpInfo (int? userId, string languageId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + RestApiDefaultResponse UnblockUserPhoneNumber (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + ApiResponse UnblockUserPhoneNumberWithHttpInfo (int? userId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task AddUserNoteAsync (int? userId, string note); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> AddUserNoteAsyncWithHttpInfo (int? userId, string note); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserRole + System.Threading.Tasks.Task AddUserToRoleAsync (int? userId, string roleName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserRole) + System.Threading.Tasks.Task> AddUserToRoleAsyncWithHttpInfo (int? userId, string roleName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task AnonymizeUserAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> AnonymizeUserAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task BlockUserPhoneNumberAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> BlockUserPhoneNumberAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task CreateUserDeliveryLocationAsync (int? userId, CreateUserDeliveryLocationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> CreateUserDeliveryLocationAsyncWithHttpInfo (int? userId, CreateUserDeliveryLocationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetPreviousOrderCountForStoreAsync (int? userId, int? storeId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + System.Threading.Tasks.Task> GetPreviousOrderCountForStoreAsyncWithHttpInfo (int? userId, int? storeId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserFlipdishAccount + System.Threading.Tasks.Task GetRestaurantUserAccountsAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserFlipdishAccount) + System.Threading.Tasks.Task> GetRestaurantUserAccountsAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserStoreInfo + System.Threading.Tasks.Task GetRestaurantUserStoresAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserStoreInfo) + System.Threading.Tasks.Task> GetRestaurantUserStoresAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task GetRolesAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> GetRolesAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultUserRole + System.Threading.Tasks.Task GetRolesAndUnassignedRolesAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultUserRole) + System.Threading.Tasks.Task> GetRolesAndUnassignedRolesAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultUserInfo + System.Threading.Tasks.Task GetUserByIdAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultUserInfo) + System.Threading.Tasks.Task> GetUserByIdAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultUserDeliveryLocationAdmin + System.Threading.Tasks.Task GetUserDeliveryLocationsForAdminAsync (int? userId, int? whiteLabelId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserDeliveryLocationAdmin) + System.Threading.Tasks.Task> GetUserDeliveryLocationsForAdminAsyncWithHttpInfo (int? userId, int? whiteLabelId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserNote + System.Threading.Tasks.Task GetUserNotesAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserNote) + System.Threading.Tasks.Task> GetUserNotesAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrder + System.Threading.Tasks.Task GetUserOrderByIdForAdminAsync (int? userId, int? orderId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrder) + System.Threading.Tasks.Task> GetUserOrderByIdForAdminAsyncWithHttpInfo (int? userId, int? orderId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultUserOrderSummary + System.Threading.Tasks.Task GetUserOrdersForAdminAsync (int? userId, int? skip = null, int? take = null, string brandId = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserOrderSummary) + System.Threading.Tasks.Task> GetUserOrdersForAdminAsyncWithHttpInfo (int? userId, int? skip = null, int? take = null, string brandId = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultUserSmsChatItem + System.Threading.Tasks.Task GetUserSmsConversationItemsAsync (int? userId, int? mostRecentCount = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserSmsChatItem) + System.Threading.Tasks.Task> GetUserSmsConversationItemsAsyncWithHttpInfo (int? userId, int? mostRecentCount = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task HideUserDeliveryLocationAsync (int? userId, int? deliveryLocationId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> HideUserDeliveryLocationAsyncWithHttpInfo (int? userId, int? deliveryLocationId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task MarkUserAsFraudulentAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> MarkUserAsFraudulentAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task MarkUserAsSuspiciousAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> MarkUserAsSuspiciousAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task RemoveFlipdishAccountIdForUserAsync (int? userId, int? accountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> RemoveFlipdishAccountIdForUserAsyncWithHttpInfo (int? userId, int? accountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserRole + System.Threading.Tasks.Task RemoveUserFromRoleAsync (int? userId, string roleName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserRole) + System.Threading.Tasks.Task> RemoveUserFromRoleAsyncWithHttpInfo (int? userId, string roleName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task ResetMfaAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> ResetMfaAsyncWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultFlipdishAccountName + System.Threading.Tasks.Task SearchFlipdishAccountsAsync (string searchPattern); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultFlipdishAccountName) + System.Threading.Tasks.Task> SearchFlipdishAccountsAsyncWithHttpInfo (string searchPattern); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultUserSearch + System.Threading.Tasks.Task SearchUsersAsync (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultUserSearch) + System.Threading.Tasks.Task> SearchUsersAsyncWithHttpInfo (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserPushNotificationSentResult + System.Threading.Tasks.Task SendUserPushNotificationAsync (int? userId, SendUserPushNotificationRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserPushNotificationSentResult) + System.Threading.Tasks.Task> SendUserPushNotificationAsyncWithHttpInfo (int? userId, SendUserPushNotificationRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SendUserSmsAsync (int? userId, SendUserSmsRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SendUserSmsAsyncWithHttpInfo (int? userId, SendUserSmsRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SetCustomerNameAsync (int? userId, string customerName); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SetCustomerNameAsyncWithHttpInfo (int? userId, string customerName); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SetFlipdishAccountIdForUserAsync (int? userId, int? accountId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SetFlipdishAccountIdForUserAsyncWithHttpInfo (int? userId, int? accountId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SetUserDeliveryLocationCoordinatesAsync (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SetUserDeliveryLocationCoordinatesAsyncWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SetUserDeliveryLocationFieldAsync (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SetUserDeliveryLocationFieldAsyncWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task SetUserLanguageAsync (int? userId, string languageId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> SetUserLanguageAsyncWithHttpInfo (int? userId, string languageId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + System.Threading.Tasks.Task UnblockUserPhoneNumberAsync (int? userId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + System.Threading.Tasks.Task> UnblockUserPhoneNumberAsyncWithHttpInfo (int? userId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class UsersApi : IUsersApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public UsersApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public UsersApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse AddUserNote (int? userId, string note) + { + ApiResponse localVarResponse = AddUserNoteWithHttpInfo(userId, note); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > AddUserNoteWithHttpInfo (int? userId, string note) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AddUserNote"); + // verify the required parameter 'note' is set + if (note == null) + throw new ApiException(400, "Missing required parameter 'note' when calling UsersApi->AddUserNote"); + + var localVarPath = "./api/v1.0/users/{userId}/AddUserNote"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (note != null && note.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter + } + else + { + localVarPostBody = note; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddUserNote", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task AddUserNoteAsync (int? userId, string note) + { + ApiResponse localVarResponse = await AddUserNoteAsyncWithHttpInfo(userId, note); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> AddUserNoteAsyncWithHttpInfo (int? userId, string note) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AddUserNote"); + // verify the required parameter 'note' is set + if (note == null) + throw new ApiException(400, "Missing required parameter 'note' when calling UsersApi->AddUserNote"); + + var localVarPath = "./api/v1.0/users/{userId}/AddUserNote"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (note != null && note.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(note); // http body (model) parameter + } + else + { + localVarPostBody = note; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddUserNote", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserRole + public RestApiResultUserRole AddUserToRole (int? userId, string roleName) + { + ApiResponse localVarResponse = AddUserToRoleWithHttpInfo(userId, roleName); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserRole + public ApiResponse< RestApiResultUserRole > AddUserToRoleWithHttpInfo (int? userId, string roleName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AddUserToRole"); + // verify the required parameter 'roleName' is set + if (roleName == null) + throw new ApiException(400, "Missing required parameter 'roleName' when calling UsersApi->AddUserToRole"); + + var localVarPath = "./api/v1.0/users/{userId}/AddUserToRole/{roleName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (roleName != null) localVarPathParams.Add("roleName", this.Configuration.ApiClient.ParameterToString(roleName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddUserToRole", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserRole + public async System.Threading.Tasks.Task AddUserToRoleAsync (int? userId, string roleName) + { + ApiResponse localVarResponse = await AddUserToRoleAsyncWithHttpInfo(userId, roleName); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserRole) + public async System.Threading.Tasks.Task> AddUserToRoleAsyncWithHttpInfo (int? userId, string roleName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AddUserToRole"); + // verify the required parameter 'roleName' is set + if (roleName == null) + throw new ApiException(400, "Missing required parameter 'roleName' when calling UsersApi->AddUserToRole"); + + var localVarPath = "./api/v1.0/users/{userId}/AddUserToRole/{roleName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (roleName != null) localVarPathParams.Add("roleName", this.Configuration.ApiClient.ParameterToString(roleName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddUserToRole", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse AnonymizeUser (int? userId) + { + ApiResponse localVarResponse = AnonymizeUserWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > AnonymizeUserWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AnonymizeUser"); + + var localVarPath = "./api/v1.0/users/{userId}/AnonymizeUser"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AnonymizeUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task AnonymizeUserAsync (int? userId) + { + ApiResponse localVarResponse = await AnonymizeUserAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> AnonymizeUserAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->AnonymizeUser"); + + var localVarPath = "./api/v1.0/users/{userId}/AnonymizeUser"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AnonymizeUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse BlockUserPhoneNumber (int? userId) + { + ApiResponse localVarResponse = BlockUserPhoneNumberWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > BlockUserPhoneNumberWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->BlockUserPhoneNumber"); + + var localVarPath = "./api/v1.0/users/{userId}/BlockUserPhoneNumber"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("BlockUserPhoneNumber", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task BlockUserPhoneNumberAsync (int? userId) + { + ApiResponse localVarResponse = await BlockUserPhoneNumberAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> BlockUserPhoneNumberAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->BlockUserPhoneNumber"); + + var localVarPath = "./api/v1.0/users/{userId}/BlockUserPhoneNumber"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("BlockUserPhoneNumber", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse CreateUserDeliveryLocation (int? userId, CreateUserDeliveryLocationRequest request) + { + ApiResponse localVarResponse = CreateUserDeliveryLocationWithHttpInfo(userId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > CreateUserDeliveryLocationWithHttpInfo (int? userId, CreateUserDeliveryLocationRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->CreateUserDeliveryLocation"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->CreateUserDeliveryLocation"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateUserDeliveryLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task CreateUserDeliveryLocationAsync (int? userId, CreateUserDeliveryLocationRequest request) + { + ApiResponse localVarResponse = await CreateUserDeliveryLocationAsyncWithHttpInfo(userId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> CreateUserDeliveryLocationAsyncWithHttpInfo (int? userId, CreateUserDeliveryLocationRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->CreateUserDeliveryLocation"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->CreateUserDeliveryLocation"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateUserDeliveryLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiStringResult + public RestApiStringResult GetPreviousOrderCountForStore (int? userId, int? storeId) + { + ApiResponse localVarResponse = GetPreviousOrderCountForStoreWithHttpInfo(userId, storeId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiStringResult + public ApiResponse< RestApiStringResult > GetPreviousOrderCountForStoreWithHttpInfo (int? userId, int? storeId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetPreviousOrderCountForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling UsersApi->GetPreviousOrderCountForStore"); + + var localVarPath = "./api/v1.0/users/{userId}/previousordercount/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreviousOrderCountForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetPreviousOrderCountForStoreAsync (int? userId, int? storeId) + { + ApiResponse localVarResponse = await GetPreviousOrderCountForStoreAsyncWithHttpInfo(userId, storeId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetPreviousOrderCountForStoreAsyncWithHttpInfo (int? userId, int? storeId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetPreviousOrderCountForStore"); + // verify the required parameter 'storeId' is set + if (storeId == null) + throw new ApiException(400, "Missing required parameter 'storeId' when calling UsersApi->GetPreviousOrderCountForStore"); + + var localVarPath = "./api/v1.0/users/{userId}/previousordercount/{storeId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (storeId != null) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPreviousOrderCountForStore", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserFlipdishAccount + public RestApiArrayResultUserFlipdishAccount GetRestaurantUserAccounts (int? userId) + { + ApiResponse localVarResponse = GetRestaurantUserAccountsWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserFlipdishAccount + public ApiResponse< RestApiArrayResultUserFlipdishAccount > GetRestaurantUserAccountsWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRestaurantUserAccounts"); + + var localVarPath = "./api/v1.0/users/{userId}/RestaurantUserAccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRestaurantUserAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserFlipdishAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserFlipdishAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserFlipdishAccount + public async System.Threading.Tasks.Task GetRestaurantUserAccountsAsync (int? userId) + { + ApiResponse localVarResponse = await GetRestaurantUserAccountsAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserFlipdishAccount) + public async System.Threading.Tasks.Task> GetRestaurantUserAccountsAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRestaurantUserAccounts"); + + var localVarPath = "./api/v1.0/users/{userId}/RestaurantUserAccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRestaurantUserAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserFlipdishAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserFlipdishAccount))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserStoreInfo + public RestApiArrayResultUserStoreInfo GetRestaurantUserStores (int? userId) + { + ApiResponse localVarResponse = GetRestaurantUserStoresWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserStoreInfo + public ApiResponse< RestApiArrayResultUserStoreInfo > GetRestaurantUserStoresWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRestaurantUserStores"); + + var localVarPath = "./api/v1.0/users/{userId}/RestaurantUserStores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRestaurantUserStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserStoreInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserStoreInfo))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserStoreInfo + public async System.Threading.Tasks.Task GetRestaurantUserStoresAsync (int? userId) + { + ApiResponse localVarResponse = await GetRestaurantUserStoresAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserStoreInfo) + public async System.Threading.Tasks.Task> GetRestaurantUserStoresAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRestaurantUserStores"); + + var localVarPath = "./api/v1.0/users/{userId}/RestaurantUserStores"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRestaurantUserStores", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserStoreInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserStoreInfo))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// RestApiStringArrayResult + public RestApiStringArrayResult GetRoles () + { + ApiResponse localVarResponse = GetRolesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RestApiStringArrayResult + public ApiResponse< RestApiStringArrayResult > GetRolesWithHttpInfo () + { + + var localVarPath = "./api/v1.0/users/roles"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRoles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task GetRolesAsync () + { + ApiResponse localVarResponse = await GetRolesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RestApiStringArrayResult) + public async System.Threading.Tasks.Task> GetRolesAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/users/roles"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRoles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultUserRole + public RestApiResultUserRole GetRolesAndUnassignedRoles (int? userId) + { + ApiResponse localVarResponse = GetRolesAndUnassignedRolesWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultUserRole + public ApiResponse< RestApiResultUserRole > GetRolesAndUnassignedRolesWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRolesAndUnassignedRoles"); + + var localVarPath = "./api/v1.0/users/{userId}/roles"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRolesAndUnassignedRoles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultUserRole + public async System.Threading.Tasks.Task GetRolesAndUnassignedRolesAsync (int? userId) + { + ApiResponse localVarResponse = await GetRolesAndUnassignedRolesAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultUserRole) + public async System.Threading.Tasks.Task> GetRolesAndUnassignedRolesAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetRolesAndUnassignedRoles"); + + var localVarPath = "./api/v1.0/users/{userId}/roles"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRolesAndUnassignedRoles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultUserInfo + public RestApiResultUserInfo GetUserById (int? userId) + { + ApiResponse localVarResponse = GetUserByIdWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultUserInfo + public ApiResponse< RestApiResultUserInfo > GetUserByIdWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserById"); + + var localVarPath = "./api/v1.0/users/{userId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserInfo))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultUserInfo + public async System.Threading.Tasks.Task GetUserByIdAsync (int? userId) + { + ApiResponse localVarResponse = await GetUserByIdAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultUserInfo) + public async System.Threading.Tasks.Task> GetUserByIdAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserById"); + + var localVarPath = "./api/v1.0/users/{userId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserInfo))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultUserDeliveryLocationAdmin + public RestApiArrayResultUserDeliveryLocationAdmin GetUserDeliveryLocationsForAdmin (int? userId, int? whiteLabelId = null) + { + ApiResponse localVarResponse = GetUserDeliveryLocationsForAdminWithHttpInfo(userId, whiteLabelId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultUserDeliveryLocationAdmin + public ApiResponse< RestApiArrayResultUserDeliveryLocationAdmin > GetUserDeliveryLocationsForAdminWithHttpInfo (int? userId, int? whiteLabelId = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserDeliveryLocationsForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (whiteLabelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelId", whiteLabelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserDeliveryLocationsForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserDeliveryLocationAdmin) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserDeliveryLocationAdmin))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultUserDeliveryLocationAdmin + public async System.Threading.Tasks.Task GetUserDeliveryLocationsForAdminAsync (int? userId, int? whiteLabelId = null) + { + ApiResponse localVarResponse = await GetUserDeliveryLocationsForAdminAsyncWithHttpInfo(userId, whiteLabelId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserDeliveryLocationAdmin) + public async System.Threading.Tasks.Task> GetUserDeliveryLocationsForAdminAsyncWithHttpInfo (int? userId, int? whiteLabelId = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserDeliveryLocationsForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (whiteLabelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelId", whiteLabelId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserDeliveryLocationsForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserDeliveryLocationAdmin) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserDeliveryLocationAdmin))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultUserNote + public RestApiArrayResultUserNote GetUserNotes (int? userId) + { + ApiResponse localVarResponse = GetUserNotesWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultUserNote + public ApiResponse< RestApiArrayResultUserNote > GetUserNotesWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserNotes"); + + var localVarPath = "./api/v1.0/users/{userId}/UserNotes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserNotes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserNote) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserNote))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultUserNote + public async System.Threading.Tasks.Task GetUserNotesAsync (int? userId) + { + ApiResponse localVarResponse = await GetUserNotesAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultUserNote) + public async System.Threading.Tasks.Task> GetUserNotesAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserNotes"); + + var localVarPath = "./api/v1.0/users/{userId}/UserNotes"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserNotes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserNote) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserNote))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultOrder + public RestApiResultOrder GetUserOrderByIdForAdmin (int? userId, int? orderId) + { + ApiResponse localVarResponse = GetUserOrderByIdForAdminWithHttpInfo(userId, orderId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultOrder + public ApiResponse< RestApiResultOrder > GetUserOrderByIdForAdminWithHttpInfo (int? userId, int? orderId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserOrderByIdForAdmin"); + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling UsersApi->GetUserOrderByIdForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/orders/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserOrderByIdForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultOrder + public async System.Threading.Tasks.Task GetUserOrderByIdForAdminAsync (int? userId, int? orderId) + { + ApiResponse localVarResponse = await GetUserOrderByIdForAdminAsyncWithHttpInfo(userId, orderId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultOrder) + public async System.Threading.Tasks.Task> GetUserOrderByIdForAdminAsyncWithHttpInfo (int? userId, int? orderId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserOrderByIdForAdmin"); + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new ApiException(400, "Missing required parameter 'orderId' when calling UsersApi->GetUserOrderByIdForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/orders/{orderId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (orderId != null) localVarPathParams.Add("orderId", this.Configuration.ApiClient.ParameterToString(orderId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserOrderByIdForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrder))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultUserOrderSummary + public RestApiArrayResultUserOrderSummary GetUserOrdersForAdmin (int? userId, int? skip = null, int? take = null, string brandId = null) + { + ApiResponse localVarResponse = GetUserOrdersForAdminWithHttpInfo(userId, skip, take, brandId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultUserOrderSummary + public ApiResponse< RestApiArrayResultUserOrderSummary > GetUserOrdersForAdminWithHttpInfo (int? userId, int? skip = null, int? take = null, string brandId = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserOrdersForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (skip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skip", skip)); // query parameter + if (take != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "take", take)); // query parameter + if (brandId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "brandId", brandId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserOrdersForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultUserOrderSummary + public async System.Threading.Tasks.Task GetUserOrdersForAdminAsync (int? userId, int? skip = null, int? take = null, string brandId = null) + { + ApiResponse localVarResponse = await GetUserOrdersForAdminAsyncWithHttpInfo(userId, skip, take, brandId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserOrderSummary) + public async System.Threading.Tasks.Task> GetUserOrdersForAdminAsyncWithHttpInfo (int? userId, int? skip = null, int? take = null, string brandId = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserOrdersForAdmin"); + + var localVarPath = "./api/v1.0/users/{userId}/orders"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (skip != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skip", skip)); // query parameter + if (take != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "take", take)); // query parameter + if (brandId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "brandId", brandId)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserOrdersForAdmin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserOrderSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserOrderSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultUserSmsChatItem + public RestApiArrayResultUserSmsChatItem GetUserSmsConversationItems (int? userId, int? mostRecentCount = null) + { + ApiResponse localVarResponse = GetUserSmsConversationItemsWithHttpInfo(userId, mostRecentCount); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// ApiResponse of RestApiArrayResultUserSmsChatItem + public ApiResponse< RestApiArrayResultUserSmsChatItem > GetUserSmsConversationItemsWithHttpInfo (int? userId, int? mostRecentCount = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserSmsConversationItems"); + + var localVarPath = "./api/v1.0/users/{userId}/smsConversationItems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (mostRecentCount != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "mostRecentCount", mostRecentCount)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserSmsConversationItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserSmsChatItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserSmsChatItem))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of RestApiArrayResultUserSmsChatItem + public async System.Threading.Tasks.Task GetUserSmsConversationItemsAsync (int? userId, int? mostRecentCount = null) + { + ApiResponse localVarResponse = await GetUserSmsConversationItemsAsyncWithHttpInfo(userId, mostRecentCount); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultUserSmsChatItem) + public async System.Threading.Tasks.Task> GetUserSmsConversationItemsAsyncWithHttpInfo (int? userId, int? mostRecentCount = null) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetUserSmsConversationItems"); + + var localVarPath = "./api/v1.0/users/{userId}/smsConversationItems"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (mostRecentCount != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "mostRecentCount", mostRecentCount)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetUserSmsConversationItems", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultUserSmsChatItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultUserSmsChatItem))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse HideUserDeliveryLocation (int? userId, int? deliveryLocationId) + { + ApiResponse localVarResponse = HideUserDeliveryLocationWithHttpInfo(userId, deliveryLocationId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > HideUserDeliveryLocationWithHttpInfo (int? userId, int? deliveryLocationId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->HideUserDeliveryLocation"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->HideUserDeliveryLocation"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/hide"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HideUserDeliveryLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task HideUserDeliveryLocationAsync (int? userId, int? deliveryLocationId) + { + ApiResponse localVarResponse = await HideUserDeliveryLocationAsyncWithHttpInfo(userId, deliveryLocationId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> HideUserDeliveryLocationAsyncWithHttpInfo (int? userId, int? deliveryLocationId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->HideUserDeliveryLocation"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->HideUserDeliveryLocation"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/hide"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HideUserDeliveryLocation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse MarkUserAsFraudulent (int? userId) + { + ApiResponse localVarResponse = MarkUserAsFraudulentWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > MarkUserAsFraudulentWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->MarkUserAsFraudulent"); + + var localVarPath = "./api/v1.0/users/{userId}/MarkUserAsFraudulent"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MarkUserAsFraudulent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task MarkUserAsFraudulentAsync (int? userId) + { + ApiResponse localVarResponse = await MarkUserAsFraudulentAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> MarkUserAsFraudulentAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->MarkUserAsFraudulent"); + + var localVarPath = "./api/v1.0/users/{userId}/MarkUserAsFraudulent"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MarkUserAsFraudulent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse MarkUserAsSuspicious (int? userId) + { + ApiResponse localVarResponse = MarkUserAsSuspiciousWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > MarkUserAsSuspiciousWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->MarkUserAsSuspicious"); + + var localVarPath = "./api/v1.0/users/{userId}/MarkUserAsSuspicious"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MarkUserAsSuspicious", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task MarkUserAsSuspiciousAsync (int? userId) + { + ApiResponse localVarResponse = await MarkUserAsSuspiciousAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> MarkUserAsSuspiciousAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->MarkUserAsSuspicious"); + + var localVarPath = "./api/v1.0/users/{userId}/MarkUserAsSuspicious"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("MarkUserAsSuspicious", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse RemoveFlipdishAccountIdForUser (int? userId, int? accountId) + { + ApiResponse localVarResponse = RemoveFlipdishAccountIdForUserWithHttpInfo(userId, accountId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > RemoveFlipdishAccountIdForUserWithHttpInfo (int? userId, int? accountId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->RemoveFlipdishAccountIdForUser"); + // verify the required parameter 'accountId' is set + if (accountId == null) + throw new ApiException(400, "Missing required parameter 'accountId' when calling UsersApi->RemoveFlipdishAccountIdForUser"); + + var localVarPath = "./api/v1.0/users/{userId}/RemoveFlipdishAccountId/{accountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (accountId != null) localVarPathParams.Add("accountId", this.Configuration.ApiClient.ParameterToString(accountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveFlipdishAccountIdForUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task RemoveFlipdishAccountIdForUserAsync (int? userId, int? accountId) + { + ApiResponse localVarResponse = await RemoveFlipdishAccountIdForUserAsyncWithHttpInfo(userId, accountId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> RemoveFlipdishAccountIdForUserAsyncWithHttpInfo (int? userId, int? accountId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->RemoveFlipdishAccountIdForUser"); + // verify the required parameter 'accountId' is set + if (accountId == null) + throw new ApiException(400, "Missing required parameter 'accountId' when calling UsersApi->RemoveFlipdishAccountIdForUser"); + + var localVarPath = "./api/v1.0/users/{userId}/RemoveFlipdishAccountId/{accountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (accountId != null) localVarPathParams.Add("accountId", this.Configuration.ApiClient.ParameterToString(accountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveFlipdishAccountIdForUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserRole + public RestApiResultUserRole RemoveUserFromRole (int? userId, string roleName) + { + ApiResponse localVarResponse = RemoveUserFromRoleWithHttpInfo(userId, roleName); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserRole + public ApiResponse< RestApiResultUserRole > RemoveUserFromRoleWithHttpInfo (int? userId, string roleName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->RemoveUserFromRole"); + // verify the required parameter 'roleName' is set + if (roleName == null) + throw new ApiException(400, "Missing required parameter 'roleName' when calling UsersApi->RemoveUserFromRole"); + + var localVarPath = "./api/v1.0/users/{userId}/RemoveUserFromRole/{roleName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (roleName != null) localVarPathParams.Add("roleName", this.Configuration.ApiClient.ParameterToString(roleName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveUserFromRole", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserRole + public async System.Threading.Tasks.Task RemoveUserFromRoleAsync (int? userId, string roleName) + { + ApiResponse localVarResponse = await RemoveUserFromRoleAsyncWithHttpInfo(userId, roleName); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserRole) + public async System.Threading.Tasks.Task> RemoveUserFromRoleAsyncWithHttpInfo (int? userId, string roleName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->RemoveUserFromRole"); + // verify the required parameter 'roleName' is set + if (roleName == null) + throw new ApiException(400, "Missing required parameter 'roleName' when calling UsersApi->RemoveUserFromRole"); + + var localVarPath = "./api/v1.0/users/{userId}/RemoveUserFromRole/{roleName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (roleName != null) localVarPathParams.Add("roleName", this.Configuration.ApiClient.ParameterToString(roleName)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("RemoveUserFromRole", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserRole))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse ResetMfa (int? userId) + { + ApiResponse localVarResponse = ResetMfaWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > ResetMfaWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->ResetMfa"); + + var localVarPath = "./api/v1.0/users/{userId}/ResetMfa"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ResetMfa", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task ResetMfaAsync (int? userId) + { + ApiResponse localVarResponse = await ResetMfaAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> ResetMfaAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->ResetMfa"); + + var localVarPath = "./api/v1.0/users/{userId}/ResetMfa"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("ResetMfa", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiArrayResultFlipdishAccountName + public RestApiArrayResultFlipdishAccountName SearchFlipdishAccounts (string searchPattern) + { + ApiResponse localVarResponse = SearchFlipdishAccountsWithHttpInfo(searchPattern); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiArrayResultFlipdishAccountName + public ApiResponse< RestApiArrayResultFlipdishAccountName > SearchFlipdishAccountsWithHttpInfo (string searchPattern) + { + // verify the required parameter 'searchPattern' is set + if (searchPattern == null) + throw new ApiException(400, "Missing required parameter 'searchPattern' when calling UsersApi->SearchFlipdishAccounts"); + + var localVarPath = "./api/v1.0/users/searchFlipdishAccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchPattern != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchPattern", searchPattern)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFlipdishAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultFlipdishAccountName) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultFlipdishAccountName))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiArrayResultFlipdishAccountName + public async System.Threading.Tasks.Task SearchFlipdishAccountsAsync (string searchPattern) + { + ApiResponse localVarResponse = await SearchFlipdishAccountsAsyncWithHttpInfo(searchPattern); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiArrayResultFlipdishAccountName) + public async System.Threading.Tasks.Task> SearchFlipdishAccountsAsyncWithHttpInfo (string searchPattern) + { + // verify the required parameter 'searchPattern' is set + if (searchPattern == null) + throw new ApiException(400, "Missing required parameter 'searchPattern' when calling UsersApi->SearchFlipdishAccounts"); + + var localVarPath = "./api/v1.0/users/searchFlipdishAccounts"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchPattern != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchPattern", searchPattern)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchFlipdishAccounts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultFlipdishAccountName) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultFlipdishAccountName))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultUserSearch + public RestApiPaginationResultUserSearch SearchUsers (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null) + { + ApiResponse localVarResponse = SearchUsersWithHttpInfo(searchQuery, hasUserLoggedIn, userDiscriminator, searchIn, pageIndex, pageSize); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultUserSearch + public ApiResponse< RestApiPaginationResultUserSearch > SearchUsersWithHttpInfo (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null) + { + // verify the required parameter 'searchQuery' is set + if (searchQuery == null) + throw new ApiException(400, "Missing required parameter 'searchQuery' when calling UsersApi->SearchUsers"); + + var localVarPath = "./api/v1.0/users/search"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (hasUserLoggedIn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hasUserLoggedIn", hasUserLoggedIn)); // query parameter + if (userDiscriminator != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userDiscriminator", userDiscriminator)); // query parameter + if (searchIn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchIn", searchIn)); // query parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchUsers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultUserSearch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultUserSearch))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultUserSearch + public async System.Threading.Tasks.Task SearchUsersAsync (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null) + { + ApiResponse localVarResponse = await SearchUsersAsyncWithHttpInfo(searchQuery, hasUserLoggedIn, userDiscriminator, searchIn, pageIndex, pageSize); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultUserSearch) + public async System.Threading.Tasks.Task> SearchUsersAsyncWithHttpInfo (string searchQuery, bool? hasUserLoggedIn = null, string userDiscriminator = null, string searchIn = null, int? pageIndex = null, int? pageSize = null) + { + // verify the required parameter 'searchQuery' is set + if (searchQuery == null) + throw new ApiException(400, "Missing required parameter 'searchQuery' when calling UsersApi->SearchUsers"); + + var localVarPath = "./api/v1.0/users/search"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchQuery != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchQuery", searchQuery)); // query parameter + if (hasUserLoggedIn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "hasUserLoggedIn", hasUserLoggedIn)); // query parameter + if (userDiscriminator != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userDiscriminator", userDiscriminator)); // query parameter + if (searchIn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "searchIn", searchIn)); // query parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SearchUsers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultUserSearch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultUserSearch))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultUserPushNotificationSentResult + public RestApiResultUserPushNotificationSentResult SendUserPushNotification (int? userId, SendUserPushNotificationRequest request) + { + ApiResponse localVarResponse = SendUserPushNotificationWithHttpInfo(userId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultUserPushNotificationSentResult + public ApiResponse< RestApiResultUserPushNotificationSentResult > SendUserPushNotificationWithHttpInfo (int? userId, SendUserPushNotificationRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SendUserPushNotification"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SendUserPushNotification"); + + var localVarPath = "./api/v1.0/users/{userId}/pushNotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendUserPushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserPushNotificationSentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserPushNotificationSentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultUserPushNotificationSentResult + public async System.Threading.Tasks.Task SendUserPushNotificationAsync (int? userId, SendUserPushNotificationRequest request) + { + ApiResponse localVarResponse = await SendUserPushNotificationAsyncWithHttpInfo(userId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultUserPushNotificationSentResult) + public async System.Threading.Tasks.Task> SendUserPushNotificationAsyncWithHttpInfo (int? userId, SendUserPushNotificationRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SendUserPushNotification"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SendUserPushNotification"); + + var localVarPath = "./api/v1.0/users/{userId}/pushNotifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendUserPushNotification", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultUserPushNotificationSentResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultUserPushNotificationSentResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SendUserSms (int? userId, SendUserSmsRequest request) + { + ApiResponse localVarResponse = SendUserSmsWithHttpInfo(userId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SendUserSmsWithHttpInfo (int? userId, SendUserSmsRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SendUserSms"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SendUserSms"); + + var localVarPath = "./api/v1.0/users/{userId}/sms"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendUserSms", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SendUserSmsAsync (int? userId, SendUserSmsRequest request) + { + ApiResponse localVarResponse = await SendUserSmsAsyncWithHttpInfo(userId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SendUserSmsAsyncWithHttpInfo (int? userId, SendUserSmsRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SendUserSms"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SendUserSms"); + + var localVarPath = "./api/v1.0/users/{userId}/sms"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SendUserSms", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetCustomerName (int? userId, string customerName) + { + ApiResponse localVarResponse = SetCustomerNameWithHttpInfo(userId, customerName); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetCustomerNameWithHttpInfo (int? userId, string customerName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetCustomerName"); + // verify the required parameter 'customerName' is set + if (customerName == null) + throw new ApiException(400, "Missing required parameter 'customerName' when calling UsersApi->SetCustomerName"); + + var localVarPath = "./api/v1.0/users/{userId}/SetCustomerName"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (customerName != null && customerName.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerName); // http body (model) parameter + } + else + { + localVarPostBody = customerName; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCustomerName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetCustomerNameAsync (int? userId, string customerName) + { + ApiResponse localVarResponse = await SetCustomerNameAsyncWithHttpInfo(userId, customerName); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetCustomerNameAsyncWithHttpInfo (int? userId, string customerName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetCustomerName"); + // verify the required parameter 'customerName' is set + if (customerName == null) + throw new ApiException(400, "Missing required parameter 'customerName' when calling UsersApi->SetCustomerName"); + + var localVarPath = "./api/v1.0/users/{userId}/SetCustomerName"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (customerName != null && customerName.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(customerName); // http body (model) parameter + } + else + { + localVarPostBody = customerName; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetCustomerName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetFlipdishAccountIdForUser (int? userId, int? accountId) + { + ApiResponse localVarResponse = SetFlipdishAccountIdForUserWithHttpInfo(userId, accountId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetFlipdishAccountIdForUserWithHttpInfo (int? userId, int? accountId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetFlipdishAccountIdForUser"); + // verify the required parameter 'accountId' is set + if (accountId == null) + throw new ApiException(400, "Missing required parameter 'accountId' when calling UsersApi->SetFlipdishAccountIdForUser"); + + var localVarPath = "./api/v1.0/users/{userId}/SetFlipdishAccountId/{accountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (accountId != null) localVarPathParams.Add("accountId", this.Configuration.ApiClient.ParameterToString(accountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetFlipdishAccountIdForUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetFlipdishAccountIdForUserAsync (int? userId, int? accountId) + { + ApiResponse localVarResponse = await SetFlipdishAccountIdForUserAsyncWithHttpInfo(userId, accountId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetFlipdishAccountIdForUserAsyncWithHttpInfo (int? userId, int? accountId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetFlipdishAccountIdForUser"); + // verify the required parameter 'accountId' is set + if (accountId == null) + throw new ApiException(400, "Missing required parameter 'accountId' when calling UsersApi->SetFlipdishAccountIdForUser"); + + var localVarPath = "./api/v1.0/users/{userId}/SetFlipdishAccountId/{accountId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (accountId != null) localVarPathParams.Add("accountId", this.Configuration.ApiClient.ParameterToString(accountId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetFlipdishAccountIdForUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetUserDeliveryLocationCoordinates (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + { + ApiResponse localVarResponse = SetUserDeliveryLocationCoordinatesWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetUserDeliveryLocationCoordinatesWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/coordinates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserDeliveryLocationCoordinates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetUserDeliveryLocationCoordinatesAsync (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + { + ApiResponse localVarResponse = await SetUserDeliveryLocationCoordinatesAsyncWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetUserDeliveryLocationCoordinatesAsyncWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SetUserDeliveryLocationCoordinates"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/coordinates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserDeliveryLocationCoordinates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetUserDeliveryLocationField (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) + { + ApiResponse localVarResponse = SetUserDeliveryLocationFieldWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetUserDeliveryLocationFieldWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserDeliveryLocationField"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->SetUserDeliveryLocationField"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SetUserDeliveryLocationField"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/fields"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserDeliveryLocationField", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetUserDeliveryLocationFieldAsync (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) + { + ApiResponse localVarResponse = await SetUserDeliveryLocationFieldAsyncWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetUserDeliveryLocationFieldAsyncWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserDeliveryLocationField"); + // verify the required parameter 'deliveryLocationId' is set + if (deliveryLocationId == null) + throw new ApiException(400, "Missing required parameter 'deliveryLocationId' when calling UsersApi->SetUserDeliveryLocationField"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling UsersApi->SetUserDeliveryLocationField"); + + var localVarPath = "./api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/fields"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (deliveryLocationId != null) localVarPathParams.Add("deliveryLocationId", this.Configuration.ApiClient.ParameterToString(deliveryLocationId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserDeliveryLocationField", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetUserLanguage (int? userId, string languageId) + { + ApiResponse localVarResponse = SetUserLanguageWithHttpInfo(userId, languageId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetUserLanguageWithHttpInfo (int? userId, string languageId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserLanguage"); + // verify the required parameter 'languageId' is set + if (languageId == null) + throw new ApiException(400, "Missing required parameter 'languageId' when calling UsersApi->SetUserLanguage"); + + var localVarPath = "./api/v1.0/users/{userId}/SetLanguage/{languageId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (languageId != null) localVarPathParams.Add("languageId", this.Configuration.ApiClient.ParameterToString(languageId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserLanguage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetUserLanguageAsync (int? userId, string languageId) + { + ApiResponse localVarResponse = await SetUserLanguageAsyncWithHttpInfo(userId, languageId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetUserLanguageAsyncWithHttpInfo (int? userId, string languageId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->SetUserLanguage"); + // verify the required parameter 'languageId' is set + if (languageId == null) + throw new ApiException(400, "Missing required parameter 'languageId' when calling UsersApi->SetUserLanguage"); + + var localVarPath = "./api/v1.0/users/{userId}/SetLanguage/{languageId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + if (languageId != null) localVarPathParams.Add("languageId", this.Configuration.ApiClient.ParameterToString(languageId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserLanguage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse UnblockUserPhoneNumber (int? userId) + { + ApiResponse localVarResponse = UnblockUserPhoneNumberWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > UnblockUserPhoneNumberWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->UnblockUserPhoneNumber"); + + var localVarPath = "./api/v1.0/users/{userId}/UnblockUserPhoneNumber"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnblockUserPhoneNumber", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task UnblockUserPhoneNumberAsync (int? userId) + { + ApiResponse localVarResponse = await UnblockUserPhoneNumberAsyncWithHttpInfo(userId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> UnblockUserPhoneNumberAsyncWithHttpInfo (int? userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new ApiException(400, "Missing required parameter 'userId' when calling UsersApi->UnblockUserPhoneNumber"); + + var localVarPath = "./api/v1.0/users/{userId}/UnblockUserPhoneNumber"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (userId != null) localVarPathParams.Add("userId", this.Configuration.ApiClient.ParameterToString(userId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UnblockUserPhoneNumber", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); + } + + } +} diff --git a/src/Flipdish/Api/VouchersApi.cs b/src/Flipdish/Api/VouchersApi.cs new file mode 100644 index 00000000..1a26d7ad --- /dev/null +++ b/src/Flipdish/Api/VouchersApi.cs @@ -0,0 +1,2440 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IVouchersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultVoucherWithStats + RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher voucher); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultVoucherWithStats + ApiResponse CreateVoucherWithHttpInfo (string appId, CreateVoucher voucher); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultVoucher + RestApiResultVoucher GetVoucherByCode (string appId, string code); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultVoucher + ApiResponse GetVoucherByCodeWithHttpInfo (string appId, string code); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultVoucherWithStats + RestApiResultVoucherWithStats GetVoucherById (int? voucherId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultVoucherWithStats + ApiResponse GetVoucherByIdWithHttpInfo (int? voucherId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiArrayResultVoucherDataPoint + RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiArrayResultVoucherDataPoint + ApiResponse GetVoucherStatsByIdWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void GetVoucherValidityPeriods (string appId, int? voucherId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse GetVoucherValidityPeriodsWithHttpInfo (string appId, int? voucherId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultVoucherSummary + RestApiPaginationResultVoucherSummary GetVouchers (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultVoucherSummary + ApiResponse GetVouchersWithHttpInfo (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultVoucherSummary + RestApiArrayResultVoucherSummary GetVouchersByCustomerForApp (string appId, int? customerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultVoucherSummary + ApiResponse GetVouchersByCustomerForAppWithHttpInfo (string appId, int? customerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void SetVoucherValidityPeriodsSimplified (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetVoucherValidityPeriodsSimplifiedWithHttpInfo (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultVoucherWithStats + RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultVoucherWithStats + ApiResponse UpdateVoucherWithHttpInfo (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void UpdateVoucherUsage (string appId, int? voucherId, UpdateVoucherUsage voucherUsage); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateVoucherUsageWithHttpInfo (string appId, int? voucherId, UpdateVoucherUsage voucherUsage); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultVoucherWithStats + System.Threading.Tasks.Task CreateVoucherAsync (string appId, CreateVoucher voucher); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultVoucherWithStats) + System.Threading.Tasks.Task> CreateVoucherAsyncWithHttpInfo (string appId, CreateVoucher voucher); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultVoucher + System.Threading.Tasks.Task GetVoucherByCodeAsync (string appId, string code); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultVoucher) + System.Threading.Tasks.Task> GetVoucherByCodeAsyncWithHttpInfo (string appId, string code); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultVoucherWithStats + System.Threading.Tasks.Task GetVoucherByIdAsync (int? voucherId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultVoucherWithStats) + System.Threading.Tasks.Task> GetVoucherByIdAsyncWithHttpInfo (int? voucherId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiArrayResultVoucherDataPoint + System.Threading.Tasks.Task GetVoucherStatsByIdAsync (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultVoucherDataPoint) + System.Threading.Tasks.Task> GetVoucherStatsByIdAsyncWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task GetVoucherValidityPeriodsAsync (string appId, int? voucherId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> GetVoucherValidityPeriodsAsyncWithHttpInfo (string appId, int? voucherId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultVoucherSummary + System.Threading.Tasks.Task GetVouchersAsync (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultVoucherSummary) + System.Threading.Tasks.Task> GetVouchersAsyncWithHttpInfo (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultVoucherSummary + System.Threading.Tasks.Task GetVouchersByCustomerForAppAsync (string appId, int? customerId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultVoucherSummary) + System.Threading.Tasks.Task> GetVouchersByCustomerForAppAsyncWithHttpInfo (string appId, int? customerId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task SetVoucherValidityPeriodsSimplifiedAsync (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> SetVoucherValidityPeriodsSimplifiedAsyncWithHttpInfo (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiResultVoucherWithStats + System.Threading.Tasks.Task UpdateVoucherAsync (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultVoucherWithStats) + System.Threading.Tasks.Task> UpdateVoucherAsyncWithHttpInfo (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateVoucherUsageAsync (string appId, int? voucherId, UpdateVoucherUsage voucherUsage); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateVoucherUsageAsyncWithHttpInfo (string appId, int? voucherId, UpdateVoucherUsage voucherUsage); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class VouchersApi : IVouchersApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public VouchersApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public VouchersApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultVoucherWithStats + public RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher voucher) + { + ApiResponse localVarResponse = CreateVoucherWithHttpInfo(appId, voucher); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultVoucherWithStats + public ApiResponse< RestApiResultVoucherWithStats > CreateVoucherWithHttpInfo (string appId, CreateVoucher voucher) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->CreateVoucher"); + // verify the required parameter 'voucher' is set + if (voucher == null) + throw new ApiException(400, "Missing required parameter 'voucher' when calling VouchersApi->CreateVoucher"); + + var localVarPath = "./api/v1.0/vouchers/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucher != null && voucher.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucher); // http body (model) parameter + } + else + { + localVarPostBody = voucher; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateVoucher", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultVoucherWithStats + public async System.Threading.Tasks.Task CreateVoucherAsync (string appId, CreateVoucher voucher) + { + ApiResponse localVarResponse = await CreateVoucherAsyncWithHttpInfo(appId, voucher); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultVoucherWithStats) + public async System.Threading.Tasks.Task> CreateVoucherAsyncWithHttpInfo (string appId, CreateVoucher voucher) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->CreateVoucher"); + // verify the required parameter 'voucher' is set + if (voucher == null) + throw new ApiException(400, "Missing required parameter 'voucher' when calling VouchersApi->CreateVoucher"); + + var localVarPath = "./api/v1.0/vouchers/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucher != null && voucher.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucher); // http body (model) parameter + } + else + { + localVarPostBody = voucher; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateVoucher", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultVoucher + public RestApiResultVoucher GetVoucherByCode (string appId, string code) + { + ApiResponse localVarResponse = GetVoucherByCodeWithHttpInfo(appId, code); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultVoucher + public ApiResponse< RestApiResultVoucher > GetVoucherByCodeWithHttpInfo (string appId, string code) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVoucherByCode"); + // verify the required parameter 'code' is set + if (code == null) + throw new ApiException(400, "Missing required parameter 'code' when calling VouchersApi->GetVoucherByCode"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/code/{code}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (code != null) localVarPathParams.Add("code", this.Configuration.ApiClient.ParameterToString(code)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherByCode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucher) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucher))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultVoucher + public async System.Threading.Tasks.Task GetVoucherByCodeAsync (string appId, string code) + { + ApiResponse localVarResponse = await GetVoucherByCodeAsyncWithHttpInfo(appId, code); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultVoucher) + public async System.Threading.Tasks.Task> GetVoucherByCodeAsyncWithHttpInfo (string appId, string code) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVoucherByCode"); + // verify the required parameter 'code' is set + if (code == null) + throw new ApiException(400, "Missing required parameter 'code' when calling VouchersApi->GetVoucherByCode"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/code/{code}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (code != null) localVarPathParams.Add("code", this.Configuration.ApiClient.ParameterToString(code)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherByCode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucher) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucher))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultVoucherWithStats + public RestApiResultVoucherWithStats GetVoucherById (int? voucherId) + { + ApiResponse localVarResponse = GetVoucherByIdWithHttpInfo(voucherId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultVoucherWithStats + public ApiResponse< RestApiResultVoucherWithStats > GetVoucherByIdWithHttpInfo (int? voucherId) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); + + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultVoucherWithStats + public async System.Threading.Tasks.Task GetVoucherByIdAsync (int? voucherId) + { + ApiResponse localVarResponse = await GetVoucherByIdAsyncWithHttpInfo(voucherId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultVoucherWithStats) + public async System.Threading.Tasks.Task> GetVoucherByIdAsyncWithHttpInfo (int? voucherId) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); + + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// RestApiArrayResultVoucherDataPoint + public RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + { + ApiResponse localVarResponse = GetVoucherStatsByIdWithHttpInfo(voucherId, aggregateDataBy, dataPointLimit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// ApiResponse of RestApiArrayResultVoucherDataPoint + public ApiResponse< RestApiArrayResultVoucherDataPoint > GetVoucherStatsByIdWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherStatsById"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling VouchersApi->GetVoucherStatsById"); + + var localVarPath = "./api/v1.0/vouchers/stats/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (aggregateDataBy != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aggregateDataBy", aggregateDataBy)); // query parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherStatsById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultVoucherDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of RestApiArrayResultVoucherDataPoint + public async System.Threading.Tasks.Task GetVoucherStatsByIdAsync (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + { + ApiResponse localVarResponse = await GetVoucherStatsByIdAsyncWithHttpInfo(voucherId, aggregateDataBy, dataPointLimit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultVoucherDataPoint) + public async System.Threading.Tasks.Task> GetVoucherStatsByIdAsyncWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherStatsById"); + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy == null) + throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling VouchersApi->GetVoucherStatsById"); + + var localVarPath = "./api/v1.0/vouchers/stats/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (aggregateDataBy != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "aggregateDataBy", aggregateDataBy)); // query parameter + if (dataPointLimit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "dataPointLimit", dataPointLimit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherStatsById", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultVoucherDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherDataPoint))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void GetVoucherValidityPeriods (string appId, int? voucherId) + { + GetVoucherValidityPeriodsWithHttpInfo(appId, voucherId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse GetVoucherValidityPeriodsWithHttpInfo (string appId, int? voucherId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVoucherValidityPeriods"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherValidityPeriods"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/validity-periods"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherValidityPeriods", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task GetVoucherValidityPeriodsAsync (string appId, int? voucherId) + { + await GetVoucherValidityPeriodsAsyncWithHttpInfo(appId, voucherId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> GetVoucherValidityPeriodsAsyncWithHttpInfo (string appId, int? voucherId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVoucherValidityPeriods"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherValidityPeriods"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/validity-periods"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVoucherValidityPeriods", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultVoucherSummary + public RestApiPaginationResultVoucherSummary GetVouchers (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null) + { + ApiResponse localVarResponse = GetVouchersWithHttpInfo(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds, channelRestrictions); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultVoucherSummary + public ApiResponse< RestApiPaginationResultVoucherSummary > GetVouchersWithHttpInfo (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVouchers"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + if (searchCodes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "searchCodes", searchCodes)); // query parameter + if (statusSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "statusSearch", statusSearch)); // query parameter + if (typeSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "typeSearch", typeSearch)); // query parameter + if (subTypeSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "subTypeSearch", subTypeSearch)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (channelRestrictions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channelRestrictions", channelRestrictions)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVouchers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultVoucherSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultVoucherSummary + public async System.Threading.Tasks.Task GetVouchersAsync (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null) + { + ApiResponse localVarResponse = await GetVouchersAsyncWithHttpInfo(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds, channelRestrictions); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultVoucherSummary) + public async System.Threading.Tasks.Task> GetVouchersAsyncWithHttpInfo (string appId, int? pageIndex = null, int? pageSize = null, List searchCodes = null, List statusSearch = null, List typeSearch = null, List subTypeSearch = null, List storeIds = null, List channelRestrictions = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVouchers"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (pageIndex != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageIndex", pageIndex)); // query parameter + if (pageSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter + if (searchCodes != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "searchCodes", searchCodes)); // query parameter + if (statusSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "statusSearch", statusSearch)); // query parameter + if (typeSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "typeSearch", typeSearch)); // query parameter + if (subTypeSearch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "subTypeSearch", subTypeSearch)); // query parameter + if (storeIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeIds", storeIds)); // query parameter + if (channelRestrictions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "channelRestrictions", channelRestrictions)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVouchers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultVoucherSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiArrayResultVoucherSummary + public RestApiArrayResultVoucherSummary GetVouchersByCustomerForApp (string appId, int? customerId) + { + ApiResponse localVarResponse = GetVouchersByCustomerForAppWithHttpInfo(appId, customerId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiArrayResultVoucherSummary + public ApiResponse< RestApiArrayResultVoucherSummary > GetVouchersByCustomerForAppWithHttpInfo (string appId, int? customerId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVouchersByCustomerForApp"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling VouchersApi->GetVouchersByCustomerForApp"); + + var localVarPath = "./api/v1.0/vouchers/{appId}/customer/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVouchersByCustomerForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiArrayResultVoucherSummary + public async System.Threading.Tasks.Task GetVouchersByCustomerForAppAsync (string appId, int? customerId) + { + ApiResponse localVarResponse = await GetVouchersByCustomerForAppAsyncWithHttpInfo(appId, customerId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiArrayResultVoucherSummary) + public async System.Threading.Tasks.Task> GetVouchersByCustomerForAppAsyncWithHttpInfo (string appId, int? customerId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->GetVouchersByCustomerForApp"); + // verify the required parameter 'customerId' is set + if (customerId == null) + throw new ApiException(400, "Missing required parameter 'customerId' when calling VouchersApi->GetVouchersByCustomerForApp"); + + var localVarPath = "./api/v1.0/vouchers/{appId}/customer/{customerId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (customerId != null) localVarPathParams.Add("customerId", this.Configuration.ApiClient.ParameterToString(customerId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetVouchersByCustomerForApp", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiArrayResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherSummary))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void SetVoucherValidityPeriodsSimplified (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) + { + SetVoucherValidityPeriodsSimplifiedWithHttpInfo(appId, voucherId, request); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse SetVoucherValidityPeriodsSimplifiedWithHttpInfo (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetVoucherValidityPeriodsSimplified", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetVoucherValidityPeriodsSimplifiedAsync (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) + { + await SetVoucherValidityPeriodsSimplifiedAsyncWithHttpInfo(appId, voucherId, request); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> SetVoucherValidityPeriodsSimplifiedAsyncWithHttpInfo (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling VouchersApi->SetVoucherValidityPeriodsSimplified"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (request != null && request.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter + } + else + { + localVarPostBody = request; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetVoucherValidityPeriodsSimplified", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultVoucherWithStats + public RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + { + ApiResponse localVarResponse = UpdateVoucherWithHttpInfo(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultVoucherWithStats + public ApiResponse< RestApiResultVoucherWithStats > UpdateVoucherWithHttpInfo (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->UpdateVoucher"); + // verify the required parameter 'voucher' is set + if (voucher == null) + throw new ApiException(400, "Missing required parameter 'voucher' when calling VouchersApi->UpdateVoucher"); + + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (percentValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "percentValue", percentValue)); // query parameter + if (lumpValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "lumpValue", lumpValue)); // query parameter + if (maxDiscountAmount != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "maxDiscountAmount", maxDiscountAmount)); // query parameter + if (voucher != null && voucher.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucher); // http body (model) parameter + } + else + { + localVarPostBody = voucher; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateVoucher", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiResultVoucherWithStats + public async System.Threading.Tasks.Task UpdateVoucherAsync (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + { + ApiResponse localVarResponse = await UpdateVoucherAsyncWithHttpInfo(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultVoucherWithStats) + public async System.Threading.Tasks.Task> UpdateVoucherAsyncWithHttpInfo (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + { + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->UpdateVoucher"); + // verify the required parameter 'voucher' is set + if (voucher == null) + throw new ApiException(400, "Missing required parameter 'voucher' when calling VouchersApi->UpdateVoucher"); + + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "storeId", storeId)); // query parameter + if (percentValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "percentValue", percentValue)); // query parameter + if (lumpValue != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "lumpValue", lumpValue)); // query parameter + if (maxDiscountAmount != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "maxDiscountAmount", maxDiscountAmount)); // query parameter + if (voucher != null && voucher.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucher); // http body (model) parameter + } + else + { + localVarPostBody = voucher; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateVoucher", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void UpdateVoucherUsage (string appId, int? voucherId, UpdateVoucherUsage voucherUsage) + { + UpdateVoucherUsageWithHttpInfo(appId, voucherId, voucherUsage); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateVoucherUsageWithHttpInfo (string appId, int? voucherId, UpdateVoucherUsage voucherUsage) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->UpdateVoucherUsage"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->UpdateVoucherUsage"); + // verify the required parameter 'voucherUsage' is set + if (voucherUsage == null) + throw new ApiException(400, "Missing required parameter 'voucherUsage' when calling VouchersApi->UpdateVoucherUsage"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/usage"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (voucherUsage != null && voucherUsage.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucherUsage); // http body (model) parameter + } + else + { + localVarPostBody = voucherUsage; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateVoucherUsage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateVoucherUsageAsync (string appId, int? voucherId, UpdateVoucherUsage voucherUsage) + { + await UpdateVoucherUsageAsyncWithHttpInfo(appId, voucherId, voucherUsage); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateVoucherUsageAsyncWithHttpInfo (string appId, int? voucherId, UpdateVoucherUsage voucherUsage) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling VouchersApi->UpdateVoucherUsage"); + // verify the required parameter 'voucherId' is set + if (voucherId == null) + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->UpdateVoucherUsage"); + // verify the required parameter 'voucherUsage' is set + if (voucherUsage == null) + throw new ApiException(400, "Missing required parameter 'voucherUsage' when calling VouchersApi->UpdateVoucherUsage"); + + var localVarPath = "./api/v1.0/{appId}/vouchers/{voucherId}/usage"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + if (voucherUsage != null && voucherUsage.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(voucherUsage); // http body (model) parameter + } + else + { + localVarPostBody = voucherUsage; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateVoucherUsage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/WebhooksApi.cs b/src/Flipdish/Api/WebhooksApi.cs new file mode 100644 index 00000000..22086e08 --- /dev/null +++ b/src/Flipdish/Api/WebhooksApi.cs @@ -0,0 +1,2518 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebhooksApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiIntegerResult + RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiIntegerResult + ApiResponse CreateWebhookSubscriptionWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse CreateWebhookSubscriptionEventNamesWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteWebhookSubscriptionEventNameWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringArrayResult + RestApiStringArrayResult GetWebhookEventNames (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse GetWebhookEventNamesWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiStringArrayResult + RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse GetWebhookEventNamesBySubscriptionIdWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// WebhookEventSample + WebhookEventSample GetWebhookEventSample (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// ApiResponse of WebhookEventSample + ApiResponse GetWebhookEventSampleWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultWebhookLog + RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultWebhookLog + ApiResponse GetWebhookLogsWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultWebhookSubscription + RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (string oauthAppId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultWebhookSubscription + ApiResponse GetWebhookSubscriptionsWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse UpdateWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiIntegerResult + System.Threading.Tasks.Task CreateWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiIntegerResult) + System.Threading.Tasks.Task> CreateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task CreateWebhookSubscriptionEventNamesAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateWebhookSubscriptionEventNamesAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteWebhookSubscriptionEventNameAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteWebhookSubscriptionEventNameAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task GetWebhookEventNamesAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> GetWebhookEventNamesAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task GetWebhookEventNamesBySubscriptionIdAsync (string oauthAppId, int? webhookSubscriptionId, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> GetWebhookEventNamesBySubscriptionIdAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of WebhookEventSample + System.Threading.Tasks.Task GetWebhookEventSampleAsync (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of ApiResponse (WebhookEventSample) + System.Threading.Tasks.Task> GetWebhookEventSampleAsyncWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultWebhookLog + System.Threading.Tasks.Task GetWebhookLogsAsync (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultWebhookLog) + System.Threading.Tasks.Task> GetWebhookLogsAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultWebhookSubscription + System.Threading.Tasks.Task GetWebhookSubscriptionsAsync (string oauthAppId, string appId, int? page = null, int? limit = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultWebhookSubscription) + System.Threading.Tasks.Task> GetWebhookSubscriptionsAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + System.Threading.Tasks.Task UpdateWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> UpdateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WebhooksApi : IWebhooksApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WebhooksApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WebhooksApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiIntegerResult + public RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + { + ApiResponse localVarResponse = CreateWebhookSubscriptionWithHttpInfo(oauthAppId, webhookSubscription, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiIntegerResult + public ApiResponse< RestApiIntegerResult > CreateWebhookSubscriptionWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->CreateWebhookSubscription"); + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscription' when calling WebhooksApi->CreateWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->CreateWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (webhookSubscription != null && webhookSubscription.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(webhookSubscription); // http body (model) parameter + } + else + { + localVarPostBody = webhookSubscription; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiIntegerResult + public async System.Threading.Tasks.Task CreateWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + { + ApiResponse localVarResponse = await CreateWebhookSubscriptionAsyncWithHttpInfo(oauthAppId, webhookSubscription, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiIntegerResult) + public async System.Threading.Tasks.Task> CreateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->CreateWebhookSubscription"); + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscription' when calling WebhooksApi->CreateWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->CreateWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (webhookSubscription != null && webhookSubscription.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(webhookSubscription); // http body (model) parameter + } + else + { + localVarPostBody = webhookSubscription; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiIntegerResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + CreateWebhookSubscriptionEventNamesWithHttpInfo(oauthAppId, webhookSubscriptionId, eventName, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse CreateWebhookSubscriptionEventNamesWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateWebhookSubscriptionEventNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task CreateWebhookSubscriptionEventNamesAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + await CreateWebhookSubscriptionEventNamesAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, eventName, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateWebhookSubscriptionEventNamesAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->CreateWebhookSubscriptionEventNames"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateWebhookSubscriptionEventNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + public void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId) + { + DeleteWebhookSubscriptionWithHttpInfo(oauthAppId, webhookSubscriptionId, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->DeleteWebhookSubscription"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->DeleteWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->DeleteWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, string appId) + { + await DeleteWebhookSubscriptionAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->DeleteWebhookSubscription"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->DeleteWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->DeleteWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + DeleteWebhookSubscriptionEventNameWithHttpInfo(oauthAppId, webhookSubscriptionId, eventName, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteWebhookSubscriptionEventNameWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebhookSubscriptionEventName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteWebhookSubscriptionEventNameAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + await DeleteWebhookSubscriptionEventNameAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, eventName, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteWebhookSubscriptionEventNameAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->DeleteWebhookSubscriptionEventName"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebhookSubscriptionEventName", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult GetWebhookEventNames (string appId) + { + ApiResponse localVarResponse = GetWebhookEventNamesWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiStringArrayResult + public ApiResponse< RestApiStringArrayResult > GetWebhookEventNamesWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventNames"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task GetWebhookEventNamesAsync (string appId) + { + ApiResponse localVarResponse = await GetWebhookEventNamesAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringArrayResult) + public async System.Threading.Tasks.Task> GetWebhookEventNamesAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventNames"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventNames", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId) + { + ApiResponse localVarResponse = GetWebhookEventNamesBySubscriptionIdWithHttpInfo(oauthAppId, webhookSubscriptionId, appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiStringArrayResult + public ApiResponse< RestApiStringArrayResult > GetWebhookEventNamesBySubscriptionIdWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventNamesBySubscriptionId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task GetWebhookEventNamesBySubscriptionIdAsync (string oauthAppId, int? webhookSubscriptionId, string appId) + { + ApiResponse localVarResponse = await GetWebhookEventNamesBySubscriptionIdAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiStringArrayResult) + public async System.Threading.Tasks.Task> GetWebhookEventNamesBySubscriptionIdAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventNamesBySubscriptionId"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventNamesBySubscriptionId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// WebhookEventSample + public WebhookEventSample GetWebhookEventSample (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) + { + ApiResponse localVarResponse = GetWebhookEventSampleWithHttpInfo(eventName, appId, oauthAppId, webhookSubscriptionId, version); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// ApiResponse of WebhookEventSample + public ApiResponse< WebhookEventSample > GetWebhookEventSampleWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) + { + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookEventSample"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventSample", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (WebhookEventSample) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookEventSample))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of WebhookEventSample + public async System.Threading.Tasks.Task GetWebhookEventSampleAsync (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) + { + ApiResponse localVarResponse = await GetWebhookEventSampleAsyncWithHttpInfo(eventName, appId, oauthAppId, webhookSubscriptionId, version); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// (optional) + /// Task of ApiResponse (WebhookEventSample) + public async System.Threading.Tasks.Task> GetWebhookEventSampleAsyncWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) + { + // verify the required parameter 'eventName' is set + if (eventName == null) + throw new ApiException(400, "Missing required parameter 'eventName' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookEventSample"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookEventSample"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (eventName != null) localVarPathParams.Add("eventName", this.Configuration.ApiClient.ParameterToString(eventName)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookEventSample", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (WebhookEventSample) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookEventSample))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultWebhookLog + public RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetWebhookLogsWithHttpInfo(oauthAppId, webhookSubscriptionId, start, end, appId, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultWebhookLog + public ApiResponse< RestApiPaginationResultWebhookLog > GetWebhookLogsWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'start' is set + if (start == null) + throw new ApiException(400, "Missing required parameter 'start' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'end' is set + if (end == null) + throw new ApiException(400, "Missing required parameter 'end' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookLogs"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookLogs", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultWebhookLog) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultWebhookLog))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultWebhookLog + public async System.Threading.Tasks.Task GetWebhookLogsAsync (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetWebhookLogsAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, start, end, appId, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultWebhookLog) + public async System.Threading.Tasks.Task> GetWebhookLogsAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'start' is set + if (start == null) + throw new ApiException(400, "Missing required parameter 'start' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'end' is set + if (end == null) + throw new ApiException(400, "Missing required parameter 'end' when calling WebhooksApi->GetWebhookLogs"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookLogs"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookLogs", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultWebhookLog) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultWebhookLog))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// RestApiPaginationResultWebhookSubscription + public RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (string oauthAppId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = GetWebhookSubscriptionsWithHttpInfo(oauthAppId, appId, page, limit); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultWebhookSubscription + public ApiResponse< RestApiPaginationResultWebhookSubscription > GetWebhookSubscriptionsWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookSubscriptions"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookSubscriptions"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookSubscriptions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultWebhookSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultWebhookSubscription))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of RestApiPaginationResultWebhookSubscription + public async System.Threading.Tasks.Task GetWebhookSubscriptionsAsync (string oauthAppId, string appId, int? page = null, int? limit = null) + { + ApiResponse localVarResponse = await GetWebhookSubscriptionsAsyncWithHttpInfo(oauthAppId, appId, page, limit); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiPaginationResultWebhookSubscription) + public async System.Threading.Tasks.Task> GetWebhookSubscriptionsAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->GetWebhookSubscriptions"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->GetWebhookSubscriptions"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWebhookSubscriptions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiPaginationResultWebhookSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultWebhookSubscription))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// + public void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) + { + UpdateWebhookSubscriptionWithHttpInfo(oauthAppId, webhookSubscriptionId, webhookSubscription, appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of Object(void) + public ApiResponse UpdateWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscription' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->UpdateWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (webhookSubscription != null && webhookSubscription.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(webhookSubscription); // http body (model) parameter + } + else + { + localVarPostBody = webhookSubscription; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task UpdateWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) + { + await UpdateWebhookSubscriptionAsyncWithHttpInfo(oauthAppId, webhookSubscriptionId, webhookSubscription, appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> UpdateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) + { + // verify the required parameter 'oauthAppId' is set + if (oauthAppId == null) + throw new ApiException(400, "Missing required parameter 'oauthAppId' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscriptionId' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription == null) + throw new ApiException(400, "Missing required parameter 'webhookSubscription' when calling WebhooksApi->UpdateWebhookSubscription"); + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebhooksApi->UpdateWebhookSubscription"); + + var localVarPath = "./api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (oauthAppId != null) localVarPathParams.Add("oauthAppId", this.Configuration.ApiClient.ParameterToString(oauthAppId)); // path parameter + if (webhookSubscriptionId != null) localVarPathParams.Add("webhookSubscriptionId", this.Configuration.ApiClient.ParameterToString(webhookSubscriptionId)); // path parameter + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (webhookSubscription != null && webhookSubscription.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(webhookSubscription); // http body (model) parameter + } + else + { + localVarPostBody = webhookSubscription; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateWebhookSubscription", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/WebsiteApi.cs b/src/Flipdish/Api/WebsiteApi.cs new file mode 100644 index 00000000..a9231af6 --- /dev/null +++ b/src/Flipdish/Api/WebsiteApi.cs @@ -0,0 +1,1870 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebsiteApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultWebsiteTestimonial + RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTestimonialBase testimonial); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultWebsiteTestimonial + ApiResponse AddTestimonialWithHttpInfo (string appId, WebsiteTestimonialBase testimonial); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeleteTestimonial (string appId, int? testimonialId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteTestimonialWithHttpInfo (string appId, int? testimonialId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + void DeleteWebsiteImage (string appId, int? imageId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + ApiResponse DeleteWebsiteImageWithHttpInfo (string appId, int? imageId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultWebsiteTestimonial + RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultWebsiteTestimonial + ApiResponse EditTestimonialWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultIndexPage + RestApiResultIndexPage GetIndexConfiguration (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultIndexPage + ApiResponse GetIndexConfigurationWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultIndexPageBase + RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultIndexPageBase + ApiResponse SetIndexConfigurationWithHttpInfo (string appId, IndexPageBase indexPage); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// RestApiResultWebsiteImage + RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// ApiResponse of RestApiResultWebsiteImage + ApiResponse UploadWebsiteImageWithHttpInfo (string appId, string imageLocation, System.IO.Stream image); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + void WebsiteCheckNow (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + ApiResponse WebsiteCheckNowWithHttpInfo (string appId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultWebsiteTestimonial + System.Threading.Tasks.Task AddTestimonialAsync (string appId, WebsiteTestimonialBase testimonial); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultWebsiteTestimonial) + System.Threading.Tasks.Task> AddTestimonialAsyncWithHttpInfo (string appId, WebsiteTestimonialBase testimonial); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteTestimonialAsync (string appId, int? testimonialId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteTestimonialAsyncWithHttpInfo (string appId, int? testimonialId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + System.Threading.Tasks.Task DeleteWebsiteImageAsync (string appId, int? imageId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteWebsiteImageAsyncWithHttpInfo (string appId, int? imageId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultWebsiteTestimonial + System.Threading.Tasks.Task EditTestimonialAsync (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultWebsiteTestimonial) + System.Threading.Tasks.Task> EditTestimonialAsyncWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultIndexPage + System.Threading.Tasks.Task GetIndexConfigurationAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultIndexPage) + System.Threading.Tasks.Task> GetIndexConfigurationAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultIndexPageBase + System.Threading.Tasks.Task SetIndexConfigurationAsync (string appId, IndexPageBase indexPage); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultIndexPageBase) + System.Threading.Tasks.Task> SetIndexConfigurationAsyncWithHttpInfo (string appId, IndexPageBase indexPage); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// Task of RestApiResultWebsiteImage + System.Threading.Tasks.Task UploadWebsiteImageAsync (string appId, string imageLocation, System.IO.Stream image); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// Task of ApiResponse (RestApiResultWebsiteImage) + System.Threading.Tasks.Task> UploadWebsiteImageAsyncWithHttpInfo (string appId, string imageLocation, System.IO.Stream image); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + System.Threading.Tasks.Task WebsiteCheckNowAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> WebsiteCheckNowAsyncWithHttpInfo (string appId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WebsiteApi : IWebsiteApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WebsiteApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WebsiteApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultWebsiteTestimonial + public RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTestimonialBase testimonial) + { + ApiResponse localVarResponse = AddTestimonialWithHttpInfo(appId, testimonial); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultWebsiteTestimonial + public ApiResponse< RestApiResultWebsiteTestimonial > AddTestimonialWithHttpInfo (string appId, WebsiteTestimonialBase testimonial) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->AddTestimonial"); + // verify the required parameter 'testimonial' is set + if (testimonial == null) + throw new ApiException(400, "Missing required parameter 'testimonial' when calling WebsiteApi->AddTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonial != null && testimonial.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(testimonial); // http body (model) parameter + } + else + { + localVarPostBody = testimonial; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteTestimonial) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteTestimonial))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultWebsiteTestimonial + public async System.Threading.Tasks.Task AddTestimonialAsync (string appId, WebsiteTestimonialBase testimonial) + { + ApiResponse localVarResponse = await AddTestimonialAsyncWithHttpInfo(appId, testimonial); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultWebsiteTestimonial) + public async System.Threading.Tasks.Task> AddTestimonialAsyncWithHttpInfo (string appId, WebsiteTestimonialBase testimonial) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->AddTestimonial"); + // verify the required parameter 'testimonial' is set + if (testimonial == null) + throw new ApiException(400, "Missing required parameter 'testimonial' when calling WebsiteApi->AddTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonial != null && testimonial.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(testimonial); // http body (model) parameter + } + else + { + localVarPostBody = testimonial; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("AddTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteTestimonial) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteTestimonial))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeleteTestimonial (string appId, int? testimonialId) + { + DeleteTestimonialWithHttpInfo(appId, testimonialId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteTestimonialWithHttpInfo (string appId, int? testimonialId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->DeleteTestimonial"); + // verify the required parameter 'testimonialId' is set + if (testimonialId == null) + throw new ApiException(400, "Missing required parameter 'testimonialId' when calling WebsiteApi->DeleteTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial/{testimonialId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonialId != null) localVarPathParams.Add("testimonialId", this.Configuration.ApiClient.ParameterToString(testimonialId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteTestimonialAsync (string appId, int? testimonialId) + { + await DeleteTestimonialAsyncWithHttpInfo(appId, testimonialId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteTestimonialAsyncWithHttpInfo (string appId, int? testimonialId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->DeleteTestimonial"); + // verify the required parameter 'testimonialId' is set + if (testimonialId == null) + throw new ApiException(400, "Missing required parameter 'testimonialId' when calling WebsiteApi->DeleteTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial/{testimonialId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonialId != null) localVarPathParams.Add("testimonialId", this.Configuration.ApiClient.ParameterToString(testimonialId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + public void DeleteWebsiteImage (string appId, int? imageId) + { + DeleteWebsiteImageWithHttpInfo(appId, imageId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of Object(void) + public ApiResponse DeleteWebsiteImageWithHttpInfo (string appId, int? imageId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->DeleteWebsiteImage"); + // verify the required parameter 'imageId' is set + if (imageId == null) + throw new ApiException(400, "Missing required parameter 'imageId' when calling WebsiteApi->DeleteWebsiteImage"); + + var localVarPath = "./api/v1.0/{appId}/website/image/{imageId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (imageId != null) localVarPathParams.Add("imageId", this.Configuration.ApiClient.ParameterToString(imageId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebsiteImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of void + public async System.Threading.Tasks.Task DeleteWebsiteImageAsync (string appId, int? imageId) + { + await DeleteWebsiteImageAsyncWithHttpInfo(appId, imageId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteWebsiteImageAsyncWithHttpInfo (string appId, int? imageId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->DeleteWebsiteImage"); + // verify the required parameter 'imageId' is set + if (imageId == null) + throw new ApiException(400, "Missing required parameter 'imageId' when calling WebsiteApi->DeleteWebsiteImage"); + + var localVarPath = "./api/v1.0/{appId}/website/image/{imageId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (imageId != null) localVarPathParams.Add("imageId", this.Configuration.ApiClient.ParameterToString(imageId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("DeleteWebsiteImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiResultWebsiteTestimonial + public RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) + { + ApiResponse localVarResponse = EditTestimonialWithHttpInfo(appId, testimonialId, testimonial); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiResultWebsiteTestimonial + public ApiResponse< RestApiResultWebsiteTestimonial > EditTestimonialWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->EditTestimonial"); + // verify the required parameter 'testimonialId' is set + if (testimonialId == null) + throw new ApiException(400, "Missing required parameter 'testimonialId' when calling WebsiteApi->EditTestimonial"); + // verify the required parameter 'testimonial' is set + if (testimonial == null) + throw new ApiException(400, "Missing required parameter 'testimonial' when calling WebsiteApi->EditTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial/{testimonialId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonialId != null) localVarPathParams.Add("testimonialId", this.Configuration.ApiClient.ParameterToString(testimonialId)); // path parameter + if (testimonial != null && testimonial.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(testimonial); // http body (model) parameter + } + else + { + localVarPostBody = testimonial; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EditTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteTestimonial) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteTestimonial))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiResultWebsiteTestimonial + public async System.Threading.Tasks.Task EditTestimonialAsync (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) + { + ApiResponse localVarResponse = await EditTestimonialAsyncWithHttpInfo(appId, testimonialId, testimonial); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiResultWebsiteTestimonial) + public async System.Threading.Tasks.Task> EditTestimonialAsyncWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->EditTestimonial"); + // verify the required parameter 'testimonialId' is set + if (testimonialId == null) + throw new ApiException(400, "Missing required parameter 'testimonialId' when calling WebsiteApi->EditTestimonial"); + // verify the required parameter 'testimonial' is set + if (testimonial == null) + throw new ApiException(400, "Missing required parameter 'testimonial' when calling WebsiteApi->EditTestimonial"); + + var localVarPath = "./api/v1.0/{appId}/website/testimonial/{testimonialId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (testimonialId != null) localVarPathParams.Add("testimonialId", this.Configuration.ApiClient.ParameterToString(testimonialId)); // path parameter + if (testimonial != null && testimonial.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(testimonial); // http body (model) parameter + } + else + { + localVarPostBody = testimonial; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("EditTestimonial", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteTestimonial) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteTestimonial))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultIndexPage + public RestApiResultIndexPage GetIndexConfiguration (string appId) + { + ApiResponse localVarResponse = GetIndexConfigurationWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultIndexPage + public ApiResponse< RestApiResultIndexPage > GetIndexConfigurationWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->GetIndexConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/website/index"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetIndexConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIndexPage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIndexPage))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultIndexPage + public async System.Threading.Tasks.Task GetIndexConfigurationAsync (string appId) + { + ApiResponse localVarResponse = await GetIndexConfigurationAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultIndexPage) + public async System.Threading.Tasks.Task> GetIndexConfigurationAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->GetIndexConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/website/index"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetIndexConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIndexPage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIndexPage))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultIndexPageBase + public RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage) + { + ApiResponse localVarResponse = SetIndexConfigurationWithHttpInfo(appId, indexPage); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultIndexPageBase + public ApiResponse< RestApiResultIndexPageBase > SetIndexConfigurationWithHttpInfo (string appId, IndexPageBase indexPage) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->SetIndexConfiguration"); + // verify the required parameter 'indexPage' is set + if (indexPage == null) + throw new ApiException(400, "Missing required parameter 'indexPage' when calling WebsiteApi->SetIndexConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/website/index"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (indexPage != null && indexPage.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(indexPage); // http body (model) parameter + } + else + { + localVarPostBody = indexPage; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetIndexConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIndexPageBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIndexPageBase))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultIndexPageBase + public async System.Threading.Tasks.Task SetIndexConfigurationAsync (string appId, IndexPageBase indexPage) + { + ApiResponse localVarResponse = await SetIndexConfigurationAsyncWithHttpInfo(appId, indexPage); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultIndexPageBase) + public async System.Threading.Tasks.Task> SetIndexConfigurationAsyncWithHttpInfo (string appId, IndexPageBase indexPage) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->SetIndexConfiguration"); + // verify the required parameter 'indexPage' is set + if (indexPage == null) + throw new ApiException(400, "Missing required parameter 'indexPage' when calling WebsiteApi->SetIndexConfiguration"); + + var localVarPath = "./api/v1.0/{appId}/website/index"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (indexPage != null && indexPage.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(indexPage); // http body (model) parameter + } + else + { + localVarPostBody = indexPage; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetIndexConfiguration", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultIndexPageBase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultIndexPageBase))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// RestApiResultWebsiteImage + public RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image) + { + ApiResponse localVarResponse = UploadWebsiteImageWithHttpInfo(appId, imageLocation, image); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// ApiResponse of RestApiResultWebsiteImage + public ApiResponse< RestApiResultWebsiteImage > UploadWebsiteImageWithHttpInfo (string appId, string imageLocation, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->UploadWebsiteImage"); + // verify the required parameter 'imageLocation' is set + if (imageLocation == null) + throw new ApiException(400, "Missing required parameter 'imageLocation' when calling WebsiteApi->UploadWebsiteImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling WebsiteApi->UploadWebsiteImage"); + + var localVarPath = "./api/v1.0/{appId}/website/image/{imageLocation}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (imageLocation != null) localVarPathParams.Add("imageLocation", this.Configuration.ApiClient.ParameterToString(imageLocation)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadWebsiteImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteImage))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// Task of RestApiResultWebsiteImage + public async System.Threading.Tasks.Task UploadWebsiteImageAsync (string appId, string imageLocation, System.IO.Stream image) + { + ApiResponse localVarResponse = await UploadWebsiteImageAsyncWithHttpInfo(appId, imageLocation, image); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// App Logo + /// Task of ApiResponse (RestApiResultWebsiteImage) + public async System.Threading.Tasks.Task> UploadWebsiteImageAsyncWithHttpInfo (string appId, string imageLocation, System.IO.Stream image) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->UploadWebsiteImage"); + // verify the required parameter 'imageLocation' is set + if (imageLocation == null) + throw new ApiException(400, "Missing required parameter 'imageLocation' when calling WebsiteApi->UploadWebsiteImage"); + // verify the required parameter 'image' is set + if (image == null) + throw new ApiException(400, "Missing required parameter 'image' when calling WebsiteApi->UploadWebsiteImage"); + + var localVarPath = "./api/v1.0/{appId}/website/image/{imageLocation}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (imageLocation != null) localVarPathParams.Add("imageLocation", this.Configuration.ApiClient.ParameterToString(imageLocation)); // path parameter + if (image != null) localVarFileParams.Add("Image", this.Configuration.ApiClient.ParameterToFile("Image", image)); + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadWebsiteImage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWebsiteImage) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWebsiteImage))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + public void WebsiteCheckNow (string appId) + { + WebsiteCheckNowWithHttpInfo(appId); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of Object(void) + public ApiResponse WebsiteCheckNowWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->WebsiteCheckNow"); + + var localVarPath = "./api/v1.0/{appId}/website/dnscheck"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("WebsiteCheckNow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of void + public async System.Threading.Tasks.Task WebsiteCheckNowAsync (string appId) + { + await WebsiteCheckNowAsyncWithHttpInfo(appId); + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> WebsiteCheckNowAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WebsiteApi->WebsiteCheckNow"); + + var localVarPath = "./api/v1.0/{appId}/website/dnscheck"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("WebsiteCheckNow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + null); + } + + } +} diff --git a/src/Flipdish/Api/WhiteLabelBuildsApi.cs b/src/Flipdish/Api/WhiteLabelBuildsApi.cs new file mode 100644 index 00000000..08c8f260 --- /dev/null +++ b/src/Flipdish/Api/WhiteLabelBuildsApi.cs @@ -0,0 +1,1209 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWhiteLabelBuildsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// string + string HealthCheck (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse HealthCheckWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiResultBuildResultModel + RestApiResultBuildResultModel SubmitAndroidApps (string whiteLabelIds, string branch = null, string buildType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + ApiResponse SubmitAndroidAppsWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultBuildResultModel + RestApiResultBuildResultModel SubmitAndroidBuild (string appId, string branch, string lane, string buildType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultBuildResultModel + ApiResponse SubmitAndroidBuildWithHttpInfo (string appId, string branch, string lane, string buildType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiResultBuildResultModel + RestApiResultBuildResultModel SubmitIosApps (string whiteLabelIds, string branch = null, string buildType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + ApiResponse SubmitIosAppsWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultBuildResultModel + RestApiResultBuildResultModel SubmitIosBuild (string appId, string buildType, string branch, bool? submitForReview = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + ApiResponse SubmitIosBuildWithHttpInfo (string appId, string buildType, string branch, bool? submitForReview = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task HealthCheckAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> HealthCheckAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiResultBuildResultModel + System.Threading.Tasks.Task SubmitAndroidAppsAsync (string whiteLabelIds, string branch = null, string buildType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + System.Threading.Tasks.Task> SubmitAndroidAppsAsyncWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultBuildResultModel + System.Threading.Tasks.Task SubmitAndroidBuildAsync (string appId, string branch, string lane, string buildType); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultBuildResultModel) + System.Threading.Tasks.Task> SubmitAndroidBuildAsyncWithHttpInfo (string appId, string branch, string lane, string buildType); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiResultBuildResultModel + System.Threading.Tasks.Task SubmitIosAppsAsync (string whiteLabelIds, string branch = null, string buildType = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + System.Threading.Tasks.Task> SubmitIosAppsAsyncWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultBuildResultModel + System.Threading.Tasks.Task SubmitIosBuildAsync (string appId, string buildType, string branch, bool? submitForReview = null); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + System.Threading.Tasks.Task> SubmitIosBuildAsyncWithHttpInfo (string appId, string buildType, string branch, bool? submitForReview = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WhiteLabelBuildsApi : IWhiteLabelBuildsApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WhiteLabelBuildsApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WhiteLabelBuildsApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// string + public string HealthCheck () + { + ApiResponse localVarResponse = HealthCheckWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > HealthCheckWithHttpInfo () + { + + var localVarPath = "./api/v1.0/whitelabelbuilds/health"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HealthCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task HealthCheckAsync () + { + ApiResponse localVarResponse = await HealthCheckAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> HealthCheckAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/whitelabelbuilds/health"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HealthCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiResultBuildResultModel + public RestApiResultBuildResultModel SubmitAndroidApps (string whiteLabelIds, string branch = null, string buildType = null) + { + ApiResponse localVarResponse = SubmitAndroidAppsWithHttpInfo(whiteLabelIds, branch, buildType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + public ApiResponse< RestApiResultBuildResultModel > SubmitAndroidAppsWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null) + { + // verify the required parameter 'whiteLabelIds' is set + if (whiteLabelIds == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelIds' when calling WhiteLabelBuildsApi->SubmitAndroidApps"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/android/multiple"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelIds", whiteLabelIds)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitAndroidApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiResultBuildResultModel + public async System.Threading.Tasks.Task SubmitAndroidAppsAsync (string whiteLabelIds, string branch = null, string buildType = null) + { + ApiResponse localVarResponse = await SubmitAndroidAppsAsyncWithHttpInfo(whiteLabelIds, branch, buildType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + public async System.Threading.Tasks.Task> SubmitAndroidAppsAsyncWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null) + { + // verify the required parameter 'whiteLabelIds' is set + if (whiteLabelIds == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelIds' when calling WhiteLabelBuildsApi->SubmitAndroidApps"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/android/multiple"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelIds", whiteLabelIds)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitAndroidApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// RestApiResultBuildResultModel + public RestApiResultBuildResultModel SubmitAndroidBuild (string appId, string branch, string lane, string buildType) + { + ApiResponse localVarResponse = SubmitAndroidBuildWithHttpInfo(appId, branch, lane, buildType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// ApiResponse of RestApiResultBuildResultModel + public ApiResponse< RestApiResultBuildResultModel > SubmitAndroidBuildWithHttpInfo (string appId, string branch, string lane, string buildType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'branch' is set + if (branch == null) + throw new ApiException(400, "Missing required parameter 'branch' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'lane' is set + if (lane == null) + throw new ApiException(400, "Missing required parameter 'lane' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'buildType' is set + if (buildType == null) + throw new ApiException(400, "Missing required parameter 'buildType' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/{appId}/android"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (lane != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "lane", lane)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitAndroidBuild", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of RestApiResultBuildResultModel + public async System.Threading.Tasks.Task SubmitAndroidBuildAsync (string appId, string branch, string lane, string buildType) + { + ApiResponse localVarResponse = await SubmitAndroidBuildAsyncWithHttpInfo(appId, branch, lane, buildType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// + /// Task of ApiResponse (RestApiResultBuildResultModel) + public async System.Threading.Tasks.Task> SubmitAndroidBuildAsyncWithHttpInfo (string appId, string branch, string lane, string buildType) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'branch' is set + if (branch == null) + throw new ApiException(400, "Missing required parameter 'branch' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'lane' is set + if (lane == null) + throw new ApiException(400, "Missing required parameter 'lane' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + // verify the required parameter 'buildType' is set + if (buildType == null) + throw new ApiException(400, "Missing required parameter 'buildType' when calling WhiteLabelBuildsApi->SubmitAndroidBuild"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/{appId}/android"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (lane != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "lane", lane)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitAndroidBuild", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// RestApiResultBuildResultModel + public RestApiResultBuildResultModel SubmitIosApps (string whiteLabelIds, string branch = null, string buildType = null) + { + ApiResponse localVarResponse = SubmitIosAppsWithHttpInfo(whiteLabelIds, branch, buildType); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + public ApiResponse< RestApiResultBuildResultModel > SubmitIosAppsWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null) + { + // verify the required parameter 'whiteLabelIds' is set + if (whiteLabelIds == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelIds' when calling WhiteLabelBuildsApi->SubmitIosApps"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/ios/multiple"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelIds", whiteLabelIds)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitIosApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of RestApiResultBuildResultModel + public async System.Threading.Tasks.Task SubmitIosAppsAsync (string whiteLabelIds, string branch = null, string buildType = null) + { + ApiResponse localVarResponse = await SubmitIosAppsAsyncWithHttpInfo(whiteLabelIds, branch, buildType); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + public async System.Threading.Tasks.Task> SubmitIosAppsAsyncWithHttpInfo (string whiteLabelIds, string branch = null, string buildType = null) + { + // verify the required parameter 'whiteLabelIds' is set + if (whiteLabelIds == null) + throw new ApiException(400, "Missing required parameter 'whiteLabelIds' when calling WhiteLabelBuildsApi->SubmitIosApps"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/ios/multiple"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (whiteLabelIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "whiteLabelIds", whiteLabelIds)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitIosApps", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// RestApiResultBuildResultModel + public RestApiResultBuildResultModel SubmitIosBuild (string appId, string buildType, string branch, bool? submitForReview = null) + { + ApiResponse localVarResponse = SubmitIosBuildWithHttpInfo(appId, buildType, branch, submitForReview); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultBuildResultModel + public ApiResponse< RestApiResultBuildResultModel > SubmitIosBuildWithHttpInfo (string appId, string buildType, string branch, bool? submitForReview = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + // verify the required parameter 'buildType' is set + if (buildType == null) + throw new ApiException(400, "Missing required parameter 'buildType' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + // verify the required parameter 'branch' is set + if (branch == null) + throw new ApiException(400, "Missing required parameter 'branch' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/{appId}/ios"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (submitForReview != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "submitForReview", submitForReview)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitIosBuild", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of RestApiResultBuildResultModel + public async System.Threading.Tasks.Task SubmitIosBuildAsync (string appId, string buildType, string branch, bool? submitForReview = null) + { + ApiResponse localVarResponse = await SubmitIosBuildAsyncWithHttpInfo(appId, buildType, branch, submitForReview); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// + /// (optional) + /// Task of ApiResponse (RestApiResultBuildResultModel) + public async System.Threading.Tasks.Task> SubmitIosBuildAsyncWithHttpInfo (string appId, string buildType, string branch, bool? submitForReview = null) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + // verify the required parameter 'buildType' is set + if (buildType == null) + throw new ApiException(400, "Missing required parameter 'buildType' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + // verify the required parameter 'branch' is set + if (branch == null) + throw new ApiException(400, "Missing required parameter 'branch' when calling WhiteLabelBuildsApi->SubmitIosBuild"); + + var localVarPath = "./api/v1.0/whitelabelbuilds/{appId}/ios"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (buildType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buildType", buildType)); // query parameter + if (branch != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "branch", branch)); // query parameter + if (submitForReview != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "submitForReview", submitForReview)); // query parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SubmitIosBuild", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultBuildResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBuildResultModel))); + } + + } +} diff --git a/src/Flipdish/Api/WhiteLabelConfigApi.cs b/src/Flipdish/Api/WhiteLabelConfigApi.cs new file mode 100644 index 00000000..93b989d1 --- /dev/null +++ b/src/Flipdish/Api/WhiteLabelConfigApi.cs @@ -0,0 +1,2204 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; +using Flipdish.Client; +using Flipdish.Model; + +namespace Flipdish.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWhiteLabelConfigApi : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppGeneralConfigModel + RestApiResultAppGeneralConfigModel GetAppGeneralConfig (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppGeneralConfigModel + ApiResponse GetAppGeneralConfigWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppStoreConfigModel + RestApiResultAppStoreConfigModel GetAppStoreConfig (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppStoreConfigModel + ApiResponse GetAppStoreConfigWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPlayStoreConfigModel + RestApiResultPlayStoreConfigModel GetPlayStoreConfig (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPlayStoreConfigModel + ApiResponse GetPlayStoreConfigWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultWhiteLabelConfigModel + RestApiResultWhiteLabelConfigModel GetWhiteLabelConfig (int? wlid); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultWhiteLabelConfigModel + ApiResponse GetWhiteLabelConfigWithHttpInfo (int? wlid); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultWhiteLabelConfigModel + RestApiResultWhiteLabelConfigModel GetWhiteLabelConfigByAppNameId (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultWhiteLabelConfigModel + ApiResponse GetWhiteLabelConfigByAppNameIdWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// string + string HealthCheck (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse HealthCheckWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppGeneralConfigModel + RestApiResultAppGeneralConfigModel UpdateAppGeneralConfig (string appId, AppGeneralConfigModel appGeneralConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppGeneralConfigModel + ApiResponse UpdateAppGeneralConfigWithHttpInfo (string appId, AppGeneralConfigModel appGeneralConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreConfigModel + RestApiResultAppStoreConfigModel UpdateAppStoreConfig (string appId, AppStoreConfigModel appStoreConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreConfigModel + ApiResponse UpdateAppStoreConfigWithHttpInfo (string appId, AppStoreConfigModel appStoreConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPlayStoreConfigModel + RestApiResultPlayStoreConfigModel UpdatePlayStoreConfig (string appId, PlayStoreConfigModel playStoreConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPlayStoreConfigModel + ApiResponse UpdatePlayStoreConfigWithHttpInfo (string appId, PlayStoreConfigModel playStoreConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAssetResultModel + RestApiResultAssetResultModel UploadAppStoreIcon (string appId, HttpPostedFileBase _file); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAssetResultModel + ApiResponse UploadAppStoreIconWithHttpInfo (string appId, HttpPostedFileBase _file); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppGeneralConfigModel + System.Threading.Tasks.Task GetAppGeneralConfigAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppGeneralConfigModel) + System.Threading.Tasks.Task> GetAppGeneralConfigAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppStoreConfigModel + System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppStoreConfigModel) + System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPlayStoreConfigModel + System.Threading.Tasks.Task GetPlayStoreConfigAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPlayStoreConfigModel) + System.Threading.Tasks.Task> GetPlayStoreConfigAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultWhiteLabelConfigModel + System.Threading.Tasks.Task GetWhiteLabelConfigAsync (int? wlid); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultWhiteLabelConfigModel) + System.Threading.Tasks.Task> GetWhiteLabelConfigAsyncWithHttpInfo (int? wlid); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultWhiteLabelConfigModel + System.Threading.Tasks.Task GetWhiteLabelConfigByAppNameIdAsync (string appId); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultWhiteLabelConfigModel) + System.Threading.Tasks.Task> GetWhiteLabelConfigByAppNameIdAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task HealthCheckAsync (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> HealthCheckAsyncWithHttpInfo (); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppGeneralConfigModel + System.Threading.Tasks.Task UpdateAppGeneralConfigAsync (string appId, AppGeneralConfigModel appGeneralConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppGeneralConfigModel) + System.Threading.Tasks.Task> UpdateAppGeneralConfigAsyncWithHttpInfo (string appId, AppGeneralConfigModel appGeneralConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreConfigModel + System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, AppStoreConfigModel appStoreConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreConfigModel) + System.Threading.Tasks.Task> UpdateAppStoreConfigAsyncWithHttpInfo (string appId, AppStoreConfigModel appStoreConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPlayStoreConfigModel + System.Threading.Tasks.Task UpdatePlayStoreConfigAsync (string appId, PlayStoreConfigModel playStoreConfig); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPlayStoreConfigModel) + System.Threading.Tasks.Task> UpdatePlayStoreConfigAsyncWithHttpInfo (string appId, PlayStoreConfigModel playStoreConfig); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAssetResultModel + System.Threading.Tasks.Task UploadAppStoreIconAsync (string appId, HttpPostedFileBase _file); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAssetResultModel) + System.Threading.Tasks.Task> UploadAppStoreIconAsyncWithHttpInfo (string appId, HttpPostedFileBase _file); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WhiteLabelConfigApi : IWhiteLabelConfigApi + { + private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public WhiteLabelConfigApi(String basePath) + { + this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WhiteLabelConfigApi(Flipdish.Client.Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Flipdish.Client.Configuration.Default; + else + this.Configuration = configuration; + + ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Flipdish.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Flipdish.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppGeneralConfigModel + public RestApiResultAppGeneralConfigModel GetAppGeneralConfig (string appId) + { + ApiResponse localVarResponse = GetAppGeneralConfigWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppGeneralConfigModel + public ApiResponse< RestApiResultAppGeneralConfigModel > GetAppGeneralConfigWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetAppGeneralConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/general"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppGeneralConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppGeneralConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppGeneralConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppGeneralConfigModel + public async System.Threading.Tasks.Task GetAppGeneralConfigAsync (string appId) + { + ApiResponse localVarResponse = await GetAppGeneralConfigAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppGeneralConfigModel) + public async System.Threading.Tasks.Task> GetAppGeneralConfigAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetAppGeneralConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/general"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppGeneralConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppGeneralConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppGeneralConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultAppStoreConfigModel + public RestApiResultAppStoreConfigModel GetAppStoreConfig (string appId) + { + ApiResponse localVarResponse = GetAppStoreConfigWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultAppStoreConfigModel + public ApiResponse< RestApiResultAppStoreConfigModel > GetAppStoreConfigWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetAppStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/appstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultAppStoreConfigModel + public async System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId) + { + ApiResponse localVarResponse = await GetAppStoreConfigAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultAppStoreConfigModel) + public async System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetAppStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/appstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultPlayStoreConfigModel + public RestApiResultPlayStoreConfigModel GetPlayStoreConfig (string appId) + { + ApiResponse localVarResponse = GetPlayStoreConfigWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultPlayStoreConfigModel + public ApiResponse< RestApiResultPlayStoreConfigModel > GetPlayStoreConfigWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetPlayStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/playstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPlayStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPlayStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPlayStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultPlayStoreConfigModel + public async System.Threading.Tasks.Task GetPlayStoreConfigAsync (string appId) + { + ApiResponse localVarResponse = await GetPlayStoreConfigAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultPlayStoreConfigModel) + public async System.Threading.Tasks.Task> GetPlayStoreConfigAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetPlayStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/playstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetPlayStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPlayStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPlayStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultWhiteLabelConfigModel + public RestApiResultWhiteLabelConfigModel GetWhiteLabelConfig (int? wlid) + { + ApiResponse localVarResponse = GetWhiteLabelConfigWithHttpInfo(wlid); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultWhiteLabelConfigModel + public ApiResponse< RestApiResultWhiteLabelConfigModel > GetWhiteLabelConfigWithHttpInfo (int? wlid) + { + // verify the required parameter 'wlid' is set + if (wlid == null) + throw new ApiException(400, "Missing required parameter 'wlid' when calling WhiteLabelConfigApi->GetWhiteLabelConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/id/{wlid}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (wlid != null) localVarPathParams.Add("wlid", this.Configuration.ApiClient.ParameterToString(wlid)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWhiteLabelConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWhiteLabelConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultWhiteLabelConfigModel + public async System.Threading.Tasks.Task GetWhiteLabelConfigAsync (int? wlid) + { + ApiResponse localVarResponse = await GetWhiteLabelConfigAsyncWithHttpInfo(wlid); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultWhiteLabelConfigModel) + public async System.Threading.Tasks.Task> GetWhiteLabelConfigAsyncWithHttpInfo (int? wlid) + { + // verify the required parameter 'wlid' is set + if (wlid == null) + throw new ApiException(400, "Missing required parameter 'wlid' when calling WhiteLabelConfigApi->GetWhiteLabelConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/id/{wlid}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (wlid != null) localVarPathParams.Add("wlid", this.Configuration.ApiClient.ParameterToString(wlid)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWhiteLabelConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWhiteLabelConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// RestApiResultWhiteLabelConfigModel + public RestApiResultWhiteLabelConfigModel GetWhiteLabelConfigByAppNameId (string appId) + { + ApiResponse localVarResponse = GetWhiteLabelConfigByAppNameIdWithHttpInfo(appId); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of RestApiResultWhiteLabelConfigModel + public ApiResponse< RestApiResultWhiteLabelConfigModel > GetWhiteLabelConfigByAppNameIdWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetWhiteLabelConfigByAppNameId"); + + var localVarPath = "./api/v1.0/whitelabelconfig/name/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelConfigByAppNameId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWhiteLabelConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWhiteLabelConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of RestApiResultWhiteLabelConfigModel + public async System.Threading.Tasks.Task GetWhiteLabelConfigByAppNameIdAsync (string appId) + { + ApiResponse localVarResponse = await GetWhiteLabelConfigByAppNameIdAsyncWithHttpInfo(appId); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiResultWhiteLabelConfigModel) + public async System.Threading.Tasks.Task> GetWhiteLabelConfigByAppNameIdAsyncWithHttpInfo (string appId) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->GetWhiteLabelConfigByAppNameId"); + + var localVarPath = "./api/v1.0/whitelabelconfig/name/{appId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetWhiteLabelConfigByAppNameId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultWhiteLabelConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultWhiteLabelConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// string + public string HealthCheck () + { + ApiResponse localVarResponse = HealthCheckWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > HealthCheckWithHttpInfo () + { + + var localVarPath = "./api/v1.0/whitelabelconfig/health"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HealthCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task HealthCheckAsync () + { + ApiResponse localVarResponse = await HealthCheckAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> HealthCheckAsyncWithHttpInfo () + { + + var localVarPath = "./api/v1.0/whitelabelconfig/health"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("HealthCheck", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppGeneralConfigModel + public RestApiResultAppGeneralConfigModel UpdateAppGeneralConfig (string appId, AppGeneralConfigModel appGeneralConfig) + { + ApiResponse localVarResponse = UpdateAppGeneralConfigWithHttpInfo(appId, appGeneralConfig); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppGeneralConfigModel + public ApiResponse< RestApiResultAppGeneralConfigModel > UpdateAppGeneralConfigWithHttpInfo (string appId, AppGeneralConfigModel appGeneralConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdateAppGeneralConfig"); + // verify the required parameter 'appGeneralConfig' is set + if (appGeneralConfig == null) + throw new ApiException(400, "Missing required parameter 'appGeneralConfig' when calling WhiteLabelConfigApi->UpdateAppGeneralConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/general"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appGeneralConfig != null && appGeneralConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appGeneralConfig); // http body (model) parameter + } + else + { + localVarPostBody = appGeneralConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppGeneralConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppGeneralConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppGeneralConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppGeneralConfigModel + public async System.Threading.Tasks.Task UpdateAppGeneralConfigAsync (string appId, AppGeneralConfigModel appGeneralConfig) + { + ApiResponse localVarResponse = await UpdateAppGeneralConfigAsyncWithHttpInfo(appId, appGeneralConfig); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppGeneralConfigModel) + public async System.Threading.Tasks.Task> UpdateAppGeneralConfigAsyncWithHttpInfo (string appId, AppGeneralConfigModel appGeneralConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdateAppGeneralConfig"); + // verify the required parameter 'appGeneralConfig' is set + if (appGeneralConfig == null) + throw new ApiException(400, "Missing required parameter 'appGeneralConfig' when calling WhiteLabelConfigApi->UpdateAppGeneralConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/general"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appGeneralConfig != null && appGeneralConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appGeneralConfig); // http body (model) parameter + } + else + { + localVarPostBody = appGeneralConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppGeneralConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppGeneralConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppGeneralConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAppStoreConfigModel + public RestApiResultAppStoreConfigModel UpdateAppStoreConfig (string appId, AppStoreConfigModel appStoreConfig) + { + ApiResponse localVarResponse = UpdateAppStoreConfigWithHttpInfo(appId, appStoreConfig); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAppStoreConfigModel + public ApiResponse< RestApiResultAppStoreConfigModel > UpdateAppStoreConfigWithHttpInfo (string appId, AppStoreConfigModel appStoreConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdateAppStoreConfig"); + // verify the required parameter 'appStoreConfig' is set + if (appStoreConfig == null) + throw new ApiException(400, "Missing required parameter 'appStoreConfig' when calling WhiteLabelConfigApi->UpdateAppStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/appstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreConfig != null && appStoreConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreConfig); // http body (model) parameter + } + else + { + localVarPostBody = appStoreConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAppStoreConfigModel + public async System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, AppStoreConfigModel appStoreConfig) + { + ApiResponse localVarResponse = await UpdateAppStoreConfigAsyncWithHttpInfo(appId, appStoreConfig); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreConfigModel) + public async System.Threading.Tasks.Task> UpdateAppStoreConfigAsyncWithHttpInfo (string appId, AppStoreConfigModel appStoreConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdateAppStoreConfig"); + // verify the required parameter 'appStoreConfig' is set + if (appStoreConfig == null) + throw new ApiException(400, "Missing required parameter 'appStoreConfig' when calling WhiteLabelConfigApi->UpdateAppStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/appstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (appStoreConfig != null && appStoreConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreConfig); // http body (model) parameter + } + else + { + localVarPostBody = appStoreConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdateAppStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAppStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultPlayStoreConfigModel + public RestApiResultPlayStoreConfigModel UpdatePlayStoreConfig (string appId, PlayStoreConfigModel playStoreConfig) + { + ApiResponse localVarResponse = UpdatePlayStoreConfigWithHttpInfo(appId, playStoreConfig); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultPlayStoreConfigModel + public ApiResponse< RestApiResultPlayStoreConfigModel > UpdatePlayStoreConfigWithHttpInfo (string appId, PlayStoreConfigModel playStoreConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdatePlayStoreConfig"); + // verify the required parameter 'playStoreConfig' is set + if (playStoreConfig == null) + throw new ApiException(400, "Missing required parameter 'playStoreConfig' when calling WhiteLabelConfigApi->UpdatePlayStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/playstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (playStoreConfig != null && playStoreConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(playStoreConfig); // http body (model) parameter + } + else + { + localVarPostBody = playStoreConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePlayStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPlayStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPlayStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultPlayStoreConfigModel + public async System.Threading.Tasks.Task UpdatePlayStoreConfigAsync (string appId, PlayStoreConfigModel playStoreConfig) + { + ApiResponse localVarResponse = await UpdatePlayStoreConfigAsyncWithHttpInfo(appId, playStoreConfig); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultPlayStoreConfigModel) + public async System.Threading.Tasks.Task> UpdatePlayStoreConfigAsyncWithHttpInfo (string appId, PlayStoreConfigModel playStoreConfig) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UpdatePlayStoreConfig"); + // verify the required parameter 'playStoreConfig' is set + if (playStoreConfig == null) + throw new ApiException(400, "Missing required parameter 'playStoreConfig' when calling WhiteLabelConfigApi->UpdatePlayStoreConfig"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/playstore"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (playStoreConfig != null && playStoreConfig.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(playStoreConfig); // http body (model) parameter + } + else + { + localVarPostBody = playStoreConfig; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UpdatePlayStoreConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultPlayStoreConfigModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPlayStoreConfigModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// RestApiResultAssetResultModel + public RestApiResultAssetResultModel UploadAppStoreIcon (string appId, HttpPostedFileBase _file) + { + ApiResponse localVarResponse = UploadAppStoreIconWithHttpInfo(appId, _file); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of RestApiResultAssetResultModel + public ApiResponse< RestApiResultAssetResultModel > UploadAppStoreIconWithHttpInfo (string appId, HttpPostedFileBase _file) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UploadAppStoreIcon"); + // verify the required parameter '_file' is set + if (_file == null) + throw new ApiException(400, "Missing required parameter '_file' when calling WhiteLabelConfigApi->UploadAppStoreIcon"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/app-store-icon"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (_file != null && _file.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(_file); // http body (model) parameter + } + else + { + localVarPostBody = _file; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppStoreIcon", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAssetResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAssetResultModel))); + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultAssetResultModel + public async System.Threading.Tasks.Task UploadAppStoreIconAsync (string appId, HttpPostedFileBase _file) + { + ApiResponse localVarResponse = await UploadAppStoreIconAsyncWithHttpInfo(appId, _file); + return localVarResponse.Data; + + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (RestApiResultAssetResultModel) + public async System.Threading.Tasks.Task> UploadAppStoreIconAsyncWithHttpInfo (string appId, HttpPostedFileBase _file) + { + // verify the required parameter 'appId' is set + if (appId == null) + throw new ApiException(400, "Missing required parameter 'appId' when calling WhiteLabelConfigApi->UploadAppStoreIcon"); + // verify the required parameter '_file' is set + if (_file == null) + throw new ApiException(400, "Missing required parameter '_file' when calling WhiteLabelConfigApi->UploadAppStoreIcon"); + + var localVarPath = "./api/v1.0/whitelabelconfig/{appId}/app-store-icon"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter + if (_file != null && _file.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(_file); // http body (model) parameter + } + else + { + localVarPostBody = _file; // byte array + } + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; + } + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("UploadAppStoreIcon", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiResultAssetResultModel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAssetResultModel))); + } + + } +} diff --git a/src/Flipdish/Client/ApiClient.cs b/src/Flipdish/Client/ApiClient.cs new file mode 100644 index 00000000..715d95af --- /dev/null +++ b/src/Flipdish/Client/ApiClient.cs @@ -0,0 +1,535 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Text.RegularExpressions; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using Newtonsoft.Json; +using RestSharp.Portable; +using RestSharp.Portable.HttpClient; + +namespace Flipdish.Client +{ + /// + /// API client is mainly responsible for making the HTTP call to the API backend. + /// + public partial class ApiClient + { + private JsonSerializerSettings serializerSettings = new JsonSerializerSettings + { + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor + }; + + /// + /// Allows for extending request processing for generated code. + /// + /// The RestSharp request object + partial void InterceptRequest(IRestRequest request); + + /// + /// Allows for extending response processing for generated code. + /// + /// The RestSharp request object + /// The RestSharp response object + partial void InterceptResponse(IRestRequest request, IRestResponse response); + + /// + /// Initializes a new instance of the class + /// with default configuration. + /// + public ApiClient() + { + Configuration = Flipdish.Client.Configuration.Default; + RestClient = new RestClient("https://api.flipdish.co"); + RestClient.IgnoreResponseStatusCode = true; + } + + /// + /// Initializes a new instance of the class + /// with default base path (https://api.flipdish.co). + /// + /// An instance of Configuration. + public ApiClient(Configuration config) + { + Configuration = config ?? Flipdish.Client.Configuration.Default; + + RestClient = new RestClient(Configuration.BasePath); + RestClient.IgnoreResponseStatusCode = true; + } + + /// + /// Initializes a new instance of the class + /// with default configuration. + /// + /// The base path. + public ApiClient(String basePath = "https://api.flipdish.co") + { + if (String.IsNullOrEmpty(basePath)) + throw new ArgumentException("basePath cannot be empty"); + + RestClient = new RestClient(basePath); + RestClient.IgnoreResponseStatusCode = true; + Configuration = Client.Configuration.Default; + } + + /// + /// Gets or sets the default API client for making HTTP calls. + /// + /// The default API client. + [Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")] + public static ApiClient Default; + + /// + /// Gets or sets an instance of the IReadableConfiguration. + /// + /// An instance of the IReadableConfiguration. + /// + /// helps us to avoid modifying possibly global + /// configuration values from within a given client. It does not guarantee thread-safety + /// of the instance in any way. + /// + public IReadableConfiguration Configuration { get; set; } + + /// + /// Gets or sets the RestClient. + /// + /// An instance of the RestClient + public RestClient RestClient { get; set; } + + // Creates and sets up a RestRequest prior to a call. + private RestRequest PrepareRequest( + String path, Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = new RestRequest(path, method); + // disable ResetSharp.Portable built-in serialization + request.Serializer = null; + + // add path parameter, if any + foreach(var param in pathParams) + request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment); + + // add header parameter, if any + foreach(var param in headerParams) + request.AddHeader(param.Key, param.Value); + + // add query parameter, if any + foreach(var param in queryParams) + request.AddQueryParameter(param.Key, param.Value); + + // add form parameter, if any + foreach(var param in formParams) + request.AddParameter(param.Key, param.Value); + + // add file parameter, if any + foreach(var param in fileParams) + { + request.AddFile(param.Value); + } + + if (postBody != null) // http body (model or byte[]) parameter + { + request.AddParameter(new Parameter { Value = postBody, Type = ParameterType.RequestBody, ContentType = contentType }); + } + + return request; + } + + /// + /// Makes the HTTP request (Sync). + /// + /// URL path. + /// HTTP method. + /// Query parameters. + /// HTTP body (POST request). + /// Header parameters. + /// Form parameters. + /// File parameters. + /// Path parameters. + /// Content Type of the request + /// Object + public Object CallApi( + String path, Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = PrepareRequest( + path, method, queryParams, postBody, headerParams, formParams, fileParams, + pathParams, contentType); + + // set timeout + RestClient.Timeout = TimeSpan.FromMilliseconds(Configuration.Timeout); + + // set user agent + RestClient.UserAgent = Configuration.UserAgent; + + InterceptRequest(request); + var response = RestClient.Execute(request).Result; + InterceptResponse(request, response); + + return (Object) response; + } + /// + /// Makes the asynchronous HTTP request. + /// + /// URL path. + /// HTTP method. + /// Query parameters. + /// HTTP body (POST request). + /// Header parameters. + /// Form parameters. + /// File parameters. + /// Path parameters. + /// Content type. + /// The Task instance. + public async System.Threading.Tasks.Task CallApiAsync( + String path, Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = PrepareRequest( + path, method, queryParams, postBody, headerParams, formParams, fileParams, + pathParams, contentType); + InterceptRequest(request); + var response = await RestClient.Execute(request); + InterceptResponse(request, response); + return (Object)response; + } + + /// + /// Escape string (url-encoded). + /// + /// String to be escaped. + /// Escaped string. + public string EscapeString(string str) + { + return UrlEncode(str); + } + + /// + /// Create FileParameter based on Stream. + /// + /// Parameter name. + /// Input stream. + /// FileParameter. + public FileParameter ParameterToFile(string name, Stream stream) + { + if (stream is FileStream) + return FileParameter.Create(name, ReadAsBytes(stream), Path.GetFileName(((FileStream)stream).Name)); + else + return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided"); + } + + /// + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. + /// + /// The parameter (header, path, query, form). + /// Formatted string. + public string ParameterToString(object obj) + { + if (obj is DateTime) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return ((DateTime)obj).ToString (Configuration.DateTimeFormat); + else if (obj is DateTimeOffset) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat); + else if (obj is IList) + { + var flattenedString = new StringBuilder(); + foreach (var param in (IList)obj) + { + if (flattenedString.Length > 0) + flattenedString.Append(","); + flattenedString.Append(param); + } + return flattenedString.ToString(); + } + else + return Convert.ToString (obj); + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The HTTP response. + /// Object type. + /// Object representation of the JSON string. + public object Deserialize(IRestResponse response, Type type) + { + IHttpHeaders headers = response.Headers; + if (type == typeof(byte[])) // return byte array + { + return response.RawBytes; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + if (headers != null) + { + var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath) + ? Path.GetTempPath() + : Configuration.TempFolderPath; + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in headers) + { + var match = regex.Match(header.ToString()); + if (match.Success) + { + string fileName = filePath + SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + File.WriteAllBytes(fileName, response.RawBytes); + return new FileStream(fileName, FileMode.Open); + } + } + } + var stream = new MemoryStream(response.RawBytes); + return stream; + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + } + + if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return ConvertType(response.Content, type); + } + + // at this point, it must be a model (json) + try + { + return JsonConvert.DeserializeObject(response.Content, type, serializerSettings); + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + /// + /// Serialize an input (model) into JSON string + /// + /// Object. + /// JSON string. + public String Serialize(object obj) + { + try + { + return obj != null ? JsonConvert.SerializeObject(obj) : null; + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + /// + ///Check if the given MIME is a JSON MIME. + ///JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json + /// + /// MIME + /// Returns True if MIME type is json. + public bool IsJsonMime(String mime) + { + var jsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + return mime != null && (jsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json")); + } + + /// + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' + /// + /// The Content-Type array to select from. + /// The Content-Type header to use. + public String SelectHeaderContentType(String[] contentTypes) + { + if (contentTypes.Length == 0) + return "application/json"; + + foreach (var contentType in contentTypes) + { + if (IsJsonMime(contentType.ToLower())) + return contentType; + } + + return contentTypes[0]; // use the first content type specified in 'consumes' + } + + /// + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) + /// + /// The accepts array to select from. + /// The Accept header to use. + public String SelectHeaderAccept(String[] accepts) + { + if (accepts.Length == 0) + return null; + + if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) + return "application/json"; + + return String.Join(",", accepts); + } + + /// + /// Encode string in base64 format. + /// + /// String to be encoded. + /// Encoded string. + public static string Base64Encode(string text) + { + return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + } + + /// + /// Dynamically cast the object into target type. + /// + /// Object to be casted + /// Target type + /// Casted object + public static dynamic ConvertType(dynamic fromObject, Type toObject) + { + return Convert.ChangeType(fromObject, toObject); + } + + /// + /// Convert stream to byte array + /// + /// Input stream to be converted + /// Byte array + public static byte[] ReadAsBytes(Stream inputStream) + { + byte[] buf = new byte[16*1024]; + using (MemoryStream ms = new MemoryStream()) + { + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) + { + ms.Write(buf, 0, count); + } + return ms.ToArray(); + } + } + + /// + /// URL encode a string + /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 + /// + /// String to be URL encoded + /// Byte array + public static string UrlEncode(string input) + { + const int maxLength = 32766; + + if (input == null) + { + throw new ArgumentNullException("input"); + } + + if (input.Length <= maxLength) + { + return Uri.EscapeDataString(input); + } + + StringBuilder sb = new StringBuilder(input.Length * 2); + int index = 0; + + while (index < input.Length) + { + int length = Math.Min(input.Length - index, maxLength); + string subString = input.Substring(index, length); + + sb.Append(Uri.EscapeDataString(subString)); + index += subString.Length; + } + + return sb.ToString(); + } + + /// + /// Sanitize filename by removing the path + /// + /// Filename + /// Filename + public static string SanitizeFilename(string filename) + { + Match match = Regex.Match(filename, @".*[/\\](.*)$"); + + if (match.Success) + { + return match.Groups[1].Value; + } + else + { + return filename; + } + } + + /// + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. + /// + /// Key name. + /// Value object. + /// A list of KeyValuePairs + public IEnumerable> ParameterToKeyValuePairs(string collectionFormat, string name, object value) + { + var parameters = new List>(); + + if (IsCollection(value) && collectionFormat == "multi") + { + var valueCollection = value as IEnumerable; + parameters.AddRange(from object item in valueCollection select new KeyValuePair(name, ParameterToString(item))); + } + else + { + parameters.Add(new KeyValuePair(name, ParameterToString(value))); + } + + return parameters; + } + + /// + /// Check if generic object is a collection. + /// + /// + /// True if object is a collection type + private static bool IsCollection(object value) + { + return value is IList || value is ICollection; + } + } +} diff --git a/src/Flipdish/Client/ApiException.cs b/src/Flipdish/Client/ApiException.cs new file mode 100644 index 00000000..0dd8db05 --- /dev/null +++ b/src/Flipdish/Client/ApiException.cs @@ -0,0 +1,60 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; + +namespace Flipdish.Client +{ + /// + /// API Exception + /// + public class ApiException : Exception + { + /// + /// Gets or sets the error code (HTTP status code) + /// + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public dynamic ErrorContent { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() {} + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + public ApiException(int errorCode, string message) : base(message) + { + this.ErrorCode = errorCode; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + /// Error content. + public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) + { + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + } + } + +} diff --git a/src/Flipdish/Client/ApiResponse.cs b/src/Flipdish/Client/ApiResponse.cs new file mode 100644 index 00000000..7c937708 --- /dev/null +++ b/src/Flipdish/Client/ApiResponse.cs @@ -0,0 +1,54 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; + +namespace Flipdish.Client +{ + /// + /// API Response + /// + public class ApiResponse + { + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + public int StatusCode { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public IDictionary Headers { get; private set; } + + /// + /// Gets or sets the data (parsed HTTP body) + /// + /// The data. + public T Data { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + public ApiResponse(int statusCode, IDictionary headers, T data) + { + this.StatusCode= statusCode; + this.Headers = headers; + this.Data = data; + } + + } + +} diff --git a/src/Flipdish/Client/Configuration.cs b/src/Flipdish/Client/Configuration.cs new file mode 100644 index 00000000..6e972fcb --- /dev/null +++ b/src/Flipdish/Client/Configuration.cs @@ -0,0 +1,447 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Reflection; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; + +namespace Flipdish.Client +{ + /// + /// Represents a set of configuration settings + /// + public class Configuration : IReadableConfiguration + { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "1.0.0"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + + #region Static Members + + private static readonly object GlobalConfigSync = new { }; + private static Configuration _globalConfiguration; + + /// + /// Default creation of exceptions for a given method name and response object + /// + public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => + { + var status = (int)response.StatusCode; + if (status >= 400) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.Content), + response.Content); + } + + return null; + }; + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static Configuration Default + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } + + #endregion Static Members + + #region Private Members + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + private IDictionary _apiKey = null; + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + private IDictionary _apiKeyPrefix = null; + + private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; + private string _tempFolderPath = Path.GetTempPath(); + + #endregion Private Members + + #region Constructors + + static Configuration() + { + _globalConfiguration = new GlobalConfiguration(); + } + + /// + /// Initializes a new instance of the class + /// + public Configuration() + { + UserAgent = "Swagger-Codegen/1.0.0/csharp"; + BasePath = "https://api.flipdish.co"; + DefaultHeader = new ConcurrentDictionary(); + ApiKey = new ConcurrentDictionary(); + ApiKeyPrefix = new ConcurrentDictionary(); + + // Setting Timeout has side effects (forces ApiClient creation). + Timeout = 100000; + } + + /// + /// Initializes a new instance of the class + /// + public Configuration( + IDictionary defaultHeader, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "https://api.flipdish.co") : this() + { + if (string.IsNullOrWhiteSpace(basePath)) + throw new ArgumentException("The provided basePath is invalid.", "basePath"); + if (defaultHeader == null) + throw new ArgumentNullException("defaultHeader"); + if (apiKey == null) + throw new ArgumentNullException("apiKey"); + if (apiKeyPrefix == null) + throw new ArgumentNullException("apiKeyPrefix"); + + BasePath = basePath; + + foreach (var keyValuePair in defaultHeader) + { + DefaultHeader.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKey) + { + ApiKey.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKeyPrefix) + { + ApiKeyPrefix.Add(keyValuePair); + } + } + + /// + /// Initializes a new instance of the class with different settings + /// + /// Api client + /// Dictionary of default HTTP header + /// Username + /// Password + /// accessToken + /// Dictionary of API key + /// Dictionary of API key prefix + /// Temp folder path + /// DateTime format string + /// HTTP connection timeout (in milliseconds) + /// HTTP user agent + [Obsolete("Use explicit object construction and setting of properties.", true)] + public Configuration( + // ReSharper disable UnusedParameter.Local + ApiClient apiClient = null, + IDictionary defaultHeader = null, + string username = null, + string password = null, + string accessToken = null, + IDictionary apiKey = null, + IDictionary apiKeyPrefix = null, + string tempFolderPath = null, + string dateTimeFormat = null, + int timeout = 100000, + string userAgent = "Swagger-Codegen/1.0.0/csharp" + // ReSharper restore UnusedParameter.Local + ) + { + + } + + /// + /// Initializes a new instance of the Configuration class. + /// + /// Api client. + [Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)] + // ReSharper disable once UnusedParameter.Local + public Configuration(ApiClient apiClient) + { + + } + + #endregion Constructors + + + #region Properties + + private ApiClient _apiClient = null; + /// + /// Gets an instance of an ApiClient for this configuration + /// + public virtual ApiClient ApiClient + { + get + { + if (_apiClient == null) _apiClient = CreateApiClient(); + return _apiClient; + } + } + + private String _basePath = null; + /// + /// Gets or sets the base path for API access. + /// + public virtual string BasePath { + get { return _basePath; } + set { + _basePath = value; + // pass-through to ApiClient if it's set. + if(_apiClient != null) { + _apiClient.RestClient.BaseUrl = new Uri(_basePath); + } + } + } + + /// + /// Gets or sets the default header. + /// + public virtual IDictionary DefaultHeader { get; set; } + + /// + /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// + public virtual int Timeout + { + get { return (int)ApiClient.RestClient.Timeout.GetValueOrDefault(TimeSpan.FromSeconds(0)).TotalMilliseconds; } + set { ApiClient.RestClient.Timeout = TimeSpan.FromMilliseconds(value); } + } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public virtual string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public virtual string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public virtual string Password { get; set; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + public string GetApiKeyWithPrefix(string apiKeyIdentifier) + { + var apiKeyValue = ""; + ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue); + var apiKeyPrefix = ""; + if (ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix)) + return apiKeyPrefix + " " + apiKeyValue; + else + return apiKeyValue; + } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// The access token. + public virtual string AccessToken { get; set; } + + /// + /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// + /// Folder path. + public virtual string TempFolderPath + { + get { return _tempFolderPath; } + + set + { + if (string.IsNullOrEmpty(value)) + { + // Possible breaking change since swagger-codegen 2.2.1, enforce a valid temporary path on set. + _tempFolderPath = Path.GetTempPath(); + return; + } + + // create the directory if it does not exist + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } + + // check if the path contains directory separator at the end + if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { + _tempFolderPath = value; + } + else + { + _tempFolderPath = value + Path.DirectorySeparatorChar; + } + } + } + + /// + /// Gets or sets the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid + /// + /// The DateTimeFormat string + public virtual string DateTimeFormat + { + get { return _dateTimeFormat; } + set + { + if (string.IsNullOrEmpty(value)) + { + // Never allow a blank or null string, go back to the default + _dateTimeFormat = ISO8601_DATETIME_FORMAT; + return; + } + + // Caution, no validation when you choose date time format other than ISO 8601 + // Take a look at the above links + _dateTimeFormat = value; + } + } + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + public virtual IDictionary ApiKeyPrefix + { + get { return _apiKeyPrefix; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } + _apiKeyPrefix = value; + } + } + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + public virtual IDictionary ApiKey + { + get { return _apiKey; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } + _apiKey = value; + } + } + + #endregion Properties + + #region Methods + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + public void AddDefaultHeader(string key, string value) + { + DefaultHeader[key] = value; + } + + /// + /// Creates a new based on this instance. + /// + /// + public ApiClient CreateApiClient() + { + return new ApiClient(BasePath) { Configuration = this }; + } + + + /// + /// Returns a string with essential information for debugging. + /// + public static String ToDebugReport() + { + String report = "C# SDK (Flipdish) Debug Report:\n"; + report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n"; + report += " Version of the API: v1.0\n"; + report += " SDK Package Version: 1.0.0\n"; + + return report; + } + + /// + /// Add Api Key Header. + /// + /// Api Key name. + /// Api Key value. + /// + public void AddApiKey(string key, string value) + { + ApiKey[key] = value; + } + + /// + /// Sets the API key prefix. + /// + /// Api Key name. + /// Api Key value. + public void AddApiKeyPrefix(string key, string value) + { + ApiKeyPrefix[key] = value; + } + + #endregion Methods + } +} diff --git a/src/Flipdish/Client/ExceptionFactory.cs b/src/Flipdish/Client/ExceptionFactory.cs new file mode 100644 index 00000000..37cd1584 --- /dev/null +++ b/src/Flipdish/Client/ExceptionFactory.cs @@ -0,0 +1,24 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using System; +using RestSharp.Portable; + +namespace Flipdish.Client +{ + /// + /// A delegate to ExceptionFactory method + /// + /// Method name + /// Response + /// Exceptions + public delegate Exception ExceptionFactory(string methodName, IRestResponse response); +} diff --git a/src/Flipdish/Client/GlobalConfiguration.cs b/src/Flipdish/Client/GlobalConfiguration.cs new file mode 100644 index 00000000..73a7e634 --- /dev/null +++ b/src/Flipdish/Client/GlobalConfiguration.cs @@ -0,0 +1,34 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using System; +using System.Reflection; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; + +namespace Flipdish.Client +{ + /// + /// provides a compile-time extension point for globally configuring + /// API Clients. + /// + /// + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .swagger-codegen-ignore file. + /// + public partial class GlobalConfiguration : Configuration + { + + } +} \ No newline at end of file diff --git a/src/Flipdish/Client/IApiAccessor.cs b/src/Flipdish/Client/IApiAccessor.cs new file mode 100644 index 00000000..b4574ee8 --- /dev/null +++ b/src/Flipdish/Client/IApiAccessor.cs @@ -0,0 +1,42 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp.Portable; + +namespace Flipdish.Client +{ + /// + /// Represents configuration aspects required to interact with the API endpoints. + /// + public interface IApiAccessor + { + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + Configuration Configuration {get; set;} + + /// + /// Gets the base path of the API client. + /// + /// The base path + String GetBasePath(); + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + ExceptionFactory ExceptionFactory { get; set; } + } +} diff --git a/src/Flipdish/Client/IReadableConfiguration.cs b/src/Flipdish/Client/IReadableConfiguration.cs new file mode 100644 index 00000000..fd41f2c5 --- /dev/null +++ b/src/Flipdish/Client/IReadableConfiguration.cs @@ -0,0 +1,94 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using System.Collections.Generic; + +namespace Flipdish.Client +{ + /// + /// Represents a readable-only configuration contract. + /// + public interface IReadableConfiguration + { + /// + /// Gets the access token. + /// + /// Access token. + string AccessToken { get; } + + /// + /// Gets the API key. + /// + /// API key. + IDictionary ApiKey { get; } + + /// + /// Gets the API key prefix. + /// + /// API key prefix. + IDictionary ApiKeyPrefix { get; } + + /// + /// Gets the base path. + /// + /// Base path. + string BasePath { get; } + + /// + /// Gets the date time format. + /// + /// Date time foramt. + string DateTimeFormat { get; } + + /// + /// Gets the default header. + /// + /// Default header. + IDictionary DefaultHeader { get; } + + /// + /// Gets the temp folder path. + /// + /// Temp folder path. + string TempFolderPath { get; } + + /// + /// Gets the HTTP connection timeout (in milliseconds) + /// + /// HTTP connection timeout. + int Timeout { get; } + + /// + /// Gets the user agent. + /// + /// User agent. + string UserAgent { get; } + + /// + /// Gets the username. + /// + /// Username. + string Username { get; } + + /// + /// Gets the password. + /// + /// Password. + string Password { get; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + string GetApiKeyWithPrefix(string apiKeyIdentifier); + } +} diff --git a/src/Flipdish/Client/SwaggerDateConverter.cs b/src/Flipdish/Client/SwaggerDateConverter.cs new file mode 100644 index 00000000..0b975ebe --- /dev/null +++ b/src/Flipdish/Client/SwaggerDateConverter.cs @@ -0,0 +1,30 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using Newtonsoft.Json.Converters; + +namespace Flipdish.Client +{ + /// + /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types + /// + public class SwaggerDateConverter : IsoDateTimeConverter + { + /// + /// Initializes a new instance of the class. + /// + public SwaggerDateConverter() + { + // full-date = date-fullyear "-" date-month "-" date-mday + DateTimeFormat = "yyyy-MM-dd"; + } + } +} diff --git a/src/Flipdish/Flipdish.csproj b/src/Flipdish/Flipdish.csproj new file mode 100644 index 00000000..af3b68fa --- /dev/null +++ b/src/Flipdish/Flipdish.csproj @@ -0,0 +1,52 @@ + + + + + 14.0 + Debug + AnyCPU + {4BF29234-5C39-4B57-9AB7-A80BB4210A51} + Library + Properties + Flipdish + Flipdish + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + v5.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + diff --git a/src/Flipdish/Model/Accept.cs b/src/Flipdish/Model/Accept.cs new file mode 100644 index 00000000..9b4d5aaf --- /dev/null +++ b/src/Flipdish/Model/Accept.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Accept + /// + [DataContract] + public partial class Accept : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Estimated minutes for delivery. + public Accept(int? estimatedMinutesForDelivery = default(int?)) + { + this.EstimatedMinutesForDelivery = estimatedMinutesForDelivery; + } + + /// + /// Estimated minutes for delivery + /// + /// Estimated minutes for delivery + [DataMember(Name="EstimatedMinutesForDelivery", EmitDefaultValue=false)] + public int? EstimatedMinutesForDelivery { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Accept {\n"); + sb.Append(" EstimatedMinutesForDelivery: ").Append(EstimatedMinutesForDelivery).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Accept); + } + + /// + /// Returns true if Accept instances are equal + /// + /// Instance of Accept to be compared + /// Boolean + public bool Equals(Accept input) + { + if (input == null) + return false; + + return + ( + this.EstimatedMinutesForDelivery == input.EstimatedMinutesForDelivery || + (this.EstimatedMinutesForDelivery != null && + this.EstimatedMinutesForDelivery.Equals(input.EstimatedMinutesForDelivery)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EstimatedMinutesForDelivery != null) + hashCode = hashCode * 59 + this.EstimatedMinutesForDelivery.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AcceptInvitationResult.cs b/src/Flipdish/Model/AcceptInvitationResult.cs new file mode 100644 index 00000000..8d547ee4 --- /dev/null +++ b/src/Flipdish/Model/AcceptInvitationResult.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AcceptInvitationResult + /// + [DataContract] + public partial class AcceptInvitationResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Bool indicating if the user accepting the invitation is a new user. + /// The email address that was invited.. + public AcceptInvitationResult(bool? isNewUser = default(bool?), string invitedEmailAddress = default(string)) + { + this.IsNewUser = isNewUser; + this.InvitedEmailAddress = invitedEmailAddress; + } + + /// + /// Bool indicating if the user accepting the invitation is a new user + /// + /// Bool indicating if the user accepting the invitation is a new user + [DataMember(Name="IsNewUser", EmitDefaultValue=false)] + public bool? IsNewUser { get; set; } + + /// + /// The email address that was invited. + /// + /// The email address that was invited. + [DataMember(Name="InvitedEmailAddress", EmitDefaultValue=false)] + public string InvitedEmailAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AcceptInvitationResult {\n"); + sb.Append(" IsNewUser: ").Append(IsNewUser).Append("\n"); + sb.Append(" InvitedEmailAddress: ").Append(InvitedEmailAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AcceptInvitationResult); + } + + /// + /// Returns true if AcceptInvitationResult instances are equal + /// + /// Instance of AcceptInvitationResult to be compared + /// Boolean + public bool Equals(AcceptInvitationResult input) + { + if (input == null) + return false; + + return + ( + this.IsNewUser == input.IsNewUser || + (this.IsNewUser != null && + this.IsNewUser.Equals(input.IsNewUser)) + ) && + ( + this.InvitedEmailAddress == input.InvitedEmailAddress || + (this.InvitedEmailAddress != null && + this.InvitedEmailAddress.Equals(input.InvitedEmailAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsNewUser != null) + hashCode = hashCode * 59 + this.IsNewUser.GetHashCode(); + if (this.InvitedEmailAddress != null) + hashCode = hashCode * 59 + this.InvitedEmailAddress.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AccountDetail.cs b/src/Flipdish/Model/AccountDetail.cs new file mode 100644 index 00000000..ff5927b5 --- /dev/null +++ b/src/Flipdish/Model/AccountDetail.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Account details + /// + [DataContract] + public partial class AccountDetail : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Email. + /// Signup steps. + /// Is account email verified. + /// is the account a Self Server. + /// Accounts Id. + /// Name. + /// Language Id. + /// Time Zone Info Id. + /// Display the time in time zone local to the user. + /// Show hidden features. + /// User created at. + public AccountDetail(string email = default(string), List signupSteps = default(List), bool? isVerified = default(bool?), bool? isSelfServeUser = default(bool?), int? accountId = default(int?), string name = default(string), string language = default(string), string timeZoneInfoId = default(string), bool? displayTimesInUserLocalTimeZone = default(bool?), bool? showHiddenFeatures = default(bool?), DateTime? createdAt = default(DateTime?)) + { + this.Email = email; + this.SignupSteps = signupSteps; + this.IsVerified = isVerified; + this.IsSelfServeUser = isSelfServeUser; + this.AccountId = accountId; + this.Name = name; + this.Language = language; + this.TimeZoneInfoId = timeZoneInfoId; + this.DisplayTimesInUserLocalTimeZone = displayTimesInUserLocalTimeZone; + this.ShowHiddenFeatures = showHiddenFeatures; + this.CreatedAt = createdAt; + } + + /// + /// Email + /// + /// Email + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Signup steps + /// + /// Signup steps + [DataMember(Name="SignupSteps", EmitDefaultValue=false)] + public List SignupSteps { get; set; } + + /// + /// Is account email verified + /// + /// Is account email verified + [DataMember(Name="IsVerified", EmitDefaultValue=false)] + public bool? IsVerified { get; set; } + + /// + /// is the account a Self Server + /// + /// is the account a Self Server + [DataMember(Name="IsSelfServeUser", EmitDefaultValue=false)] + public bool? IsSelfServeUser { get; set; } + + /// + /// Accounts Id + /// + /// Accounts Id + [DataMember(Name="AccountId", EmitDefaultValue=false)] + public int? AccountId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Language Id + /// + /// Language Id + [DataMember(Name="Language", EmitDefaultValue=false)] + public string Language { get; set; } + + /// + /// Time Zone Info Id + /// + /// Time Zone Info Id + [DataMember(Name="TimeZoneInfoId", EmitDefaultValue=false)] + public string TimeZoneInfoId { get; set; } + + /// + /// Display the time in time zone local to the user + /// + /// Display the time in time zone local to the user + [DataMember(Name="DisplayTimesInUserLocalTimeZone", EmitDefaultValue=false)] + public bool? DisplayTimesInUserLocalTimeZone { get; set; } + + /// + /// Show hidden features + /// + /// Show hidden features + [DataMember(Name="ShowHiddenFeatures", EmitDefaultValue=false)] + public bool? ShowHiddenFeatures { get; set; } + + /// + /// User created at + /// + /// User created at + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTime? CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccountDetail {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" SignupSteps: ").Append(SignupSteps).Append("\n"); + sb.Append(" IsVerified: ").Append(IsVerified).Append("\n"); + sb.Append(" IsSelfServeUser: ").Append(IsSelfServeUser).Append("\n"); + sb.Append(" AccountId: ").Append(AccountId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Language: ").Append(Language).Append("\n"); + sb.Append(" TimeZoneInfoId: ").Append(TimeZoneInfoId).Append("\n"); + sb.Append(" DisplayTimesInUserLocalTimeZone: ").Append(DisplayTimesInUserLocalTimeZone).Append("\n"); + sb.Append(" ShowHiddenFeatures: ").Append(ShowHiddenFeatures).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountDetail); + } + + /// + /// Returns true if AccountDetail instances are equal + /// + /// Instance of AccountDetail to be compared + /// Boolean + public bool Equals(AccountDetail input) + { + if (input == null) + return false; + + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.SignupSteps == input.SignupSteps || + this.SignupSteps != null && + this.SignupSteps.SequenceEqual(input.SignupSteps) + ) && + ( + this.IsVerified == input.IsVerified || + (this.IsVerified != null && + this.IsVerified.Equals(input.IsVerified)) + ) && + ( + this.IsSelfServeUser == input.IsSelfServeUser || + (this.IsSelfServeUser != null && + this.IsSelfServeUser.Equals(input.IsSelfServeUser)) + ) && + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Language == input.Language || + (this.Language != null && + this.Language.Equals(input.Language)) + ) && + ( + this.TimeZoneInfoId == input.TimeZoneInfoId || + (this.TimeZoneInfoId != null && + this.TimeZoneInfoId.Equals(input.TimeZoneInfoId)) + ) && + ( + this.DisplayTimesInUserLocalTimeZone == input.DisplayTimesInUserLocalTimeZone || + (this.DisplayTimesInUserLocalTimeZone != null && + this.DisplayTimesInUserLocalTimeZone.Equals(input.DisplayTimesInUserLocalTimeZone)) + ) && + ( + this.ShowHiddenFeatures == input.ShowHiddenFeatures || + (this.ShowHiddenFeatures != null && + this.ShowHiddenFeatures.Equals(input.ShowHiddenFeatures)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.SignupSteps != null) + hashCode = hashCode * 59 + this.SignupSteps.GetHashCode(); + if (this.IsVerified != null) + hashCode = hashCode * 59 + this.IsVerified.GetHashCode(); + if (this.IsSelfServeUser != null) + hashCode = hashCode * 59 + this.IsSelfServeUser.GetHashCode(); + if (this.AccountId != null) + hashCode = hashCode * 59 + this.AccountId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Language != null) + hashCode = hashCode * 59 + this.Language.GetHashCode(); + if (this.TimeZoneInfoId != null) + hashCode = hashCode * 59 + this.TimeZoneInfoId.GetHashCode(); + if (this.DisplayTimesInUserLocalTimeZone != null) + hashCode = hashCode * 59 + this.DisplayTimesInUserLocalTimeZone.GetHashCode(); + if (this.ShowHiddenFeatures != null) + hashCode = hashCode * 59 + this.ShowHiddenFeatures.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AccountDetailBase.cs b/src/Flipdish/Model/AccountDetailBase.cs new file mode 100644 index 00000000..7b872258 --- /dev/null +++ b/src/Flipdish/Model/AccountDetailBase.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Account Details Base + /// + [DataContract] + public partial class AccountDetailBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name. + /// Language Id. + /// Time Zone Info Id. + /// Display the time in time zone local to the user. + /// Show hidden features. + /// User created at. + public AccountDetailBase(string name = default(string), string language = default(string), string timeZoneInfoId = default(string), bool? displayTimesInUserLocalTimeZone = default(bool?), bool? showHiddenFeatures = default(bool?), DateTime? createdAt = default(DateTime?)) + { + this.Name = name; + this.Language = language; + this.TimeZoneInfoId = timeZoneInfoId; + this.DisplayTimesInUserLocalTimeZone = displayTimesInUserLocalTimeZone; + this.ShowHiddenFeatures = showHiddenFeatures; + this.CreatedAt = createdAt; + } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Language Id + /// + /// Language Id + [DataMember(Name="Language", EmitDefaultValue=false)] + public string Language { get; set; } + + /// + /// Time Zone Info Id + /// + /// Time Zone Info Id + [DataMember(Name="TimeZoneInfoId", EmitDefaultValue=false)] + public string TimeZoneInfoId { get; set; } + + /// + /// Display the time in time zone local to the user + /// + /// Display the time in time zone local to the user + [DataMember(Name="DisplayTimesInUserLocalTimeZone", EmitDefaultValue=false)] + public bool? DisplayTimesInUserLocalTimeZone { get; set; } + + /// + /// Show hidden features + /// + /// Show hidden features + [DataMember(Name="ShowHiddenFeatures", EmitDefaultValue=false)] + public bool? ShowHiddenFeatures { get; set; } + + /// + /// User created at + /// + /// User created at + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTime? CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccountDetailBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Language: ").Append(Language).Append("\n"); + sb.Append(" TimeZoneInfoId: ").Append(TimeZoneInfoId).Append("\n"); + sb.Append(" DisplayTimesInUserLocalTimeZone: ").Append(DisplayTimesInUserLocalTimeZone).Append("\n"); + sb.Append(" ShowHiddenFeatures: ").Append(ShowHiddenFeatures).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountDetailBase); + } + + /// + /// Returns true if AccountDetailBase instances are equal + /// + /// Instance of AccountDetailBase to be compared + /// Boolean + public bool Equals(AccountDetailBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Language == input.Language || + (this.Language != null && + this.Language.Equals(input.Language)) + ) && + ( + this.TimeZoneInfoId == input.TimeZoneInfoId || + (this.TimeZoneInfoId != null && + this.TimeZoneInfoId.Equals(input.TimeZoneInfoId)) + ) && + ( + this.DisplayTimesInUserLocalTimeZone == input.DisplayTimesInUserLocalTimeZone || + (this.DisplayTimesInUserLocalTimeZone != null && + this.DisplayTimesInUserLocalTimeZone.Equals(input.DisplayTimesInUserLocalTimeZone)) + ) && + ( + this.ShowHiddenFeatures == input.ShowHiddenFeatures || + (this.ShowHiddenFeatures != null && + this.ShowHiddenFeatures.Equals(input.ShowHiddenFeatures)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Language != null) + hashCode = hashCode * 59 + this.Language.GetHashCode(); + if (this.TimeZoneInfoId != null) + hashCode = hashCode * 59 + this.TimeZoneInfoId.GetHashCode(); + if (this.DisplayTimesInUserLocalTimeZone != null) + hashCode = hashCode * 59 + this.DisplayTimesInUserLocalTimeZone.GetHashCode(); + if (this.ShowHiddenFeatures != null) + hashCode = hashCode * 59 + this.ShowHiddenFeatures.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AccountFieldDefinition.cs b/src/Flipdish/Model/AccountFieldDefinition.cs new file mode 100644 index 00000000..8119e122 --- /dev/null +++ b/src/Flipdish/Model/AccountFieldDefinition.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents the format of a bank account field + /// + [DataContract] + public partial class AccountFieldDefinition : IEquatable + { + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + [JsonConverter(typeof(StringEnumConverter))] + public enum KeyEnum + { + + /// + /// Enum Iban for value: Iban + /// + [EnumMember(Value = "Iban")] + Iban = 1, + + /// + /// Enum AccountNumber for value: AccountNumber + /// + [EnumMember(Value = "AccountNumber")] + AccountNumber = 2, + + /// + /// Enum RoutingNumber for value: RoutingNumber + /// + [EnumMember(Value = "RoutingNumber")] + RoutingNumber = 3, + + /// + /// Enum BSB for value: BSB + /// + [EnumMember(Value = "BSB")] + BSB = 4, + + /// + /// Enum BranchCode for value: BranchCode + /// + [EnumMember(Value = "BranchCode")] + BranchCode = 5, + + /// + /// Enum BankCode for value: BankCode + /// + [EnumMember(Value = "BankCode")] + BankCode = 6, + + /// + /// Enum InstitutionNumber for value: InstitutionNumber + /// + [EnumMember(Value = "InstitutionNumber")] + InstitutionNumber = 7, + + /// + /// Enum TransitNumber for value: TransitNumber + /// + [EnumMember(Value = "TransitNumber")] + TransitNumber = 8, + + /// + /// Enum ClearingCode for value: ClearingCode + /// + [EnumMember(Value = "ClearingCode")] + ClearingCode = 9, + + /// + /// Enum IfscCode for value: IfscCode + /// + [EnumMember(Value = "IfscCode")] + IfscCode = 10, + + /// + /// Enum Clabe for value: Clabe + /// + [EnumMember(Value = "Clabe")] + Clabe = 11, + + /// + /// Enum SortCode for value: SortCode + /// + [EnumMember(Value = "SortCode")] + SortCode = 12, + + /// + /// Enum Swift for value: Swift + /// + [EnumMember(Value = "Swift")] + Swift = 13 + } + + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + [DataMember(Name="Key", EmitDefaultValue=false)] + public KeyEnum? Key { get; set; } + /// + /// There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools + /// + /// There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Iban for value: Iban + /// + [EnumMember(Value = "Iban")] + Iban = 2 + } + + /// + /// There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools + /// + /// There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData. + /// Display name of the field. + /// There are some fields that are of type known to the frontend (IBAN, Swift) - - for those frontend should use its own validation library, e.g. ibantools. + /// Minimum length of the field. + /// Maximum length of the field. + /// Is the field digits (numeric) only. + /// Regex for validating the field (if specified). + public AccountFieldDefinition(KeyEnum? key = default(KeyEnum?), string displayName = default(string), TypeEnum? type = default(TypeEnum?), int? minLength = default(int?), int? maxLength = default(int?), bool? digitsOnly = default(bool?), string regex = default(string)) + { + this.Key = key; + this.DisplayName = displayName; + this.Type = type; + this.MinLength = minLength; + this.MaxLength = maxLength; + this.DigitsOnly = digitsOnly; + this.Regex = regex; + } + + + /// + /// Display name of the field + /// + /// Display name of the field + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + + /// + /// Minimum length of the field + /// + /// Minimum length of the field + [DataMember(Name="MinLength", EmitDefaultValue=false)] + public int? MinLength { get; set; } + + /// + /// Maximum length of the field + /// + /// Maximum length of the field + [DataMember(Name="MaxLength", EmitDefaultValue=false)] + public int? MaxLength { get; set; } + + /// + /// Is the field digits (numeric) only + /// + /// Is the field digits (numeric) only + [DataMember(Name="DigitsOnly", EmitDefaultValue=false)] + public bool? DigitsOnly { get; set; } + + /// + /// Regex for validating the field (if specified) + /// + /// Regex for validating the field (if specified) + [DataMember(Name="Regex", EmitDefaultValue=false)] + public string Regex { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccountFieldDefinition {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" MinLength: ").Append(MinLength).Append("\n"); + sb.Append(" MaxLength: ").Append(MaxLength).Append("\n"); + sb.Append(" DigitsOnly: ").Append(DigitsOnly).Append("\n"); + sb.Append(" Regex: ").Append(Regex).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountFieldDefinition); + } + + /// + /// Returns true if AccountFieldDefinition instances are equal + /// + /// Instance of AccountFieldDefinition to be compared + /// Boolean + public bool Equals(AccountFieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.MinLength == input.MinLength || + (this.MinLength != null && + this.MinLength.Equals(input.MinLength)) + ) && + ( + this.MaxLength == input.MaxLength || + (this.MaxLength != null && + this.MaxLength.Equals(input.MaxLength)) + ) && + ( + this.DigitsOnly == input.DigitsOnly || + (this.DigitsOnly != null && + this.DigitsOnly.Equals(input.DigitsOnly)) + ) && + ( + this.Regex == input.Regex || + (this.Regex != null && + this.Regex.Equals(input.Regex)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.MinLength != null) + hashCode = hashCode * 59 + this.MinLength.GetHashCode(); + if (this.MaxLength != null) + hashCode = hashCode * 59 + this.MaxLength.GetHashCode(); + if (this.DigitsOnly != null) + hashCode = hashCode * 59 + this.DigitsOnly.GetHashCode(); + if (this.Regex != null) + hashCode = hashCode * 59 + this.Regex.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AccountFieldKeyValuePair.cs b/src/Flipdish/Model/AccountFieldKeyValuePair.cs new file mode 100644 index 00000000..181905f0 --- /dev/null +++ b/src/Flipdish/Model/AccountFieldKeyValuePair.cs @@ -0,0 +1,217 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents one populated account field (its key and value) + /// + [DataContract] + public partial class AccountFieldKeyValuePair : IEquatable + { + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + [JsonConverter(typeof(StringEnumConverter))] + public enum KeyEnum + { + + /// + /// Enum Iban for value: Iban + /// + [EnumMember(Value = "Iban")] + Iban = 1, + + /// + /// Enum AccountNumber for value: AccountNumber + /// + [EnumMember(Value = "AccountNumber")] + AccountNumber = 2, + + /// + /// Enum RoutingNumber for value: RoutingNumber + /// + [EnumMember(Value = "RoutingNumber")] + RoutingNumber = 3, + + /// + /// Enum BSB for value: BSB + /// + [EnumMember(Value = "BSB")] + BSB = 4, + + /// + /// Enum BranchCode for value: BranchCode + /// + [EnumMember(Value = "BranchCode")] + BranchCode = 5, + + /// + /// Enum BankCode for value: BankCode + /// + [EnumMember(Value = "BankCode")] + BankCode = 6, + + /// + /// Enum InstitutionNumber for value: InstitutionNumber + /// + [EnumMember(Value = "InstitutionNumber")] + InstitutionNumber = 7, + + /// + /// Enum TransitNumber for value: TransitNumber + /// + [EnumMember(Value = "TransitNumber")] + TransitNumber = 8, + + /// + /// Enum ClearingCode for value: ClearingCode + /// + [EnumMember(Value = "ClearingCode")] + ClearingCode = 9, + + /// + /// Enum IfscCode for value: IfscCode + /// + [EnumMember(Value = "IfscCode")] + IfscCode = 10, + + /// + /// Enum Clabe for value: Clabe + /// + [EnumMember(Value = "Clabe")] + Clabe = 11, + + /// + /// Enum SortCode for value: SortCode + /// + [EnumMember(Value = "SortCode")] + SortCode = 12, + + /// + /// Enum Swift for value: Swift + /// + [EnumMember(Value = "Swift")] + Swift = 13 + } + + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + [DataMember(Name="Key", EmitDefaultValue=false)] + public KeyEnum? Key { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData. + /// The value of the field. + public AccountFieldKeyValuePair(KeyEnum? key = default(KeyEnum?), string value = default(string)) + { + this.Key = key; + this.Value = value; + } + + + /// + /// The value of the field + /// + /// The value of the field + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccountFieldKeyValuePair {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountFieldKeyValuePair); + } + + /// + /// Returns true if AccountFieldKeyValuePair instances are equal + /// + /// Instance of AccountFieldKeyValuePair to be compared + /// Boolean + public bool Equals(AccountFieldKeyValuePair input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AccountFieldsDefinitions.cs b/src/Flipdish/Model/AccountFieldsDefinitions.cs new file mode 100644 index 00000000..9f6136b4 --- /dev/null +++ b/src/Flipdish/Model/AccountFieldsDefinitions.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// List of field definitions per country + /// + [DataContract] + public partial class AccountFieldsDefinitions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// List of field definitions per country. + public AccountFieldsDefinitions(Dictionary> definitionsPerCountry = default(Dictionary>)) + { + this.DefinitionsPerCountry = definitionsPerCountry; + } + + /// + /// List of field definitions per country + /// + /// List of field definitions per country + [DataMember(Name="DefinitionsPerCountry", EmitDefaultValue=false)] + public Dictionary> DefinitionsPerCountry { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccountFieldsDefinitions {\n"); + sb.Append(" DefinitionsPerCountry: ").Append(DefinitionsPerCountry).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccountFieldsDefinitions); + } + + /// + /// Returns true if AccountFieldsDefinitions instances are equal + /// + /// Instance of AccountFieldsDefinitions to be compared + /// Boolean + public bool Equals(AccountFieldsDefinitions input) + { + if (input == null) + return false; + + return + ( + this.DefinitionsPerCountry == input.DefinitionsPerCountry || + this.DefinitionsPerCountry != null && + this.DefinitionsPerCountry.SequenceEqual(input.DefinitionsPerCountry) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DefinitionsPerCountry != null) + hashCode = hashCode * 59 + this.DefinitionsPerCountry.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AddressFormDisplayFormat.cs b/src/Flipdish/Model/AddressFormDisplayFormat.cs new file mode 100644 index 00000000..c778a0e8 --- /dev/null +++ b/src/Flipdish/Model/AddressFormDisplayFormat.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AddressFormDisplayFormat + /// + [DataContract] + public partial class AddressFormDisplayFormat : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// oneLine. + /// twoLines. + public AddressFormDisplayFormat(string oneLine = default(string), List twoLines = default(List)) + { + this.OneLine = oneLine; + this.TwoLines = twoLines; + } + + /// + /// Gets or Sets OneLine + /// + [DataMember(Name="OneLine", EmitDefaultValue=false)] + public string OneLine { get; set; } + + /// + /// Gets or Sets TwoLines + /// + [DataMember(Name="TwoLines", EmitDefaultValue=false)] + public List TwoLines { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddressFormDisplayFormat {\n"); + sb.Append(" OneLine: ").Append(OneLine).Append("\n"); + sb.Append(" TwoLines: ").Append(TwoLines).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AddressFormDisplayFormat); + } + + /// + /// Returns true if AddressFormDisplayFormat instances are equal + /// + /// Instance of AddressFormDisplayFormat to be compared + /// Boolean + public bool Equals(AddressFormDisplayFormat input) + { + if (input == null) + return false; + + return + ( + this.OneLine == input.OneLine || + (this.OneLine != null && + this.OneLine.Equals(input.OneLine)) + ) && + ( + this.TwoLines == input.TwoLines || + this.TwoLines != null && + this.TwoLines.SequenceEqual(input.TwoLines) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OneLine != null) + hashCode = hashCode * 59 + this.OneLine.GetHashCode(); + if (this.TwoLines != null) + hashCode = hashCode * 59 + this.TwoLines.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AddressFormResponse.cs b/src/Flipdish/Model/AddressFormResponse.cs new file mode 100644 index 00000000..e7a1885b --- /dev/null +++ b/src/Flipdish/Model/AddressFormResponse.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A response of a dyanmic form definition. + /// + [DataContract] + public partial class AddressFormResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// List of field definitions.. + /// ISO two letter code.. + /// ISO culture code.. + /// Templates used to format form fields when displaying items in a list.. + public AddressFormResponse(List formData = default(List), string countryCode = default(string), string language = default(string), AddressFormDisplayFormat displayFormat = default(AddressFormDisplayFormat)) + { + this.FormData = formData; + this.CountryCode = countryCode; + this.Language = language; + this.DisplayFormat = displayFormat; + } + + /// + /// List of field definitions. + /// + /// List of field definitions. + [DataMember(Name="FormData", EmitDefaultValue=false)] + public List FormData { get; set; } + + /// + /// ISO two letter code. + /// + /// ISO two letter code. + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// ISO culture code. + /// + /// ISO culture code. + [DataMember(Name="Language", EmitDefaultValue=false)] + public string Language { get; set; } + + /// + /// Templates used to format form fields when displaying items in a list. + /// + /// Templates used to format form fields when displaying items in a list. + [DataMember(Name="DisplayFormat", EmitDefaultValue=false)] + public AddressFormDisplayFormat DisplayFormat { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddressFormResponse {\n"); + sb.Append(" FormData: ").Append(FormData).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" Language: ").Append(Language).Append("\n"); + sb.Append(" DisplayFormat: ").Append(DisplayFormat).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AddressFormResponse); + } + + /// + /// Returns true if AddressFormResponse instances are equal + /// + /// Instance of AddressFormResponse to be compared + /// Boolean + public bool Equals(AddressFormResponse input) + { + if (input == null) + return false; + + return + ( + this.FormData == input.FormData || + this.FormData != null && + this.FormData.SequenceEqual(input.FormData) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.Language == input.Language || + (this.Language != null && + this.Language.Equals(input.Language)) + ) && + ( + this.DisplayFormat == input.DisplayFormat || + (this.DisplayFormat != null && + this.DisplayFormat.Equals(input.DisplayFormat)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FormData != null) + hashCode = hashCode * 59 + this.FormData.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.Language != null) + hashCode = hashCode * 59 + this.Language.GetHashCode(); + if (this.DisplayFormat != null) + hashCode = hashCode * 59 + this.DisplayFormat.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AllMetadataResult.cs b/src/Flipdish/Model/AllMetadataResult.cs new file mode 100644 index 00000000..e4e553de --- /dev/null +++ b/src/Flipdish/Model/AllMetadataResult.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AllMetadataResult + /// + [DataContract] + public partial class AllMetadataResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu item metadata. + /// Menu item optionset item metadata. + public AllMetadataResult(List menuItemMetadata = default(List), List menuItemOptionSetItemMetadata = default(List)) + { + this.MenuItemMetadata = menuItemMetadata; + this.MenuItemOptionSetItemMetadata = menuItemOptionSetItemMetadata; + } + + /// + /// Menu item metadata + /// + /// Menu item metadata + [DataMember(Name="MenuItemMetadata", EmitDefaultValue=false)] + public List MenuItemMetadata { get; set; } + + /// + /// Menu item optionset item metadata + /// + /// Menu item optionset item metadata + [DataMember(Name="MenuItemOptionSetItemMetadata", EmitDefaultValue=false)] + public List MenuItemOptionSetItemMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AllMetadataResult {\n"); + sb.Append(" MenuItemMetadata: ").Append(MenuItemMetadata).Append("\n"); + sb.Append(" MenuItemOptionSetItemMetadata: ").Append(MenuItemOptionSetItemMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AllMetadataResult); + } + + /// + /// Returns true if AllMetadataResult instances are equal + /// + /// Instance of AllMetadataResult to be compared + /// Boolean + public bool Equals(AllMetadataResult input) + { + if (input == null) + return false; + + return + ( + this.MenuItemMetadata == input.MenuItemMetadata || + this.MenuItemMetadata != null && + this.MenuItemMetadata.SequenceEqual(input.MenuItemMetadata) + ) && + ( + this.MenuItemOptionSetItemMetadata == input.MenuItemOptionSetItemMetadata || + this.MenuItemOptionSetItemMetadata != null && + this.MenuItemOptionSetItemMetadata.SequenceEqual(input.MenuItemOptionSetItemMetadata) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemMetadata != null) + hashCode = hashCode * 59 + this.MenuItemMetadata.GetHashCode(); + if (this.MenuItemOptionSetItemMetadata != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemMetadata.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Allergen.cs b/src/Flipdish/Model/Allergen.cs new file mode 100644 index 00000000..ba88bb3f --- /dev/null +++ b/src/Flipdish/Model/Allergen.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Allergen. + /// + [DataContract] + public partial class Allergen : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// A unique identifier for the allergen. + /// Localized name of the allergen. + /// Url to the icon for the allergen. + public Allergen(string allergenId = default(string), string localizedName = default(string), string iconUrl = default(string)) + { + this.AllergenId = allergenId; + this.LocalizedName = localizedName; + this.IconUrl = iconUrl; + } + + /// + /// A unique identifier for the allergen + /// + /// A unique identifier for the allergen + [DataMember(Name="AllergenId", EmitDefaultValue=false)] + public string AllergenId { get; set; } + + /// + /// Localized name of the allergen + /// + /// Localized name of the allergen + [DataMember(Name="LocalizedName", EmitDefaultValue=false)] + public string LocalizedName { get; set; } + + /// + /// Url to the icon for the allergen + /// + /// Url to the icon for the allergen + [DataMember(Name="IconUrl", EmitDefaultValue=false)] + public string IconUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Allergen {\n"); + sb.Append(" AllergenId: ").Append(AllergenId).Append("\n"); + sb.Append(" LocalizedName: ").Append(LocalizedName).Append("\n"); + sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Allergen); + } + + /// + /// Returns true if Allergen instances are equal + /// + /// Instance of Allergen to be compared + /// Boolean + public bool Equals(Allergen input) + { + if (input == null) + return false; + + return + ( + this.AllergenId == input.AllergenId || + (this.AllergenId != null && + this.AllergenId.Equals(input.AllergenId)) + ) && + ( + this.LocalizedName == input.LocalizedName || + (this.LocalizedName != null && + this.LocalizedName.Equals(input.LocalizedName)) + ) && + ( + this.IconUrl == input.IconUrl || + (this.IconUrl != null && + this.IconUrl.Equals(input.IconUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AllergenId != null) + hashCode = hashCode * 59 + this.AllergenId.GetHashCode(); + if (this.LocalizedName != null) + hashCode = hashCode * 59 + this.LocalizedName.GetHashCode(); + if (this.IconUrl != null) + hashCode = hashCode * 59 + this.IconUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AnalyticsClientEvent.cs b/src/Flipdish/Model/AnalyticsClientEvent.cs new file mode 100644 index 00000000..97e0edc5 --- /dev/null +++ b/src/Flipdish/Model/AnalyticsClientEvent.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Client Analytics event + /// + [DataContract] + public partial class AnalyticsClientEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Type of the event. + /// Type of the app the event is coming from. + /// JSON Metadata. + /// User Id. + /// Latitude of the event. + /// Longitude of the event. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AnalyticsClientEvent(string eventName = default(string), string eventType = default(string), string appType = default(string), string metadata = default(string), int? userId = default(int?), double? latitude = default(double?), double? longitude = default(double?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.EventType = eventType; + this.AppType = appType; + this.Metadata = metadata; + this.UserId = userId; + this.Latitude = latitude; + this.Longitude = longitude; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Type of the event + /// + /// Type of the event + [DataMember(Name="EventType", EmitDefaultValue=false)] + public string EventType { get; set; } + + /// + /// Type of the app the event is coming from + /// + /// Type of the app the event is coming from + [DataMember(Name="AppType", EmitDefaultValue=false)] + public string AppType { get; set; } + + /// + /// JSON Metadata + /// + /// JSON Metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public string Metadata { get; set; } + + /// + /// User Id + /// + /// User Id + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Latitude of the event + /// + /// Latitude of the event + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude of the event + /// + /// Longitude of the event + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AnalyticsClientEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" EventType: ").Append(EventType).Append("\n"); + sb.Append(" AppType: ").Append(AppType).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AnalyticsClientEvent); + } + + /// + /// Returns true if AnalyticsClientEvent instances are equal + /// + /// Instance of AnalyticsClientEvent to be compared + /// Boolean + public bool Equals(AnalyticsClientEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.EventType == input.EventType || + (this.EventType != null && + this.EventType.Equals(input.EventType)) + ) && + ( + this.AppType == input.AppType || + (this.AppType != null && + this.AppType.Equals(input.AppType)) + ) && + ( + this.Metadata == input.Metadata || + (this.Metadata != null && + this.Metadata.Equals(input.Metadata)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.EventType != null) + hashCode = hashCode * 59 + this.EventType.GetHashCode(); + if (this.AppType != null) + hashCode = hashCode * 59 + this.AppType.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ApmCurrencyDataPoint.cs b/src/Flipdish/Model/ApmCurrencyDataPoint.cs new file mode 100644 index 00000000..131586f8 --- /dev/null +++ b/src/Flipdish/Model/ApmCurrencyDataPoint.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A single data point in timeline graphs related to APM + /// + [DataContract] + public partial class ApmCurrencyDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Date from which the data point starts. + /// The length in days that this data point covers. + /// The values of this data point. + public ApmCurrencyDataPoint(DateTime? periodStart = default(DateTime?), int? periodLengthInDays = default(int?), List currencyData = default(List)) + { + this.PeriodStart = periodStart; + this.PeriodLengthInDays = periodLengthInDays; + this.CurrencyData = currencyData; + } + + /// + /// Date from which the data point starts + /// + /// Date from which the data point starts + [DataMember(Name="PeriodStart", EmitDefaultValue=false)] + public DateTime? PeriodStart { get; set; } + + /// + /// The length in days that this data point covers + /// + /// The length in days that this data point covers + [DataMember(Name="PeriodLengthInDays", EmitDefaultValue=false)] + public int? PeriodLengthInDays { get; set; } + + /// + /// The values of this data point + /// + /// The values of this data point + [DataMember(Name="CurrencyData", EmitDefaultValue=false)] + public List CurrencyData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApmCurrencyDataPoint {\n"); + sb.Append(" PeriodStart: ").Append(PeriodStart).Append("\n"); + sb.Append(" PeriodLengthInDays: ").Append(PeriodLengthInDays).Append("\n"); + sb.Append(" CurrencyData: ").Append(CurrencyData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApmCurrencyDataPoint); + } + + /// + /// Returns true if ApmCurrencyDataPoint instances are equal + /// + /// Instance of ApmCurrencyDataPoint to be compared + /// Boolean + public bool Equals(ApmCurrencyDataPoint input) + { + if (input == null) + return false; + + return + ( + this.PeriodStart == input.PeriodStart || + (this.PeriodStart != null && + this.PeriodStart.Equals(input.PeriodStart)) + ) && + ( + this.PeriodLengthInDays == input.PeriodLengthInDays || + (this.PeriodLengthInDays != null && + this.PeriodLengthInDays.Equals(input.PeriodLengthInDays)) + ) && + ( + this.CurrencyData == input.CurrencyData || + this.CurrencyData != null && + this.CurrencyData.SequenceEqual(input.CurrencyData) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PeriodStart != null) + hashCode = hashCode * 59 + this.PeriodStart.GetHashCode(); + if (this.PeriodLengthInDays != null) + hashCode = hashCode * 59 + this.PeriodLengthInDays.GetHashCode(); + if (this.CurrencyData != null) + hashCode = hashCode * 59 + this.CurrencyData.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ApmDataPoint.cs b/src/Flipdish/Model/ApmDataPoint.cs new file mode 100644 index 00000000..b91fc4b6 --- /dev/null +++ b/src/Flipdish/Model/ApmDataPoint.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A single data point in timeline graphs related to APM + /// + [DataContract] + public partial class ApmDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Date from which the data point starts. + /// The length in days that this data point covers. + /// The value of this data point. + public ApmDataPoint(DateTime? periodStart = default(DateTime?), int? periodLengthInDays = default(int?), int? value = default(int?)) + { + this.PeriodStart = periodStart; + this.PeriodLengthInDays = periodLengthInDays; + this.Value = value; + } + + /// + /// Date from which the data point starts + /// + /// Date from which the data point starts + [DataMember(Name="PeriodStart", EmitDefaultValue=false)] + public DateTime? PeriodStart { get; set; } + + /// + /// The length in days that this data point covers + /// + /// The length in days that this data point covers + [DataMember(Name="PeriodLengthInDays", EmitDefaultValue=false)] + public int? PeriodLengthInDays { get; set; } + + /// + /// The value of this data point + /// + /// The value of this data point + [DataMember(Name="Value", EmitDefaultValue=false)] + public int? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApmDataPoint {\n"); + sb.Append(" PeriodStart: ").Append(PeriodStart).Append("\n"); + sb.Append(" PeriodLengthInDays: ").Append(PeriodLengthInDays).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApmDataPoint); + } + + /// + /// Returns true if ApmDataPoint instances are equal + /// + /// Instance of ApmDataPoint to be compared + /// Boolean + public bool Equals(ApmDataPoint input) + { + if (input == null) + return false; + + return + ( + this.PeriodStart == input.PeriodStart || + (this.PeriodStart != null && + this.PeriodStart.Equals(input.PeriodStart)) + ) && + ( + this.PeriodLengthInDays == input.PeriodLengthInDays || + (this.PeriodLengthInDays != null && + this.PeriodLengthInDays.Equals(input.PeriodLengthInDays)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PeriodStart != null) + hashCode = hashCode * 59 + this.PeriodStart.GetHashCode(); + if (this.PeriodLengthInDays != null) + hashCode = hashCode * 59 + this.PeriodLengthInDays.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ApmHourlyDataPoint.cs b/src/Flipdish/Model/ApmHourlyDataPoint.cs new file mode 100644 index 00000000..d4524ee3 --- /dev/null +++ b/src/Flipdish/Model/ApmHourlyDataPoint.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Provides an average value for a single hour of day of the week + /// + [DataContract] + public partial class ApmHourlyDataPoint : IEquatable + { + /// + /// Day of the week + /// + /// Day of the week + [JsonConverter(typeof(StringEnumConverter))] + public enum DayEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// Day of the week + /// + /// Day of the week + [DataMember(Name="Day", EmitDefaultValue=false)] + public DayEnum? Day { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Day of the week. + /// Hour in the day. + /// Total Value. + public ApmHourlyDataPoint(DayEnum? day = default(DayEnum?), int? hour = default(int?), int? totalValue = default(int?)) + { + this.Day = day; + this.Hour = hour; + this.TotalValue = totalValue; + } + + + /// + /// Hour in the day + /// + /// Hour in the day + [DataMember(Name="Hour", EmitDefaultValue=false)] + public int? Hour { get; set; } + + /// + /// Total Value + /// + /// Total Value + [DataMember(Name="TotalValue", EmitDefaultValue=false)] + public int? TotalValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApmHourlyDataPoint {\n"); + sb.Append(" Day: ").Append(Day).Append("\n"); + sb.Append(" Hour: ").Append(Hour).Append("\n"); + sb.Append(" TotalValue: ").Append(TotalValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApmHourlyDataPoint); + } + + /// + /// Returns true if ApmHourlyDataPoint instances are equal + /// + /// Instance of ApmHourlyDataPoint to be compared + /// Boolean + public bool Equals(ApmHourlyDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Day == input.Day || + (this.Day != null && + this.Day.Equals(input.Day)) + ) && + ( + this.Hour == input.Hour || + (this.Hour != null && + this.Hour.Equals(input.Hour)) + ) && + ( + this.TotalValue == input.TotalValue || + (this.TotalValue != null && + this.TotalValue.Equals(input.TotalValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Day != null) + hashCode = hashCode * 59 + this.Day.GetHashCode(); + if (this.Hour != null) + hashCode = hashCode * 59 + this.Hour.GetHashCode(); + if (this.TotalValue != null) + hashCode = hashCode * 59 + this.TotalValue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ApmStatistics.cs b/src/Flipdish/Model/ApmStatistics.cs new file mode 100644 index 00000000..7ccefbf6 --- /dev/null +++ b/src/Flipdish/Model/ApmStatistics.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// APM Statistics + /// + [DataContract] + public partial class ApmStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Total amount of time spent with APM. + /// Total amount of time that could be saved. + /// Currency based data. + public ApmStatistics(int? estimatedMinutesSaved = default(int?), int? estimatedMinutesCouldSaved = default(int?), List currencyData = default(List)) + { + this.EstimatedMinutesSaved = estimatedMinutesSaved; + this.EstimatedMinutesCouldSaved = estimatedMinutesCouldSaved; + this.CurrencyData = currencyData; + } + + /// + /// Total amount of time spent with APM + /// + /// Total amount of time spent with APM + [DataMember(Name="EstimatedMinutesSaved", EmitDefaultValue=false)] + public int? EstimatedMinutesSaved { get; set; } + + /// + /// Total amount of time that could be saved + /// + /// Total amount of time that could be saved + [DataMember(Name="EstimatedMinutesCouldSaved", EmitDefaultValue=false)] + public int? EstimatedMinutesCouldSaved { get; set; } + + /// + /// Currency based data + /// + /// Currency based data + [DataMember(Name="CurrencyData", EmitDefaultValue=false)] + public List CurrencyData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApmStatistics {\n"); + sb.Append(" EstimatedMinutesSaved: ").Append(EstimatedMinutesSaved).Append("\n"); + sb.Append(" EstimatedMinutesCouldSaved: ").Append(EstimatedMinutesCouldSaved).Append("\n"); + sb.Append(" CurrencyData: ").Append(CurrencyData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApmStatistics); + } + + /// + /// Returns true if ApmStatistics instances are equal + /// + /// Instance of ApmStatistics to be compared + /// Boolean + public bool Equals(ApmStatistics input) + { + if (input == null) + return false; + + return + ( + this.EstimatedMinutesSaved == input.EstimatedMinutesSaved || + (this.EstimatedMinutesSaved != null && + this.EstimatedMinutesSaved.Equals(input.EstimatedMinutesSaved)) + ) && + ( + this.EstimatedMinutesCouldSaved == input.EstimatedMinutesCouldSaved || + (this.EstimatedMinutesCouldSaved != null && + this.EstimatedMinutesCouldSaved.Equals(input.EstimatedMinutesCouldSaved)) + ) && + ( + this.CurrencyData == input.CurrencyData || + this.CurrencyData != null && + this.CurrencyData.SequenceEqual(input.CurrencyData) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EstimatedMinutesSaved != null) + hashCode = hashCode * 59 + this.EstimatedMinutesSaved.GetHashCode(); + if (this.EstimatedMinutesCouldSaved != null) + hashCode = hashCode * 59 + this.EstimatedMinutesCouldSaved.GetHashCode(); + if (this.CurrencyData != null) + hashCode = hashCode * 59 + this.CurrencyData.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ApmStatus.cs b/src/Flipdish/Model/ApmStatus.cs new file mode 100644 index 00000000..8bd0af77 --- /dev/null +++ b/src/Flipdish/Model/ApmStatus.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// APM status + /// + [DataContract] + public partial class ApmStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Indicates if APM is active or otherwise. + public ApmStatus(bool? isApmEnabled = default(bool?)) + { + this.IsApmEnabled = isApmEnabled; + } + + /// + /// Indicates if APM is active or otherwise + /// + /// Indicates if APM is active or otherwise + [DataMember(Name="IsApmEnabled", EmitDefaultValue=false)] + public bool? IsApmEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApmStatus {\n"); + sb.Append(" IsApmEnabled: ").Append(IsApmEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApmStatus); + } + + /// + /// Returns true if ApmStatus instances are equal + /// + /// Instance of ApmStatus to be compared + /// Boolean + public bool Equals(ApmStatus input) + { + if (input == null) + return false; + + return + ( + this.IsApmEnabled == input.IsApmEnabled || + (this.IsApmEnabled != null && + this.IsApmEnabled.Equals(input.IsApmEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsApmEnabled != null) + hashCode = hashCode * 59 + this.IsApmEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/App.cs b/src/Flipdish/Model/App.cs new file mode 100644 index 00000000..fe09bf31 --- /dev/null +++ b/src/Flipdish/Model/App.cs @@ -0,0 +1,1970 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App + /// + [DataContract] + public partial class App : IEquatable + { + /// + /// App access level for the logged in user + /// + /// App access level for the logged in user + [JsonConverter(typeof(StringEnumConverter))] + public enum AppAccessLevelEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 2, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 3, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 5, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 8, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 11, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, + + /// + /// Enum Support for value: Support + /// + [EnumMember(Value = "Support")] + Support = 14 + } + + /// + /// App access level for the logged in user + /// + /// App access level for the logged in user + [DataMember(Name="AppAccessLevel", EmitDefaultValue=false)] + public AppAccessLevelEnum? AppAccessLevel { get; set; } + /// + /// Defines AppResourceSet + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AppResourceSetEnum + { + + /// + /// Enum ViewApp for value: ViewApp + /// + [EnumMember(Value = "ViewApp")] + ViewApp = 1, + + /// + /// Enum CreateApp for value: CreateApp + /// + [EnumMember(Value = "CreateApp")] + CreateApp = 2, + + /// + /// Enum UpdateApp for value: UpdateApp + /// + [EnumMember(Value = "UpdateApp")] + UpdateApp = 3, + + /// + /// Enum ViewAppName for value: ViewAppName + /// + [EnumMember(Value = "ViewAppName")] + ViewAppName = 4, + + /// + /// Enum EditAppAssets for value: EditAppAssets + /// + [EnumMember(Value = "EditAppAssets")] + EditAppAssets = 5, + + /// + /// Enum EditAppFeatures for value: EditAppFeatures + /// + [EnumMember(Value = "EditAppFeatures")] + EditAppFeatures = 6, + + /// + /// Enum ViewTeammates for value: ViewTeammates + /// + [EnumMember(Value = "ViewTeammates")] + ViewTeammates = 7, + + /// + /// Enum EditTeammates for value: EditTeammates + /// + [EnumMember(Value = "EditTeammates")] + EditTeammates = 8, + + /// + /// Enum CreateTeammateOwner for value: CreateTeammateOwner + /// + [EnumMember(Value = "CreateTeammateOwner")] + CreateTeammateOwner = 9, + + /// + /// Enum CreateTeammateManagedOwner for value: CreateTeammateManagedOwner + /// + [EnumMember(Value = "CreateTeammateManagedOwner")] + CreateTeammateManagedOwner = 10, + + /// + /// Enum CreateTeammateStoreOwner for value: CreateTeammateStoreOwner + /// + [EnumMember(Value = "CreateTeammateStoreOwner")] + CreateTeammateStoreOwner = 11, + + /// + /// Enum CreateTeammateStoreManager for value: CreateTeammateStoreManager + /// + [EnumMember(Value = "CreateTeammateStoreManager")] + CreateTeammateStoreManager = 12, + + /// + /// Enum CreateTeammateStoreStaff for value: CreateTeammateStoreStaff + /// + [EnumMember(Value = "CreateTeammateStoreStaff")] + CreateTeammateStoreStaff = 13, + + /// + /// Enum CreateTeammateStoreReadAccess for value: CreateTeammateStoreReadAccess + /// + [EnumMember(Value = "CreateTeammateStoreReadAccess")] + CreateTeammateStoreReadAccess = 14, + + /// + /// Enum CreateTeammateFinanceManager for value: CreateTeammateFinanceManager + /// + [EnumMember(Value = "CreateTeammateFinanceManager")] + CreateTeammateFinanceManager = 15, + + /// + /// Enum CreateTeammateIntegrator for value: CreateTeammateIntegrator + /// + [EnumMember(Value = "CreateTeammateIntegrator")] + CreateTeammateIntegrator = 16, + + /// + /// Enum CreateTeammateOnboarding for value: CreateTeammateOnboarding + /// + [EnumMember(Value = "CreateTeammateOnboarding")] + CreateTeammateOnboarding = 17, + + /// + /// Enum CreateTeammatePropertyManager for value: CreateTeammatePropertyManager + /// + [EnumMember(Value = "CreateTeammatePropertyManager")] + CreateTeammatePropertyManager = 18, + + /// + /// Enum CreateTeammatePropertyOwner for value: CreateTeammatePropertyOwner + /// + [EnumMember(Value = "CreateTeammatePropertyOwner")] + CreateTeammatePropertyOwner = 19, + + /// + /// Enum CreateTeammateStaffMember for value: CreateTeammateStaffMember + /// + [EnumMember(Value = "CreateTeammateStaffMember")] + CreateTeammateStaffMember = 20, + + /// + /// Enum ViewApmConfigurations for value: ViewApmConfigurations + /// + [EnumMember(Value = "ViewApmConfigurations")] + ViewApmConfigurations = 21, + + /// + /// Enum EditApmConfigurations for value: EditApmConfigurations + /// + [EnumMember(Value = "EditApmConfigurations")] + EditApmConfigurations = 22, + + /// + /// Enum ViewCampaignsConfigurations for value: ViewCampaignsConfigurations + /// + [EnumMember(Value = "ViewCampaignsConfigurations")] + ViewCampaignsConfigurations = 23, + + /// + /// Enum CreateCampaignsConfigurations for value: CreateCampaignsConfigurations + /// + [EnumMember(Value = "CreateCampaignsConfigurations")] + CreateCampaignsConfigurations = 24, + + /// + /// Enum UpdateCampaignsConfigurations for value: UpdateCampaignsConfigurations + /// + [EnumMember(Value = "UpdateCampaignsConfigurations")] + UpdateCampaignsConfigurations = 25, + + /// + /// Enum DeleteCampaignsConfigurations for value: DeleteCampaignsConfigurations + /// + [EnumMember(Value = "DeleteCampaignsConfigurations")] + DeleteCampaignsConfigurations = 26, + + /// + /// Enum StampLoyaltyCardAgainstCampaignsConfigurations for value: StampLoyaltyCardAgainstCampaignsConfigurations + /// + [EnumMember(Value = "StampLoyaltyCardAgainstCampaignsConfigurations")] + StampLoyaltyCardAgainstCampaignsConfigurations = 27, + + /// + /// Enum ViewDevelopersSettings for value: ViewDevelopersSettings + /// + [EnumMember(Value = "ViewDevelopersSettings")] + ViewDevelopersSettings = 28, + + /// + /// Enum EditDevelopersSettings for value: EditDevelopersSettings + /// + [EnumMember(Value = "EditDevelopersSettings")] + EditDevelopersSettings = 29, + + /// + /// Enum ViewOrders for value: ViewOrders + /// + [EnumMember(Value = "ViewOrders")] + ViewOrders = 30, + + /// + /// Enum UpdateOrdersAccept for value: UpdateOrdersAccept + /// + [EnumMember(Value = "UpdateOrdersAccept")] + UpdateOrdersAccept = 31, + + /// + /// Enum UpdateOrdersReject for value: UpdateOrdersReject + /// + [EnumMember(Value = "UpdateOrdersReject")] + UpdateOrdersReject = 32, + + /// + /// Enum UpdateOrdersRefund for value: UpdateOrdersRefund + /// + [EnumMember(Value = "UpdateOrdersRefund")] + UpdateOrdersRefund = 33, + + /// + /// Enum UpdateOrdersDispatch for value: UpdateOrdersDispatch + /// + [EnumMember(Value = "UpdateOrdersDispatch")] + UpdateOrdersDispatch = 34, + + /// + /// Enum ViewStores for value: ViewStores + /// + [EnumMember(Value = "ViewStores")] + ViewStores = 35, + + /// + /// Enum CreateStores for value: CreateStores + /// + [EnumMember(Value = "CreateStores")] + CreateStores = 36, + + /// + /// Enum EditStores for value: EditStores + /// + [EnumMember(Value = "EditStores")] + EditStores = 37, + + /// + /// Enum ViewStoresOpeningHours for value: ViewStoresOpeningHours + /// + [EnumMember(Value = "ViewStoresOpeningHours")] + ViewStoresOpeningHours = 38, + + /// + /// Enum UpdateStoresOpenForCollectionOrDelivery for value: UpdateStoresOpenForCollectionOrDelivery + /// + [EnumMember(Value = "UpdateStoresOpenForCollectionOrDelivery")] + UpdateStoresOpenForCollectionOrDelivery = 39, + + /// + /// Enum UpdateStoresOpeningHours for value: UpdateStoresOpeningHours + /// + [EnumMember(Value = "UpdateStoresOpeningHours")] + UpdateStoresOpeningHours = 40, + + /// + /// Enum ViewStoresOpeningHoursOverride for value: ViewStoresOpeningHoursOverride + /// + [EnumMember(Value = "ViewStoresOpeningHoursOverride")] + ViewStoresOpeningHoursOverride = 41, + + /// + /// Enum EditStoresOpeningHoursOverride for value: EditStoresOpeningHoursOverride + /// + [EnumMember(Value = "EditStoresOpeningHoursOverride")] + EditStoresOpeningHoursOverride = 42, + + /// + /// Enum EditStoresOpeningHoursOverrideTemporary for value: EditStoresOpeningHoursOverrideTemporary + /// + [EnumMember(Value = "EditStoresOpeningHoursOverrideTemporary")] + EditStoresOpeningHoursOverrideTemporary = 43, + + /// + /// Enum UpdateStoresName for value: UpdateStoresName + /// + [EnumMember(Value = "UpdateStoresName")] + UpdateStoresName = 44, + + /// + /// Enum EditStoreKioskSettings for value: EditStoreKioskSettings + /// + [EnumMember(Value = "EditStoreKioskSettings")] + EditStoreKioskSettings = 45, + + /// + /// Enum EditStoreOrderCapacity for value: EditStoreOrderCapacity + /// + [EnumMember(Value = "EditStoreOrderCapacity")] + EditStoreOrderCapacity = 46, + + /// + /// Enum ArchiveStores for value: ArchiveStores + /// + [EnumMember(Value = "ArchiveStores")] + ArchiveStores = 47, + + /// + /// Enum PublishStores for value: PublishStores + /// + [EnumMember(Value = "PublishStores")] + PublishStores = 48, + + /// + /// Enum UpdatePrinterTerminalsAssign for value: UpdatePrinterTerminalsAssign + /// + [EnumMember(Value = "UpdatePrinterTerminalsAssign")] + UpdatePrinterTerminalsAssign = 49, + + /// + /// Enum UpdatePrinterTerminalsToggle for value: UpdatePrinterTerminalsToggle + /// + [EnumMember(Value = "UpdatePrinterTerminalsToggle")] + UpdatePrinterTerminalsToggle = 50, + + /// + /// Enum EditStoreNotifications for value: EditStoreNotifications + /// + [EnumMember(Value = "EditStoreNotifications")] + EditStoreNotifications = 51, + + /// + /// Enum ViewStoreGroups for value: ViewStoreGroups + /// + [EnumMember(Value = "ViewStoreGroups")] + ViewStoreGroups = 52, + + /// + /// Enum CreateStoreGroups for value: CreateStoreGroups + /// + [EnumMember(Value = "CreateStoreGroups")] + CreateStoreGroups = 53, + + /// + /// Enum UpdateStoreGroups for value: UpdateStoreGroups + /// + [EnumMember(Value = "UpdateStoreGroups")] + UpdateStoreGroups = 54, + + /// + /// Enum DeleteStoreGroups for value: DeleteStoreGroups + /// + [EnumMember(Value = "DeleteStoreGroups")] + DeleteStoreGroups = 55, + + /// + /// Enum ViewDeliveryZones for value: ViewDeliveryZones + /// + [EnumMember(Value = "ViewDeliveryZones")] + ViewDeliveryZones = 56, + + /// + /// Enum CreateDeliveryZones for value: CreateDeliveryZones + /// + [EnumMember(Value = "CreateDeliveryZones")] + CreateDeliveryZones = 57, + + /// + /// Enum UpdateDeliveryZones for value: UpdateDeliveryZones + /// + [EnumMember(Value = "UpdateDeliveryZones")] + UpdateDeliveryZones = 58, + + /// + /// Enum DeleteDeliveryZones for value: DeleteDeliveryZones + /// + [EnumMember(Value = "DeleteDeliveryZones")] + DeleteDeliveryZones = 59, + + /// + /// Enum ViewMenu for value: ViewMenu + /// + [EnumMember(Value = "ViewMenu")] + ViewMenu = 60, + + /// + /// Enum CreateMenu for value: CreateMenu + /// + [EnumMember(Value = "CreateMenu")] + CreateMenu = 61, + + /// + /// Enum UpdateMenu for value: UpdateMenu + /// + [EnumMember(Value = "UpdateMenu")] + UpdateMenu = 62, + + /// + /// Enum DeleteMenu for value: DeleteMenu + /// + [EnumMember(Value = "DeleteMenu")] + DeleteMenu = 63, + + /// + /// Enum UpdateMenuLock for value: UpdateMenuLock + /// + [EnumMember(Value = "UpdateMenuLock")] + UpdateMenuLock = 64, + + /// + /// Enum UpdateMenuItemsHideTemporarily for value: UpdateMenuItemsHideTemporarily + /// + [EnumMember(Value = "UpdateMenuItemsHideTemporarily")] + UpdateMenuItemsHideTemporarily = 65, + + /// + /// Enum EditMenuImage for value: EditMenuImage + /// + [EnumMember(Value = "EditMenuImage")] + EditMenuImage = 66, + + /// + /// Enum ViewVouchers for value: ViewVouchers + /// + [EnumMember(Value = "ViewVouchers")] + ViewVouchers = 67, + + /// + /// Enum EditVouchers for value: EditVouchers + /// + [EnumMember(Value = "EditVouchers")] + EditVouchers = 68, + + /// + /// Enum ViewWebsiteContent for value: ViewWebsiteContent + /// + [EnumMember(Value = "ViewWebsiteContent")] + ViewWebsiteContent = 69, + + /// + /// Enum EditWebsiteContent for value: EditWebsiteContent + /// + [EnumMember(Value = "EditWebsiteContent")] + EditWebsiteContent = 70, + + /// + /// Enum ViewWebsiteDnsVerified for value: ViewWebsiteDnsVerified + /// + [EnumMember(Value = "ViewWebsiteDnsVerified")] + ViewWebsiteDnsVerified = 71, + + /// + /// Enum ViewWebsiteCertificateCreated for value: ViewWebsiteCertificateCreated + /// + [EnumMember(Value = "ViewWebsiteCertificateCreated")] + ViewWebsiteCertificateCreated = 72, + + /// + /// Enum ViewWebsiteCertificateRenewed for value: ViewWebsiteCertificateRenewed + /// + [EnumMember(Value = "ViewWebsiteCertificateRenewed")] + ViewWebsiteCertificateRenewed = 73, + + /// + /// Enum ViewBankAccounts for value: ViewBankAccounts + /// + [EnumMember(Value = "ViewBankAccounts")] + ViewBankAccounts = 74, + + /// + /// Enum CreateBankAccounts for value: CreateBankAccounts + /// + [EnumMember(Value = "CreateBankAccounts")] + CreateBankAccounts = 75, + + /// + /// Enum UpdateBankAccounts for value: UpdateBankAccounts + /// + [EnumMember(Value = "UpdateBankAccounts")] + UpdateBankAccounts = 76, + + /// + /// Enum UpdateBankAccountsAssign for value: UpdateBankAccountsAssign + /// + [EnumMember(Value = "UpdateBankAccountsAssign")] + UpdateBankAccountsAssign = 77, + + /// + /// Enum ViewAssignedBankAccount for value: ViewAssignedBankAccount + /// + [EnumMember(Value = "ViewAssignedBankAccount")] + ViewAssignedBankAccount = 78, + + /// + /// Enum VerifyBankAccounts for value: VerifyBankAccounts + /// + [EnumMember(Value = "VerifyBankAccounts")] + VerifyBankAccounts = 79, + + /// + /// Enum ViewServiceChargeConfigurations for value: ViewServiceChargeConfigurations + /// + [EnumMember(Value = "ViewServiceChargeConfigurations")] + ViewServiceChargeConfigurations = 80, + + /// + /// Enum EditServiceChargeConfigurations for value: EditServiceChargeConfigurations + /// + [EnumMember(Value = "EditServiceChargeConfigurations")] + EditServiceChargeConfigurations = 81, + + /// + /// Enum EditStoreDeliveryZoneFees for value: EditStoreDeliveryZoneFees + /// + [EnumMember(Value = "EditStoreDeliveryZoneFees")] + EditStoreDeliveryZoneFees = 82, + + /// + /// Enum EditStoreDeliveryFeesLimited for value: EditStoreDeliveryFeesLimited + /// + [EnumMember(Value = "EditStoreDeliveryFeesLimited")] + EditStoreDeliveryFeesLimited = 83, + + /// + /// Enum ViewHydraConfig for value: ViewHydraConfig + /// + [EnumMember(Value = "ViewHydraConfig")] + ViewHydraConfig = 84, + + /// + /// Enum UpdateHydraConfigManage for value: UpdateHydraConfigManage + /// + [EnumMember(Value = "UpdateHydraConfigManage")] + UpdateHydraConfigManage = 85, + + /// + /// Enum InitiateBluetoothPairingMode for value: InitiateBluetoothPairingMode + /// + [EnumMember(Value = "InitiateBluetoothPairingMode")] + InitiateBluetoothPairingMode = 86, + + /// + /// Enum DeleteTerminal for value: DeleteTerminal + /// + [EnumMember(Value = "DeleteTerminal")] + DeleteTerminal = 87, + + /// + /// Enum ViewKioskTelemetry for value: ViewKioskTelemetry + /// + [EnumMember(Value = "ViewKioskTelemetry")] + ViewKioskTelemetry = 88, + + /// + /// Enum ViewCustomers for value: ViewCustomers + /// + [EnumMember(Value = "ViewCustomers")] + ViewCustomers = 89, + + /// + /// Enum EditCustomers for value: EditCustomers + /// + [EnumMember(Value = "EditCustomers")] + EditCustomers = 90, + + /// + /// Enum CreateCustomers for value: CreateCustomers + /// + [EnumMember(Value = "CreateCustomers")] + CreateCustomers = 91, + + /// + /// Enum CreateCatalogElements for value: CreateCatalogElements + /// + [EnumMember(Value = "CreateCatalogElements")] + CreateCatalogElements = 92, + + /// + /// Enum UpdateCatalogElements for value: UpdateCatalogElements + /// + [EnumMember(Value = "UpdateCatalogElements")] + UpdateCatalogElements = 93, + + /// + /// Enum ViewCatalogElements for value: ViewCatalogElements + /// + [EnumMember(Value = "ViewCatalogElements")] + ViewCatalogElements = 94, + + /// + /// Enum DeleteCatalogElements for value: DeleteCatalogElements + /// + [EnumMember(Value = "DeleteCatalogElements")] + DeleteCatalogElements = 95, + + /// + /// Enum ViewMetafieldDefinitions for value: ViewMetafieldDefinitions + /// + [EnumMember(Value = "ViewMetafieldDefinitions")] + ViewMetafieldDefinitions = 96, + + /// + /// Enum CreateMetafieldDefinitions for value: CreateMetafieldDefinitions + /// + [EnumMember(Value = "CreateMetafieldDefinitions")] + CreateMetafieldDefinitions = 97, + + /// + /// Enum UpdateMetafieldDefinitions for value: UpdateMetafieldDefinitions + /// + [EnumMember(Value = "UpdateMetafieldDefinitions")] + UpdateMetafieldDefinitions = 98, + + /// + /// Enum DeleteMetafieldDefinitions for value: DeleteMetafieldDefinitions + /// + [EnumMember(Value = "DeleteMetafieldDefinitions")] + DeleteMetafieldDefinitions = 99, + + /// + /// Enum UpdateMetafields for value: UpdateMetafields + /// + [EnumMember(Value = "UpdateMetafields")] + UpdateMetafields = 100, + + /// + /// Enum ViewCatalogMenuChanges for value: ViewCatalogMenuChanges + /// + [EnumMember(Value = "ViewCatalogMenuChanges")] + ViewCatalogMenuChanges = 101, + + /// + /// Enum PublishCatalogMenuChanges for value: PublishCatalogMenuChanges + /// + [EnumMember(Value = "PublishCatalogMenuChanges")] + PublishCatalogMenuChanges = 102, + + /// + /// Enum ViewAppStatistics for value: ViewAppStatistics + /// + [EnumMember(Value = "ViewAppStatistics")] + ViewAppStatistics = 103, + + /// + /// Enum ViewApmStatistics for value: ViewApmStatistics + /// + [EnumMember(Value = "ViewApmStatistics")] + ViewApmStatistics = 104, + + /// + /// Enum ViewCampaignsStatistics for value: ViewCampaignsStatistics + /// + [EnumMember(Value = "ViewCampaignsStatistics")] + ViewCampaignsStatistics = 105, + + /// + /// Enum ViewCustomerStatistics for value: ViewCustomerStatistics + /// + [EnumMember(Value = "ViewCustomerStatistics")] + ViewCustomerStatistics = 106, + + /// + /// Enum ViewLiveStatistics for value: ViewLiveStatistics + /// + [EnumMember(Value = "ViewLiveStatistics")] + ViewLiveStatistics = 107, + + /// + /// Enum ViewOrderStatistics for value: ViewOrderStatistics + /// + [EnumMember(Value = "ViewOrderStatistics")] + ViewOrderStatistics = 108, + + /// + /// Enum ViewSalesStatistics for value: ViewSalesStatistics + /// + [EnumMember(Value = "ViewSalesStatistics")] + ViewSalesStatistics = 109, + + /// + /// Enum ViewSalesEndOfDayStatistics for value: ViewSalesEndOfDayStatistics + /// + [EnumMember(Value = "ViewSalesEndOfDayStatistics")] + ViewSalesEndOfDayStatistics = 110, + + /// + /// Enum ViewVouchersStatistics for value: ViewVouchersStatistics + /// + [EnumMember(Value = "ViewVouchersStatistics")] + ViewVouchersStatistics = 111, + + /// + /// Enum DownloadCustomerCsvExport for value: DownloadCustomerCsvExport + /// + [EnumMember(Value = "DownloadCustomerCsvExport")] + DownloadCustomerCsvExport = 112, + + /// + /// Enum ViewApmAuditLogs for value: ViewApmAuditLogs + /// + [EnumMember(Value = "ViewApmAuditLogs")] + ViewApmAuditLogs = 113, + + /// + /// Enum ViewStoreAuditLogs for value: ViewStoreAuditLogs + /// + [EnumMember(Value = "ViewStoreAuditLogs")] + ViewStoreAuditLogs = 114, + + /// + /// Enum ViewMenuAuditLogs for value: ViewMenuAuditLogs + /// + [EnumMember(Value = "ViewMenuAuditLogs")] + ViewMenuAuditLogs = 115, + + /// + /// Enum ViewBankAccountAuditLogs for value: ViewBankAccountAuditLogs + /// + [EnumMember(Value = "ViewBankAccountAuditLogs")] + ViewBankAccountAuditLogs = 116, + + /// + /// Enum ViewFeeConfigurationsAuditLogs for value: ViewFeeConfigurationsAuditLogs + /// + [EnumMember(Value = "ViewFeeConfigurationsAuditLogs")] + ViewFeeConfigurationsAuditLogs = 117, + + /// + /// Enum ViewOrdersAuditLogs for value: ViewOrdersAuditLogs + /// + [EnumMember(Value = "ViewOrdersAuditLogs")] + ViewOrdersAuditLogs = 118, + + /// + /// Enum ViewVouchersAuditLogs for value: ViewVouchersAuditLogs + /// + [EnumMember(Value = "ViewVouchersAuditLogs")] + ViewVouchersAuditLogs = 119, + + /// + /// Enum ViewUserEventsAuditLogs for value: ViewUserEventsAuditLogs + /// + [EnumMember(Value = "ViewUserEventsAuditLogs")] + ViewUserEventsAuditLogs = 120, + + /// + /// Enum ViewCampaignsAuditLogs for value: ViewCampaignsAuditLogs + /// + [EnumMember(Value = "ViewCampaignsAuditLogs")] + ViewCampaignsAuditLogs = 121, + + /// + /// Enum ViewTeammatesAuditLogs for value: ViewTeammatesAuditLogs + /// + [EnumMember(Value = "ViewTeammatesAuditLogs")] + ViewTeammatesAuditLogs = 122, + + /// + /// Enum ViewAppAuditLogs for value: ViewAppAuditLogs + /// + [EnumMember(Value = "ViewAppAuditLogs")] + ViewAppAuditLogs = 123, + + /// + /// Enum ViewCustomerAuditLogs for value: ViewCustomerAuditLogs + /// + [EnumMember(Value = "ViewCustomerAuditLogs")] + ViewCustomerAuditLogs = 124, + + /// + /// Enum ViewPrinterAuditLogs for value: ViewPrinterAuditLogs + /// + [EnumMember(Value = "ViewPrinterAuditLogs")] + ViewPrinterAuditLogs = 125, + + /// + /// Enum ViewHydraAuditLogs for value: ViewHydraAuditLogs + /// + [EnumMember(Value = "ViewHydraAuditLogs")] + ViewHydraAuditLogs = 126, + + /// + /// Enum ViewPushNotificationAuditLogs for value: ViewPushNotificationAuditLogs + /// + [EnumMember(Value = "ViewPushNotificationAuditLogs")] + ViewPushNotificationAuditLogs = 127, + + /// + /// Enum ViewStripeCustomConnectedAccountAuditLogs for value: ViewStripeCustomConnectedAccountAuditLogs + /// + [EnumMember(Value = "ViewStripeCustomConnectedAccountAuditLogs")] + ViewStripeCustomConnectedAccountAuditLogs = 128, + + /// + /// Enum ViewKioskBluetoothDeviceAuditLogs for value: ViewKioskBluetoothDeviceAuditLogs + /// + [EnumMember(Value = "ViewKioskBluetoothDeviceAuditLogs")] + ViewKioskBluetoothDeviceAuditLogs = 129, + + /// + /// Enum ViewExternalAuditLogs for value: ViewExternalAuditLogs + /// + [EnumMember(Value = "ViewExternalAuditLogs")] + ViewExternalAuditLogs = 130, + + /// + /// Enum CreateExternalAuditLogEvents for value: CreateExternalAuditLogEvents + /// + [EnumMember(Value = "CreateExternalAuditLogEvents")] + CreateExternalAuditLogEvents = 131, + + /// + /// Enum ViewCatalogAuditLogs for value: ViewCatalogAuditLogs + /// + [EnumMember(Value = "ViewCatalogAuditLogs")] + ViewCatalogAuditLogs = 132, + + /// + /// Enum ViewOrderFulfillmentAuditLogs for value: ViewOrderFulfillmentAuditLogs + /// + [EnumMember(Value = "ViewOrderFulfillmentAuditLogs")] + ViewOrderFulfillmentAuditLogs = 133, + + /// + /// Enum ViewChannelAuditLogs for value: ViewChannelAuditLogs + /// + [EnumMember(Value = "ViewChannelAuditLogs")] + ViewChannelAuditLogs = 134, + + /// + /// Enum ViewAppStoreAuditLogs for value: ViewAppStoreAuditLogs + /// + [EnumMember(Value = "ViewAppStoreAuditLogs")] + ViewAppStoreAuditLogs = 135, + + /// + /// Enum SendPushNotificationToCustomer for value: SendPushNotificationToCustomer + /// + [EnumMember(Value = "SendPushNotificationToCustomer")] + SendPushNotificationToCustomer = 136, + + /// + /// Enum InviteDriverToApp for value: InviteDriverToApp + /// + [EnumMember(Value = "InviteDriverToApp")] + InviteDriverToApp = 137, + + /// + /// Enum GetDriverForApp for value: GetDriverForApp + /// + [EnumMember(Value = "GetDriverForApp")] + GetDriverForApp = 138, + + /// + /// Enum RemoveDriverFromApp for value: RemoveDriverFromApp + /// + [EnumMember(Value = "RemoveDriverFromApp")] + RemoveDriverFromApp = 139, + + /// + /// Enum AssignDriverToOrder for value: AssignDriverToOrder + /// + [EnumMember(Value = "AssignDriverToOrder")] + AssignDriverToOrder = 140, + + /// + /// Enum UnassignDriverFromOrder for value: UnassignDriverFromOrder + /// + [EnumMember(Value = "UnassignDriverFromOrder")] + UnassignDriverFromOrder = 141, + + /// + /// Enum UpdateOrdersDeliveryTrackingStatus for value: UpdateOrdersDeliveryTrackingStatus + /// + [EnumMember(Value = "UpdateOrdersDeliveryTrackingStatus")] + UpdateOrdersDeliveryTrackingStatus = 142, + + /// + /// Enum UpdateOrderFulfillmentStatus for value: UpdateOrderFulfillmentStatus + /// + [EnumMember(Value = "UpdateOrderFulfillmentStatus")] + UpdateOrderFulfillmentStatus = 143, + + /// + /// Enum ViewFulfillmentStatesConfiguration for value: ViewFulfillmentStatesConfiguration + /// + [EnumMember(Value = "ViewFulfillmentStatesConfiguration")] + ViewFulfillmentStatesConfiguration = 144, + + /// + /// Enum CreateFulfillmentStatesConfiguration for value: CreateFulfillmentStatesConfiguration + /// + [EnumMember(Value = "CreateFulfillmentStatesConfiguration")] + CreateFulfillmentStatesConfiguration = 145, + + /// + /// Enum UpdateFulfillmentStatesConfiguration for value: UpdateFulfillmentStatesConfiguration + /// + [EnumMember(Value = "UpdateFulfillmentStatesConfiguration")] + UpdateFulfillmentStatesConfiguration = 146, + + /// + /// Enum DeleteFulfillmentStatesConfiguration for value: DeleteFulfillmentStatesConfiguration + /// + [EnumMember(Value = "DeleteFulfillmentStatesConfiguration")] + DeleteFulfillmentStatesConfiguration = 147, + + /// + /// Enum ViewPayouts for value: ViewPayouts + /// + [EnumMember(Value = "ViewPayouts")] + ViewPayouts = 148, + + /// + /// Enum ViewChannels for value: ViewChannels + /// + [EnumMember(Value = "ViewChannels")] + ViewChannels = 149, + + /// + /// Enum ViewOnboarding for value: ViewOnboarding + /// + [EnumMember(Value = "ViewOnboarding")] + ViewOnboarding = 150, + + /// + /// Enum UpdateOnboarding for value: UpdateOnboarding + /// + [EnumMember(Value = "UpdateOnboarding")] + UpdateOnboarding = 151, + + /// + /// Enum ViewClientDevices for value: ViewClientDevices + /// + [EnumMember(Value = "ViewClientDevices")] + ViewClientDevices = 152, + + /// + /// Enum UpdateClientDevices for value: UpdateClientDevices + /// + [EnumMember(Value = "UpdateClientDevices")] + UpdateClientDevices = 153, + + /// + /// Enum EnrollClientDevices for value: EnrollClientDevices + /// + [EnumMember(Value = "EnrollClientDevices")] + EnrollClientDevices = 154, + + /// + /// Enum AssignClientDevices for value: AssignClientDevices + /// + [EnumMember(Value = "AssignClientDevices")] + AssignClientDevices = 155, + + /// + /// Enum ViewClientAuditLogs for value: ViewClientAuditLogs + /// + [EnumMember(Value = "ViewClientAuditLogs")] + ViewClientAuditLogs = 156, + + /// + /// Enum CreateAppStoreAppConfiguration for value: CreateAppStoreAppConfiguration + /// + [EnumMember(Value = "CreateAppStoreAppConfiguration")] + CreateAppStoreAppConfiguration = 157, + + /// + /// Enum ViewAppStoreAppConfiguration for value: ViewAppStoreAppConfiguration + /// + [EnumMember(Value = "ViewAppStoreAppConfiguration")] + ViewAppStoreAppConfiguration = 158, + + /// + /// Enum UpdateAppStoreAppConfiguration for value: UpdateAppStoreAppConfiguration + /// + [EnumMember(Value = "UpdateAppStoreAppConfiguration")] + UpdateAppStoreAppConfiguration = 159, + + /// + /// Enum DeleteAppStoreAppConfiguration for value: DeleteAppStoreAppConfiguration + /// + [EnumMember(Value = "DeleteAppStoreAppConfiguration")] + DeleteAppStoreAppConfiguration = 160, + + /// + /// Enum UpdateAppStoreAppConfigurationSettings for value: UpdateAppStoreAppConfigurationSettings + /// + [EnumMember(Value = "UpdateAppStoreAppConfigurationSettings")] + UpdateAppStoreAppConfigurationSettings = 161, + + /// + /// Enum CreateAppStoreSubscription for value: CreateAppStoreSubscription + /// + [EnumMember(Value = "CreateAppStoreSubscription")] + CreateAppStoreSubscription = 162, + + /// + /// Enum UpdateAppStoreSubscription for value: UpdateAppStoreSubscription + /// + [EnumMember(Value = "UpdateAppStoreSubscription")] + UpdateAppStoreSubscription = 163, + + /// + /// Enum DeleteAppStoreSubscription for value: DeleteAppStoreSubscription + /// + [EnumMember(Value = "DeleteAppStoreSubscription")] + DeleteAppStoreSubscription = 164, + + /// + /// Enum ViewSalesChannels for value: ViewSalesChannels + /// + [EnumMember(Value = "ViewSalesChannels")] + ViewSalesChannels = 165, + + /// + /// Enum EditSalesChannels for value: EditSalesChannels + /// + [EnumMember(Value = "EditSalesChannels")] + EditSalesChannels = 166, + + /// + /// Enum ViewPayGreenWhiteLabelConfiguration for value: ViewPayGreenWhiteLabelConfiguration + /// + [EnumMember(Value = "ViewPayGreenWhiteLabelConfiguration")] + ViewPayGreenWhiteLabelConfiguration = 167, + + /// + /// Enum CreatePayGreenWhiteLabelConfiguration for value: CreatePayGreenWhiteLabelConfiguration + /// + [EnumMember(Value = "CreatePayGreenWhiteLabelConfiguration")] + CreatePayGreenWhiteLabelConfiguration = 168, + + /// + /// Enum UpdatePayGreenWhiteLabelConfiguration for value: UpdatePayGreenWhiteLabelConfiguration + /// + [EnumMember(Value = "UpdatePayGreenWhiteLabelConfiguration")] + UpdatePayGreenWhiteLabelConfiguration = 169, + + /// + /// Enum UpdatePayGreenStoreConfiguration for value: UpdatePayGreenStoreConfiguration + /// + [EnumMember(Value = "UpdatePayGreenStoreConfiguration")] + UpdatePayGreenStoreConfiguration = 170, + + /// + /// Enum ViewSubscriptions for value: ViewSubscriptions + /// + [EnumMember(Value = "ViewSubscriptions")] + ViewSubscriptions = 171, + + /// + /// Enum ViewInvoices for value: ViewInvoices + /// + [EnumMember(Value = "ViewInvoices")] + ViewInvoices = 172, + + /// + /// Enum EditAccountsBills for value: EditAccountsBills + /// + [EnumMember(Value = "EditAccountsBills")] + EditAccountsBills = 173, + + /// + /// Enum ViewAccountsBills for value: ViewAccountsBills + /// + [EnumMember(Value = "ViewAccountsBills")] + ViewAccountsBills = 174, + + /// + /// Enum EditAccountsCategories for value: EditAccountsCategories + /// + [EnumMember(Value = "EditAccountsCategories")] + EditAccountsCategories = 175, + + /// + /// Enum ViewAccountsCategories for value: ViewAccountsCategories + /// + [EnumMember(Value = "ViewAccountsCategories")] + ViewAccountsCategories = 176, + + /// + /// Enum EditAccountsCreditAccounts for value: EditAccountsCreditAccounts + /// + [EnumMember(Value = "EditAccountsCreditAccounts")] + EditAccountsCreditAccounts = 177, + + /// + /// Enum ViewAccountsCreditAccounts for value: ViewAccountsCreditAccounts + /// + [EnumMember(Value = "ViewAccountsCreditAccounts")] + ViewAccountsCreditAccounts = 178, + + /// + /// Enum EditAccountsCreditBooks for value: EditAccountsCreditBooks + /// + [EnumMember(Value = "EditAccountsCreditBooks")] + EditAccountsCreditBooks = 179, + + /// + /// Enum ViewAccountsCreditBooks for value: ViewAccountsCreditBooks + /// + [EnumMember(Value = "ViewAccountsCreditBooks")] + ViewAccountsCreditBooks = 180, + + /// + /// Enum EditAccountsExpenses for value: EditAccountsExpenses + /// + [EnumMember(Value = "EditAccountsExpenses")] + EditAccountsExpenses = 181, + + /// + /// Enum ViewAccountsExpenses for value: ViewAccountsExpenses + /// + [EnumMember(Value = "ViewAccountsExpenses")] + ViewAccountsExpenses = 182, + + /// + /// Enum EditAccountsTransactionAccounts for value: EditAccountsTransactionAccounts + /// + [EnumMember(Value = "EditAccountsTransactionAccounts")] + EditAccountsTransactionAccounts = 183, + + /// + /// Enum ViewAccountsTransactionAccounts for value: ViewAccountsTransactionAccounts + /// + [EnumMember(Value = "ViewAccountsTransactionAccounts")] + ViewAccountsTransactionAccounts = 184, + + /// + /// Enum EditDocumentExplorer for value: EditDocumentExplorer + /// + [EnumMember(Value = "EditDocumentExplorer")] + EditDocumentExplorer = 185, + + /// + /// Enum ViewDocumentExplorer for value: ViewDocumentExplorer + /// + [EnumMember(Value = "ViewDocumentExplorer")] + ViewDocumentExplorer = 186, + + /// + /// Enum ViewInventoryReports for value: ViewInventoryReports + /// + [EnumMember(Value = "ViewInventoryReports")] + ViewInventoryReports = 187, + + /// + /// Enum EditInventoryPurchaseOrders for value: EditInventoryPurchaseOrders + /// + [EnumMember(Value = "EditInventoryPurchaseOrders")] + EditInventoryPurchaseOrders = 188, + + /// + /// Enum ViewInventoryPurchaseOrders for value: ViewInventoryPurchaseOrders + /// + [EnumMember(Value = "ViewInventoryPurchaseOrders")] + ViewInventoryPurchaseOrders = 189, + + /// + /// Enum EditInventoryStockItems for value: EditInventoryStockItems + /// + [EnumMember(Value = "EditInventoryStockItems")] + EditInventoryStockItems = 190, + + /// + /// Enum ViewInventoryStockItems for value: ViewInventoryStockItems + /// + [EnumMember(Value = "ViewInventoryStockItems")] + ViewInventoryStockItems = 191, + + /// + /// Enum EditInventorySupplier for value: EditInventorySupplier + /// + [EnumMember(Value = "EditInventorySupplier")] + EditInventorySupplier = 192, + + /// + /// Enum ViewInventorySupplier for value: ViewInventorySupplier + /// + [EnumMember(Value = "ViewInventorySupplier")] + ViewInventorySupplier = 193, + + /// + /// Enum EditInventoryTrackingProfiles for value: EditInventoryTrackingProfiles + /// + [EnumMember(Value = "EditInventoryTrackingProfiles")] + EditInventoryTrackingProfiles = 194, + + /// + /// Enum ViewInventoryTrackingProfiles for value: ViewInventoryTrackingProfiles + /// + [EnumMember(Value = "ViewInventoryTrackingProfiles")] + ViewInventoryTrackingProfiles = 195, + + /// + /// Enum ViewPayrollReports for value: ViewPayrollReports + /// + [EnumMember(Value = "ViewPayrollReports")] + ViewPayrollReports = 196, + + /// + /// Enum EditPayrollHoliday for value: EditPayrollHoliday + /// + [EnumMember(Value = "EditPayrollHoliday")] + EditPayrollHoliday = 197, + + /// + /// Enum ViewPayrollHoliday for value: ViewPayrollHoliday + /// + [EnumMember(Value = "ViewPayrollHoliday")] + ViewPayrollHoliday = 198, + + /// + /// Enum EditPayrollRota for value: EditPayrollRota + /// + [EnumMember(Value = "EditPayrollRota")] + EditPayrollRota = 199, + + /// + /// Enum ViewPayrollRota for value: ViewPayrollRota + /// + [EnumMember(Value = "ViewPayrollRota")] + ViewPayrollRota = 200, + + /// + /// Enum EditPayrollStaff for value: EditPayrollStaff + /// + [EnumMember(Value = "EditPayrollStaff")] + EditPayrollStaff = 201, + + /// + /// Enum ViewPayrollStaff for value: ViewPayrollStaff + /// + [EnumMember(Value = "ViewPayrollStaff")] + ViewPayrollStaff = 202, + + /// + /// Enum ViewSalesReports for value: ViewSalesReports + /// + [EnumMember(Value = "ViewSalesReports")] + ViewSalesReports = 203, + + /// + /// Enum ViewCostReports for value: ViewCostReports + /// + [EnumMember(Value = "ViewCostReports")] + ViewCostReports = 204, + + /// + /// Enum ViewMenuReports for value: ViewMenuReports + /// + [EnumMember(Value = "ViewMenuReports")] + ViewMenuReports = 205 + } + + + /// + /// Constitutes a list of available resources + /// + /// Constitutes a list of available resources + [DataMember(Name="AppResourceSet", EmitDefaultValue=false)] + public List AppResourceSet { get; set; } + /// + /// Web to App Redirect settings + /// + /// Web to App Redirect settings + [JsonConverter(typeof(StringEnumConverter))] + public enum WebToAppRedirectEnum + { + + /// + /// Enum NoRedirect for value: NoRedirect + /// + [EnumMember(Value = "NoRedirect")] + NoRedirect = 1, + + /// + /// Enum RedirectOnce for value: RedirectOnce + /// + [EnumMember(Value = "RedirectOnce")] + RedirectOnce = 2, + + /// + /// Enum RedirectAlways for value: RedirectAlways + /// + [EnumMember(Value = "RedirectAlways")] + RedirectAlways = 3, + + /// + /// Enum SuggestPwa for value: SuggestPwa + /// + [EnumMember(Value = "SuggestPwa")] + SuggestPwa = 4, + + /// + /// Enum ForcePwa for value: ForcePwa + /// + [EnumMember(Value = "ForcePwa")] + ForcePwa = 5 + } + + /// + /// Web to App Redirect settings + /// + /// Web to App Redirect settings + [DataMember(Name="WebToAppRedirect", EmitDefaultValue=false)] + public WebToAppRedirectEnum? WebToAppRedirect { get; set; } + /// + /// Application Category + /// + /// Application Category + [JsonConverter(typeof(StringEnumConverter))] + public enum ApplicationCategoryEnum + { + + /// + /// Enum Restaurant for value: Restaurant + /// + [EnumMember(Value = "Restaurant")] + Restaurant = 1, + + /// + /// Enum Cafe for value: Cafe + /// + [EnumMember(Value = "Cafe")] + Cafe = 2, + + /// + /// Enum Convenience for value: Convenience + /// + [EnumMember(Value = "Convenience")] + Convenience = 3 + } + + /// + /// Application Category + /// + /// Application Category + [DataMember(Name="ApplicationCategory", EmitDefaultValue=false)] + public ApplicationCategoryEnum? ApplicationCategory { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// App Identifier. + /// Has iOS app in Apple App Store. This is readonly.. + /// IOS App Store URL. + /// Has Android app in Google Play Store. This is readonly.. + /// Android Play Store URL. + /// Display delivery restaurant screen. + /// Application Logo.. + /// Languages that have been selected to be available to customers.. + /// Lists all languages that are supported by Flipdish.. + /// App access level for the logged in user. + /// Constitutes a list of available resources. + /// Feature flags. These cannot be set by 3rd parties.. + /// Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App.. + /// North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App.. + /// South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App.. + /// Key to be passed with Google Maps requests. + /// Org Id. + /// SMS Restaurant Name. + /// Web to App Redirect settings. + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites.. + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on.. + /// Main color of the web / Android / iOS applications. + /// Primary colour used on the Kiosk. + /// Application Category. + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain.. + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl}. + /// Cookie Consent Prompt Enabled. + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks. + public App(string appId = default(string), bool? hasIosApp = default(bool?), string iosAppStoreUrl = default(string), bool? hasAndroidApp = default(bool?), string androidPlayStoreUrl = default(string), bool? displayDeliveryRestaurantScreen = default(bool?), string logoImageUrl = default(string), List languages = default(List), List availableAppLanguages = default(List), AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), List appResourceSet = default(List), List features = default(List), Coordinates mapCenter = default(Coordinates), Coordinates mapNorthEast = default(Coordinates), Coordinates mapSouthWest = default(Coordinates), string googleMapsApiKeyWeb = default(string), string orgId = default(string), string smsRestaurantName = default(string), WebToAppRedirectEnum? webToAppRedirect = default(WebToAppRedirectEnum?), string name = default(string), string hostName = default(string), string mainColor = default(string), string kioskPrimaryColour = default(string), ApplicationCategoryEnum? applicationCategory = default(ApplicationCategoryEnum?), bool? isPanaceaEnabled = default(bool?), string panaceaVanityUrl = default(string), bool? cookieConsentPromptEnabled = default(bool?), string countryId = default(string)) + { + this.AppId = appId; + this.HasIosApp = hasIosApp; + this.IosAppStoreUrl = iosAppStoreUrl; + this.HasAndroidApp = hasAndroidApp; + this.AndroidPlayStoreUrl = androidPlayStoreUrl; + this.DisplayDeliveryRestaurantScreen = displayDeliveryRestaurantScreen; + this.LogoImageUrl = logoImageUrl; + this.Languages = languages; + this.AvailableAppLanguages = availableAppLanguages; + this.AppAccessLevel = appAccessLevel; + this.AppResourceSet = appResourceSet; + this.Features = features; + this.MapCenter = mapCenter; + this.MapNorthEast = mapNorthEast; + this.MapSouthWest = mapSouthWest; + this.GoogleMapsApiKeyWeb = googleMapsApiKeyWeb; + this.OrgId = orgId; + this.SmsRestaurantName = smsRestaurantName; + this.WebToAppRedirect = webToAppRedirect; + this.Name = name; + this.HostName = hostName; + this.MainColor = mainColor; + this.KioskPrimaryColour = kioskPrimaryColour; + this.ApplicationCategory = applicationCategory; + this.IsPanaceaEnabled = isPanaceaEnabled; + this.PanaceaVanityUrl = panaceaVanityUrl; + this.CookieConsentPromptEnabled = cookieConsentPromptEnabled; + this.CountryId = countryId; + } + + /// + /// App Identifier + /// + /// App Identifier + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Has iOS app in Apple App Store. This is readonly. + /// + /// Has iOS app in Apple App Store. This is readonly. + [DataMember(Name="HasIosApp", EmitDefaultValue=false)] + public bool? HasIosApp { get; set; } + + /// + /// IOS App Store URL + /// + /// IOS App Store URL + [DataMember(Name="IosAppStoreUrl", EmitDefaultValue=false)] + public string IosAppStoreUrl { get; set; } + + /// + /// Has Android app in Google Play Store. This is readonly. + /// + /// Has Android app in Google Play Store. This is readonly. + [DataMember(Name="HasAndroidApp", EmitDefaultValue=false)] + public bool? HasAndroidApp { get; set; } + + /// + /// Android Play Store URL + /// + /// Android Play Store URL + [DataMember(Name="AndroidPlayStoreUrl", EmitDefaultValue=false)] + public string AndroidPlayStoreUrl { get; set; } + + /// + /// Display delivery restaurant screen + /// + /// Display delivery restaurant screen + [DataMember(Name="DisplayDeliveryRestaurantScreen", EmitDefaultValue=false)] + public bool? DisplayDeliveryRestaurantScreen { get; set; } + + /// + /// Application Logo. + /// + /// Application Logo. + [DataMember(Name="LogoImageUrl", EmitDefaultValue=false)] + public string LogoImageUrl { get; set; } + + /// + /// Languages that have been selected to be available to customers. + /// + /// Languages that have been selected to be available to customers. + [DataMember(Name="Languages", EmitDefaultValue=false)] + public List Languages { get; set; } + + /// + /// Lists all languages that are supported by Flipdish. + /// + /// Lists all languages that are supported by Flipdish. + [DataMember(Name="AvailableAppLanguages", EmitDefaultValue=false)] + public List AvailableAppLanguages { get; set; } + + + + /// + /// Feature flags. These cannot be set by 3rd parties. + /// + /// Feature flags. These cannot be set by 3rd parties. + [DataMember(Name="Features", EmitDefaultValue=false)] + public List Features { get; set; } + + /// + /// Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + /// + /// Center of the map coordinates. This is used to center the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + [DataMember(Name="MapCenter", EmitDefaultValue=false)] + public Coordinates MapCenter { get; set; } + + /// + /// North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + /// + /// North East(Top Right) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + [DataMember(Name="MapNorthEast", EmitDefaultValue=false)] + public Coordinates MapNorthEast { get; set; } + + /// + /// South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + /// + /// South West (Bottom Left) Corner of the map coordinates. This is used to frame the map when the iOS and Android app first open. This value is automatically set based on the locations of the Stores in the App. + [DataMember(Name="MapSouthWest", EmitDefaultValue=false)] + public Coordinates MapSouthWest { get; set; } + + /// + /// Key to be passed with Google Maps requests + /// + /// Key to be passed with Google Maps requests + [DataMember(Name="GoogleMapsApiKeyWeb", EmitDefaultValue=false)] + public string GoogleMapsApiKeyWeb { get; set; } + + /// + /// Org Id + /// + /// Org Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// SMS Restaurant Name + /// + /// SMS Restaurant Name + [DataMember(Name="SmsRestaurantName", EmitDefaultValue=false)] + public string SmsRestaurantName { get; set; } + + + /// + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + /// + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + /// + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + [DataMember(Name="HostName", EmitDefaultValue=false)] + public string HostName { get; set; } + + /// + /// Main color of the web / Android / iOS applications + /// + /// Main color of the web / Android / iOS applications + [DataMember(Name="MainColor", EmitDefaultValue=false)] + public string MainColor { get; set; } + + /// + /// Primary colour used on the Kiosk + /// + /// Primary colour used on the Kiosk + [DataMember(Name="KioskPrimaryColour", EmitDefaultValue=false)] + public string KioskPrimaryColour { get; set; } + + + /// + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. + /// + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. + [DataMember(Name="IsPanaceaEnabled", EmitDefaultValue=false)] + public bool? IsPanaceaEnabled { get; set; } + + /// + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + /// + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + [DataMember(Name="PanaceaVanityUrl", EmitDefaultValue=false)] + public string PanaceaVanityUrl { get; set; } + + /// + /// Cookie Consent Prompt Enabled + /// + /// Cookie Consent Prompt Enabled + [DataMember(Name="CookieConsentPromptEnabled", EmitDefaultValue=false)] + public bool? CookieConsentPromptEnabled { get; set; } + + /// + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks + /// + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class App {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" HasIosApp: ").Append(HasIosApp).Append("\n"); + sb.Append(" IosAppStoreUrl: ").Append(IosAppStoreUrl).Append("\n"); + sb.Append(" HasAndroidApp: ").Append(HasAndroidApp).Append("\n"); + sb.Append(" AndroidPlayStoreUrl: ").Append(AndroidPlayStoreUrl).Append("\n"); + sb.Append(" DisplayDeliveryRestaurantScreen: ").Append(DisplayDeliveryRestaurantScreen).Append("\n"); + sb.Append(" LogoImageUrl: ").Append(LogoImageUrl).Append("\n"); + sb.Append(" Languages: ").Append(Languages).Append("\n"); + sb.Append(" AvailableAppLanguages: ").Append(AvailableAppLanguages).Append("\n"); + sb.Append(" AppAccessLevel: ").Append(AppAccessLevel).Append("\n"); + sb.Append(" AppResourceSet: ").Append(AppResourceSet).Append("\n"); + sb.Append(" Features: ").Append(Features).Append("\n"); + sb.Append(" MapCenter: ").Append(MapCenter).Append("\n"); + sb.Append(" MapNorthEast: ").Append(MapNorthEast).Append("\n"); + sb.Append(" MapSouthWest: ").Append(MapSouthWest).Append("\n"); + sb.Append(" GoogleMapsApiKeyWeb: ").Append(GoogleMapsApiKeyWeb).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" SmsRestaurantName: ").Append(SmsRestaurantName).Append("\n"); + sb.Append(" WebToAppRedirect: ").Append(WebToAppRedirect).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" HostName: ").Append(HostName).Append("\n"); + sb.Append(" MainColor: ").Append(MainColor).Append("\n"); + sb.Append(" KioskPrimaryColour: ").Append(KioskPrimaryColour).Append("\n"); + sb.Append(" ApplicationCategory: ").Append(ApplicationCategory).Append("\n"); + sb.Append(" IsPanaceaEnabled: ").Append(IsPanaceaEnabled).Append("\n"); + sb.Append(" PanaceaVanityUrl: ").Append(PanaceaVanityUrl).Append("\n"); + sb.Append(" CookieConsentPromptEnabled: ").Append(CookieConsentPromptEnabled).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as App); + } + + /// + /// Returns true if App instances are equal + /// + /// Instance of App to be compared + /// Boolean + public bool Equals(App input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.HasIosApp == input.HasIosApp || + (this.HasIosApp != null && + this.HasIosApp.Equals(input.HasIosApp)) + ) && + ( + this.IosAppStoreUrl == input.IosAppStoreUrl || + (this.IosAppStoreUrl != null && + this.IosAppStoreUrl.Equals(input.IosAppStoreUrl)) + ) && + ( + this.HasAndroidApp == input.HasAndroidApp || + (this.HasAndroidApp != null && + this.HasAndroidApp.Equals(input.HasAndroidApp)) + ) && + ( + this.AndroidPlayStoreUrl == input.AndroidPlayStoreUrl || + (this.AndroidPlayStoreUrl != null && + this.AndroidPlayStoreUrl.Equals(input.AndroidPlayStoreUrl)) + ) && + ( + this.DisplayDeliveryRestaurantScreen == input.DisplayDeliveryRestaurantScreen || + (this.DisplayDeliveryRestaurantScreen != null && + this.DisplayDeliveryRestaurantScreen.Equals(input.DisplayDeliveryRestaurantScreen)) + ) && + ( + this.LogoImageUrl == input.LogoImageUrl || + (this.LogoImageUrl != null && + this.LogoImageUrl.Equals(input.LogoImageUrl)) + ) && + ( + this.Languages == input.Languages || + this.Languages != null && + this.Languages.SequenceEqual(input.Languages) + ) && + ( + this.AvailableAppLanguages == input.AvailableAppLanguages || + this.AvailableAppLanguages != null && + this.AvailableAppLanguages.SequenceEqual(input.AvailableAppLanguages) + ) && + ( + this.AppAccessLevel == input.AppAccessLevel || + (this.AppAccessLevel != null && + this.AppAccessLevel.Equals(input.AppAccessLevel)) + ) && + ( + this.AppResourceSet == input.AppResourceSet || + this.AppResourceSet != null && + this.AppResourceSet.SequenceEqual(input.AppResourceSet) + ) && + ( + this.Features == input.Features || + this.Features != null && + this.Features.SequenceEqual(input.Features) + ) && + ( + this.MapCenter == input.MapCenter || + (this.MapCenter != null && + this.MapCenter.Equals(input.MapCenter)) + ) && + ( + this.MapNorthEast == input.MapNorthEast || + (this.MapNorthEast != null && + this.MapNorthEast.Equals(input.MapNorthEast)) + ) && + ( + this.MapSouthWest == input.MapSouthWest || + (this.MapSouthWest != null && + this.MapSouthWest.Equals(input.MapSouthWest)) + ) && + ( + this.GoogleMapsApiKeyWeb == input.GoogleMapsApiKeyWeb || + (this.GoogleMapsApiKeyWeb != null && + this.GoogleMapsApiKeyWeb.Equals(input.GoogleMapsApiKeyWeb)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.SmsRestaurantName == input.SmsRestaurantName || + (this.SmsRestaurantName != null && + this.SmsRestaurantName.Equals(input.SmsRestaurantName)) + ) && + ( + this.WebToAppRedirect == input.WebToAppRedirect || + (this.WebToAppRedirect != null && + this.WebToAppRedirect.Equals(input.WebToAppRedirect)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.HostName == input.HostName || + (this.HostName != null && + this.HostName.Equals(input.HostName)) + ) && + ( + this.MainColor == input.MainColor || + (this.MainColor != null && + this.MainColor.Equals(input.MainColor)) + ) && + ( + this.KioskPrimaryColour == input.KioskPrimaryColour || + (this.KioskPrimaryColour != null && + this.KioskPrimaryColour.Equals(input.KioskPrimaryColour)) + ) && + ( + this.ApplicationCategory == input.ApplicationCategory || + (this.ApplicationCategory != null && + this.ApplicationCategory.Equals(input.ApplicationCategory)) + ) && + ( + this.IsPanaceaEnabled == input.IsPanaceaEnabled || + (this.IsPanaceaEnabled != null && + this.IsPanaceaEnabled.Equals(input.IsPanaceaEnabled)) + ) && + ( + this.PanaceaVanityUrl == input.PanaceaVanityUrl || + (this.PanaceaVanityUrl != null && + this.PanaceaVanityUrl.Equals(input.PanaceaVanityUrl)) + ) && + ( + this.CookieConsentPromptEnabled == input.CookieConsentPromptEnabled || + (this.CookieConsentPromptEnabled != null && + this.CookieConsentPromptEnabled.Equals(input.CookieConsentPromptEnabled)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.HasIosApp != null) + hashCode = hashCode * 59 + this.HasIosApp.GetHashCode(); + if (this.IosAppStoreUrl != null) + hashCode = hashCode * 59 + this.IosAppStoreUrl.GetHashCode(); + if (this.HasAndroidApp != null) + hashCode = hashCode * 59 + this.HasAndroidApp.GetHashCode(); + if (this.AndroidPlayStoreUrl != null) + hashCode = hashCode * 59 + this.AndroidPlayStoreUrl.GetHashCode(); + if (this.DisplayDeliveryRestaurantScreen != null) + hashCode = hashCode * 59 + this.DisplayDeliveryRestaurantScreen.GetHashCode(); + if (this.LogoImageUrl != null) + hashCode = hashCode * 59 + this.LogoImageUrl.GetHashCode(); + if (this.Languages != null) + hashCode = hashCode * 59 + this.Languages.GetHashCode(); + if (this.AvailableAppLanguages != null) + hashCode = hashCode * 59 + this.AvailableAppLanguages.GetHashCode(); + if (this.AppAccessLevel != null) + hashCode = hashCode * 59 + this.AppAccessLevel.GetHashCode(); + if (this.AppResourceSet != null) + hashCode = hashCode * 59 + this.AppResourceSet.GetHashCode(); + if (this.Features != null) + hashCode = hashCode * 59 + this.Features.GetHashCode(); + if (this.MapCenter != null) + hashCode = hashCode * 59 + this.MapCenter.GetHashCode(); + if (this.MapNorthEast != null) + hashCode = hashCode * 59 + this.MapNorthEast.GetHashCode(); + if (this.MapSouthWest != null) + hashCode = hashCode * 59 + this.MapSouthWest.GetHashCode(); + if (this.GoogleMapsApiKeyWeb != null) + hashCode = hashCode * 59 + this.GoogleMapsApiKeyWeb.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.SmsRestaurantName != null) + hashCode = hashCode * 59 + this.SmsRestaurantName.GetHashCode(); + if (this.WebToAppRedirect != null) + hashCode = hashCode * 59 + this.WebToAppRedirect.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.HostName != null) + hashCode = hashCode * 59 + this.HostName.GetHashCode(); + if (this.MainColor != null) + hashCode = hashCode * 59 + this.MainColor.GetHashCode(); + if (this.KioskPrimaryColour != null) + hashCode = hashCode * 59 + this.KioskPrimaryColour.GetHashCode(); + if (this.ApplicationCategory != null) + hashCode = hashCode * 59 + this.ApplicationCategory.GetHashCode(); + if (this.IsPanaceaEnabled != null) + hashCode = hashCode * 59 + this.IsPanaceaEnabled.GetHashCode(); + if (this.PanaceaVanityUrl != null) + hashCode = hashCode * 59 + this.PanaceaVanityUrl.GetHashCode(); + if (this.CookieConsentPromptEnabled != null) + hashCode = hashCode * 59 + this.CookieConsentPromptEnabled.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppChannelAssignment.cs b/src/Flipdish/Model/AppChannelAssignment.cs new file mode 100644 index 00000000..c4cb1e93 --- /dev/null +++ b/src/Flipdish/Model/AppChannelAssignment.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes a ChannelAssignment which is when a AppId is assigned to a Sales Channel + /// + [DataContract] + public partial class AppChannelAssignment : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of the channel on the assignment. + /// AppId of the assignment. + public AppChannelAssignment(int? channelId = default(int?), string appId = default(string)) + { + this.ChannelId = channelId; + this.AppId = appId; + } + + /// + /// Id of the channel on the assignment + /// + /// Id of the channel on the assignment + [DataMember(Name="ChannelId", EmitDefaultValue=false)] + public int? ChannelId { get; set; } + + /// + /// AppId of the assignment + /// + /// AppId of the assignment + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppChannelAssignment {\n"); + sb.Append(" ChannelId: ").Append(ChannelId).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppChannelAssignment); + } + + /// + /// Returns true if AppChannelAssignment instances are equal + /// + /// Instance of AppChannelAssignment to be compared + /// Boolean + public bool Equals(AppChannelAssignment input) + { + if (input == null) + return false; + + return + ( + this.ChannelId == input.ChannelId || + (this.ChannelId != null && + this.ChannelId.Equals(input.ChannelId)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChannelId != null) + hashCode = hashCode * 59 + this.ChannelId.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppCompliance.cs b/src/Flipdish/Model/AppCompliance.cs new file mode 100644 index 00000000..fbe1a333 --- /dev/null +++ b/src/Flipdish/Model/AppCompliance.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Application compliance model + /// + [DataContract] + public partial class AppCompliance : IEquatable + { + /// + /// Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. + /// + /// Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. + [JsonConverter(typeof(StringEnumConverter))] + public enum ComplianceTypeEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum GdprCompliance for value: GdprCompliance + /// + [EnumMember(Value = "GdprCompliance")] + GdprCompliance = 2 + } + + /// + /// Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. + /// + /// Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. + [DataMember(Name="ComplianceType", EmitDefaultValue=false)] + public ComplianceTypeEnum? ComplianceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// App ID. + /// Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region.. + /// For EU countries, we should not allow to change the option to “Default banner”, but all other countries should be able to do so.. + public AppCompliance(string appId = default(string), ComplianceTypeEnum? complianceType = default(ComplianceTypeEnum?), bool? allowDisablingOfGdpr = default(bool?)) + { + this.AppId = appId; + this.ComplianceType = complianceType; + this.AllowDisablingOfGdpr = allowDisablingOfGdpr; + } + + /// + /// App ID + /// + /// App ID + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + + /// + /// For EU countries, we should not allow to change the option to “Default banner”, but all other countries should be able to do so. + /// + /// For EU countries, we should not allow to change the option to “Default banner”, but all other countries should be able to do so. + [DataMember(Name="AllowDisablingOfGdpr", EmitDefaultValue=false)] + public bool? AllowDisablingOfGdpr { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppCompliance {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ComplianceType: ").Append(ComplianceType).Append("\n"); + sb.Append(" AllowDisablingOfGdpr: ").Append(AllowDisablingOfGdpr).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppCompliance); + } + + /// + /// Returns true if AppCompliance instances are equal + /// + /// Instance of AppCompliance to be compared + /// Boolean + public bool Equals(AppCompliance input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ComplianceType == input.ComplianceType || + (this.ComplianceType != null && + this.ComplianceType.Equals(input.ComplianceType)) + ) && + ( + this.AllowDisablingOfGdpr == input.AllowDisablingOfGdpr || + (this.AllowDisablingOfGdpr != null && + this.AllowDisablingOfGdpr.Equals(input.AllowDisablingOfGdpr)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ComplianceType != null) + hashCode = hashCode * 59 + this.ComplianceType.GetHashCode(); + if (this.AllowDisablingOfGdpr != null) + hashCode = hashCode * 59 + this.AllowDisablingOfGdpr.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppConfigSalesChannel.cs b/src/Flipdish/Model/AppConfigSalesChannel.cs new file mode 100644 index 00000000..749d2f53 --- /dev/null +++ b/src/Flipdish/Model/AppConfigSalesChannel.cs @@ -0,0 +1,257 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App Config Sales Channel + /// + [DataContract] + public partial class AppConfigSalesChannel : IEquatable + { + /// + /// Display a popup to users requesting their email address + /// + /// Display a popup to users requesting their email address + [JsonConverter(typeof(StringEnumConverter))] + public enum EmailRequestModeEnum + { + + /// + /// Enum DoNotRequest for value: DoNotRequest + /// + [EnumMember(Value = "DoNotRequest")] + DoNotRequest = 1, + + /// + /// Enum Request for value: Request + /// + [EnumMember(Value = "Request")] + Request = 2, + + /// + /// Enum Require for value: Require + /// + [EnumMember(Value = "Require")] + Require = 3 + } + + /// + /// Display a popup to users requesting their email address + /// + /// Display a popup to users requesting their email address + [DataMember(Name="EmailRequestMode", EmitDefaultValue=false)] + public EmailRequestModeEnum? EmailRequestMode { get; set; } + /// + /// Sends users to their native apps or request them to install the pwa + /// + /// Sends users to their native apps or request them to install the pwa + [JsonConverter(typeof(StringEnumConverter))] + public enum WebToAppRedirectEnum + { + + /// + /// Enum NoRedirect for value: NoRedirect + /// + [EnumMember(Value = "NoRedirect")] + NoRedirect = 1, + + /// + /// Enum RedirectOnce for value: RedirectOnce + /// + [EnumMember(Value = "RedirectOnce")] + RedirectOnce = 2, + + /// + /// Enum RedirectAlways for value: RedirectAlways + /// + [EnumMember(Value = "RedirectAlways")] + RedirectAlways = 3, + + /// + /// Enum SuggestPwa for value: SuggestPwa + /// + [EnumMember(Value = "SuggestPwa")] + SuggestPwa = 4, + + /// + /// Enum ForcePwa for value: ForcePwa + /// + [EnumMember(Value = "ForcePwa")] + ForcePwa = 5 + } + + /// + /// Sends users to their native apps or request them to install the pwa + /// + /// Sends users to their native apps or request them to install the pwa + [DataMember(Name="WebToAppRedirect", EmitDefaultValue=false)] + public WebToAppRedirectEnum? WebToAppRedirect { get; set; } + /// + /// Address entry type - TextEntryManualDisallowed is the only supported configuration + /// + /// Address entry type - TextEntryManualDisallowed is the only supported configuration + [JsonConverter(typeof(StringEnumConverter))] + public enum AddressEntryTypeEnum + { + + /// + /// Enum MapFirst for value: MapFirst + /// + [EnumMember(Value = "MapFirst")] + MapFirst = 1, + + /// + /// Enum TextEntryManualAllowed for value: TextEntryManualAllowed + /// + [EnumMember(Value = "TextEntryManualAllowed")] + TextEntryManualAllowed = 2, + + /// + /// Enum TextEntryManualDisallowed for value: TextEntryManualDisallowed + /// + [EnumMember(Value = "TextEntryManualDisallowed")] + TextEntryManualDisallowed = 3 + } + + /// + /// Address entry type - TextEntryManualDisallowed is the only supported configuration + /// + /// Address entry type - TextEntryManualDisallowed is the only supported configuration + [DataMember(Name="AddressEntryType", EmitDefaultValue=false)] + public AddressEntryTypeEnum? AddressEntryType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Display a popup to users requesting their email address. + /// Sends users to their native apps or request them to install the pwa. + /// Address entry type - TextEntryManualDisallowed is the only supported configuration. + /// Display Pickup Restaurant List Screen. + public AppConfigSalesChannel(EmailRequestModeEnum? emailRequestMode = default(EmailRequestModeEnum?), WebToAppRedirectEnum? webToAppRedirect = default(WebToAppRedirectEnum?), AddressEntryTypeEnum? addressEntryType = default(AddressEntryTypeEnum?), bool? displayDeliveryRestaurantListScreen = default(bool?)) + { + this.EmailRequestMode = emailRequestMode; + this.WebToAppRedirect = webToAppRedirect; + this.AddressEntryType = addressEntryType; + this.DisplayDeliveryRestaurantListScreen = displayDeliveryRestaurantListScreen; + } + + + + + /// + /// Display Pickup Restaurant List Screen + /// + /// Display Pickup Restaurant List Screen + [DataMember(Name="DisplayDeliveryRestaurantListScreen", EmitDefaultValue=false)] + public bool? DisplayDeliveryRestaurantListScreen { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppConfigSalesChannel {\n"); + sb.Append(" EmailRequestMode: ").Append(EmailRequestMode).Append("\n"); + sb.Append(" WebToAppRedirect: ").Append(WebToAppRedirect).Append("\n"); + sb.Append(" AddressEntryType: ").Append(AddressEntryType).Append("\n"); + sb.Append(" DisplayDeliveryRestaurantListScreen: ").Append(DisplayDeliveryRestaurantListScreen).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppConfigSalesChannel); + } + + /// + /// Returns true if AppConfigSalesChannel instances are equal + /// + /// Instance of AppConfigSalesChannel to be compared + /// Boolean + public bool Equals(AppConfigSalesChannel input) + { + if (input == null) + return false; + + return + ( + this.EmailRequestMode == input.EmailRequestMode || + (this.EmailRequestMode != null && + this.EmailRequestMode.Equals(input.EmailRequestMode)) + ) && + ( + this.WebToAppRedirect == input.WebToAppRedirect || + (this.WebToAppRedirect != null && + this.WebToAppRedirect.Equals(input.WebToAppRedirect)) + ) && + ( + this.AddressEntryType == input.AddressEntryType || + (this.AddressEntryType != null && + this.AddressEntryType.Equals(input.AddressEntryType)) + ) && + ( + this.DisplayDeliveryRestaurantListScreen == input.DisplayDeliveryRestaurantListScreen || + (this.DisplayDeliveryRestaurantListScreen != null && + this.DisplayDeliveryRestaurantListScreen.Equals(input.DisplayDeliveryRestaurantListScreen)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmailRequestMode != null) + hashCode = hashCode * 59 + this.EmailRequestMode.GetHashCode(); + if (this.WebToAppRedirect != null) + hashCode = hashCode * 59 + this.WebToAppRedirect.GetHashCode(); + if (this.AddressEntryType != null) + hashCode = hashCode * 59 + this.AddressEntryType.GetHashCode(); + if (this.DisplayDeliveryRestaurantListScreen != null) + hashCode = hashCode * 59 + this.DisplayDeliveryRestaurantListScreen.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppConfigUpdateModel.cs b/src/Flipdish/Model/AppConfigUpdateModel.cs new file mode 100644 index 00000000..05421cea --- /dev/null +++ b/src/Flipdish/Model/AppConfigUpdateModel.cs @@ -0,0 +1,293 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Application configuration + /// + [DataContract] + public partial class AppConfigUpdateModel : IEquatable + { + /// + /// Application Category + /// + /// Application Category + [JsonConverter(typeof(StringEnumConverter))] + public enum ApplicationCategoryEnum + { + + /// + /// Enum Restaurant for value: Restaurant + /// + [EnumMember(Value = "Restaurant")] + Restaurant = 1, + + /// + /// Enum Cafe for value: Cafe + /// + [EnumMember(Value = "Cafe")] + Cafe = 2, + + /// + /// Enum Convenience for value: Convenience + /// + [EnumMember(Value = "Convenience")] + Convenience = 3 + } + + /// + /// Application Category + /// + /// Application Category + [DataMember(Name="ApplicationCategory", EmitDefaultValue=false)] + public ApplicationCategoryEnum? ApplicationCategory { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites.. + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on.. + /// Main color of the web / Android / iOS applications. + /// Primary colour used on the Kiosk. + /// Application Category. + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain.. + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl}. + /// Cookie Consent Prompt Enabled. + /// Logo image URL. + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks. + public AppConfigUpdateModel(string name = default(string), string hostName = default(string), string mainColor = default(string), string kioskPrimaryColour = default(string), ApplicationCategoryEnum? applicationCategory = default(ApplicationCategoryEnum?), bool? isPanaceaEnabled = default(bool?), string panaceaVanityUrl = default(string), bool? cookieConsentPromptEnabled = default(bool?), string logoImageUrl = default(string), string countryId = default(string)) + { + this.Name = name; + this.HostName = hostName; + this.MainColor = mainColor; + this.KioskPrimaryColour = kioskPrimaryColour; + this.ApplicationCategory = applicationCategory; + this.IsPanaceaEnabled = isPanaceaEnabled; + this.PanaceaVanityUrl = panaceaVanityUrl; + this.CookieConsentPromptEnabled = cookieConsentPromptEnabled; + this.LogoImageUrl = logoImageUrl; + this.CountryId = countryId; + } + + /// + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + /// + /// App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + /// + /// HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + [DataMember(Name="HostName", EmitDefaultValue=false)] + public string HostName { get; set; } + + /// + /// Main color of the web / Android / iOS applications + /// + /// Main color of the web / Android / iOS applications + [DataMember(Name="MainColor", EmitDefaultValue=false)] + public string MainColor { get; set; } + + /// + /// Primary colour used on the Kiosk + /// + /// Primary colour used on the Kiosk + [DataMember(Name="KioskPrimaryColour", EmitDefaultValue=false)] + public string KioskPrimaryColour { get; set; } + + + /// + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. + /// + /// Panacea is the term used for websites that are hosted on the my.flipdish.com domain. This value is true when the App's website is hosted on this domain. The alternative to using Panacea websites is to use a custom domain. + [DataMember(Name="IsPanaceaEnabled", EmitDefaultValue=false)] + public bool? IsPanaceaEnabled { get; set; } + + /// + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + /// + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + [DataMember(Name="PanaceaVanityUrl", EmitDefaultValue=false)] + public string PanaceaVanityUrl { get; set; } + + /// + /// Cookie Consent Prompt Enabled + /// + /// Cookie Consent Prompt Enabled + [DataMember(Name="CookieConsentPromptEnabled", EmitDefaultValue=false)] + public bool? CookieConsentPromptEnabled { get; set; } + + /// + /// Logo image URL + /// + /// Logo image URL + [DataMember(Name="LogoImageUrl", EmitDefaultValue=false)] + public string LogoImageUrl { get; set; } + + /// + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks + /// + /// Country identifier in ISO 3166-1 alpha-2 format. This code is set automatically based on the locations of the Stores in the App. The App Country is used - to determine how to parse mobile phone numbers that are entered in their local numbering format - to determine if country specific payment methods should be offered - in various fraud checks + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppConfigUpdateModel {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" HostName: ").Append(HostName).Append("\n"); + sb.Append(" MainColor: ").Append(MainColor).Append("\n"); + sb.Append(" KioskPrimaryColour: ").Append(KioskPrimaryColour).Append("\n"); + sb.Append(" ApplicationCategory: ").Append(ApplicationCategory).Append("\n"); + sb.Append(" IsPanaceaEnabled: ").Append(IsPanaceaEnabled).Append("\n"); + sb.Append(" PanaceaVanityUrl: ").Append(PanaceaVanityUrl).Append("\n"); + sb.Append(" CookieConsentPromptEnabled: ").Append(CookieConsentPromptEnabled).Append("\n"); + sb.Append(" LogoImageUrl: ").Append(LogoImageUrl).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppConfigUpdateModel); + } + + /// + /// Returns true if AppConfigUpdateModel instances are equal + /// + /// Instance of AppConfigUpdateModel to be compared + /// Boolean + public bool Equals(AppConfigUpdateModel input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.HostName == input.HostName || + (this.HostName != null && + this.HostName.Equals(input.HostName)) + ) && + ( + this.MainColor == input.MainColor || + (this.MainColor != null && + this.MainColor.Equals(input.MainColor)) + ) && + ( + this.KioskPrimaryColour == input.KioskPrimaryColour || + (this.KioskPrimaryColour != null && + this.KioskPrimaryColour.Equals(input.KioskPrimaryColour)) + ) && + ( + this.ApplicationCategory == input.ApplicationCategory || + (this.ApplicationCategory != null && + this.ApplicationCategory.Equals(input.ApplicationCategory)) + ) && + ( + this.IsPanaceaEnabled == input.IsPanaceaEnabled || + (this.IsPanaceaEnabled != null && + this.IsPanaceaEnabled.Equals(input.IsPanaceaEnabled)) + ) && + ( + this.PanaceaVanityUrl == input.PanaceaVanityUrl || + (this.PanaceaVanityUrl != null && + this.PanaceaVanityUrl.Equals(input.PanaceaVanityUrl)) + ) && + ( + this.CookieConsentPromptEnabled == input.CookieConsentPromptEnabled || + (this.CookieConsentPromptEnabled != null && + this.CookieConsentPromptEnabled.Equals(input.CookieConsentPromptEnabled)) + ) && + ( + this.LogoImageUrl == input.LogoImageUrl || + (this.LogoImageUrl != null && + this.LogoImageUrl.Equals(input.LogoImageUrl)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.HostName != null) + hashCode = hashCode * 59 + this.HostName.GetHashCode(); + if (this.MainColor != null) + hashCode = hashCode * 59 + this.MainColor.GetHashCode(); + if (this.KioskPrimaryColour != null) + hashCode = hashCode * 59 + this.KioskPrimaryColour.GetHashCode(); + if (this.ApplicationCategory != null) + hashCode = hashCode * 59 + this.ApplicationCategory.GetHashCode(); + if (this.IsPanaceaEnabled != null) + hashCode = hashCode * 59 + this.IsPanaceaEnabled.GetHashCode(); + if (this.PanaceaVanityUrl != null) + hashCode = hashCode * 59 + this.PanaceaVanityUrl.GetHashCode(); + if (this.CookieConsentPromptEnabled != null) + hashCode = hashCode * 59 + this.CookieConsentPromptEnabled.GetHashCode(); + if (this.LogoImageUrl != null) + hashCode = hashCode * 59 + this.LogoImageUrl.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppCreatedEvent.cs b/src/Flipdish/Model/AppCreatedEvent.cs new file mode 100644 index 00000000..348eb905 --- /dev/null +++ b/src/Flipdish/Model/AppCreatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Application created event + /// + [DataContract] + public partial class AppCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// App Name. + /// Country Id. + /// User information. + /// Salesforce Account Id. + /// Organisation Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppCreatedEvent(string eventName = default(string), string description = default(string), string appName = default(string), string countryId = default(string), UserEventInfo user = default(UserEventInfo), string accountId = default(string), string orgId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.AppName = appName; + this.CountryId = countryId; + this.User = user; + this.AccountId = accountId; + this.OrgId = orgId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// App Name + /// + /// App Name + [DataMember(Name="AppName", EmitDefaultValue=false)] + public string AppName { get; set; } + + /// + /// Country Id + /// + /// Country Id + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// User information + /// + /// User information + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Salesforce Account Id + /// + /// Salesforce Account Id + [DataMember(Name="AccountId", EmitDefaultValue=false)] + public string AccountId { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" AppName: ").Append(AppName).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" AccountId: ").Append(AccountId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppCreatedEvent); + } + + /// + /// Returns true if AppCreatedEvent instances are equal + /// + /// Instance of AppCreatedEvent to be compared + /// Boolean + public bool Equals(AppCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.AppName == input.AppName || + (this.AppName != null && + this.AppName.Equals(input.AppName)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.AccountId == input.AccountId || + (this.AccountId != null && + this.AccountId.Equals(input.AccountId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.AppName != null) + hashCode = hashCode * 59 + this.AppName.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.AccountId != null) + hashCode = hashCode * 59 + this.AccountId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppGeneralConfigModel.cs b/src/Flipdish/Model/AppGeneralConfigModel.cs new file mode 100644 index 00000000..e855ccca --- /dev/null +++ b/src/Flipdish/Model/AppGeneralConfigModel.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App general configuration model + /// + [DataContract] + public partial class AppGeneralConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label ID. + /// Deep link URL scheme. + /// SMS restaurant name. + /// Nexmo support SMS number. + /// Twilio support SMS number. + /// Fallback phone number prefix. + /// Autocomplete phone number length. + /// Contact form type None = 0, Email = 1, Intercom = 2, WebView = 3, FlipdishMessages = 4. + /// Private support email address. + /// Contact phone number. + /// Delivery enabled. + /// Pickup enabled. + /// Dine in enabled. + /// Display delivery restaurant list screen. + /// Display pickup restaurant list screen. + public AppGeneralConfigModel(int? whiteLabelId = default(int?), string deepLinkUrlScheme = default(string), string smsRestaurantName = default(string), string nexmoSupportSmsNumber = default(string), string twilioSupportSmsNumber = default(string), string fallbackPhoneNumberPrefix = default(string), int? autocompletePhoneNumberLength = default(int?), string contactFormType = default(string), string privateSupportEmailAddress = default(string), string contactPhoneNumber = default(string), bool? deliveryEnabled = default(bool?), bool? pickupEnabled = default(bool?), bool? dineInEnabled = default(bool?), bool? displayDeliveryRestaurantListScreen = default(bool?), bool? displayPickupRestaurantListScreen = default(bool?)) + { + this.WhiteLabelId = whiteLabelId; + this.DeepLinkUrlScheme = deepLinkUrlScheme; + this.SmsRestaurantName = smsRestaurantName; + this.NexmoSupportSmsNumber = nexmoSupportSmsNumber; + this.TwilioSupportSmsNumber = twilioSupportSmsNumber; + this.FallbackPhoneNumberPrefix = fallbackPhoneNumberPrefix; + this.AutocompletePhoneNumberLength = autocompletePhoneNumberLength; + this.ContactFormType = contactFormType; + this.PrivateSupportEmailAddress = privateSupportEmailAddress; + this.ContactPhoneNumber = contactPhoneNumber; + this.DeliveryEnabled = deliveryEnabled; + this.PickupEnabled = pickupEnabled; + this.DineInEnabled = dineInEnabled; + this.DisplayDeliveryRestaurantListScreen = displayDeliveryRestaurantListScreen; + this.DisplayPickupRestaurantListScreen = displayPickupRestaurantListScreen; + } + + /// + /// White label ID + /// + /// White label ID + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// Deep link URL scheme + /// + /// Deep link URL scheme + [DataMember(Name="DeepLinkUrlScheme", EmitDefaultValue=false)] + public string DeepLinkUrlScheme { get; set; } + + /// + /// SMS restaurant name + /// + /// SMS restaurant name + [DataMember(Name="SmsRestaurantName", EmitDefaultValue=false)] + public string SmsRestaurantName { get; set; } + + /// + /// Nexmo support SMS number + /// + /// Nexmo support SMS number + [DataMember(Name="NexmoSupportSmsNumber", EmitDefaultValue=false)] + public string NexmoSupportSmsNumber { get; set; } + + /// + /// Twilio support SMS number + /// + /// Twilio support SMS number + [DataMember(Name="TwilioSupportSmsNumber", EmitDefaultValue=false)] + public string TwilioSupportSmsNumber { get; set; } + + /// + /// Fallback phone number prefix + /// + /// Fallback phone number prefix + [DataMember(Name="FallbackPhoneNumberPrefix", EmitDefaultValue=false)] + public string FallbackPhoneNumberPrefix { get; set; } + + /// + /// Autocomplete phone number length + /// + /// Autocomplete phone number length + [DataMember(Name="AutocompletePhoneNumberLength", EmitDefaultValue=false)] + public int? AutocompletePhoneNumberLength { get; set; } + + /// + /// Contact form type None = 0, Email = 1, Intercom = 2, WebView = 3, FlipdishMessages = 4 + /// + /// Contact form type None = 0, Email = 1, Intercom = 2, WebView = 3, FlipdishMessages = 4 + [DataMember(Name="ContactFormType", EmitDefaultValue=false)] + public string ContactFormType { get; set; } + + /// + /// Private support email address + /// + /// Private support email address + [DataMember(Name="PrivateSupportEmailAddress", EmitDefaultValue=false)] + public string PrivateSupportEmailAddress { get; set; } + + /// + /// Contact phone number + /// + /// Contact phone number + [DataMember(Name="ContactPhoneNumber", EmitDefaultValue=false)] + public string ContactPhoneNumber { get; set; } + + /// + /// Delivery enabled + /// + /// Delivery enabled + [DataMember(Name="DeliveryEnabled", EmitDefaultValue=false)] + public bool? DeliveryEnabled { get; set; } + + /// + /// Pickup enabled + /// + /// Pickup enabled + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// Dine in enabled + /// + /// Dine in enabled + [DataMember(Name="DineInEnabled", EmitDefaultValue=false)] + public bool? DineInEnabled { get; set; } + + /// + /// Display delivery restaurant list screen + /// + /// Display delivery restaurant list screen + [DataMember(Name="DisplayDeliveryRestaurantListScreen", EmitDefaultValue=false)] + public bool? DisplayDeliveryRestaurantListScreen { get; set; } + + /// + /// Display pickup restaurant list screen + /// + /// Display pickup restaurant list screen + [DataMember(Name="DisplayPickupRestaurantListScreen", EmitDefaultValue=false)] + public bool? DisplayPickupRestaurantListScreen { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppGeneralConfigModel {\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" DeepLinkUrlScheme: ").Append(DeepLinkUrlScheme).Append("\n"); + sb.Append(" SmsRestaurantName: ").Append(SmsRestaurantName).Append("\n"); + sb.Append(" NexmoSupportSmsNumber: ").Append(NexmoSupportSmsNumber).Append("\n"); + sb.Append(" TwilioSupportSmsNumber: ").Append(TwilioSupportSmsNumber).Append("\n"); + sb.Append(" FallbackPhoneNumberPrefix: ").Append(FallbackPhoneNumberPrefix).Append("\n"); + sb.Append(" AutocompletePhoneNumberLength: ").Append(AutocompletePhoneNumberLength).Append("\n"); + sb.Append(" ContactFormType: ").Append(ContactFormType).Append("\n"); + sb.Append(" PrivateSupportEmailAddress: ").Append(PrivateSupportEmailAddress).Append("\n"); + sb.Append(" ContactPhoneNumber: ").Append(ContactPhoneNumber).Append("\n"); + sb.Append(" DeliveryEnabled: ").Append(DeliveryEnabled).Append("\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" DineInEnabled: ").Append(DineInEnabled).Append("\n"); + sb.Append(" DisplayDeliveryRestaurantListScreen: ").Append(DisplayDeliveryRestaurantListScreen).Append("\n"); + sb.Append(" DisplayPickupRestaurantListScreen: ").Append(DisplayPickupRestaurantListScreen).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppGeneralConfigModel); + } + + /// + /// Returns true if AppGeneralConfigModel instances are equal + /// + /// Instance of AppGeneralConfigModel to be compared + /// Boolean + public bool Equals(AppGeneralConfigModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.DeepLinkUrlScheme == input.DeepLinkUrlScheme || + (this.DeepLinkUrlScheme != null && + this.DeepLinkUrlScheme.Equals(input.DeepLinkUrlScheme)) + ) && + ( + this.SmsRestaurantName == input.SmsRestaurantName || + (this.SmsRestaurantName != null && + this.SmsRestaurantName.Equals(input.SmsRestaurantName)) + ) && + ( + this.NexmoSupportSmsNumber == input.NexmoSupportSmsNumber || + (this.NexmoSupportSmsNumber != null && + this.NexmoSupportSmsNumber.Equals(input.NexmoSupportSmsNumber)) + ) && + ( + this.TwilioSupportSmsNumber == input.TwilioSupportSmsNumber || + (this.TwilioSupportSmsNumber != null && + this.TwilioSupportSmsNumber.Equals(input.TwilioSupportSmsNumber)) + ) && + ( + this.FallbackPhoneNumberPrefix == input.FallbackPhoneNumberPrefix || + (this.FallbackPhoneNumberPrefix != null && + this.FallbackPhoneNumberPrefix.Equals(input.FallbackPhoneNumberPrefix)) + ) && + ( + this.AutocompletePhoneNumberLength == input.AutocompletePhoneNumberLength || + (this.AutocompletePhoneNumberLength != null && + this.AutocompletePhoneNumberLength.Equals(input.AutocompletePhoneNumberLength)) + ) && + ( + this.ContactFormType == input.ContactFormType || + (this.ContactFormType != null && + this.ContactFormType.Equals(input.ContactFormType)) + ) && + ( + this.PrivateSupportEmailAddress == input.PrivateSupportEmailAddress || + (this.PrivateSupportEmailAddress != null && + this.PrivateSupportEmailAddress.Equals(input.PrivateSupportEmailAddress)) + ) && + ( + this.ContactPhoneNumber == input.ContactPhoneNumber || + (this.ContactPhoneNumber != null && + this.ContactPhoneNumber.Equals(input.ContactPhoneNumber)) + ) && + ( + this.DeliveryEnabled == input.DeliveryEnabled || + (this.DeliveryEnabled != null && + this.DeliveryEnabled.Equals(input.DeliveryEnabled)) + ) && + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.DineInEnabled == input.DineInEnabled || + (this.DineInEnabled != null && + this.DineInEnabled.Equals(input.DineInEnabled)) + ) && + ( + this.DisplayDeliveryRestaurantListScreen == input.DisplayDeliveryRestaurantListScreen || + (this.DisplayDeliveryRestaurantListScreen != null && + this.DisplayDeliveryRestaurantListScreen.Equals(input.DisplayDeliveryRestaurantListScreen)) + ) && + ( + this.DisplayPickupRestaurantListScreen == input.DisplayPickupRestaurantListScreen || + (this.DisplayPickupRestaurantListScreen != null && + this.DisplayPickupRestaurantListScreen.Equals(input.DisplayPickupRestaurantListScreen)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.DeepLinkUrlScheme != null) + hashCode = hashCode * 59 + this.DeepLinkUrlScheme.GetHashCode(); + if (this.SmsRestaurantName != null) + hashCode = hashCode * 59 + this.SmsRestaurantName.GetHashCode(); + if (this.NexmoSupportSmsNumber != null) + hashCode = hashCode * 59 + this.NexmoSupportSmsNumber.GetHashCode(); + if (this.TwilioSupportSmsNumber != null) + hashCode = hashCode * 59 + this.TwilioSupportSmsNumber.GetHashCode(); + if (this.FallbackPhoneNumberPrefix != null) + hashCode = hashCode * 59 + this.FallbackPhoneNumberPrefix.GetHashCode(); + if (this.AutocompletePhoneNumberLength != null) + hashCode = hashCode * 59 + this.AutocompletePhoneNumberLength.GetHashCode(); + if (this.ContactFormType != null) + hashCode = hashCode * 59 + this.ContactFormType.GetHashCode(); + if (this.PrivateSupportEmailAddress != null) + hashCode = hashCode * 59 + this.PrivateSupportEmailAddress.GetHashCode(); + if (this.ContactPhoneNumber != null) + hashCode = hashCode * 59 + this.ContactPhoneNumber.GetHashCode(); + if (this.DeliveryEnabled != null) + hashCode = hashCode * 59 + this.DeliveryEnabled.GetHashCode(); + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.DineInEnabled != null) + hashCode = hashCode * 59 + this.DineInEnabled.GetHashCode(); + if (this.DisplayDeliveryRestaurantListScreen != null) + hashCode = hashCode * 59 + this.DisplayDeliveryRestaurantListScreen.GetHashCode(); + if (this.DisplayPickupRestaurantListScreen != null) + hashCode = hashCode * 59 + this.DisplayPickupRestaurantListScreen.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppInstall.cs b/src/Flipdish/Model/AppInstall.cs new file mode 100644 index 00000000..0e942bca --- /dev/null +++ b/src/Flipdish/Model/AppInstall.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App Install information + /// + [DataContract] + public partial class AppInstall : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the installed application.. + /// Date and time of the user's first login to the app.. + /// Human-readable representation of the first login date.. + /// Date and time of the user's last activity in the app.. + /// Human-readable representation of the last activity date.. + /// Number of Google push notification tokens associated with the app install.. + /// Number of Apple push notification tokens associated with the app install.. + /// Number of orders placed by the user through this app install.. + /// User agent string at the time of signup.. + /// Most recent user agent string used by the user.. + public AppInstall(string name = default(string), DateTime? firstLogin = default(DateTime?), string firstLoginHuman = default(string), DateTime? lastActivity = default(DateTime?), string lastActivityHuman = default(string), int? googleTokens = default(int?), int? appleTokens = default(int?), int? orderCount = default(int?), string userAgentAtSignup = default(string), string userAgentMostRecent = default(string)) + { + this.Name = name; + this.FirstLogin = firstLogin; + this.FirstLoginHuman = firstLoginHuman; + this.LastActivity = lastActivity; + this.LastActivityHuman = lastActivityHuman; + this.GoogleTokens = googleTokens; + this.AppleTokens = appleTokens; + this.OrderCount = orderCount; + this.UserAgentAtSignup = userAgentAtSignup; + this.UserAgentMostRecent = userAgentMostRecent; + } + + /// + /// Name of the installed application. + /// + /// Name of the installed application. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Date and time of the user's first login to the app. + /// + /// Date and time of the user's first login to the app. + [DataMember(Name="FirstLogin", EmitDefaultValue=false)] + public DateTime? FirstLogin { get; set; } + + /// + /// Human-readable representation of the first login date. + /// + /// Human-readable representation of the first login date. + [DataMember(Name="FirstLoginHuman", EmitDefaultValue=false)] + public string FirstLoginHuman { get; set; } + + /// + /// Date and time of the user's last activity in the app. + /// + /// Date and time of the user's last activity in the app. + [DataMember(Name="LastActivity", EmitDefaultValue=false)] + public DateTime? LastActivity { get; set; } + + /// + /// Human-readable representation of the last activity date. + /// + /// Human-readable representation of the last activity date. + [DataMember(Name="LastActivityHuman", EmitDefaultValue=false)] + public string LastActivityHuman { get; set; } + + /// + /// Number of Google push notification tokens associated with the app install. + /// + /// Number of Google push notification tokens associated with the app install. + [DataMember(Name="GoogleTokens", EmitDefaultValue=false)] + public int? GoogleTokens { get; set; } + + /// + /// Number of Apple push notification tokens associated with the app install. + /// + /// Number of Apple push notification tokens associated with the app install. + [DataMember(Name="AppleTokens", EmitDefaultValue=false)] + public int? AppleTokens { get; set; } + + /// + /// Number of orders placed by the user through this app install. + /// + /// Number of orders placed by the user through this app install. + [DataMember(Name="OrderCount", EmitDefaultValue=false)] + public int? OrderCount { get; set; } + + /// + /// User agent string at the time of signup. + /// + /// User agent string at the time of signup. + [DataMember(Name="UserAgentAtSignup", EmitDefaultValue=false)] + public string UserAgentAtSignup { get; set; } + + /// + /// Most recent user agent string used by the user. + /// + /// Most recent user agent string used by the user. + [DataMember(Name="UserAgentMostRecent", EmitDefaultValue=false)] + public string UserAgentMostRecent { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppInstall {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" FirstLogin: ").Append(FirstLogin).Append("\n"); + sb.Append(" FirstLoginHuman: ").Append(FirstLoginHuman).Append("\n"); + sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); + sb.Append(" LastActivityHuman: ").Append(LastActivityHuman).Append("\n"); + sb.Append(" GoogleTokens: ").Append(GoogleTokens).Append("\n"); + sb.Append(" AppleTokens: ").Append(AppleTokens).Append("\n"); + sb.Append(" OrderCount: ").Append(OrderCount).Append("\n"); + sb.Append(" UserAgentAtSignup: ").Append(UserAgentAtSignup).Append("\n"); + sb.Append(" UserAgentMostRecent: ").Append(UserAgentMostRecent).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppInstall); + } + + /// + /// Returns true if AppInstall instances are equal + /// + /// Instance of AppInstall to be compared + /// Boolean + public bool Equals(AppInstall input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.FirstLogin == input.FirstLogin || + (this.FirstLogin != null && + this.FirstLogin.Equals(input.FirstLogin)) + ) && + ( + this.FirstLoginHuman == input.FirstLoginHuman || + (this.FirstLoginHuman != null && + this.FirstLoginHuman.Equals(input.FirstLoginHuman)) + ) && + ( + this.LastActivity == input.LastActivity || + (this.LastActivity != null && + this.LastActivity.Equals(input.LastActivity)) + ) && + ( + this.LastActivityHuman == input.LastActivityHuman || + (this.LastActivityHuman != null && + this.LastActivityHuman.Equals(input.LastActivityHuman)) + ) && + ( + this.GoogleTokens == input.GoogleTokens || + (this.GoogleTokens != null && + this.GoogleTokens.Equals(input.GoogleTokens)) + ) && + ( + this.AppleTokens == input.AppleTokens || + (this.AppleTokens != null && + this.AppleTokens.Equals(input.AppleTokens)) + ) && + ( + this.OrderCount == input.OrderCount || + (this.OrderCount != null && + this.OrderCount.Equals(input.OrderCount)) + ) && + ( + this.UserAgentAtSignup == input.UserAgentAtSignup || + (this.UserAgentAtSignup != null && + this.UserAgentAtSignup.Equals(input.UserAgentAtSignup)) + ) && + ( + this.UserAgentMostRecent == input.UserAgentMostRecent || + (this.UserAgentMostRecent != null && + this.UserAgentMostRecent.Equals(input.UserAgentMostRecent)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.FirstLogin != null) + hashCode = hashCode * 59 + this.FirstLogin.GetHashCode(); + if (this.FirstLoginHuman != null) + hashCode = hashCode * 59 + this.FirstLoginHuman.GetHashCode(); + if (this.LastActivity != null) + hashCode = hashCode * 59 + this.LastActivity.GetHashCode(); + if (this.LastActivityHuman != null) + hashCode = hashCode * 59 + this.LastActivityHuman.GetHashCode(); + if (this.GoogleTokens != null) + hashCode = hashCode * 59 + this.GoogleTokens.GetHashCode(); + if (this.AppleTokens != null) + hashCode = hashCode * 59 + this.AppleTokens.GetHashCode(); + if (this.OrderCount != null) + hashCode = hashCode * 59 + this.OrderCount.GetHashCode(); + if (this.UserAgentAtSignup != null) + hashCode = hashCode * 59 + this.UserAgentAtSignup.GetHashCode(); + if (this.UserAgentMostRecent != null) + hashCode = hashCode * 59 + this.UserAgentMostRecent.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppLookup.cs b/src/Flipdish/Model/AppLookup.cs new file mode 100644 index 00000000..c8a5e445 --- /dev/null +++ b/src/Flipdish/Model/AppLookup.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App lookup model + /// + [DataContract] + public partial class AppLookup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// App id. + public AppLookup(string appId = default(string)) + { + this.AppId = appId; + } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppLookup {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppLookup); + } + + /// + /// Returns true if AppLookup instances are equal + /// + /// Instance of AppLookup to be compared + /// Boolean + public bool Equals(AppLookup input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreApp.cs b/src/Flipdish/Model/AppStoreApp.cs new file mode 100644 index 00000000..62b8afdb --- /dev/null +++ b/src/Flipdish/Model/AppStoreApp.cs @@ -0,0 +1,887 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreApp + /// + [DataContract] + public partial class AppStoreApp : IEquatable + { + /// + /// Defines VerificationStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationStatusEnum + { + + /// + /// Enum Draft for value: Draft + /// + [EnumMember(Value = "Draft")] + Draft = 1, + + /// + /// Enum Submitted for value: Submitted + /// + [EnumMember(Value = "Submitted")] + Submitted = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3 + } + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] + public VerificationStatusEnum VerificationStatus { get; set; } + /// + /// Defines ConfigurationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigurationTypeEnum + { + + /// + /// Enum ExternalLink for value: ExternalLink + /// + [EnumMember(Value = "ExternalLink")] + ExternalLink = 1, + + /// + /// Enum FlipdishHosted for value: FlipdishHosted + /// + [EnumMember(Value = "FlipdishHosted")] + FlipdishHosted = 2 + } + + /// + /// Gets or Sets ConfigurationType + /// + [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] + public ConfigurationTypeEnum ConfigurationType { get; set; } + /// + /// Defines StoreSelectorType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Gets or Sets StoreSelectorType + /// + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum StoreSelectorType { get; set; } + /// + /// Defines TeammateAppAccessLevel + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TeammateAppAccessLevelEnum + { + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 1, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 2, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 4, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 7, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 10, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 11 + } + + /// + /// Gets or Sets TeammateAppAccessLevel + /// + [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] + public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } + /// + /// Defines PermissionsType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PermissionsTypeEnum + { + + /// + /// Enum Teammate for value: Teammate + /// + [EnumMember(Value = "Teammate")] + Teammate = 1 + } + + /// + /// Gets or Sets PermissionsType + /// + [DataMember(Name="PermissionsType", EmitDefaultValue=false)] + public PermissionsTypeEnum PermissionsType { get; set; } + /// + /// Defines Categories + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoriesEnum + { + + /// + /// Enum PointOfSale for value: PointOfSale + /// + [EnumMember(Value = "PointOfSale")] + PointOfSale = 1, + + /// + /// Enum DeliveryAndLogistics for value: DeliveryAndLogistics + /// + [EnumMember(Value = "DeliveryAndLogistics")] + DeliveryAndLogistics = 2, + + /// + /// Enum CRM for value: CRM + /// + [EnumMember(Value = "CRM")] + CRM = 3, + + /// + /// Enum GiftCard for value: GiftCard + /// + [EnumMember(Value = "GiftCard")] + GiftCard = 4, + + /// + /// Enum Accounting for value: Accounting + /// + [EnumMember(Value = "Accounting")] + Accounting = 5, + + /// + /// Enum LoyaltyAndMarketing for value: LoyaltyAndMarketing + /// + [EnumMember(Value = "LoyaltyAndMarketing")] + LoyaltyAndMarketing = 6, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 7 + } + + + /// + /// Gets or Sets Categories + /// + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + /// + /// Defines Countries + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CountriesEnum + { + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 1, + + /// + /// Enum IE for value: IE + /// + [EnumMember(Value = "IE")] + IE = 2, + + /// + /// Enum FR for value: FR + /// + [EnumMember(Value = "FR")] + FR = 3, + + /// + /// Enum ES for value: ES + /// + [EnumMember(Value = "ES")] + ES = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] + PT = 5, + + /// + /// Enum IT for value: IT + /// + [EnumMember(Value = "IT")] + IT = 6, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 7, + + /// + /// Enum PL for value: PL + /// + [EnumMember(Value = "PL")] + PL = 8, + + /// + /// Enum BE for value: BE + /// + [EnumMember(Value = "BE")] + BE = 9, + + /// + /// Enum LU for value: LU + /// + [EnumMember(Value = "LU")] + LU = 10, + + /// + /// Enum NL for value: NL + /// + [EnumMember(Value = "NL")] + NL = 11, + + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 12, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 13, + + /// + /// Enum BG for value: BG + /// + [EnumMember(Value = "BG")] + BG = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 16, + + /// + /// Enum NZ for value: NZ + /// + [EnumMember(Value = "NZ")] + NZ = 17 + } + + + /// + /// Gets or Sets Countries + /// + [DataMember(Name="Countries", EmitDefaultValue=false)] + public List Countries { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AppStoreApp() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// verificationStatus (required). + /// logo. + /// oAuthAppId (required). + /// _internal (required). + /// details (required). + /// configurationType (required). + /// storeSelectorType (required). + /// fieldGroups. + /// setupInstructions. + /// externalSetupLink. + /// teammateAppAccessLevel. + /// permissionsType (required). + /// support. + /// externalFunctionActionUrl. + /// externalFunctionSignatureKey. + /// isPaid. + /// name (required). + /// description (required). + /// isEnabled. + /// categories (required). + /// countries (required). + /// developerName. + public AppStoreApp(string id = default(string), VerificationStatusEnum verificationStatus = default(VerificationStatusEnum), string logo = default(string), string oAuthAppId = default(string), bool? _internal = default(bool?), string details = default(string), ConfigurationTypeEnum configurationType = default(ConfigurationTypeEnum), StoreSelectorTypeEnum storeSelectorType = default(StoreSelectorTypeEnum), List fieldGroups = default(List), string setupInstructions = default(string), string externalSetupLink = default(string), TeammateAppAccessLevelEnum? teammateAppAccessLevel = default(TeammateAppAccessLevelEnum?), PermissionsTypeEnum permissionsType = default(PermissionsTypeEnum), AppStoreAppSupportInfo support = default(AppStoreAppSupportInfo), string externalFunctionActionUrl = default(string), string externalFunctionSignatureKey = default(string), bool? isPaid = default(bool?), string name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "verificationStatus" is required (not null) + if (verificationStatus == null) + { + throw new InvalidDataException("verificationStatus is a required property for AppStoreApp and cannot be null"); + } + else + { + this.VerificationStatus = verificationStatus; + } + // to ensure "oAuthAppId" is required (not null) + if (oAuthAppId == null) + { + throw new InvalidDataException("oAuthAppId is a required property for AppStoreApp and cannot be null"); + } + else + { + this.OAuthAppId = oAuthAppId; + } + // to ensure "_internal" is required (not null) + if (_internal == null) + { + throw new InvalidDataException("_internal is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Internal = _internal; + } + // to ensure "details" is required (not null) + if (details == null) + { + throw new InvalidDataException("details is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Details = details; + } + // to ensure "configurationType" is required (not null) + if (configurationType == null) + { + throw new InvalidDataException("configurationType is a required property for AppStoreApp and cannot be null"); + } + else + { + this.ConfigurationType = configurationType; + } + // to ensure "storeSelectorType" is required (not null) + if (storeSelectorType == null) + { + throw new InvalidDataException("storeSelectorType is a required property for AppStoreApp and cannot be null"); + } + else + { + this.StoreSelectorType = storeSelectorType; + } + // to ensure "permissionsType" is required (not null) + if (permissionsType == null) + { + throw new InvalidDataException("permissionsType is a required property for AppStoreApp and cannot be null"); + } + else + { + this.PermissionsType = permissionsType; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "categories" is required (not null) + if (categories == null) + { + throw new InvalidDataException("categories is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Categories = categories; + } + // to ensure "countries" is required (not null) + if (countries == null) + { + throw new InvalidDataException("countries is a required property for AppStoreApp and cannot be null"); + } + else + { + this.Countries = countries; + } + this.Logo = logo; + this.FieldGroups = fieldGroups; + this.SetupInstructions = setupInstructions; + this.ExternalSetupLink = externalSetupLink; + this.TeammateAppAccessLevel = teammateAppAccessLevel; + this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; + this.IsEnabled = isEnabled; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// Gets or Sets Logo + /// + [DataMember(Name="Logo", EmitDefaultValue=false)] + public string Logo { get; set; } + + /// + /// Gets or Sets OAuthAppId + /// + [DataMember(Name="OAuthAppId", EmitDefaultValue=false)] + public string OAuthAppId { get; set; } + + /// + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name="Details", EmitDefaultValue=false)] + public string Details { get; set; } + + + + /// + /// Gets or Sets FieldGroups + /// + [DataMember(Name="FieldGroups", EmitDefaultValue=false)] + public List FieldGroups { get; set; } + + /// + /// Gets or Sets SetupInstructions + /// + [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] + public string SetupInstructions { get; set; } + + /// + /// Gets or Sets ExternalSetupLink + /// + [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] + public string ExternalSetupLink { get; set; } + + + + /// + /// Gets or Sets Support + /// + [DataMember(Name="Support", EmitDefaultValue=false)] + public AppStoreAppSupportInfo Support { get; set; } + + /// + /// Gets or Sets ExternalFunctionActionUrl + /// + [DataMember(Name="ExternalFunctionActionUrl", EmitDefaultValue=false)] + public string ExternalFunctionActionUrl { get; set; } + + /// + /// Gets or Sets ExternalFunctionSignatureKey + /// + [DataMember(Name="ExternalFunctionSignatureKey", EmitDefaultValue=false)] + public string ExternalFunctionSignatureKey { get; set; } + + /// + /// Gets or Sets IsPaid + /// + [DataMember(Name="IsPaid", EmitDefaultValue=false)] + public bool? IsPaid { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreApp {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" Logo: ").Append(Logo).Append("\n"); + sb.Append(" OAuthAppId: ").Append(OAuthAppId).Append("\n"); + sb.Append(" Internal: ").Append(Internal).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" ConfigurationType: ").Append(ConfigurationType).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" FieldGroups: ").Append(FieldGroups).Append("\n"); + sb.Append(" SetupInstructions: ").Append(SetupInstructions).Append("\n"); + sb.Append(" ExternalSetupLink: ").Append(ExternalSetupLink).Append("\n"); + sb.Append(" TeammateAppAccessLevel: ").Append(TeammateAppAccessLevel).Append("\n"); + sb.Append(" PermissionsType: ").Append(PermissionsType).Append("\n"); + sb.Append(" Support: ").Append(Support).Append("\n"); + sb.Append(" ExternalFunctionActionUrl: ").Append(ExternalFunctionActionUrl).Append("\n"); + sb.Append(" ExternalFunctionSignatureKey: ").Append(ExternalFunctionSignatureKey).Append("\n"); + sb.Append(" IsPaid: ").Append(IsPaid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" Countries: ").Append(Countries).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreApp); + } + + /// + /// Returns true if AppStoreApp instances are equal + /// + /// Instance of AppStoreApp to be compared + /// Boolean + public bool Equals(AppStoreApp input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VerificationStatus == input.VerificationStatus || + (this.VerificationStatus != null && + this.VerificationStatus.Equals(input.VerificationStatus)) + ) && + ( + this.Logo == input.Logo || + (this.Logo != null && + this.Logo.Equals(input.Logo)) + ) && + ( + this.OAuthAppId == input.OAuthAppId || + (this.OAuthAppId != null && + this.OAuthAppId.Equals(input.OAuthAppId)) + ) && + ( + this.Internal == input.Internal || + (this.Internal != null && + this.Internal.Equals(input.Internal)) + ) && + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ) && + ( + this.ConfigurationType == input.ConfigurationType || + (this.ConfigurationType != null && + this.ConfigurationType.Equals(input.ConfigurationType)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.FieldGroups == input.FieldGroups || + this.FieldGroups != null && + this.FieldGroups.SequenceEqual(input.FieldGroups) + ) && + ( + this.SetupInstructions == input.SetupInstructions || + (this.SetupInstructions != null && + this.SetupInstructions.Equals(input.SetupInstructions)) + ) && + ( + this.ExternalSetupLink == input.ExternalSetupLink || + (this.ExternalSetupLink != null && + this.ExternalSetupLink.Equals(input.ExternalSetupLink)) + ) && + ( + this.TeammateAppAccessLevel == input.TeammateAppAccessLevel || + (this.TeammateAppAccessLevel != null && + this.TeammateAppAccessLevel.Equals(input.TeammateAppAccessLevel)) + ) && + ( + this.PermissionsType == input.PermissionsType || + (this.PermissionsType != null && + this.PermissionsType.Equals(input.PermissionsType)) + ) && + ( + this.Support == input.Support || + (this.Support != null && + this.Support.Equals(input.Support)) + ) && + ( + this.ExternalFunctionActionUrl == input.ExternalFunctionActionUrl || + (this.ExternalFunctionActionUrl != null && + this.ExternalFunctionActionUrl.Equals(input.ExternalFunctionActionUrl)) + ) && + ( + this.ExternalFunctionSignatureKey == input.ExternalFunctionSignatureKey || + (this.ExternalFunctionSignatureKey != null && + this.ExternalFunctionSignatureKey.Equals(input.ExternalFunctionSignatureKey)) + ) && + ( + this.IsPaid == input.IsPaid || + (this.IsPaid != null && + this.IsPaid.Equals(input.IsPaid)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.Categories == input.Categories || + this.Categories != null && + this.Categories.SequenceEqual(input.Categories) + ) && + ( + this.Countries == input.Countries || + this.Countries != null && + this.Countries.SequenceEqual(input.Countries) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VerificationStatus != null) + hashCode = hashCode * 59 + this.VerificationStatus.GetHashCode(); + if (this.Logo != null) + hashCode = hashCode * 59 + this.Logo.GetHashCode(); + if (this.OAuthAppId != null) + hashCode = hashCode * 59 + this.OAuthAppId.GetHashCode(); + if (this.Internal != null) + hashCode = hashCode * 59 + this.Internal.GetHashCode(); + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + if (this.ConfigurationType != null) + hashCode = hashCode * 59 + this.ConfigurationType.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.FieldGroups != null) + hashCode = hashCode * 59 + this.FieldGroups.GetHashCode(); + if (this.SetupInstructions != null) + hashCode = hashCode * 59 + this.SetupInstructions.GetHashCode(); + if (this.ExternalSetupLink != null) + hashCode = hashCode * 59 + this.ExternalSetupLink.GetHashCode(); + if (this.TeammateAppAccessLevel != null) + hashCode = hashCode * 59 + this.TeammateAppAccessLevel.GetHashCode(); + if (this.PermissionsType != null) + hashCode = hashCode * 59 + this.PermissionsType.GetHashCode(); + if (this.Support != null) + hashCode = hashCode * 59 + this.Support.GetHashCode(); + if (this.ExternalFunctionActionUrl != null) + hashCode = hashCode * 59 + this.ExternalFunctionActionUrl.GetHashCode(); + if (this.ExternalFunctionSignatureKey != null) + hashCode = hashCode * 59 + this.ExternalFunctionSignatureKey.GetHashCode(); + if (this.IsPaid != null) + hashCode = hashCode * 59 + this.IsPaid.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.Categories != null) + hashCode = hashCode * 59 + this.Categories.GetHashCode(); + if (this.Countries != null) + hashCode = hashCode * 59 + this.Countries.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreAppConfiguration.cs b/src/Flipdish/Model/AppStoreAppConfiguration.cs new file mode 100644 index 00000000..3d3c0c5c --- /dev/null +++ b/src/Flipdish/Model/AppStoreAppConfiguration.cs @@ -0,0 +1,975 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreAppConfiguration + /// + [DataContract] + public partial class AppStoreAppConfiguration : IEquatable + { + /// + /// Defines VerificationStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationStatusEnum + { + + /// + /// Enum Draft for value: Draft + /// + [EnumMember(Value = "Draft")] + Draft = 1, + + /// + /// Enum Submitted for value: Submitted + /// + [EnumMember(Value = "Submitted")] + Submitted = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3 + } + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] + public VerificationStatusEnum VerificationStatus { get; set; } + /// + /// Defines ConfigurationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigurationTypeEnum + { + + /// + /// Enum ExternalLink for value: ExternalLink + /// + [EnumMember(Value = "ExternalLink")] + ExternalLink = 1, + + /// + /// Enum FlipdishHosted for value: FlipdishHosted + /// + [EnumMember(Value = "FlipdishHosted")] + FlipdishHosted = 2 + } + + /// + /// Gets or Sets ConfigurationType + /// + [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] + public ConfigurationTypeEnum ConfigurationType { get; set; } + /// + /// Defines StoreSelectorType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Gets or Sets StoreSelectorType + /// + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum StoreSelectorType { get; set; } + /// + /// Defines TeammateAppAccessLevel + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TeammateAppAccessLevelEnum + { + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 1, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 2, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 4, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 7, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 10, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 11 + } + + /// + /// Gets or Sets TeammateAppAccessLevel + /// + [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] + public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } + /// + /// Defines PermissionsType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PermissionsTypeEnum + { + + /// + /// Enum Teammate for value: Teammate + /// + [EnumMember(Value = "Teammate")] + Teammate = 1 + } + + /// + /// Gets or Sets PermissionsType + /// + [DataMember(Name="PermissionsType", EmitDefaultValue=false)] + public PermissionsTypeEnum PermissionsType { get; set; } + /// + /// Defines Categories + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoriesEnum + { + + /// + /// Enum PointOfSale for value: PointOfSale + /// + [EnumMember(Value = "PointOfSale")] + PointOfSale = 1, + + /// + /// Enum DeliveryAndLogistics for value: DeliveryAndLogistics + /// + [EnumMember(Value = "DeliveryAndLogistics")] + DeliveryAndLogistics = 2, + + /// + /// Enum CRM for value: CRM + /// + [EnumMember(Value = "CRM")] + CRM = 3, + + /// + /// Enum GiftCard for value: GiftCard + /// + [EnumMember(Value = "GiftCard")] + GiftCard = 4, + + /// + /// Enum Accounting for value: Accounting + /// + [EnumMember(Value = "Accounting")] + Accounting = 5, + + /// + /// Enum LoyaltyAndMarketing for value: LoyaltyAndMarketing + /// + [EnumMember(Value = "LoyaltyAndMarketing")] + LoyaltyAndMarketing = 6, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 7 + } + + + /// + /// Gets or Sets Categories + /// + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + /// + /// Defines Countries + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CountriesEnum + { + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 1, + + /// + /// Enum IE for value: IE + /// + [EnumMember(Value = "IE")] + IE = 2, + + /// + /// Enum FR for value: FR + /// + [EnumMember(Value = "FR")] + FR = 3, + + /// + /// Enum ES for value: ES + /// + [EnumMember(Value = "ES")] + ES = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] + PT = 5, + + /// + /// Enum IT for value: IT + /// + [EnumMember(Value = "IT")] + IT = 6, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 7, + + /// + /// Enum PL for value: PL + /// + [EnumMember(Value = "PL")] + PL = 8, + + /// + /// Enum BE for value: BE + /// + [EnumMember(Value = "BE")] + BE = 9, + + /// + /// Enum LU for value: LU + /// + [EnumMember(Value = "LU")] + LU = 10, + + /// + /// Enum NL for value: NL + /// + [EnumMember(Value = "NL")] + NL = 11, + + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 12, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 13, + + /// + /// Enum BG for value: BG + /// + [EnumMember(Value = "BG")] + BG = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 16, + + /// + /// Enum NZ for value: NZ + /// + [EnumMember(Value = "NZ")] + NZ = 17 + } + + + /// + /// Gets or Sets Countries + /// + [DataMember(Name="Countries", EmitDefaultValue=false)] + public List Countries { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AppStoreAppConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// appId (required). + /// appStoreAppId (required). + /// isEnabled (required). + /// storeIds. + /// settings. + /// verificationStatus (required). + /// logo. + /// oAuthAppId (required). + /// _internal (required). + /// details (required). + /// configurationType (required). + /// storeSelectorType (required). + /// fieldGroups. + /// setupInstructions. + /// externalSetupLink. + /// teammateAppAccessLevel. + /// permissionsType (required). + /// support. + /// externalFunctionActionUrl. + /// externalFunctionSignatureKey. + /// isPaid. + /// name (required). + /// description (required). + /// categories (required). + /// countries (required). + /// developerName. + public AppStoreAppConfiguration(string id = default(string), string appId = default(string), string appStoreAppId = default(string), bool? isEnabled = default(bool?), List storeIds = default(List), List settings = default(List), VerificationStatusEnum verificationStatus = default(VerificationStatusEnum), string logo = default(string), string oAuthAppId = default(string), bool? _internal = default(bool?), string details = default(string), ConfigurationTypeEnum configurationType = default(ConfigurationTypeEnum), StoreSelectorTypeEnum storeSelectorType = default(StoreSelectorTypeEnum), List fieldGroups = default(List), string setupInstructions = default(string), string externalSetupLink = default(string), TeammateAppAccessLevelEnum? teammateAppAccessLevel = default(TeammateAppAccessLevelEnum?), PermissionsTypeEnum permissionsType = default(PermissionsTypeEnum), AppStoreAppSupportInfo support = default(AppStoreAppSupportInfo), string externalFunctionActionUrl = default(string), string externalFunctionSignatureKey = default(string), bool? isPaid = default(bool?), string name = default(string), string description = default(string), List categories = default(List), List countries = default(List), string developerName = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "appId" is required (not null) + if (appId == null) + { + throw new InvalidDataException("appId is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.AppId = appId; + } + // to ensure "appStoreAppId" is required (not null) + if (appStoreAppId == null) + { + throw new InvalidDataException("appStoreAppId is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.AppStoreAppId = appStoreAppId; + } + // to ensure "isEnabled" is required (not null) + if (isEnabled == null) + { + throw new InvalidDataException("isEnabled is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.IsEnabled = isEnabled; + } + // to ensure "verificationStatus" is required (not null) + if (verificationStatus == null) + { + throw new InvalidDataException("verificationStatus is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.VerificationStatus = verificationStatus; + } + // to ensure "oAuthAppId" is required (not null) + if (oAuthAppId == null) + { + throw new InvalidDataException("oAuthAppId is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.OAuthAppId = oAuthAppId; + } + // to ensure "_internal" is required (not null) + if (_internal == null) + { + throw new InvalidDataException("_internal is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Internal = _internal; + } + // to ensure "details" is required (not null) + if (details == null) + { + throw new InvalidDataException("details is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Details = details; + } + // to ensure "configurationType" is required (not null) + if (configurationType == null) + { + throw new InvalidDataException("configurationType is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.ConfigurationType = configurationType; + } + // to ensure "storeSelectorType" is required (not null) + if (storeSelectorType == null) + { + throw new InvalidDataException("storeSelectorType is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.StoreSelectorType = storeSelectorType; + } + // to ensure "permissionsType" is required (not null) + if (permissionsType == null) + { + throw new InvalidDataException("permissionsType is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.PermissionsType = permissionsType; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "categories" is required (not null) + if (categories == null) + { + throw new InvalidDataException("categories is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Categories = categories; + } + // to ensure "countries" is required (not null) + if (countries == null) + { + throw new InvalidDataException("countries is a required property for AppStoreAppConfiguration and cannot be null"); + } + else + { + this.Countries = countries; + } + this.StoreIds = storeIds; + this.Settings = settings; + this.Logo = logo; + this.FieldGroups = fieldGroups; + this.SetupInstructions = setupInstructions; + this.ExternalSetupLink = externalSetupLink; + this.TeammateAppAccessLevel = teammateAppAccessLevel; + this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets AppId + /// + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Gets or Sets AppStoreAppId + /// + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Gets or Sets StoreIds + /// + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Gets or Sets Settings + /// + [DataMember(Name="Settings", EmitDefaultValue=false)] + public List Settings { get; set; } + + + /// + /// Gets or Sets Logo + /// + [DataMember(Name="Logo", EmitDefaultValue=false)] + public string Logo { get; set; } + + /// + /// Gets or Sets OAuthAppId + /// + [DataMember(Name="OAuthAppId", EmitDefaultValue=false)] + public string OAuthAppId { get; set; } + + /// + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name="Details", EmitDefaultValue=false)] + public string Details { get; set; } + + + + /// + /// Gets or Sets FieldGroups + /// + [DataMember(Name="FieldGroups", EmitDefaultValue=false)] + public List FieldGroups { get; set; } + + /// + /// Gets or Sets SetupInstructions + /// + [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] + public string SetupInstructions { get; set; } + + /// + /// Gets or Sets ExternalSetupLink + /// + [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] + public string ExternalSetupLink { get; set; } + + + + /// + /// Gets or Sets Support + /// + [DataMember(Name="Support", EmitDefaultValue=false)] + public AppStoreAppSupportInfo Support { get; set; } + + /// + /// Gets or Sets ExternalFunctionActionUrl + /// + [DataMember(Name="ExternalFunctionActionUrl", EmitDefaultValue=false)] + public string ExternalFunctionActionUrl { get; set; } + + /// + /// Gets or Sets ExternalFunctionSignatureKey + /// + [DataMember(Name="ExternalFunctionSignatureKey", EmitDefaultValue=false)] + public string ExternalFunctionSignatureKey { get; set; } + + /// + /// Gets or Sets IsPaid + /// + [DataMember(Name="IsPaid", EmitDefaultValue=false)] + public bool? IsPaid { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreAppConfiguration {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" Settings: ").Append(Settings).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" Logo: ").Append(Logo).Append("\n"); + sb.Append(" OAuthAppId: ").Append(OAuthAppId).Append("\n"); + sb.Append(" Internal: ").Append(Internal).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" ConfigurationType: ").Append(ConfigurationType).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" FieldGroups: ").Append(FieldGroups).Append("\n"); + sb.Append(" SetupInstructions: ").Append(SetupInstructions).Append("\n"); + sb.Append(" ExternalSetupLink: ").Append(ExternalSetupLink).Append("\n"); + sb.Append(" TeammateAppAccessLevel: ").Append(TeammateAppAccessLevel).Append("\n"); + sb.Append(" PermissionsType: ").Append(PermissionsType).Append("\n"); + sb.Append(" Support: ").Append(Support).Append("\n"); + sb.Append(" ExternalFunctionActionUrl: ").Append(ExternalFunctionActionUrl).Append("\n"); + sb.Append(" ExternalFunctionSignatureKey: ").Append(ExternalFunctionSignatureKey).Append("\n"); + sb.Append(" IsPaid: ").Append(IsPaid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" Countries: ").Append(Countries).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreAppConfiguration); + } + + /// + /// Returns true if AppStoreAppConfiguration instances are equal + /// + /// Instance of AppStoreAppConfiguration to be compared + /// Boolean + public bool Equals(AppStoreAppConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.Settings == input.Settings || + this.Settings != null && + this.Settings.SequenceEqual(input.Settings) + ) && + ( + this.VerificationStatus == input.VerificationStatus || + (this.VerificationStatus != null && + this.VerificationStatus.Equals(input.VerificationStatus)) + ) && + ( + this.Logo == input.Logo || + (this.Logo != null && + this.Logo.Equals(input.Logo)) + ) && + ( + this.OAuthAppId == input.OAuthAppId || + (this.OAuthAppId != null && + this.OAuthAppId.Equals(input.OAuthAppId)) + ) && + ( + this.Internal == input.Internal || + (this.Internal != null && + this.Internal.Equals(input.Internal)) + ) && + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ) && + ( + this.ConfigurationType == input.ConfigurationType || + (this.ConfigurationType != null && + this.ConfigurationType.Equals(input.ConfigurationType)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.FieldGroups == input.FieldGroups || + this.FieldGroups != null && + this.FieldGroups.SequenceEqual(input.FieldGroups) + ) && + ( + this.SetupInstructions == input.SetupInstructions || + (this.SetupInstructions != null && + this.SetupInstructions.Equals(input.SetupInstructions)) + ) && + ( + this.ExternalSetupLink == input.ExternalSetupLink || + (this.ExternalSetupLink != null && + this.ExternalSetupLink.Equals(input.ExternalSetupLink)) + ) && + ( + this.TeammateAppAccessLevel == input.TeammateAppAccessLevel || + (this.TeammateAppAccessLevel != null && + this.TeammateAppAccessLevel.Equals(input.TeammateAppAccessLevel)) + ) && + ( + this.PermissionsType == input.PermissionsType || + (this.PermissionsType != null && + this.PermissionsType.Equals(input.PermissionsType)) + ) && + ( + this.Support == input.Support || + (this.Support != null && + this.Support.Equals(input.Support)) + ) && + ( + this.ExternalFunctionActionUrl == input.ExternalFunctionActionUrl || + (this.ExternalFunctionActionUrl != null && + this.ExternalFunctionActionUrl.Equals(input.ExternalFunctionActionUrl)) + ) && + ( + this.ExternalFunctionSignatureKey == input.ExternalFunctionSignatureKey || + (this.ExternalFunctionSignatureKey != null && + this.ExternalFunctionSignatureKey.Equals(input.ExternalFunctionSignatureKey)) + ) && + ( + this.IsPaid == input.IsPaid || + (this.IsPaid != null && + this.IsPaid.Equals(input.IsPaid)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Categories == input.Categories || + this.Categories != null && + this.Categories.SequenceEqual(input.Categories) + ) && + ( + this.Countries == input.Countries || + this.Countries != null && + this.Countries.SequenceEqual(input.Countries) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.Settings != null) + hashCode = hashCode * 59 + this.Settings.GetHashCode(); + if (this.VerificationStatus != null) + hashCode = hashCode * 59 + this.VerificationStatus.GetHashCode(); + if (this.Logo != null) + hashCode = hashCode * 59 + this.Logo.GetHashCode(); + if (this.OAuthAppId != null) + hashCode = hashCode * 59 + this.OAuthAppId.GetHashCode(); + if (this.Internal != null) + hashCode = hashCode * 59 + this.Internal.GetHashCode(); + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + if (this.ConfigurationType != null) + hashCode = hashCode * 59 + this.ConfigurationType.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.FieldGroups != null) + hashCode = hashCode * 59 + this.FieldGroups.GetHashCode(); + if (this.SetupInstructions != null) + hashCode = hashCode * 59 + this.SetupInstructions.GetHashCode(); + if (this.ExternalSetupLink != null) + hashCode = hashCode * 59 + this.ExternalSetupLink.GetHashCode(); + if (this.TeammateAppAccessLevel != null) + hashCode = hashCode * 59 + this.TeammateAppAccessLevel.GetHashCode(); + if (this.PermissionsType != null) + hashCode = hashCode * 59 + this.PermissionsType.GetHashCode(); + if (this.Support != null) + hashCode = hashCode * 59 + this.Support.GetHashCode(); + if (this.ExternalFunctionActionUrl != null) + hashCode = hashCode * 59 + this.ExternalFunctionActionUrl.GetHashCode(); + if (this.ExternalFunctionSignatureKey != null) + hashCode = hashCode * 59 + this.ExternalFunctionSignatureKey.GetHashCode(); + if (this.IsPaid != null) + hashCode = hashCode * 59 + this.IsPaid.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Categories != null) + hashCode = hashCode * 59 + this.Categories.GetHashCode(); + if (this.Countries != null) + hashCode = hashCode * 59 + this.Countries.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs b/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs new file mode 100644 index 00000000..9d774115 --- /dev/null +++ b/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs @@ -0,0 +1,419 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreAppConfigurationSummary + /// + [DataContract] + public partial class AppStoreAppConfigurationSummary : IEquatable + { + /// + /// Defines ConfigurationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigurationTypeEnum + { + + /// + /// Enum ExternalLink for value: ExternalLink + /// + [EnumMember(Value = "ExternalLink")] + ExternalLink = 1, + + /// + /// Enum FlipdishHosted for value: FlipdishHosted + /// + [EnumMember(Value = "FlipdishHosted")] + FlipdishHosted = 2 + } + + /// + /// Gets or Sets ConfigurationType + /// + [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] + public ConfigurationTypeEnum ConfigurationType { get; set; } + /// + /// Defines StoreSelectorType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Gets or Sets StoreSelectorType + /// + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum StoreSelectorType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AppStoreAppConfigurationSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// appId (required). + /// isEnabled (required). + /// stores (required). + /// configurationType (required). + /// storeSelectorType (required). + /// _internal (required). + /// appStoreAppId (required). + /// name (required). + /// description (required). + /// logo. + /// developerName. + public AppStoreAppConfigurationSummary(string id = default(string), string appId = default(string), bool? isEnabled = default(bool?), List stores = default(List), ConfigurationTypeEnum configurationType = default(ConfigurationTypeEnum), StoreSelectorTypeEnum storeSelectorType = default(StoreSelectorTypeEnum), bool? _internal = default(bool?), string appStoreAppId = default(string), string name = default(string), string description = default(string), string logo = default(string), string developerName = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "appId" is required (not null) + if (appId == null) + { + throw new InvalidDataException("appId is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.AppId = appId; + } + // to ensure "isEnabled" is required (not null) + if (isEnabled == null) + { + throw new InvalidDataException("isEnabled is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.IsEnabled = isEnabled; + } + // to ensure "stores" is required (not null) + if (stores == null) + { + throw new InvalidDataException("stores is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Stores = stores; + } + // to ensure "configurationType" is required (not null) + if (configurationType == null) + { + throw new InvalidDataException("configurationType is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.ConfigurationType = configurationType; + } + // to ensure "storeSelectorType" is required (not null) + if (storeSelectorType == null) + { + throw new InvalidDataException("storeSelectorType is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.StoreSelectorType = storeSelectorType; + } + // to ensure "_internal" is required (not null) + if (_internal == null) + { + throw new InvalidDataException("_internal is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Internal = _internal; + } + // to ensure "appStoreAppId" is required (not null) + if (appStoreAppId == null) + { + throw new InvalidDataException("appStoreAppId is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.AppStoreAppId = appStoreAppId; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for AppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Description = description; + } + this.Logo = logo; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets AppId + /// + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Gets or Sets Stores + /// + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + + + /// + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets AppStoreAppId + /// + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets Logo + /// + [DataMember(Name="Logo", EmitDefaultValue=false)] + public string Logo { get; set; } + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreAppConfigurationSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" ConfigurationType: ").Append(ConfigurationType).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" Internal: ").Append(Internal).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Logo: ").Append(Logo).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreAppConfigurationSummary); + } + + /// + /// Returns true if AppStoreAppConfigurationSummary instances are equal + /// + /// Instance of AppStoreAppConfigurationSummary to be compared + /// Boolean + public bool Equals(AppStoreAppConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.ConfigurationType == input.ConfigurationType || + (this.ConfigurationType != null && + this.ConfigurationType.Equals(input.ConfigurationType)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.Internal == input.Internal || + (this.Internal != null && + this.Internal.Equals(input.Internal)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Logo == input.Logo || + (this.Logo != null && + this.Logo.Equals(input.Logo)) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.ConfigurationType != null) + hashCode = hashCode * 59 + this.ConfigurationType.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.Internal != null) + hashCode = hashCode * 59 + this.Internal.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Logo != null) + hashCode = hashCode * 59 + this.Logo.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreAppEntitlements.cs b/src/Flipdish/Model/AppStoreAppEntitlements.cs new file mode 100644 index 00000000..ea37a9ac --- /dev/null +++ b/src/Flipdish/Model/AppStoreAppEntitlements.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreAppEntitlements + /// + [DataContract] + public partial class AppStoreAppEntitlements : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// entitlementQuantity. + /// currentUsage. + public AppStoreAppEntitlements(int? entitlementQuantity = default(int?), int? currentUsage = default(int?)) + { + this.EntitlementQuantity = entitlementQuantity; + this.CurrentUsage = currentUsage; + } + + /// + /// Gets or Sets EntitlementQuantity + /// + [DataMember(Name="EntitlementQuantity", EmitDefaultValue=false)] + public int? EntitlementQuantity { get; set; } + + /// + /// Gets or Sets CurrentUsage + /// + [DataMember(Name="CurrentUsage", EmitDefaultValue=false)] + public int? CurrentUsage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreAppEntitlements {\n"); + sb.Append(" EntitlementQuantity: ").Append(EntitlementQuantity).Append("\n"); + sb.Append(" CurrentUsage: ").Append(CurrentUsage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreAppEntitlements); + } + + /// + /// Returns true if AppStoreAppEntitlements instances are equal + /// + /// Instance of AppStoreAppEntitlements to be compared + /// Boolean + public bool Equals(AppStoreAppEntitlements input) + { + if (input == null) + return false; + + return + ( + this.EntitlementQuantity == input.EntitlementQuantity || + (this.EntitlementQuantity != null && + this.EntitlementQuantity.Equals(input.EntitlementQuantity)) + ) && + ( + this.CurrentUsage == input.CurrentUsage || + (this.CurrentUsage != null && + this.CurrentUsage.Equals(input.CurrentUsage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EntitlementQuantity != null) + hashCode = hashCode * 59 + this.EntitlementQuantity.GetHashCode(); + if (this.CurrentUsage != null) + hashCode = hashCode * 59 + this.CurrentUsage.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreAppSummary.cs b/src/Flipdish/Model/AppStoreAppSummary.cs new file mode 100644 index 00000000..d2771060 --- /dev/null +++ b/src/Flipdish/Model/AppStoreAppSummary.cs @@ -0,0 +1,505 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreAppSummary + /// + [DataContract] + public partial class AppStoreAppSummary : IEquatable + { + /// + /// Defines VerificationStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationStatusEnum + { + + /// + /// Enum Draft for value: Draft + /// + [EnumMember(Value = "Draft")] + Draft = 1, + + /// + /// Enum Submitted for value: Submitted + /// + [EnumMember(Value = "Submitted")] + Submitted = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3 + } + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] + public VerificationStatusEnum VerificationStatus { get; set; } + /// + /// Defines Categories + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoriesEnum + { + + /// + /// Enum PointOfSale for value: PointOfSale + /// + [EnumMember(Value = "PointOfSale")] + PointOfSale = 1, + + /// + /// Enum DeliveryAndLogistics for value: DeliveryAndLogistics + /// + [EnumMember(Value = "DeliveryAndLogistics")] + DeliveryAndLogistics = 2, + + /// + /// Enum CRM for value: CRM + /// + [EnumMember(Value = "CRM")] + CRM = 3, + + /// + /// Enum GiftCard for value: GiftCard + /// + [EnumMember(Value = "GiftCard")] + GiftCard = 4, + + /// + /// Enum Accounting for value: Accounting + /// + [EnumMember(Value = "Accounting")] + Accounting = 5, + + /// + /// Enum LoyaltyAndMarketing for value: LoyaltyAndMarketing + /// + [EnumMember(Value = "LoyaltyAndMarketing")] + LoyaltyAndMarketing = 6, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 7 + } + + + /// + /// Gets or Sets Categories + /// + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + /// + /// Defines Countries + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CountriesEnum + { + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 1, + + /// + /// Enum IE for value: IE + /// + [EnumMember(Value = "IE")] + IE = 2, + + /// + /// Enum FR for value: FR + /// + [EnumMember(Value = "FR")] + FR = 3, + + /// + /// Enum ES for value: ES + /// + [EnumMember(Value = "ES")] + ES = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] + PT = 5, + + /// + /// Enum IT for value: IT + /// + [EnumMember(Value = "IT")] + IT = 6, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 7, + + /// + /// Enum PL for value: PL + /// + [EnumMember(Value = "PL")] + PL = 8, + + /// + /// Enum BE for value: BE + /// + [EnumMember(Value = "BE")] + BE = 9, + + /// + /// Enum LU for value: LU + /// + [EnumMember(Value = "LU")] + LU = 10, + + /// + /// Enum NL for value: NL + /// + [EnumMember(Value = "NL")] + NL = 11, + + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 12, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 13, + + /// + /// Enum BG for value: BG + /// + [EnumMember(Value = "BG")] + BG = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 16, + + /// + /// Enum NZ for value: NZ + /// + [EnumMember(Value = "NZ")] + NZ = 17 + } + + + /// + /// Gets or Sets Countries + /// + [DataMember(Name="Countries", EmitDefaultValue=false)] + public List Countries { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AppStoreAppSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// verificationStatus (required). + /// logo. + /// _internal (required). + /// name (required). + /// description (required). + /// isEnabled. + /// categories (required). + /// countries (required). + /// developerName. + public AppStoreAppSummary(string id = default(string), VerificationStatusEnum verificationStatus = default(VerificationStatusEnum), string logo = default(string), bool? _internal = default(bool?), string name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "verificationStatus" is required (not null) + if (verificationStatus == null) + { + throw new InvalidDataException("verificationStatus is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.VerificationStatus = verificationStatus; + } + // to ensure "_internal" is required (not null) + if (_internal == null) + { + throw new InvalidDataException("_internal is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Internal = _internal; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "categories" is required (not null) + if (categories == null) + { + throw new InvalidDataException("categories is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Categories = categories; + } + // to ensure "countries" is required (not null) + if (countries == null) + { + throw new InvalidDataException("countries is a required property for AppStoreAppSummary and cannot be null"); + } + else + { + this.Countries = countries; + } + this.Logo = logo; + this.IsEnabled = isEnabled; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// Gets or Sets Logo + /// + [DataMember(Name="Logo", EmitDefaultValue=false)] + public string Logo { get; set; } + + /// + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreAppSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" Logo: ").Append(Logo).Append("\n"); + sb.Append(" Internal: ").Append(Internal).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" Countries: ").Append(Countries).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreAppSummary); + } + + /// + /// Returns true if AppStoreAppSummary instances are equal + /// + /// Instance of AppStoreAppSummary to be compared + /// Boolean + public bool Equals(AppStoreAppSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VerificationStatus == input.VerificationStatus || + (this.VerificationStatus != null && + this.VerificationStatus.Equals(input.VerificationStatus)) + ) && + ( + this.Logo == input.Logo || + (this.Logo != null && + this.Logo.Equals(input.Logo)) + ) && + ( + this.Internal == input.Internal || + (this.Internal != null && + this.Internal.Equals(input.Internal)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.Categories == input.Categories || + this.Categories != null && + this.Categories.SequenceEqual(input.Categories) + ) && + ( + this.Countries == input.Countries || + this.Countries != null && + this.Countries.SequenceEqual(input.Countries) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VerificationStatus != null) + hashCode = hashCode * 59 + this.VerificationStatus.GetHashCode(); + if (this.Logo != null) + hashCode = hashCode * 59 + this.Logo.GetHashCode(); + if (this.Internal != null) + hashCode = hashCode * 59 + this.Internal.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.Categories != null) + hashCode = hashCode * 59 + this.Categories.GetHashCode(); + if (this.Countries != null) + hashCode = hashCode * 59 + this.Countries.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreAppSupportInfo.cs b/src/Flipdish/Model/AppStoreAppSupportInfo.cs new file mode 100644 index 00000000..9e43c588 --- /dev/null +++ b/src/Flipdish/Model/AppStoreAppSupportInfo.cs @@ -0,0 +1,192 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStoreAppSupportInfo + /// + [DataContract] + public partial class AppStoreAppSupportInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// privacyPolicy. + /// termsOfUse. + /// companyWebsite. + /// learnMore. + /// installationMessage. + /// supportEmail. + public AppStoreAppSupportInfo(string privacyPolicy = default(string), string termsOfUse = default(string), string companyWebsite = default(string), string learnMore = default(string), string installationMessage = default(string), string supportEmail = default(string)) + { + this.PrivacyPolicy = privacyPolicy; + this.TermsOfUse = termsOfUse; + this.CompanyWebsite = companyWebsite; + this.LearnMore = learnMore; + this.InstallationMessage = installationMessage; + this.SupportEmail = supportEmail; + } + + /// + /// Gets or Sets PrivacyPolicy + /// + [DataMember(Name="PrivacyPolicy", EmitDefaultValue=false)] + public string PrivacyPolicy { get; set; } + + /// + /// Gets or Sets TermsOfUse + /// + [DataMember(Name="TermsOfUse", EmitDefaultValue=false)] + public string TermsOfUse { get; set; } + + /// + /// Gets or Sets CompanyWebsite + /// + [DataMember(Name="CompanyWebsite", EmitDefaultValue=false)] + public string CompanyWebsite { get; set; } + + /// + /// Gets or Sets LearnMore + /// + [DataMember(Name="LearnMore", EmitDefaultValue=false)] + public string LearnMore { get; set; } + + /// + /// Gets or Sets InstallationMessage + /// + [DataMember(Name="InstallationMessage", EmitDefaultValue=false)] + public string InstallationMessage { get; set; } + + /// + /// Gets or Sets SupportEmail + /// + [DataMember(Name="SupportEmail", EmitDefaultValue=false)] + public string SupportEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreAppSupportInfo {\n"); + sb.Append(" PrivacyPolicy: ").Append(PrivacyPolicy).Append("\n"); + sb.Append(" TermsOfUse: ").Append(TermsOfUse).Append("\n"); + sb.Append(" CompanyWebsite: ").Append(CompanyWebsite).Append("\n"); + sb.Append(" LearnMore: ").Append(LearnMore).Append("\n"); + sb.Append(" InstallationMessage: ").Append(InstallationMessage).Append("\n"); + sb.Append(" SupportEmail: ").Append(SupportEmail).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreAppSupportInfo); + } + + /// + /// Returns true if AppStoreAppSupportInfo instances are equal + /// + /// Instance of AppStoreAppSupportInfo to be compared + /// Boolean + public bool Equals(AppStoreAppSupportInfo input) + { + if (input == null) + return false; + + return + ( + this.PrivacyPolicy == input.PrivacyPolicy || + (this.PrivacyPolicy != null && + this.PrivacyPolicy.Equals(input.PrivacyPolicy)) + ) && + ( + this.TermsOfUse == input.TermsOfUse || + (this.TermsOfUse != null && + this.TermsOfUse.Equals(input.TermsOfUse)) + ) && + ( + this.CompanyWebsite == input.CompanyWebsite || + (this.CompanyWebsite != null && + this.CompanyWebsite.Equals(input.CompanyWebsite)) + ) && + ( + this.LearnMore == input.LearnMore || + (this.LearnMore != null && + this.LearnMore.Equals(input.LearnMore)) + ) && + ( + this.InstallationMessage == input.InstallationMessage || + (this.InstallationMessage != null && + this.InstallationMessage.Equals(input.InstallationMessage)) + ) && + ( + this.SupportEmail == input.SupportEmail || + (this.SupportEmail != null && + this.SupportEmail.Equals(input.SupportEmail)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PrivacyPolicy != null) + hashCode = hashCode * 59 + this.PrivacyPolicy.GetHashCode(); + if (this.TermsOfUse != null) + hashCode = hashCode * 59 + this.TermsOfUse.GetHashCode(); + if (this.CompanyWebsite != null) + hashCode = hashCode * 59 + this.CompanyWebsite.GetHashCode(); + if (this.LearnMore != null) + hashCode = hashCode * 59 + this.LearnMore.GetHashCode(); + if (this.InstallationMessage != null) + hashCode = hashCode * 59 + this.InstallationMessage.GetHashCode(); + if (this.SupportEmail != null) + hashCode = hashCode * 59 + this.SupportEmail.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs b/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs new file mode 100644 index 00000000..7b4d2192 --- /dev/null +++ b/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStore Config Created event + /// + [DataContract] + public partial class AppStoreConfigCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// App Store App Id. + /// App Store Configuration Id. + /// User who has created the configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppStoreConfigCreatedEvent(string eventName = default(string), string appStoreAppId = default(string), string appStoreAppConfigurationId = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.AppStoreAppId = appStoreAppId; + this.AppStoreAppConfigurationId = appStoreAppConfigurationId; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// App Store App Id + /// + /// App Store App Id + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// App Store Configuration Id + /// + /// App Store Configuration Id + [DataMember(Name="AppStoreAppConfigurationId", EmitDefaultValue=false)] + public string AppStoreAppConfigurationId { get; set; } + + /// + /// User who has created the configuration + /// + /// User who has created the configuration + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreConfigCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" AppStoreAppConfigurationId: ").Append(AppStoreAppConfigurationId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreConfigCreatedEvent); + } + + /// + /// Returns true if AppStoreConfigCreatedEvent instances are equal + /// + /// Instance of AppStoreConfigCreatedEvent to be compared + /// Boolean + public bool Equals(AppStoreConfigCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.AppStoreAppConfigurationId == input.AppStoreAppConfigurationId || + (this.AppStoreAppConfigurationId != null && + this.AppStoreAppConfigurationId.Equals(input.AppStoreAppConfigurationId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.AppStoreAppConfigurationId != null) + hashCode = hashCode * 59 + this.AppStoreAppConfigurationId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreConfigDeletedEvent.cs b/src/Flipdish/Model/AppStoreConfigDeletedEvent.cs new file mode 100644 index 00000000..e29d5288 --- /dev/null +++ b/src/Flipdish/Model/AppStoreConfigDeletedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStore Config Deleted event + /// + [DataContract] + public partial class AppStoreConfigDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// App Store Id. + /// App Store Configuration Id. + /// User who has deleted the configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppStoreConfigDeletedEvent(string eventName = default(string), string appStoreAppId = default(string), string appStoreAppConfigurationId = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.AppStoreAppId = appStoreAppId; + this.AppStoreAppConfigurationId = appStoreAppConfigurationId; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// App Store Id + /// + /// App Store Id + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// App Store Configuration Id + /// + /// App Store Configuration Id + [DataMember(Name="AppStoreAppConfigurationId", EmitDefaultValue=false)] + public string AppStoreAppConfigurationId { get; set; } + + /// + /// User who has deleted the configuration + /// + /// User who has deleted the configuration + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreConfigDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" AppStoreAppConfigurationId: ").Append(AppStoreAppConfigurationId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreConfigDeletedEvent); + } + + /// + /// Returns true if AppStoreConfigDeletedEvent instances are equal + /// + /// Instance of AppStoreConfigDeletedEvent to be compared + /// Boolean + public bool Equals(AppStoreConfigDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.AppStoreAppConfigurationId == input.AppStoreAppConfigurationId || + (this.AppStoreAppConfigurationId != null && + this.AppStoreAppConfigurationId.Equals(input.AppStoreAppConfigurationId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.AppStoreAppConfigurationId != null) + hashCode = hashCode * 59 + this.AppStoreAppConfigurationId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreConfigModel.cs b/src/Flipdish/Model/AppStoreConfigModel.cs new file mode 100644 index 00000000..076512b0 --- /dev/null +++ b/src/Flipdish/Model/AppStoreConfigModel.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// App Store configuration model + /// + [DataContract] + public partial class AppStoreConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label ID. + /// Ready to publish to app store. + /// App store name. + /// App Store Apple ID. + /// App Store URL. + /// App Store ID. + /// App Store password. + /// Team ID. + /// App Group ID. + /// Bundle ID. + /// App Store signing identity. + /// App Store token. + /// App Store merchant ID. + /// P8 private key. + /// P8 private key ID. + public AppStoreConfigModel(int? whiteLabelId = default(int?), bool? readyToPublishToAppStore = default(bool?), string appStoreName = default(string), string appStoreAppleId = default(string), string appStoreUrl = default(string), string appStoreId = default(string), string appStorePassword = default(string), string teamId = default(string), string appGroupId = default(string), string bundleId = default(string), string appStoreSigningIdentity = default(string), string appStoreToken = default(string), string appStoreMerchantId = default(string), string p8PrivateKey = default(string), string p8PrivateKeyId = default(string)) + { + this.WhiteLabelId = whiteLabelId; + this.ReadyToPublishToAppStore = readyToPublishToAppStore; + this.AppStoreName = appStoreName; + this.AppStoreAppleId = appStoreAppleId; + this.AppStoreUrl = appStoreUrl; + this.AppStoreId = appStoreId; + this.AppStorePassword = appStorePassword; + this.TeamId = teamId; + this.AppGroupId = appGroupId; + this.BundleId = bundleId; + this.AppStoreSigningIdentity = appStoreSigningIdentity; + this.AppStoreToken = appStoreToken; + this.AppStoreMerchantId = appStoreMerchantId; + this.P8PrivateKey = p8PrivateKey; + this.P8PrivateKeyId = p8PrivateKeyId; + } + + /// + /// White label ID + /// + /// White label ID + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// Ready to publish to app store + /// + /// Ready to publish to app store + [DataMember(Name="ReadyToPublishToAppStore", EmitDefaultValue=false)] + public bool? ReadyToPublishToAppStore { get; set; } + + /// + /// App store name + /// + /// App store name + [DataMember(Name="AppStoreName", EmitDefaultValue=false)] + public string AppStoreName { get; set; } + + /// + /// App Store Apple ID + /// + /// App Store Apple ID + [DataMember(Name="AppStoreAppleId", EmitDefaultValue=false)] + public string AppStoreAppleId { get; set; } + + /// + /// App Store URL + /// + /// App Store URL + [DataMember(Name="AppStoreUrl", EmitDefaultValue=false)] + public string AppStoreUrl { get; set; } + + /// + /// App Store ID + /// + /// App Store ID + [DataMember(Name="AppStoreId", EmitDefaultValue=false)] + public string AppStoreId { get; set; } + + /// + /// App Store password + /// + /// App Store password + [DataMember(Name="AppStorePassword", EmitDefaultValue=false)] + public string AppStorePassword { get; set; } + + /// + /// Team ID + /// + /// Team ID + [DataMember(Name="TeamId", EmitDefaultValue=false)] + public string TeamId { get; set; } + + /// + /// App Group ID + /// + /// App Group ID + [DataMember(Name="AppGroupId", EmitDefaultValue=false)] + public string AppGroupId { get; set; } + + /// + /// Bundle ID + /// + /// Bundle ID + [DataMember(Name="BundleId", EmitDefaultValue=false)] + public string BundleId { get; set; } + + /// + /// App Store signing identity + /// + /// App Store signing identity + [DataMember(Name="AppStoreSigningIdentity", EmitDefaultValue=false)] + public string AppStoreSigningIdentity { get; set; } + + /// + /// App Store token + /// + /// App Store token + [DataMember(Name="AppStoreToken", EmitDefaultValue=false)] + public string AppStoreToken { get; set; } + + /// + /// App Store merchant ID + /// + /// App Store merchant ID + [DataMember(Name="AppStoreMerchantId", EmitDefaultValue=false)] + public string AppStoreMerchantId { get; set; } + + /// + /// P8 private key + /// + /// P8 private key + [DataMember(Name="P8PrivateKey", EmitDefaultValue=false)] + public string P8PrivateKey { get; set; } + + /// + /// P8 private key ID + /// + /// P8 private key ID + [DataMember(Name="P8PrivateKeyId", EmitDefaultValue=false)] + public string P8PrivateKeyId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreConfigModel {\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" ReadyToPublishToAppStore: ").Append(ReadyToPublishToAppStore).Append("\n"); + sb.Append(" AppStoreName: ").Append(AppStoreName).Append("\n"); + sb.Append(" AppStoreAppleId: ").Append(AppStoreAppleId).Append("\n"); + sb.Append(" AppStoreUrl: ").Append(AppStoreUrl).Append("\n"); + sb.Append(" AppStoreId: ").Append(AppStoreId).Append("\n"); + sb.Append(" AppStorePassword: ").Append(AppStorePassword).Append("\n"); + sb.Append(" TeamId: ").Append(TeamId).Append("\n"); + sb.Append(" AppGroupId: ").Append(AppGroupId).Append("\n"); + sb.Append(" BundleId: ").Append(BundleId).Append("\n"); + sb.Append(" AppStoreSigningIdentity: ").Append(AppStoreSigningIdentity).Append("\n"); + sb.Append(" AppStoreToken: ").Append(AppStoreToken).Append("\n"); + sb.Append(" AppStoreMerchantId: ").Append(AppStoreMerchantId).Append("\n"); + sb.Append(" P8PrivateKey: ").Append(P8PrivateKey).Append("\n"); + sb.Append(" P8PrivateKeyId: ").Append(P8PrivateKeyId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreConfigModel); + } + + /// + /// Returns true if AppStoreConfigModel instances are equal + /// + /// Instance of AppStoreConfigModel to be compared + /// Boolean + public bool Equals(AppStoreConfigModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.ReadyToPublishToAppStore == input.ReadyToPublishToAppStore || + (this.ReadyToPublishToAppStore != null && + this.ReadyToPublishToAppStore.Equals(input.ReadyToPublishToAppStore)) + ) && + ( + this.AppStoreName == input.AppStoreName || + (this.AppStoreName != null && + this.AppStoreName.Equals(input.AppStoreName)) + ) && + ( + this.AppStoreAppleId == input.AppStoreAppleId || + (this.AppStoreAppleId != null && + this.AppStoreAppleId.Equals(input.AppStoreAppleId)) + ) && + ( + this.AppStoreUrl == input.AppStoreUrl || + (this.AppStoreUrl != null && + this.AppStoreUrl.Equals(input.AppStoreUrl)) + ) && + ( + this.AppStoreId == input.AppStoreId || + (this.AppStoreId != null && + this.AppStoreId.Equals(input.AppStoreId)) + ) && + ( + this.AppStorePassword == input.AppStorePassword || + (this.AppStorePassword != null && + this.AppStorePassword.Equals(input.AppStorePassword)) + ) && + ( + this.TeamId == input.TeamId || + (this.TeamId != null && + this.TeamId.Equals(input.TeamId)) + ) && + ( + this.AppGroupId == input.AppGroupId || + (this.AppGroupId != null && + this.AppGroupId.Equals(input.AppGroupId)) + ) && + ( + this.BundleId == input.BundleId || + (this.BundleId != null && + this.BundleId.Equals(input.BundleId)) + ) && + ( + this.AppStoreSigningIdentity == input.AppStoreSigningIdentity || + (this.AppStoreSigningIdentity != null && + this.AppStoreSigningIdentity.Equals(input.AppStoreSigningIdentity)) + ) && + ( + this.AppStoreToken == input.AppStoreToken || + (this.AppStoreToken != null && + this.AppStoreToken.Equals(input.AppStoreToken)) + ) && + ( + this.AppStoreMerchantId == input.AppStoreMerchantId || + (this.AppStoreMerchantId != null && + this.AppStoreMerchantId.Equals(input.AppStoreMerchantId)) + ) && + ( + this.P8PrivateKey == input.P8PrivateKey || + (this.P8PrivateKey != null && + this.P8PrivateKey.Equals(input.P8PrivateKey)) + ) && + ( + this.P8PrivateKeyId == input.P8PrivateKeyId || + (this.P8PrivateKeyId != null && + this.P8PrivateKeyId.Equals(input.P8PrivateKeyId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.ReadyToPublishToAppStore != null) + hashCode = hashCode * 59 + this.ReadyToPublishToAppStore.GetHashCode(); + if (this.AppStoreName != null) + hashCode = hashCode * 59 + this.AppStoreName.GetHashCode(); + if (this.AppStoreAppleId != null) + hashCode = hashCode * 59 + this.AppStoreAppleId.GetHashCode(); + if (this.AppStoreUrl != null) + hashCode = hashCode * 59 + this.AppStoreUrl.GetHashCode(); + if (this.AppStoreId != null) + hashCode = hashCode * 59 + this.AppStoreId.GetHashCode(); + if (this.AppStorePassword != null) + hashCode = hashCode * 59 + this.AppStorePassword.GetHashCode(); + if (this.TeamId != null) + hashCode = hashCode * 59 + this.TeamId.GetHashCode(); + if (this.AppGroupId != null) + hashCode = hashCode * 59 + this.AppGroupId.GetHashCode(); + if (this.BundleId != null) + hashCode = hashCode * 59 + this.BundleId.GetHashCode(); + if (this.AppStoreSigningIdentity != null) + hashCode = hashCode * 59 + this.AppStoreSigningIdentity.GetHashCode(); + if (this.AppStoreToken != null) + hashCode = hashCode * 59 + this.AppStoreToken.GetHashCode(); + if (this.AppStoreMerchantId != null) + hashCode = hashCode * 59 + this.AppStoreMerchantId.GetHashCode(); + if (this.P8PrivateKey != null) + hashCode = hashCode * 59 + this.P8PrivateKey.GetHashCode(); + if (this.P8PrivateKeyId != null) + hashCode = hashCode * 59 + this.P8PrivateKeyId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreConfigUpdatedEvent.cs b/src/Flipdish/Model/AppStoreConfigUpdatedEvent.cs new file mode 100644 index 00000000..181d1b39 --- /dev/null +++ b/src/Flipdish/Model/AppStoreConfigUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// AppStore Config Updated event + /// + [DataContract] + public partial class AppStoreConfigUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// App Store Id. + /// App Configuration. + /// User who has update the configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppStoreConfigUpdatedEvent(string eventName = default(string), string appStoreAppId = default(string), UpdateAppStoreAppConfigurationWebhookDTO appStoreAppConfiguration = default(UpdateAppStoreAppConfigurationWebhookDTO), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.AppStoreAppId = appStoreAppId; + this.AppStoreAppConfiguration = appStoreAppConfiguration; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// App Store Id + /// + /// App Store Id + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// App Configuration + /// + /// App Configuration + [DataMember(Name="AppStoreAppConfiguration", EmitDefaultValue=false)] + public UpdateAppStoreAppConfigurationWebhookDTO AppStoreAppConfiguration { get; set; } + + /// + /// User who has update the configuration + /// + /// User who has update the configuration + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreConfigUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" AppStoreAppConfiguration: ").Append(AppStoreAppConfiguration).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreConfigUpdatedEvent); + } + + /// + /// Returns true if AppStoreConfigUpdatedEvent instances are equal + /// + /// Instance of AppStoreConfigUpdatedEvent to be compared + /// Boolean + public bool Equals(AppStoreConfigUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.AppStoreAppConfiguration == input.AppStoreAppConfiguration || + (this.AppStoreAppConfiguration != null && + this.AppStoreAppConfiguration.Equals(input.AppStoreAppConfiguration)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.AppStoreAppConfiguration != null) + hashCode = hashCode * 59 + this.AppStoreAppConfiguration.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppStoreSubscriptionChangeJobUpdatedEvent.cs b/src/Flipdish/Model/AppStoreSubscriptionChangeJobUpdatedEvent.cs new file mode 100644 index 00000000..3b1531a3 --- /dev/null +++ b/src/Flipdish/Model/AppStoreSubscriptionChangeJobUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Subscription change job status updated event + /// + [DataContract] + public partial class AppStoreSubscriptionChangeJobUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// App Store Id. + /// Status. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppStoreSubscriptionChangeJobUpdatedEvent(string eventName = default(string), string appStoreAppId = default(string), string status = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.AppStoreAppId = appStoreAppId; + this.Status = status; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// App Store Id + /// + /// App Store Id + [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] + public string AppStoreAppId { get; set; } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppStoreSubscriptionChangeJobUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" AppStoreAppId: ").Append(AppStoreAppId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppStoreSubscriptionChangeJobUpdatedEvent); + } + + /// + /// Returns true if AppStoreSubscriptionChangeJobUpdatedEvent instances are equal + /// + /// Instance of AppStoreSubscriptionChangeJobUpdatedEvent to be compared + /// Boolean + public bool Equals(AppStoreSubscriptionChangeJobUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.AppStoreAppId == input.AppStoreAppId || + (this.AppStoreAppId != null && + this.AppStoreAppId.Equals(input.AppStoreAppId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.AppStoreAppId != null) + hashCode = hashCode * 59 + this.AppStoreAppId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AppUpdatedEvent.cs b/src/Flipdish/Model/AppUpdatedEvent.cs new file mode 100644 index 00000000..b231c449 --- /dev/null +++ b/src/Flipdish/Model/AppUpdatedEvent.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Application updated event + /// + [DataContract] + public partial class AppUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// A summary of changes made. + /// App Name. + /// Country Id. + /// User information. + /// App - Whitelabel config. + /// Organisation Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public AppUpdatedEvent(string eventName = default(string), string description = default(string), string changes = default(string), string appName = default(string), string countryId = default(string), UserEventInfo user = default(UserEventInfo), App app = default(App), string orgId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.Changes = changes; + this.AppName = appName; + this.CountryId = countryId; + this.User = user; + this.App = app; + this.OrgId = orgId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// A summary of changes made + /// + /// A summary of changes made + [DataMember(Name="Changes", EmitDefaultValue=false)] + public string Changes { get; set; } + + /// + /// App Name + /// + /// App Name + [DataMember(Name="AppName", EmitDefaultValue=false)] + public string AppName { get; set; } + + /// + /// Country Id + /// + /// Country Id + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// User information + /// + /// User information + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// App - Whitelabel config + /// + /// App - Whitelabel config + [DataMember(Name="App", EmitDefaultValue=false)] + public App App { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AppUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Changes: ").Append(Changes).Append("\n"); + sb.Append(" AppName: ").Append(AppName).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" App: ").Append(App).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AppUpdatedEvent); + } + + /// + /// Returns true if AppUpdatedEvent instances are equal + /// + /// Instance of AppUpdatedEvent to be compared + /// Boolean + public bool Equals(AppUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Changes == input.Changes || + (this.Changes != null && + this.Changes.Equals(input.Changes)) + ) && + ( + this.AppName == input.AppName || + (this.AppName != null && + this.AppName.Equals(input.AppName)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.App == input.App || + (this.App != null && + this.App.Equals(input.App)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Changes != null) + hashCode = hashCode * 59 + this.Changes.GetHashCode(); + if (this.AppName != null) + hashCode = hashCode * 59 + this.AppName.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.App != null) + hashCode = hashCode * 59 + this.App.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AssetResultModel.cs b/src/Flipdish/Model/AssetResultModel.cs new file mode 100644 index 00000000..abf25946 --- /dev/null +++ b/src/Flipdish/Model/AssetResultModel.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Asset result model + /// + [DataContract] + public partial class AssetResultModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Asset result message. + /// Asset URL or path. + /// Asset name. + public AssetResultModel(string message = default(string), string assetUrl = default(string), string assetName = default(string)) + { + this.Message = message; + this.AssetUrl = assetUrl; + this.AssetName = assetName; + } + + /// + /// Asset result message + /// + /// Asset result message + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Asset URL or path + /// + /// Asset URL or path + [DataMember(Name="AssetUrl", EmitDefaultValue=false)] + public string AssetUrl { get; set; } + + /// + /// Asset name + /// + /// Asset name + [DataMember(Name="AssetName", EmitDefaultValue=false)] + public string AssetName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AssetResultModel {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" AssetUrl: ").Append(AssetUrl).Append("\n"); + sb.Append(" AssetName: ").Append(AssetName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AssetResultModel); + } + + /// + /// Returns true if AssetResultModel instances are equal + /// + /// Instance of AssetResultModel to be compared + /// Boolean + public bool Equals(AssetResultModel input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.AssetUrl == input.AssetUrl || + (this.AssetUrl != null && + this.AssetUrl.Equals(input.AssetUrl)) + ) && + ( + this.AssetName == input.AssetName || + (this.AssetName != null && + this.AssetName.Equals(input.AssetName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.AssetUrl != null) + hashCode = hashCode * 59 + this.AssetUrl.GetHashCode(); + if (this.AssetName != null) + hashCode = hashCode * 59 + this.AssetName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AssignedBankAccount.cs b/src/Flipdish/Model/AssignedBankAccount.cs new file mode 100644 index 00000000..1f1b6f40 --- /dev/null +++ b/src/Flipdish/Model/AssignedBankAccount.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Assigned to Store Bank Account + /// + [DataContract] + public partial class AssignedBankAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of Bank Account. + /// Name of Bank Account. + public AssignedBankAccount(int? id = default(int?), string bankAccountName = default(string)) + { + this.Id = id; + this.BankAccountName = bankAccountName; + } + + /// + /// Id of Bank Account + /// + /// Id of Bank Account + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Name of Bank Account + /// + /// Name of Bank Account + [DataMember(Name="BankAccountName", EmitDefaultValue=false)] + public string BankAccountName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AssignedBankAccount {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" BankAccountName: ").Append(BankAccountName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AssignedBankAccount); + } + + /// + /// Returns true if AssignedBankAccount instances are equal + /// + /// Instance of AssignedBankAccount to be compared + /// Boolean + public bool Equals(AssignedBankAccount input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.BankAccountName == input.BankAccountName || + (this.BankAccountName != null && + this.BankAccountName.Equals(input.BankAccountName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.BankAccountName != null) + hashCode = hashCode * 59 + this.BankAccountName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/AuditLogFieldChangeInformation.cs b/src/Flipdish/Model/AuditLogFieldChangeInformation.cs new file mode 100644 index 00000000..2476646c --- /dev/null +++ b/src/Flipdish/Model/AuditLogFieldChangeInformation.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Change information for a field + /// + [DataContract] + public partial class AuditLogFieldChangeInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Path (hierarchy). + /// Name of field. + /// Key (code) of field. + /// Old value. + /// New value. + public AuditLogFieldChangeInformation(string path = default(string), string name = default(string), string key = default(string), string oldValue = default(string), string newValue = default(string)) + { + this.Path = path; + this.Name = name; + this.Key = key; + this.OldValue = oldValue; + this.NewValue = newValue; + } + + /// + /// Path (hierarchy) + /// + /// Path (hierarchy) + [DataMember(Name="Path", EmitDefaultValue=false)] + public string Path { get; set; } + + /// + /// Name of field + /// + /// Name of field + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Key (code) of field + /// + /// Key (code) of field + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Old value + /// + /// Old value + [DataMember(Name="OldValue", EmitDefaultValue=false)] + public string OldValue { get; set; } + + /// + /// New value + /// + /// New value + [DataMember(Name="NewValue", EmitDefaultValue=false)] + public string NewValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AuditLogFieldChangeInformation {\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" OldValue: ").Append(OldValue).Append("\n"); + sb.Append(" NewValue: ").Append(NewValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AuditLogFieldChangeInformation); + } + + /// + /// Returns true if AuditLogFieldChangeInformation instances are equal + /// + /// Instance of AuditLogFieldChangeInformation to be compared + /// Boolean + public bool Equals(AuditLogFieldChangeInformation input) + { + if (input == null) + return false; + + return + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.OldValue == input.OldValue || + (this.OldValue != null && + this.OldValue.Equals(input.OldValue)) + ) && + ( + this.NewValue == input.NewValue || + (this.NewValue != null && + this.NewValue.Equals(input.NewValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Path != null) + hashCode = hashCode * 59 + this.Path.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.OldValue != null) + hashCode = hashCode * 59 + this.OldValue.GetHashCode(); + if (this.NewValue != null) + hashCode = hashCode * 59 + this.NewValue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BalanceDetails.cs b/src/Flipdish/Model/BalanceDetails.cs new file mode 100644 index 00000000..4928528f --- /dev/null +++ b/src/Flipdish/Model/BalanceDetails.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Period opening and closing balance + /// + [DataContract] + public partial class BalanceDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// OpeningBalance.. + /// ClosingBalance.. + public BalanceDetails(double? openingBalance = default(double?), double? closingBalance = default(double?)) + { + this.OpeningBalance = openingBalance; + this.ClosingBalance = closingBalance; + } + + /// + /// OpeningBalance. + /// + /// OpeningBalance. + [DataMember(Name="OpeningBalance", EmitDefaultValue=false)] + public double? OpeningBalance { get; set; } + + /// + /// ClosingBalance. + /// + /// ClosingBalance. + [DataMember(Name="ClosingBalance", EmitDefaultValue=false)] + public double? ClosingBalance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BalanceDetails {\n"); + sb.Append(" OpeningBalance: ").Append(OpeningBalance).Append("\n"); + sb.Append(" ClosingBalance: ").Append(ClosingBalance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BalanceDetails); + } + + /// + /// Returns true if BalanceDetails instances are equal + /// + /// Instance of BalanceDetails to be compared + /// Boolean + public bool Equals(BalanceDetails input) + { + if (input == null) + return false; + + return + ( + this.OpeningBalance == input.OpeningBalance || + (this.OpeningBalance != null && + this.OpeningBalance.Equals(input.OpeningBalance)) + ) && + ( + this.ClosingBalance == input.ClosingBalance || + (this.ClosingBalance != null && + this.ClosingBalance.Equals(input.ClosingBalance)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OpeningBalance != null) + hashCode = hashCode * 59 + this.OpeningBalance.GetHashCode(); + if (this.ClosingBalance != null) + hashCode = hashCode * 59 + this.ClosingBalance.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccount.cs b/src/Flipdish/Model/BankAccount.cs new file mode 100644 index 00000000..68e29128 --- /dev/null +++ b/src/Flipdish/Model/BankAccount.cs @@ -0,0 +1,367 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BANK ACCOUNT + /// + [DataContract] + public partial class BankAccount : IEquatable + { + /// + /// Status of Account + /// + /// Status of Account + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStateEnum + { + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 1, + + /// + /// Enum AwatingVerification for value: AwatingVerification + /// + [EnumMember(Value = "AwatingVerification")] + AwatingVerification = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3, + + /// + /// Enum Grandfathered for value: Grandfathered + /// + [EnumMember(Value = "Grandfathered")] + Grandfathered = 4 + } + + /// + /// Status of Account + /// + /// Status of Account + [DataMember(Name="AccountState", EmitDefaultValue=false)] + public AccountStateEnum? AccountState { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Id of this account. + /// Name of this account. + /// IBAN of this account. + /// SWIFT of this bank account. + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields should be ignored.. + /// Status of Account. + /// Store Names that are attached to this account. + /// Store Ids that are attached to this account. + /// Address lf the bank. + /// CountryCode of the Bank Account. + /// Account Holders Address. + /// Account Holders Country Code. + /// Account Holders Vat Number. + /// Stripe Id of the connected account. + public BankAccount(int? id = default(int?), string accountName = default(string), string iban = default(string), string swift = default(string), List populatedAccountFields = default(List), AccountStateEnum? accountState = default(AccountStateEnum?), List storeNames = default(List), List storeIds = default(List), string bankAddress = default(string), string bankCountryCode = default(string), string accountHolderAddress = default(string), string accountHolderCountryCode = default(string), string vatNumber = default(string), string stripeAccountId = default(string)) + { + this.Id = id; + this.AccountName = accountName; + this.Iban = iban; + this.Swift = swift; + this.PopulatedAccountFields = populatedAccountFields; + this.AccountState = accountState; + this.StoreNames = storeNames; + this.StoreIds = storeIds; + this.BankAddress = bankAddress; + this.BankCountryCode = bankCountryCode; + this.AccountHolderAddress = accountHolderAddress; + this.AccountHolderCountryCode = accountHolderCountryCode; + this.VatNumber = vatNumber; + this.StripeAccountId = stripeAccountId; + } + + /// + /// Id of this account + /// + /// Id of this account + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Name of this account + /// + /// Name of this account + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// IBAN of this account + /// + /// IBAN of this account + [DataMember(Name="Iban", EmitDefaultValue=false)] + public string Iban { get; set; } + + /// + /// SWIFT of this bank account + /// + /// SWIFT of this bank account + [DataMember(Name="Swift", EmitDefaultValue=false)] + public string Swift { get; set; } + + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields should be ignored. + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields should be ignored. + [DataMember(Name="PopulatedAccountFields", EmitDefaultValue=false)] + public List PopulatedAccountFields { get; set; } + + + /// + /// Store Names that are attached to this account + /// + /// Store Names that are attached to this account + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Store Ids that are attached to this account + /// + /// Store Ids that are attached to this account + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Address lf the bank + /// + /// Address lf the bank + [DataMember(Name="BankAddress", EmitDefaultValue=false)] + public string BankAddress { get; set; } + + /// + /// CountryCode of the Bank Account + /// + /// CountryCode of the Bank Account + [DataMember(Name="BankCountryCode", EmitDefaultValue=false)] + public string BankCountryCode { get; set; } + + /// + /// Account Holders Address + /// + /// Account Holders Address + [DataMember(Name="AccountHolderAddress", EmitDefaultValue=false)] + public string AccountHolderAddress { get; set; } + + /// + /// Account Holders Country Code + /// + /// Account Holders Country Code + [DataMember(Name="AccountHolderCountryCode", EmitDefaultValue=false)] + public string AccountHolderCountryCode { get; set; } + + /// + /// Account Holders Vat Number + /// + /// Account Holders Vat Number + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + /// + /// Stripe Id of the connected account + /// + /// Stripe Id of the connected account + [DataMember(Name="StripeAccountId", EmitDefaultValue=false)] + public string StripeAccountId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccount {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" Swift: ").Append(Swift).Append("\n"); + sb.Append(" PopulatedAccountFields: ").Append(PopulatedAccountFields).Append("\n"); + sb.Append(" AccountState: ").Append(AccountState).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" BankAddress: ").Append(BankAddress).Append("\n"); + sb.Append(" BankCountryCode: ").Append(BankCountryCode).Append("\n"); + sb.Append(" AccountHolderAddress: ").Append(AccountHolderAddress).Append("\n"); + sb.Append(" AccountHolderCountryCode: ").Append(AccountHolderCountryCode).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" StripeAccountId: ").Append(StripeAccountId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccount); + } + + /// + /// Returns true if BankAccount instances are equal + /// + /// Instance of BankAccount to be compared + /// Boolean + public bool Equals(BankAccount input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.Swift == input.Swift || + (this.Swift != null && + this.Swift.Equals(input.Swift)) + ) && + ( + this.PopulatedAccountFields == input.PopulatedAccountFields || + this.PopulatedAccountFields != null && + this.PopulatedAccountFields.SequenceEqual(input.PopulatedAccountFields) + ) && + ( + this.AccountState == input.AccountState || + (this.AccountState != null && + this.AccountState.Equals(input.AccountState)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.BankAddress == input.BankAddress || + (this.BankAddress != null && + this.BankAddress.Equals(input.BankAddress)) + ) && + ( + this.BankCountryCode == input.BankCountryCode || + (this.BankCountryCode != null && + this.BankCountryCode.Equals(input.BankCountryCode)) + ) && + ( + this.AccountHolderAddress == input.AccountHolderAddress || + (this.AccountHolderAddress != null && + this.AccountHolderAddress.Equals(input.AccountHolderAddress)) + ) && + ( + this.AccountHolderCountryCode == input.AccountHolderCountryCode || + (this.AccountHolderCountryCode != null && + this.AccountHolderCountryCode.Equals(input.AccountHolderCountryCode)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.StripeAccountId == input.StripeAccountId || + (this.StripeAccountId != null && + this.StripeAccountId.Equals(input.StripeAccountId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.Iban != null) + hashCode = hashCode * 59 + this.Iban.GetHashCode(); + if (this.Swift != null) + hashCode = hashCode * 59 + this.Swift.GetHashCode(); + if (this.PopulatedAccountFields != null) + hashCode = hashCode * 59 + this.PopulatedAccountFields.GetHashCode(); + if (this.AccountState != null) + hashCode = hashCode * 59 + this.AccountState.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.BankAddress != null) + hashCode = hashCode * 59 + this.BankAddress.GetHashCode(); + if (this.BankCountryCode != null) + hashCode = hashCode * 59 + this.BankCountryCode.GetHashCode(); + if (this.AccountHolderAddress != null) + hashCode = hashCode * 59 + this.AccountHolderAddress.GetHashCode(); + if (this.AccountHolderCountryCode != null) + hashCode = hashCode * 59 + this.AccountHolderCountryCode.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.StripeAccountId != null) + hashCode = hashCode * 59 + this.StripeAccountId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountAssignedEvent.cs b/src/Flipdish/Model/BankAccountAssignedEvent.cs new file mode 100644 index 00000000..3174082c --- /dev/null +++ b/src/Flipdish/Model/BankAccountAssignedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountAssignedEvent + /// + [DataContract] + public partial class BankAccountAssignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Organisation Id. + /// The assigned bank account. + /// Event description. + /// Updated by user. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public BankAccountAssignedEvent(string orgId = default(string), BankAccount bankAccount = default(BankAccount), string description = default(string), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.OrgId = orgId; + this.BankAccount = bankAccount; + this.Description = description; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The assigned bank account + /// + /// The assigned bank account + [DataMember(Name="BankAccount", EmitDefaultValue=false)] + public BankAccount BankAccount { get; set; } + + /// + /// Event description + /// + /// Event description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountAssignedEvent {\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" BankAccount: ").Append(BankAccount).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountAssignedEvent); + } + + /// + /// Returns true if BankAccountAssignedEvent instances are equal + /// + /// Instance of BankAccountAssignedEvent to be compared + /// Boolean + public bool Equals(BankAccountAssignedEvent input) + { + if (input == null) + return false; + + return + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.BankAccount == input.BankAccount || + (this.BankAccount != null && + this.BankAccount.Equals(input.BankAccount)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.BankAccount != null) + hashCode = hashCode * 59 + this.BankAccount.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountCreate.cs b/src/Flipdish/Model/BankAccountCreate.cs new file mode 100644 index 00000000..ac4953c1 --- /dev/null +++ b/src/Flipdish/Model/BankAccountCreate.cs @@ -0,0 +1,1071 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountCreate + /// + [DataContract] + public partial class BankAccountCreate : IEquatable + { + /// + /// Currency of Account + /// + /// Currency of Account + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyCodeEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of Account + /// + /// Currency of Account + [DataMember(Name="CurrencyCode", EmitDefaultValue=false)] + public CurrencyCodeEnum? CurrencyCode { get; set; } + /// + /// Business Type + /// + /// Business Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessTypeEnum + { + + /// + /// Enum Individual for value: Individual + /// + [EnumMember(Value = "Individual")] + Individual = 1, + + /// + /// Enum Company for value: Company + /// + [EnumMember(Value = "Company")] + Company = 2, + + /// + /// Enum NonProfit for value: NonProfit + /// + [EnumMember(Value = "NonProfit")] + NonProfit = 3, + + /// + /// Enum GovernmentEntity for value: GovernmentEntity + /// + [EnumMember(Value = "GovernmentEntity")] + GovernmentEntity = 4 + } + + /// + /// Business Type + /// + /// Business Type + [DataMember(Name="BusinessType", EmitDefaultValue=false)] + public BusinessTypeEnum? BusinessType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Address lf the bank. + /// CountryCode of the Bank Account. + /// Account Holders Address. + /// Account Holders Country Code. + /// Account Holders Vat Number. + /// Currency of Account. + /// List of stores to attach to Account. + /// Name of Bank. + /// Name of this account. + /// IBAN of this account. + /// SWIFT of this bank account. + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ). + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored.. + /// Reason for Rejection. + /// Business Type. + public BankAccountCreate(string bankAddress = default(string), string bankCountryCode = default(string), string accountHolderAddress = default(string), string accountHolderCountryCode = default(string), string vatNumber = default(string), CurrencyCodeEnum? currencyCode = default(CurrencyCodeEnum?), List storeIds = default(List), string bankName = default(string), string accountName = default(string), string iban = default(string), string swift = default(string), string nationalClearingCode = default(string), List populatedAccountFields = default(List), string rejectionReason = default(string), BusinessTypeEnum? businessType = default(BusinessTypeEnum?)) + { + this.BankAddress = bankAddress; + this.BankCountryCode = bankCountryCode; + this.AccountHolderAddress = accountHolderAddress; + this.AccountHolderCountryCode = accountHolderCountryCode; + this.VatNumber = vatNumber; + this.CurrencyCode = currencyCode; + this.StoreIds = storeIds; + this.BankName = bankName; + this.AccountName = accountName; + this.Iban = iban; + this.Swift = swift; + this.NationalClearingCode = nationalClearingCode; + this.PopulatedAccountFields = populatedAccountFields; + this.RejectionReason = rejectionReason; + this.BusinessType = businessType; + } + + /// + /// Address lf the bank + /// + /// Address lf the bank + [DataMember(Name="BankAddress", EmitDefaultValue=false)] + public string BankAddress { get; set; } + + /// + /// CountryCode of the Bank Account + /// + /// CountryCode of the Bank Account + [DataMember(Name="BankCountryCode", EmitDefaultValue=false)] + public string BankCountryCode { get; set; } + + /// + /// Account Holders Address + /// + /// Account Holders Address + [DataMember(Name="AccountHolderAddress", EmitDefaultValue=false)] + public string AccountHolderAddress { get; set; } + + /// + /// Account Holders Country Code + /// + /// Account Holders Country Code + [DataMember(Name="AccountHolderCountryCode", EmitDefaultValue=false)] + public string AccountHolderCountryCode { get; set; } + + /// + /// Account Holders Vat Number + /// + /// Account Holders Vat Number + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + + /// + /// List of stores to attach to Account + /// + /// List of stores to attach to Account + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Name of Bank + /// + /// Name of Bank + [DataMember(Name="BankName", EmitDefaultValue=false)] + public string BankName { get; set; } + + /// + /// Name of this account + /// + /// Name of this account + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// IBAN of this account + /// + /// IBAN of this account + [DataMember(Name="Iban", EmitDefaultValue=false)] + public string Iban { get; set; } + + /// + /// SWIFT of this bank account + /// + /// SWIFT of this bank account + [DataMember(Name="Swift", EmitDefaultValue=false)] + public string Swift { get; set; } + + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + [DataMember(Name="NationalClearingCode", EmitDefaultValue=false)] + public string NationalClearingCode { get; set; } + + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + [DataMember(Name="PopulatedAccountFields", EmitDefaultValue=false)] + public List PopulatedAccountFields { get; set; } + + /// + /// Reason for Rejection + /// + /// Reason for Rejection + [DataMember(Name="RejectionReason", EmitDefaultValue=false)] + public string RejectionReason { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountCreate {\n"); + sb.Append(" BankAddress: ").Append(BankAddress).Append("\n"); + sb.Append(" BankCountryCode: ").Append(BankCountryCode).Append("\n"); + sb.Append(" AccountHolderAddress: ").Append(AccountHolderAddress).Append("\n"); + sb.Append(" AccountHolderCountryCode: ").Append(AccountHolderCountryCode).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" BankName: ").Append(BankName).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" Swift: ").Append(Swift).Append("\n"); + sb.Append(" NationalClearingCode: ").Append(NationalClearingCode).Append("\n"); + sb.Append(" PopulatedAccountFields: ").Append(PopulatedAccountFields).Append("\n"); + sb.Append(" RejectionReason: ").Append(RejectionReason).Append("\n"); + sb.Append(" BusinessType: ").Append(BusinessType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountCreate); + } + + /// + /// Returns true if BankAccountCreate instances are equal + /// + /// Instance of BankAccountCreate to be compared + /// Boolean + public bool Equals(BankAccountCreate input) + { + if (input == null) + return false; + + return + ( + this.BankAddress == input.BankAddress || + (this.BankAddress != null && + this.BankAddress.Equals(input.BankAddress)) + ) && + ( + this.BankCountryCode == input.BankCountryCode || + (this.BankCountryCode != null && + this.BankCountryCode.Equals(input.BankCountryCode)) + ) && + ( + this.AccountHolderAddress == input.AccountHolderAddress || + (this.AccountHolderAddress != null && + this.AccountHolderAddress.Equals(input.AccountHolderAddress)) + ) && + ( + this.AccountHolderCountryCode == input.AccountHolderCountryCode || + (this.AccountHolderCountryCode != null && + this.AccountHolderCountryCode.Equals(input.AccountHolderCountryCode)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.CurrencyCode == input.CurrencyCode || + (this.CurrencyCode != null && + this.CurrencyCode.Equals(input.CurrencyCode)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.BankName == input.BankName || + (this.BankName != null && + this.BankName.Equals(input.BankName)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.Swift == input.Swift || + (this.Swift != null && + this.Swift.Equals(input.Swift)) + ) && + ( + this.NationalClearingCode == input.NationalClearingCode || + (this.NationalClearingCode != null && + this.NationalClearingCode.Equals(input.NationalClearingCode)) + ) && + ( + this.PopulatedAccountFields == input.PopulatedAccountFields || + this.PopulatedAccountFields != null && + this.PopulatedAccountFields.SequenceEqual(input.PopulatedAccountFields) + ) && + ( + this.RejectionReason == input.RejectionReason || + (this.RejectionReason != null && + this.RejectionReason.Equals(input.RejectionReason)) + ) && + ( + this.BusinessType == input.BusinessType || + (this.BusinessType != null && + this.BusinessType.Equals(input.BusinessType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankAddress != null) + hashCode = hashCode * 59 + this.BankAddress.GetHashCode(); + if (this.BankCountryCode != null) + hashCode = hashCode * 59 + this.BankCountryCode.GetHashCode(); + if (this.AccountHolderAddress != null) + hashCode = hashCode * 59 + this.AccountHolderAddress.GetHashCode(); + if (this.AccountHolderCountryCode != null) + hashCode = hashCode * 59 + this.AccountHolderCountryCode.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.CurrencyCode != null) + hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.BankName != null) + hashCode = hashCode * 59 + this.BankName.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.Iban != null) + hashCode = hashCode * 59 + this.Iban.GetHashCode(); + if (this.Swift != null) + hashCode = hashCode * 59 + this.Swift.GetHashCode(); + if (this.NationalClearingCode != null) + hashCode = hashCode * 59 + this.NationalClearingCode.GetHashCode(); + if (this.PopulatedAccountFields != null) + hashCode = hashCode * 59 + this.PopulatedAccountFields.GetHashCode(); + if (this.RejectionReason != null) + hashCode = hashCode * 59 + this.RejectionReason.GetHashCode(); + if (this.BusinessType != null) + hashCode = hashCode * 59 + this.BusinessType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountCreatedEvent.cs b/src/Flipdish/Model/BankAccountCreatedEvent.cs new file mode 100644 index 00000000..f6966b6a --- /dev/null +++ b/src/Flipdish/Model/BankAccountCreatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountCreatedEvent + /// + [DataContract] + public partial class BankAccountCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Organisation Id. + /// The create bank account. + /// Updated by user. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public BankAccountCreatedEvent(string orgId = default(string), BankAccount bankAccount = default(BankAccount), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.OrgId = orgId; + this.BankAccount = bankAccount; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The create bank account + /// + /// The create bank account + [DataMember(Name="BankAccount", EmitDefaultValue=false)] + public BankAccount BankAccount { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountCreatedEvent {\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" BankAccount: ").Append(BankAccount).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountCreatedEvent); + } + + /// + /// Returns true if BankAccountCreatedEvent instances are equal + /// + /// Instance of BankAccountCreatedEvent to be compared + /// Boolean + public bool Equals(BankAccountCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.BankAccount == input.BankAccount || + (this.BankAccount != null && + this.BankAccount.Equals(input.BankAccount)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.BankAccount != null) + hashCode = hashCode * 59 + this.BankAccount.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountDeletedEvent.cs b/src/Flipdish/Model/BankAccountDeletedEvent.cs new file mode 100644 index 00000000..0494cfc6 --- /dev/null +++ b/src/Flipdish/Model/BankAccountDeletedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountDeletedEvent + /// + [DataContract] + public partial class BankAccountDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Organisation Id. + /// The create bank account. + /// Updated by user. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public BankAccountDeletedEvent(string orgId = default(string), BankAccount bankAccount = default(BankAccount), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.OrgId = orgId; + this.BankAccount = bankAccount; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The create bank account + /// + /// The create bank account + [DataMember(Name="BankAccount", EmitDefaultValue=false)] + public BankAccount BankAccount { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountDeletedEvent {\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" BankAccount: ").Append(BankAccount).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountDeletedEvent); + } + + /// + /// Returns true if BankAccountDeletedEvent instances are equal + /// + /// Instance of BankAccountDeletedEvent to be compared + /// Boolean + public bool Equals(BankAccountDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.BankAccount == input.BankAccount || + (this.BankAccount != null && + this.BankAccount.Equals(input.BankAccount)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.BankAccount != null) + hashCode = hashCode * 59 + this.BankAccount.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountDetail.cs b/src/Flipdish/Model/BankAccountDetail.cs new file mode 100644 index 00000000..0d16cf32 --- /dev/null +++ b/src/Flipdish/Model/BankAccountDetail.cs @@ -0,0 +1,1172 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountDetail + /// + [DataContract] + public partial class BankAccountDetail : IEquatable + { + /// + /// Status of Account + /// + /// Status of Account + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStateEnum + { + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 1, + + /// + /// Enum AwatingVerification for value: AwatingVerification + /// + [EnumMember(Value = "AwatingVerification")] + AwatingVerification = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3, + + /// + /// Enum Grandfathered for value: Grandfathered + /// + [EnumMember(Value = "Grandfathered")] + Grandfathered = 4 + } + + /// + /// Status of Account + /// + /// Status of Account + [DataMember(Name="AccountState", EmitDefaultValue=false)] + public AccountStateEnum? AccountState { get; set; } + /// + /// Currency of Account + /// + /// Currency of Account + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyCodeEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of Account + /// + /// Currency of Account + [DataMember(Name="CurrencyCode", EmitDefaultValue=false)] + public CurrencyCodeEnum? CurrencyCode { get; set; } + /// + /// Business Type + /// + /// Business Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessTypeEnum + { + + /// + /// Enum Individual for value: Individual + /// + [EnumMember(Value = "Individual")] + Individual = 1, + + /// + /// Enum Company for value: Company + /// + [EnumMember(Value = "Company")] + Company = 2, + + /// + /// Enum NonProfit for value: NonProfit + /// + [EnumMember(Value = "NonProfit")] + NonProfit = 3, + + /// + /// Enum GovernmentEntity for value: GovernmentEntity + /// + [EnumMember(Value = "GovernmentEntity")] + GovernmentEntity = 4 + } + + /// + /// Business Type + /// + /// Business Type + [DataMember(Name="BusinessType", EmitDefaultValue=false)] + public BusinessTypeEnum? BusinessType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Id of this account. + /// Store Names that are attached to this account. + /// Status of Account. + /// Information about the Stripe connected account associated with this bank account (if any). + /// Address lf the bank. + /// CountryCode of the Bank Account. + /// Account Holders Address. + /// Account Holders Country Code. + /// Account Holders Vat Number. + /// Currency of Account. + /// List of stores to attach to Account. + /// Name of Bank. + /// Name of this account. + /// IBAN of this account. + /// SWIFT of this bank account. + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ). + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored.. + /// Reason for Rejection. + /// Business Type. + public BankAccountDetail(int? id = default(int?), List storeNames = default(List), AccountStateEnum? accountState = default(AccountStateEnum?), StripeConnectedAccountInfo stripeConnectedAccountInfo = default(StripeConnectedAccountInfo), string bankAddress = default(string), string bankCountryCode = default(string), string accountHolderAddress = default(string), string accountHolderCountryCode = default(string), string vatNumber = default(string), CurrencyCodeEnum? currencyCode = default(CurrencyCodeEnum?), List storeIds = default(List), string bankName = default(string), string accountName = default(string), string iban = default(string), string swift = default(string), string nationalClearingCode = default(string), List populatedAccountFields = default(List), string rejectionReason = default(string), BusinessTypeEnum? businessType = default(BusinessTypeEnum?)) + { + this.Id = id; + this.StoreNames = storeNames; + this.AccountState = accountState; + this.StripeConnectedAccountInfo = stripeConnectedAccountInfo; + this.BankAddress = bankAddress; + this.BankCountryCode = bankCountryCode; + this.AccountHolderAddress = accountHolderAddress; + this.AccountHolderCountryCode = accountHolderCountryCode; + this.VatNumber = vatNumber; + this.CurrencyCode = currencyCode; + this.StoreIds = storeIds; + this.BankName = bankName; + this.AccountName = accountName; + this.Iban = iban; + this.Swift = swift; + this.NationalClearingCode = nationalClearingCode; + this.PopulatedAccountFields = populatedAccountFields; + this.RejectionReason = rejectionReason; + this.BusinessType = businessType; + } + + /// + /// Id of this account + /// + /// Id of this account + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Store Names that are attached to this account + /// + /// Store Names that are attached to this account + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + + /// + /// Information about the Stripe connected account associated with this bank account (if any) + /// + /// Information about the Stripe connected account associated with this bank account (if any) + [DataMember(Name="StripeConnectedAccountInfo", EmitDefaultValue=false)] + public StripeConnectedAccountInfo StripeConnectedAccountInfo { get; set; } + + /// + /// Address lf the bank + /// + /// Address lf the bank + [DataMember(Name="BankAddress", EmitDefaultValue=false)] + public string BankAddress { get; set; } + + /// + /// CountryCode of the Bank Account + /// + /// CountryCode of the Bank Account + [DataMember(Name="BankCountryCode", EmitDefaultValue=false)] + public string BankCountryCode { get; set; } + + /// + /// Account Holders Address + /// + /// Account Holders Address + [DataMember(Name="AccountHolderAddress", EmitDefaultValue=false)] + public string AccountHolderAddress { get; set; } + + /// + /// Account Holders Country Code + /// + /// Account Holders Country Code + [DataMember(Name="AccountHolderCountryCode", EmitDefaultValue=false)] + public string AccountHolderCountryCode { get; set; } + + /// + /// Account Holders Vat Number + /// + /// Account Holders Vat Number + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + + /// + /// List of stores to attach to Account + /// + /// List of stores to attach to Account + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Name of Bank + /// + /// Name of Bank + [DataMember(Name="BankName", EmitDefaultValue=false)] + public string BankName { get; set; } + + /// + /// Name of this account + /// + /// Name of this account + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// IBAN of this account + /// + /// IBAN of this account + [DataMember(Name="Iban", EmitDefaultValue=false)] + public string Iban { get; set; } + + /// + /// SWIFT of this bank account + /// + /// SWIFT of this bank account + [DataMember(Name="Swift", EmitDefaultValue=false)] + public string Swift { get; set; } + + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + [DataMember(Name="NationalClearingCode", EmitDefaultValue=false)] + public string NationalClearingCode { get; set; } + + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + [DataMember(Name="PopulatedAccountFields", EmitDefaultValue=false)] + public List PopulatedAccountFields { get; set; } + + /// + /// Reason for Rejection + /// + /// Reason for Rejection + [DataMember(Name="RejectionReason", EmitDefaultValue=false)] + public string RejectionReason { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountDetail {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" AccountState: ").Append(AccountState).Append("\n"); + sb.Append(" StripeConnectedAccountInfo: ").Append(StripeConnectedAccountInfo).Append("\n"); + sb.Append(" BankAddress: ").Append(BankAddress).Append("\n"); + sb.Append(" BankCountryCode: ").Append(BankCountryCode).Append("\n"); + sb.Append(" AccountHolderAddress: ").Append(AccountHolderAddress).Append("\n"); + sb.Append(" AccountHolderCountryCode: ").Append(AccountHolderCountryCode).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" BankName: ").Append(BankName).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" Swift: ").Append(Swift).Append("\n"); + sb.Append(" NationalClearingCode: ").Append(NationalClearingCode).Append("\n"); + sb.Append(" PopulatedAccountFields: ").Append(PopulatedAccountFields).Append("\n"); + sb.Append(" RejectionReason: ").Append(RejectionReason).Append("\n"); + sb.Append(" BusinessType: ").Append(BusinessType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountDetail); + } + + /// + /// Returns true if BankAccountDetail instances are equal + /// + /// Instance of BankAccountDetail to be compared + /// Boolean + public bool Equals(BankAccountDetail input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.AccountState == input.AccountState || + (this.AccountState != null && + this.AccountState.Equals(input.AccountState)) + ) && + ( + this.StripeConnectedAccountInfo == input.StripeConnectedAccountInfo || + (this.StripeConnectedAccountInfo != null && + this.StripeConnectedAccountInfo.Equals(input.StripeConnectedAccountInfo)) + ) && + ( + this.BankAddress == input.BankAddress || + (this.BankAddress != null && + this.BankAddress.Equals(input.BankAddress)) + ) && + ( + this.BankCountryCode == input.BankCountryCode || + (this.BankCountryCode != null && + this.BankCountryCode.Equals(input.BankCountryCode)) + ) && + ( + this.AccountHolderAddress == input.AccountHolderAddress || + (this.AccountHolderAddress != null && + this.AccountHolderAddress.Equals(input.AccountHolderAddress)) + ) && + ( + this.AccountHolderCountryCode == input.AccountHolderCountryCode || + (this.AccountHolderCountryCode != null && + this.AccountHolderCountryCode.Equals(input.AccountHolderCountryCode)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.CurrencyCode == input.CurrencyCode || + (this.CurrencyCode != null && + this.CurrencyCode.Equals(input.CurrencyCode)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.BankName == input.BankName || + (this.BankName != null && + this.BankName.Equals(input.BankName)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.Swift == input.Swift || + (this.Swift != null && + this.Swift.Equals(input.Swift)) + ) && + ( + this.NationalClearingCode == input.NationalClearingCode || + (this.NationalClearingCode != null && + this.NationalClearingCode.Equals(input.NationalClearingCode)) + ) && + ( + this.PopulatedAccountFields == input.PopulatedAccountFields || + this.PopulatedAccountFields != null && + this.PopulatedAccountFields.SequenceEqual(input.PopulatedAccountFields) + ) && + ( + this.RejectionReason == input.RejectionReason || + (this.RejectionReason != null && + this.RejectionReason.Equals(input.RejectionReason)) + ) && + ( + this.BusinessType == input.BusinessType || + (this.BusinessType != null && + this.BusinessType.Equals(input.BusinessType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.AccountState != null) + hashCode = hashCode * 59 + this.AccountState.GetHashCode(); + if (this.StripeConnectedAccountInfo != null) + hashCode = hashCode * 59 + this.StripeConnectedAccountInfo.GetHashCode(); + if (this.BankAddress != null) + hashCode = hashCode * 59 + this.BankAddress.GetHashCode(); + if (this.BankCountryCode != null) + hashCode = hashCode * 59 + this.BankCountryCode.GetHashCode(); + if (this.AccountHolderAddress != null) + hashCode = hashCode * 59 + this.AccountHolderAddress.GetHashCode(); + if (this.AccountHolderCountryCode != null) + hashCode = hashCode * 59 + this.AccountHolderCountryCode.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.CurrencyCode != null) + hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.BankName != null) + hashCode = hashCode * 59 + this.BankName.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.Iban != null) + hashCode = hashCode * 59 + this.Iban.GetHashCode(); + if (this.Swift != null) + hashCode = hashCode * 59 + this.Swift.GetHashCode(); + if (this.NationalClearingCode != null) + hashCode = hashCode * 59 + this.NationalClearingCode.GetHashCode(); + if (this.PopulatedAccountFields != null) + hashCode = hashCode * 59 + this.PopulatedAccountFields.GetHashCode(); + if (this.RejectionReason != null) + hashCode = hashCode * 59 + this.RejectionReason.GetHashCode(); + if (this.BusinessType != null) + hashCode = hashCode * 59 + this.BusinessType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountDetailsUpdateRequest.cs b/src/Flipdish/Model/BankAccountDetailsUpdateRequest.cs new file mode 100644 index 00000000..89931546 --- /dev/null +++ b/src/Flipdish/Model/BankAccountDetailsUpdateRequest.cs @@ -0,0 +1,333 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a request to update bank account information details + /// + [DataContract] + public partial class BankAccountDetailsUpdateRequest : IEquatable + { + /// + /// Business Type + /// + /// Business Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessTypeEnum + { + + /// + /// Enum Individual for value: Individual + /// + [EnumMember(Value = "Individual")] + Individual = 1, + + /// + /// Enum Company for value: Company + /// + [EnumMember(Value = "Company")] + Company = 2, + + /// + /// Enum NonProfit for value: NonProfit + /// + [EnumMember(Value = "NonProfit")] + NonProfit = 3, + + /// + /// Enum GovernmentEntity for value: GovernmentEntity + /// + [EnumMember(Value = "GovernmentEntity")] + GovernmentEntity = 4 + } + + /// + /// Business Type + /// + /// Business Type + [DataMember(Name="BusinessType", EmitDefaultValue=false)] + public BusinessTypeEnum? BusinessType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Address of the bank account. + /// Address of the payee. + /// Account Holders Vat Number. + /// List of stores to attach to Account. + /// Name of Bank. + /// Name of this account. + /// IBAN of this account. + /// SWIFT of this bank account. + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ). + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored.. + /// Reason for Rejection. + /// Business Type. + public BankAccountDetailsUpdateRequest(string bankAddress = default(string), string accountHolderAddress = default(string), string vatNumber = default(string), List storeIds = default(List), string bankName = default(string), string accountName = default(string), string iban = default(string), string swift = default(string), string nationalClearingCode = default(string), List populatedAccountFields = default(List), string rejectionReason = default(string), BusinessTypeEnum? businessType = default(BusinessTypeEnum?)) + { + this.BankAddress = bankAddress; + this.AccountHolderAddress = accountHolderAddress; + this.VatNumber = vatNumber; + this.StoreIds = storeIds; + this.BankName = bankName; + this.AccountName = accountName; + this.Iban = iban; + this.Swift = swift; + this.NationalClearingCode = nationalClearingCode; + this.PopulatedAccountFields = populatedAccountFields; + this.RejectionReason = rejectionReason; + this.BusinessType = businessType; + } + + /// + /// Address of the bank account + /// + /// Address of the bank account + [DataMember(Name="BankAddress", EmitDefaultValue=false)] + public string BankAddress { get; set; } + + /// + /// Address of the payee + /// + /// Address of the payee + [DataMember(Name="AccountHolderAddress", EmitDefaultValue=false)] + public string AccountHolderAddress { get; set; } + + /// + /// Account Holders Vat Number + /// + /// Account Holders Vat Number + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + /// + /// List of stores to attach to Account + /// + /// List of stores to attach to Account + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Name of Bank + /// + /// Name of Bank + [DataMember(Name="BankName", EmitDefaultValue=false)] + public string BankName { get; set; } + + /// + /// Name of this account + /// + /// Name of this account + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// IBAN of this account + /// + /// IBAN of this account + [DataMember(Name="Iban", EmitDefaultValue=false)] + public string Iban { get; set; } + + /// + /// SWIFT of this bank account + /// + /// SWIFT of this bank account + [DataMember(Name="Swift", EmitDefaultValue=false)] + public string Swift { get; set; } + + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + [DataMember(Name="NationalClearingCode", EmitDefaultValue=false)] + public string NationalClearingCode { get; set; } + + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + [DataMember(Name="PopulatedAccountFields", EmitDefaultValue=false)] + public List PopulatedAccountFields { get; set; } + + /// + /// Reason for Rejection + /// + /// Reason for Rejection + [DataMember(Name="RejectionReason", EmitDefaultValue=false)] + public string RejectionReason { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountDetailsUpdateRequest {\n"); + sb.Append(" BankAddress: ").Append(BankAddress).Append("\n"); + sb.Append(" AccountHolderAddress: ").Append(AccountHolderAddress).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" BankName: ").Append(BankName).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" Swift: ").Append(Swift).Append("\n"); + sb.Append(" NationalClearingCode: ").Append(NationalClearingCode).Append("\n"); + sb.Append(" PopulatedAccountFields: ").Append(PopulatedAccountFields).Append("\n"); + sb.Append(" RejectionReason: ").Append(RejectionReason).Append("\n"); + sb.Append(" BusinessType: ").Append(BusinessType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountDetailsUpdateRequest); + } + + /// + /// Returns true if BankAccountDetailsUpdateRequest instances are equal + /// + /// Instance of BankAccountDetailsUpdateRequest to be compared + /// Boolean + public bool Equals(BankAccountDetailsUpdateRequest input) + { + if (input == null) + return false; + + return + ( + this.BankAddress == input.BankAddress || + (this.BankAddress != null && + this.BankAddress.Equals(input.BankAddress)) + ) && + ( + this.AccountHolderAddress == input.AccountHolderAddress || + (this.AccountHolderAddress != null && + this.AccountHolderAddress.Equals(input.AccountHolderAddress)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.BankName == input.BankName || + (this.BankName != null && + this.BankName.Equals(input.BankName)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.Swift == input.Swift || + (this.Swift != null && + this.Swift.Equals(input.Swift)) + ) && + ( + this.NationalClearingCode == input.NationalClearingCode || + (this.NationalClearingCode != null && + this.NationalClearingCode.Equals(input.NationalClearingCode)) + ) && + ( + this.PopulatedAccountFields == input.PopulatedAccountFields || + this.PopulatedAccountFields != null && + this.PopulatedAccountFields.SequenceEqual(input.PopulatedAccountFields) + ) && + ( + this.RejectionReason == input.RejectionReason || + (this.RejectionReason != null && + this.RejectionReason.Equals(input.RejectionReason)) + ) && + ( + this.BusinessType == input.BusinessType || + (this.BusinessType != null && + this.BusinessType.Equals(input.BusinessType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankAddress != null) + hashCode = hashCode * 59 + this.BankAddress.GetHashCode(); + if (this.AccountHolderAddress != null) + hashCode = hashCode * 59 + this.AccountHolderAddress.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.BankName != null) + hashCode = hashCode * 59 + this.BankName.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.Iban != null) + hashCode = hashCode * 59 + this.Iban.GetHashCode(); + if (this.Swift != null) + hashCode = hashCode * 59 + this.Swift.GetHashCode(); + if (this.NationalClearingCode != null) + hashCode = hashCode * 59 + this.NationalClearingCode.GetHashCode(); + if (this.PopulatedAccountFields != null) + hashCode = hashCode * 59 + this.PopulatedAccountFields.GetHashCode(); + if (this.RejectionReason != null) + hashCode = hashCode * 59 + this.RejectionReason.GetHashCode(); + if (this.BusinessType != null) + hashCode = hashCode * 59 + this.BusinessType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountSummary.cs b/src/Flipdish/Model/BankAccountSummary.cs new file mode 100644 index 00000000..95d85827 --- /dev/null +++ b/src/Flipdish/Model/BankAccountSummary.cs @@ -0,0 +1,434 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountSummary + /// + [DataContract] + public partial class BankAccountSummary : IEquatable + { + /// + /// Status of Account + /// + /// Status of Account + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStateEnum + { + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 1, + + /// + /// Enum AwatingVerification for value: AwatingVerification + /// + [EnumMember(Value = "AwatingVerification")] + AwatingVerification = 2, + + /// + /// Enum Verified for value: Verified + /// + [EnumMember(Value = "Verified")] + Verified = 3, + + /// + /// Enum Grandfathered for value: Grandfathered + /// + [EnumMember(Value = "Grandfathered")] + Grandfathered = 4 + } + + /// + /// Status of Account + /// + /// Status of Account + [DataMember(Name="AccountState", EmitDefaultValue=false)] + public AccountStateEnum? AccountState { get; set; } + /// + /// Business Type + /// + /// Business Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessTypeEnum + { + + /// + /// Enum Individual for value: Individual + /// + [EnumMember(Value = "Individual")] + Individual = 1, + + /// + /// Enum Company for value: Company + /// + [EnumMember(Value = "Company")] + Company = 2, + + /// + /// Enum NonProfit for value: NonProfit + /// + [EnumMember(Value = "NonProfit")] + NonProfit = 3, + + /// + /// Enum GovernmentEntity for value: GovernmentEntity + /// + [EnumMember(Value = "GovernmentEntity")] + GovernmentEntity = 4 + } + + /// + /// Business Type + /// + /// Business Type + [DataMember(Name="BusinessType", EmitDefaultValue=false)] + public BusinessTypeEnum? BusinessType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Id of this account. + /// Store Names that are attached to this account. + /// Store Ids that are attached to this account. + /// Status of Account. + /// Currency of Account. + /// Account Holders Vat Number. + /// Account Holders Address. + /// Account Holders Country Code. + /// Information about the Stripe connected account associated with this bank account (if any). + /// Name of this account. + /// IBAN of this account. + /// SWIFT of this bank account. + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ). + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored.. + /// Reason for Rejection. + /// Business Type. + public BankAccountSummary(int? id = default(int?), List storeNames = default(List), List storeIds = default(List), AccountStateEnum? accountState = default(AccountStateEnum?), string currencyCode = default(string), string vatNumber = default(string), string accountHolderAddress = default(string), string accountHolderCountryCode = default(string), StripeConnectedAccountInfo stripeConnectedAccountInfo = default(StripeConnectedAccountInfo), string accountName = default(string), string iban = default(string), string swift = default(string), string nationalClearingCode = default(string), List populatedAccountFields = default(List), string rejectionReason = default(string), BusinessTypeEnum? businessType = default(BusinessTypeEnum?)) + { + this.Id = id; + this.StoreNames = storeNames; + this.StoreIds = storeIds; + this.AccountState = accountState; + this.CurrencyCode = currencyCode; + this.VatNumber = vatNumber; + this.AccountHolderAddress = accountHolderAddress; + this.AccountHolderCountryCode = accountHolderCountryCode; + this.StripeConnectedAccountInfo = stripeConnectedAccountInfo; + this.AccountName = accountName; + this.Iban = iban; + this.Swift = swift; + this.NationalClearingCode = nationalClearingCode; + this.PopulatedAccountFields = populatedAccountFields; + this.RejectionReason = rejectionReason; + this.BusinessType = businessType; + } + + /// + /// Id of this account + /// + /// Id of this account + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Store Names that are attached to this account + /// + /// Store Names that are attached to this account + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Store Ids that are attached to this account + /// + /// Store Ids that are attached to this account + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + + /// + /// Currency of Account + /// + /// Currency of Account + [DataMember(Name="CurrencyCode", EmitDefaultValue=false)] + public string CurrencyCode { get; set; } + + /// + /// Account Holders Vat Number + /// + /// Account Holders Vat Number + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + /// + /// Account Holders Address + /// + /// Account Holders Address + [DataMember(Name="AccountHolderAddress", EmitDefaultValue=false)] + public string AccountHolderAddress { get; set; } + + /// + /// Account Holders Country Code + /// + /// Account Holders Country Code + [DataMember(Name="AccountHolderCountryCode", EmitDefaultValue=false)] + public string AccountHolderCountryCode { get; set; } + + /// + /// Information about the Stripe connected account associated with this bank account (if any) + /// + /// Information about the Stripe connected account associated with this bank account (if any) + [DataMember(Name="StripeConnectedAccountInfo", EmitDefaultValue=false)] + public StripeConnectedAccountInfo StripeConnectedAccountInfo { get; set; } + + /// + /// Name of this account + /// + /// Name of this account + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// IBAN of this account + /// + /// IBAN of this account + [DataMember(Name="Iban", EmitDefaultValue=false)] + public string Iban { get; set; } + + /// + /// SWIFT of this bank account + /// + /// SWIFT of this bank account + [DataMember(Name="Swift", EmitDefaultValue=false)] + public string Swift { get; set; } + + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + /// + /// National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + [DataMember(Name="NationalClearingCode", EmitDefaultValue=false)] + public string NationalClearingCode { get; set; } + + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + /// + /// A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. + [DataMember(Name="PopulatedAccountFields", EmitDefaultValue=false)] + public List PopulatedAccountFields { get; set; } + + /// + /// Reason for Rejection + /// + /// Reason for Rejection + [DataMember(Name="RejectionReason", EmitDefaultValue=false)] + public string RejectionReason { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" AccountState: ").Append(AccountState).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" AccountHolderAddress: ").Append(AccountHolderAddress).Append("\n"); + sb.Append(" AccountHolderCountryCode: ").Append(AccountHolderCountryCode).Append("\n"); + sb.Append(" StripeConnectedAccountInfo: ").Append(StripeConnectedAccountInfo).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" Swift: ").Append(Swift).Append("\n"); + sb.Append(" NationalClearingCode: ").Append(NationalClearingCode).Append("\n"); + sb.Append(" PopulatedAccountFields: ").Append(PopulatedAccountFields).Append("\n"); + sb.Append(" RejectionReason: ").Append(RejectionReason).Append("\n"); + sb.Append(" BusinessType: ").Append(BusinessType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountSummary); + } + + /// + /// Returns true if BankAccountSummary instances are equal + /// + /// Instance of BankAccountSummary to be compared + /// Boolean + public bool Equals(BankAccountSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.AccountState == input.AccountState || + (this.AccountState != null && + this.AccountState.Equals(input.AccountState)) + ) && + ( + this.CurrencyCode == input.CurrencyCode || + (this.CurrencyCode != null && + this.CurrencyCode.Equals(input.CurrencyCode)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.AccountHolderAddress == input.AccountHolderAddress || + (this.AccountHolderAddress != null && + this.AccountHolderAddress.Equals(input.AccountHolderAddress)) + ) && + ( + this.AccountHolderCountryCode == input.AccountHolderCountryCode || + (this.AccountHolderCountryCode != null && + this.AccountHolderCountryCode.Equals(input.AccountHolderCountryCode)) + ) && + ( + this.StripeConnectedAccountInfo == input.StripeConnectedAccountInfo || + (this.StripeConnectedAccountInfo != null && + this.StripeConnectedAccountInfo.Equals(input.StripeConnectedAccountInfo)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.Swift == input.Swift || + (this.Swift != null && + this.Swift.Equals(input.Swift)) + ) && + ( + this.NationalClearingCode == input.NationalClearingCode || + (this.NationalClearingCode != null && + this.NationalClearingCode.Equals(input.NationalClearingCode)) + ) && + ( + this.PopulatedAccountFields == input.PopulatedAccountFields || + this.PopulatedAccountFields != null && + this.PopulatedAccountFields.SequenceEqual(input.PopulatedAccountFields) + ) && + ( + this.RejectionReason == input.RejectionReason || + (this.RejectionReason != null && + this.RejectionReason.Equals(input.RejectionReason)) + ) && + ( + this.BusinessType == input.BusinessType || + (this.BusinessType != null && + this.BusinessType.Equals(input.BusinessType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.AccountState != null) + hashCode = hashCode * 59 + this.AccountState.GetHashCode(); + if (this.CurrencyCode != null) + hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.AccountHolderAddress != null) + hashCode = hashCode * 59 + this.AccountHolderAddress.GetHashCode(); + if (this.AccountHolderCountryCode != null) + hashCode = hashCode * 59 + this.AccountHolderCountryCode.GetHashCode(); + if (this.StripeConnectedAccountInfo != null) + hashCode = hashCode * 59 + this.StripeConnectedAccountInfo.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.Iban != null) + hashCode = hashCode * 59 + this.Iban.GetHashCode(); + if (this.Swift != null) + hashCode = hashCode * 59 + this.Swift.GetHashCode(); + if (this.NationalClearingCode != null) + hashCode = hashCode * 59 + this.NationalClearingCode.GetHashCode(); + if (this.PopulatedAccountFields != null) + hashCode = hashCode * 59 + this.PopulatedAccountFields.GetHashCode(); + if (this.RejectionReason != null) + hashCode = hashCode * 59 + this.RejectionReason.GetHashCode(); + if (this.BusinessType != null) + hashCode = hashCode * 59 + this.BusinessType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BankAccountUpdatedEvent.cs b/src/Flipdish/Model/BankAccountUpdatedEvent.cs new file mode 100644 index 00000000..68a48d94 --- /dev/null +++ b/src/Flipdish/Model/BankAccountUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BankAccountUpdatedEvent + /// + [DataContract] + public partial class BankAccountUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Organisation Id. + /// The create bank account. + /// Updated by user. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public BankAccountUpdatedEvent(string orgId = default(string), BankAccount bankAccount = default(BankAccount), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.OrgId = orgId; + this.BankAccount = bankAccount; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// The create bank account + /// + /// The create bank account + [DataMember(Name="BankAccount", EmitDefaultValue=false)] + public BankAccount BankAccount { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BankAccountUpdatedEvent {\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" BankAccount: ").Append(BankAccount).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BankAccountUpdatedEvent); + } + + /// + /// Returns true if BankAccountUpdatedEvent instances are equal + /// + /// Instance of BankAccountUpdatedEvent to be compared + /// Boolean + public bool Equals(BankAccountUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.BankAccount == input.BankAccount || + (this.BankAccount != null && + this.BankAccount.Equals(input.BankAccount)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.BankAccount != null) + hashCode = hashCode * 59 + this.BankAccount.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BluetoothTerminalStatus.cs b/src/Flipdish/Model/BluetoothTerminalStatus.cs new file mode 100644 index 00000000..b84788b6 --- /dev/null +++ b/src/Flipdish/Model/BluetoothTerminalStatus.cs @@ -0,0 +1,293 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Status of the bluetooth terminal + /// + [DataContract] + public partial class BluetoothTerminalStatus : IEquatable + { + /// + /// Device Type + /// + /// Device Type + [JsonConverter(typeof(StringEnumConverter))] + public enum DeviceTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Device Type + /// + /// Device Type + [DataMember(Name="DeviceType", EmitDefaultValue=false)] + public DeviceTypeEnum? DeviceType { get; set; } + /// + /// Device Status + /// + /// Device Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum NotConnected for value: Not_Connected + /// + [EnumMember(Value = "Not_Connected")] + NotConnected = 1, + + /// + /// Enum Connecting for value: Connecting + /// + [EnumMember(Value = "Connecting")] + Connecting = 2, + + /// + /// Enum Connected for value: Connected + /// + [EnumMember(Value = "Connected")] + Connected = 3, + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 4, + + /// + /// Enum Offline for value: Offline + /// + [EnumMember(Value = "Offline")] + Offline = 5 + } + + /// + /// Device Status + /// + /// Device Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Serial Number. + /// Software Version. + /// Device Type. + /// Device Status. + /// Indication of the battery level from 0 to 1. + /// Last time the status was updated. + /// ReaderId for Stripe Terminal. + public BluetoothTerminalStatus(string serialNumber = default(string), string softwareVersion = default(string), DeviceTypeEnum? deviceType = default(DeviceTypeEnum?), StatusEnum? status = default(StatusEnum?), float? batteryLevel = default(float?), DateTime? updateTime = default(DateTime?), string readerId = default(string)) + { + this.SerialNumber = serialNumber; + this.SoftwareVersion = softwareVersion; + this.DeviceType = deviceType; + this.Status = status; + this.BatteryLevel = batteryLevel; + this.UpdateTime = updateTime; + this.ReaderId = readerId; + } + + /// + /// Serial Number + /// + /// Serial Number + [DataMember(Name="SerialNumber", EmitDefaultValue=false)] + public string SerialNumber { get; set; } + + /// + /// Software Version + /// + /// Software Version + [DataMember(Name="SoftwareVersion", EmitDefaultValue=false)] + public string SoftwareVersion { get; set; } + + + + /// + /// Indication of the battery level from 0 to 1 + /// + /// Indication of the battery level from 0 to 1 + [DataMember(Name="BatteryLevel", EmitDefaultValue=false)] + public float? BatteryLevel { get; set; } + + /// + /// Last time the status was updated + /// + /// Last time the status was updated + [DataMember(Name="UpdateTime", EmitDefaultValue=false)] + public DateTime? UpdateTime { get; set; } + + /// + /// ReaderId for Stripe Terminal + /// + /// ReaderId for Stripe Terminal + [DataMember(Name="ReaderId", EmitDefaultValue=false)] + public string ReaderId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BluetoothTerminalStatus {\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" SoftwareVersion: ").Append(SoftwareVersion).Append("\n"); + sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" BatteryLevel: ").Append(BatteryLevel).Append("\n"); + sb.Append(" UpdateTime: ").Append(UpdateTime).Append("\n"); + sb.Append(" ReaderId: ").Append(ReaderId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BluetoothTerminalStatus); + } + + /// + /// Returns true if BluetoothTerminalStatus instances are equal + /// + /// Instance of BluetoothTerminalStatus to be compared + /// Boolean + public bool Equals(BluetoothTerminalStatus input) + { + if (input == null) + return false; + + return + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.SoftwareVersion == input.SoftwareVersion || + (this.SoftwareVersion != null && + this.SoftwareVersion.Equals(input.SoftwareVersion)) + ) && + ( + this.DeviceType == input.DeviceType || + (this.DeviceType != null && + this.DeviceType.Equals(input.DeviceType)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.BatteryLevel == input.BatteryLevel || + (this.BatteryLevel != null && + this.BatteryLevel.Equals(input.BatteryLevel)) + ) && + ( + this.UpdateTime == input.UpdateTime || + (this.UpdateTime != null && + this.UpdateTime.Equals(input.UpdateTime)) + ) && + ( + this.ReaderId == input.ReaderId || + (this.ReaderId != null && + this.ReaderId.Equals(input.ReaderId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.SoftwareVersion != null) + hashCode = hashCode * 59 + this.SoftwareVersion.GetHashCode(); + if (this.DeviceType != null) + hashCode = hashCode * 59 + this.DeviceType.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.BatteryLevel != null) + hashCode = hashCode * 59 + this.BatteryLevel.GetHashCode(); + if (this.UpdateTime != null) + hashCode = hashCode * 59 + this.UpdateTime.GetHashCode(); + if (this.ReaderId != null) + hashCode = hashCode * 59 + this.ReaderId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BuildResultModel.cs b/src/Flipdish/Model/BuildResultModel.cs new file mode 100644 index 00000000..c9e7dfb2 --- /dev/null +++ b/src/Flipdish/Model/BuildResultModel.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Build result model + /// + [DataContract] + public partial class BuildResultModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Build result message. + /// Build ID or reference. + public BuildResultModel(string message = default(string), string buildId = default(string)) + { + this.Message = message; + this.BuildId = buildId; + } + + /// + /// Build result message + /// + /// Build result message + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Build ID or reference + /// + /// Build ID or reference + [DataMember(Name="BuildId", EmitDefaultValue=false)] + public string BuildId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BuildResultModel {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" BuildId: ").Append(BuildId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BuildResultModel); + } + + /// + /// Returns true if BuildResultModel instances are equal + /// + /// Instance of BuildResultModel to be compared + /// Boolean + public bool Equals(BuildResultModel input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.BuildId == input.BuildId || + (this.BuildId != null && + this.BuildId.Equals(input.BuildId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.BuildId != null) + hashCode = hashCode * 59 + this.BuildId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BusinessHoursOverride.cs b/src/Flipdish/Model/BusinessHoursOverride.cs new file mode 100644 index 00000000..d86b2169 --- /dev/null +++ b/src/Flipdish/Model/BusinessHoursOverride.cs @@ -0,0 +1,250 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BusinessHoursOverride + /// + [DataContract] + public partial class BusinessHoursOverride : IEquatable + { + /// + /// Delivery or Pickup + /// + /// Delivery or Pickup + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Delivery or Pickup + /// + /// Delivery or Pickup + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Open, Closed or ClosedAllowPreOrders + /// + /// Open, Closed or ClosedAllowPreOrders + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum Open for value: Open + /// + [EnumMember(Value = "Open")] + Open = 1, + + /// + /// Enum Closed for value: Closed + /// + [EnumMember(Value = "Closed")] + Closed = 2, + + /// + /// Enum ClosedAllowPreOrders for value: ClosedAllowPreOrders + /// + [EnumMember(Value = "ClosedAllowPreOrders")] + ClosedAllowPreOrders = 3 + } + + /// + /// Open, Closed or ClosedAllowPreOrders + /// + /// Open, Closed or ClosedAllowPreOrders + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BusinessHoursOverride() { } + /// + /// Initializes a new instance of the class. + /// + /// Unique identifier. + /// Delivery or Pickup. + /// Date and time in ISO 8601 format. (required). + /// Date and time in ISO 8601 format. (required). + /// Open, Closed or ClosedAllowPreOrders. + public BusinessHoursOverride(int? businessHoursOverrideId = default(int?), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), DateTime? startTime = default(DateTime?), DateTime? endTime = default(DateTime?), TypeEnum? type = default(TypeEnum?)) + { + // to ensure "startTime" is required (not null) + if (startTime == null) + { + throw new InvalidDataException("startTime is a required property for BusinessHoursOverride and cannot be null"); + } + else + { + this.StartTime = startTime; + } + // to ensure "endTime" is required (not null) + if (endTime == null) + { + throw new InvalidDataException("endTime is a required property for BusinessHoursOverride and cannot be null"); + } + else + { + this.EndTime = endTime; + } + this.BusinessHoursOverrideId = businessHoursOverrideId; + this.DeliveryType = deliveryType; + this.Type = type; + } + + /// + /// Unique identifier + /// + /// Unique identifier + [DataMember(Name="BusinessHoursOverrideId", EmitDefaultValue=false)] + public int? BusinessHoursOverrideId { get; set; } + + + /// + /// Date and time in ISO 8601 format. + /// + /// Date and time in ISO 8601 format. + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Date and time in ISO 8601 format. + /// + /// Date and time in ISO 8601 format. + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BusinessHoursOverride {\n"); + sb.Append(" BusinessHoursOverrideId: ").Append(BusinessHoursOverrideId).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BusinessHoursOverride); + } + + /// + /// Returns true if BusinessHoursOverride instances are equal + /// + /// Instance of BusinessHoursOverride to be compared + /// Boolean + public bool Equals(BusinessHoursOverride input) + { + if (input == null) + return false; + + return + ( + this.BusinessHoursOverrideId == input.BusinessHoursOverrideId || + (this.BusinessHoursOverrideId != null && + this.BusinessHoursOverrideId.Equals(input.BusinessHoursOverrideId)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BusinessHoursOverrideId != null) + hashCode = hashCode * 59 + this.BusinessHoursOverrideId.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BusinessHoursOverrideBase.cs b/src/Flipdish/Model/BusinessHoursOverrideBase.cs new file mode 100644 index 00000000..9a837304 --- /dev/null +++ b/src/Flipdish/Model/BusinessHoursOverrideBase.cs @@ -0,0 +1,233 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// BusinessHoursOverrideBase + /// + [DataContract] + public partial class BusinessHoursOverrideBase : IEquatable + { + /// + /// Delivery or Pickup + /// + /// Delivery or Pickup + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Delivery or Pickup + /// + /// Delivery or Pickup + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Open, Closed or ClosedAllowPreOrders + /// + /// Open, Closed or ClosedAllowPreOrders + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum Open for value: Open + /// + [EnumMember(Value = "Open")] + Open = 1, + + /// + /// Enum Closed for value: Closed + /// + [EnumMember(Value = "Closed")] + Closed = 2, + + /// + /// Enum ClosedAllowPreOrders for value: ClosedAllowPreOrders + /// + [EnumMember(Value = "ClosedAllowPreOrders")] + ClosedAllowPreOrders = 3 + } + + /// + /// Open, Closed or ClosedAllowPreOrders + /// + /// Open, Closed or ClosedAllowPreOrders + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BusinessHoursOverrideBase() { } + /// + /// Initializes a new instance of the class. + /// + /// Delivery or Pickup. + /// Date and time in ISO 8601 format. (required). + /// Date and time in ISO 8601 format. (required). + /// Open, Closed or ClosedAllowPreOrders. + public BusinessHoursOverrideBase(DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), DateTime? startTime = default(DateTime?), DateTime? endTime = default(DateTime?), TypeEnum? type = default(TypeEnum?)) + { + // to ensure "startTime" is required (not null) + if (startTime == null) + { + throw new InvalidDataException("startTime is a required property for BusinessHoursOverrideBase and cannot be null"); + } + else + { + this.StartTime = startTime; + } + // to ensure "endTime" is required (not null) + if (endTime == null) + { + throw new InvalidDataException("endTime is a required property for BusinessHoursOverrideBase and cannot be null"); + } + else + { + this.EndTime = endTime; + } + this.DeliveryType = deliveryType; + this.Type = type; + } + + + /// + /// Date and time in ISO 8601 format. + /// + /// Date and time in ISO 8601 format. + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Date and time in ISO 8601 format. + /// + /// Date and time in ISO 8601 format. + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BusinessHoursOverrideBase {\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BusinessHoursOverrideBase); + } + + /// + /// Returns true if BusinessHoursOverrideBase instances are equal + /// + /// Instance of BusinessHoursOverrideBase to be compared + /// Boolean + public bool Equals(BusinessHoursOverrideBase input) + { + if (input == null) + return false; + + return + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BusinessHoursPeriod.cs b/src/Flipdish/Model/BusinessHoursPeriod.cs new file mode 100644 index 00000000..51fed083 --- /dev/null +++ b/src/Flipdish/Model/BusinessHoursPeriod.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Business hours period + /// + [DataContract] + public partial class BusinessHoursPeriod : IEquatable + { + /// + /// Day of week + /// + /// Day of week + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// Day of week + /// + /// Day of week + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public DayOfWeekEnum? DayOfWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Early. + /// Late. + /// Ranges. + /// Day of week. + /// Start time. + /// Period. + /// Start time early. + /// Period early. + public BusinessHoursPeriod(Range early = default(Range), Range late = default(Range), List ranges = default(List), DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?), string startTime = default(string), string period = default(string), string startTimeEarly = default(string), string periodEarly = default(string)) + { + this.Early = early; + this.Late = late; + this.Ranges = ranges; + this.DayOfWeek = dayOfWeek; + this.StartTime = startTime; + this.Period = period; + this.StartTimeEarly = startTimeEarly; + this.PeriodEarly = periodEarly; + } + + /// + /// Early + /// + /// Early + [DataMember(Name="Early", EmitDefaultValue=false)] + public Range Early { get; set; } + + /// + /// Late + /// + /// Late + [DataMember(Name="Late", EmitDefaultValue=false)] + public Range Late { get; set; } + + /// + /// Ranges + /// + /// Ranges + [DataMember(Name="Ranges", EmitDefaultValue=false)] + public List Ranges { get; set; } + + + /// + /// Start time + /// + /// Start time + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public string StartTime { get; set; } + + /// + /// Period + /// + /// Period + [DataMember(Name="Period", EmitDefaultValue=false)] + public string Period { get; set; } + + /// + /// Start time early + /// + /// Start time early + [DataMember(Name="StartTimeEarly", EmitDefaultValue=false)] + public string StartTimeEarly { get; set; } + + /// + /// Period early + /// + /// Period early + [DataMember(Name="PeriodEarly", EmitDefaultValue=false)] + public string PeriodEarly { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BusinessHoursPeriod {\n"); + sb.Append(" Early: ").Append(Early).Append("\n"); + sb.Append(" Late: ").Append(Late).Append("\n"); + sb.Append(" Ranges: ").Append(Ranges).Append("\n"); + sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append(" StartTimeEarly: ").Append(StartTimeEarly).Append("\n"); + sb.Append(" PeriodEarly: ").Append(PeriodEarly).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BusinessHoursPeriod); + } + + /// + /// Returns true if BusinessHoursPeriod instances are equal + /// + /// Instance of BusinessHoursPeriod to be compared + /// Boolean + public bool Equals(BusinessHoursPeriod input) + { + if (input == null) + return false; + + return + ( + this.Early == input.Early || + (this.Early != null && + this.Early.Equals(input.Early)) + ) && + ( + this.Late == input.Late || + (this.Late != null && + this.Late.Equals(input.Late)) + ) && + ( + this.Ranges == input.Ranges || + this.Ranges != null && + this.Ranges.SequenceEqual(input.Ranges) + ) && + ( + this.DayOfWeek == input.DayOfWeek || + (this.DayOfWeek != null && + this.DayOfWeek.Equals(input.DayOfWeek)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.Period == input.Period || + (this.Period != null && + this.Period.Equals(input.Period)) + ) && + ( + this.StartTimeEarly == input.StartTimeEarly || + (this.StartTimeEarly != null && + this.StartTimeEarly.Equals(input.StartTimeEarly)) + ) && + ( + this.PeriodEarly == input.PeriodEarly || + (this.PeriodEarly != null && + this.PeriodEarly.Equals(input.PeriodEarly)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Early != null) + hashCode = hashCode * 59 + this.Early.GetHashCode(); + if (this.Late != null) + hashCode = hashCode * 59 + this.Late.GetHashCode(); + if (this.Ranges != null) + hashCode = hashCode * 59 + this.Ranges.GetHashCode(); + if (this.DayOfWeek != null) + hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.Period != null) + hashCode = hashCode * 59 + this.Period.GetHashCode(); + if (this.StartTimeEarly != null) + hashCode = hashCode * 59 + this.StartTimeEarly.GetHashCode(); + if (this.PeriodEarly != null) + hashCode = hashCode * 59 + this.PeriodEarly.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/BusinessHoursPeriodBase.cs b/src/Flipdish/Model/BusinessHoursPeriodBase.cs new file mode 100644 index 00000000..e4f34537 --- /dev/null +++ b/src/Flipdish/Model/BusinessHoursPeriodBase.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Business hours period + /// + [DataContract] + public partial class BusinessHoursPeriodBase : IEquatable + { + /// + /// Day of week + /// + /// Day of week + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// Day of week + /// + /// Day of week + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public DayOfWeekEnum? DayOfWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Day of week. + /// Start time. + /// Period. + /// Start time early. + /// Period early. + public BusinessHoursPeriodBase(DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?), string startTime = default(string), string period = default(string), string startTimeEarly = default(string), string periodEarly = default(string)) + { + this.DayOfWeek = dayOfWeek; + this.StartTime = startTime; + this.Period = period; + this.StartTimeEarly = startTimeEarly; + this.PeriodEarly = periodEarly; + } + + + /// + /// Start time + /// + /// Start time + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public string StartTime { get; set; } + + /// + /// Period + /// + /// Period + [DataMember(Name="Period", EmitDefaultValue=false)] + public string Period { get; set; } + + /// + /// Start time early + /// + /// Start time early + [DataMember(Name="StartTimeEarly", EmitDefaultValue=false)] + public string StartTimeEarly { get; set; } + + /// + /// Period early + /// + /// Period early + [DataMember(Name="PeriodEarly", EmitDefaultValue=false)] + public string PeriodEarly { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BusinessHoursPeriodBase {\n"); + sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append(" StartTimeEarly: ").Append(StartTimeEarly).Append("\n"); + sb.Append(" PeriodEarly: ").Append(PeriodEarly).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BusinessHoursPeriodBase); + } + + /// + /// Returns true if BusinessHoursPeriodBase instances are equal + /// + /// Instance of BusinessHoursPeriodBase to be compared + /// Boolean + public bool Equals(BusinessHoursPeriodBase input) + { + if (input == null) + return false; + + return + ( + this.DayOfWeek == input.DayOfWeek || + (this.DayOfWeek != null && + this.DayOfWeek.Equals(input.DayOfWeek)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.Period == input.Period || + (this.Period != null && + this.Period.Equals(input.Period)) + ) && + ( + this.StartTimeEarly == input.StartTimeEarly || + (this.StartTimeEarly != null && + this.StartTimeEarly.Equals(input.StartTimeEarly)) + ) && + ( + this.PeriodEarly == input.PeriodEarly || + (this.PeriodEarly != null && + this.PeriodEarly.Equals(input.PeriodEarly)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DayOfWeek != null) + hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.Period != null) + hashCode = hashCode * 59 + this.Period.GetHashCode(); + if (this.StartTimeEarly != null) + hashCode = hashCode * 59 + this.StartTimeEarly.GetHashCode(); + if (this.PeriodEarly != null) + hashCode = hashCode * 59 + this.PeriodEarly.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CampaignStatistics.cs b/src/Flipdish/Model/CampaignStatistics.cs new file mode 100644 index 00000000..39b796b4 --- /dev/null +++ b/src/Flipdish/Model/CampaignStatistics.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Campaign statistics + /// + [DataContract] + public partial class CampaignStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Deprecated. Number of issued vouchers. This field is always zero.. + /// Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero.. + /// Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero.. + /// Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero.. + /// Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero.. + public CampaignStatistics(int? vouchersIssued = default(int?), int? vouchersRedeemed = default(int?), double? conversion = default(double?), double? salesGenerated = default(double?), double? returnOfInvestment = default(double?)) + { + this.VouchersIssued = vouchersIssued; + this.VouchersRedeemed = vouchersRedeemed; + this.Conversion = conversion; + this.SalesGenerated = salesGenerated; + this.ReturnOfInvestment = returnOfInvestment; + } + + /// + /// Deprecated. Number of issued vouchers. This field is always zero. + /// + /// Deprecated. Number of issued vouchers. This field is always zero. + [DataMember(Name="VouchersIssued", EmitDefaultValue=false)] + public int? VouchersIssued { get; set; } + + /// + /// Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. + /// + /// Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. + [DataMember(Name="VouchersRedeemed", EmitDefaultValue=false)] + public int? VouchersRedeemed { get; set; } + + /// + /// Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. + /// + /// Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. + [DataMember(Name="Conversion", EmitDefaultValue=false)] + public double? Conversion { get; set; } + + /// + /// Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. + /// + /// Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. + [DataMember(Name="SalesGenerated", EmitDefaultValue=false)] + public double? SalesGenerated { get; set; } + + /// + /// Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. + /// + /// Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. + [DataMember(Name="ReturnOfInvestment", EmitDefaultValue=false)] + public double? ReturnOfInvestment { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CampaignStatistics {\n"); + sb.Append(" VouchersIssued: ").Append(VouchersIssued).Append("\n"); + sb.Append(" VouchersRedeemed: ").Append(VouchersRedeemed).Append("\n"); + sb.Append(" Conversion: ").Append(Conversion).Append("\n"); + sb.Append(" SalesGenerated: ").Append(SalesGenerated).Append("\n"); + sb.Append(" ReturnOfInvestment: ").Append(ReturnOfInvestment).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CampaignStatistics); + } + + /// + /// Returns true if CampaignStatistics instances are equal + /// + /// Instance of CampaignStatistics to be compared + /// Boolean + public bool Equals(CampaignStatistics input) + { + if (input == null) + return false; + + return + ( + this.VouchersIssued == input.VouchersIssued || + (this.VouchersIssued != null && + this.VouchersIssued.Equals(input.VouchersIssued)) + ) && + ( + this.VouchersRedeemed == input.VouchersRedeemed || + (this.VouchersRedeemed != null && + this.VouchersRedeemed.Equals(input.VouchersRedeemed)) + ) && + ( + this.Conversion == input.Conversion || + (this.Conversion != null && + this.Conversion.Equals(input.Conversion)) + ) && + ( + this.SalesGenerated == input.SalesGenerated || + (this.SalesGenerated != null && + this.SalesGenerated.Equals(input.SalesGenerated)) + ) && + ( + this.ReturnOfInvestment == input.ReturnOfInvestment || + (this.ReturnOfInvestment != null && + this.ReturnOfInvestment.Equals(input.ReturnOfInvestment)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VouchersIssued != null) + hashCode = hashCode * 59 + this.VouchersIssued.GetHashCode(); + if (this.VouchersRedeemed != null) + hashCode = hashCode * 59 + this.VouchersRedeemed.GetHashCode(); + if (this.Conversion != null) + hashCode = hashCode * 59 + this.Conversion.GetHashCode(); + if (this.SalesGenerated != null) + hashCode = hashCode * 59 + this.SalesGenerated.GetHashCode(); + if (this.ReturnOfInvestment != null) + hashCode = hashCode * 59 + this.ReturnOfInvestment.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CancellationToken.cs b/src/Flipdish/Model/CancellationToken.cs new file mode 100644 index 00000000..107b89b0 --- /dev/null +++ b/src/Flipdish/Model/CancellationToken.cs @@ -0,0 +1,139 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CancellationToken + /// + [DataContract] + public partial class CancellationToken : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public CancellationToken() + { + } + + /// + /// Gets or Sets IsCancellationRequested + /// + [DataMember(Name="IsCancellationRequested", EmitDefaultValue=false)] + public bool? IsCancellationRequested { get; private set; } + + /// + /// Gets or Sets CanBeCanceled + /// + [DataMember(Name="CanBeCanceled", EmitDefaultValue=false)] + public bool? CanBeCanceled { get; private set; } + + /// + /// Gets or Sets WaitHandle + /// + [DataMember(Name="WaitHandle", EmitDefaultValue=false)] + public WaitHandle WaitHandle { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CancellationToken {\n"); + sb.Append(" IsCancellationRequested: ").Append(IsCancellationRequested).Append("\n"); + sb.Append(" CanBeCanceled: ").Append(CanBeCanceled).Append("\n"); + sb.Append(" WaitHandle: ").Append(WaitHandle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CancellationToken); + } + + /// + /// Returns true if CancellationToken instances are equal + /// + /// Instance of CancellationToken to be compared + /// Boolean + public bool Equals(CancellationToken input) + { + if (input == null) + return false; + + return + ( + this.IsCancellationRequested == input.IsCancellationRequested || + (this.IsCancellationRequested != null && + this.IsCancellationRequested.Equals(input.IsCancellationRequested)) + ) && + ( + this.CanBeCanceled == input.CanBeCanceled || + (this.CanBeCanceled != null && + this.CanBeCanceled.Equals(input.CanBeCanceled)) + ) && + ( + this.WaitHandle == input.WaitHandle || + (this.WaitHandle != null && + this.WaitHandle.Equals(input.WaitHandle)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsCancellationRequested != null) + hashCode = hashCode * 59 + this.IsCancellationRequested.GetHashCode(); + if (this.CanBeCanceled != null) + hashCode = hashCode * 59 + this.CanBeCanceled.GetHashCode(); + if (this.WaitHandle != null) + hashCode = hashCode * 59 + this.WaitHandle.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CardReader.cs b/src/Flipdish/Model/CardReader.cs new file mode 100644 index 00000000..c9b390ff --- /dev/null +++ b/src/Flipdish/Model/CardReader.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Card reader + /// + [DataContract] + public partial class CardReader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Stripe reader id. + /// Software version. + /// Device serial number. + /// Device status online or offline. + /// Registration code. + /// Device type. + /// Indicates that the reader is deleted or not. + /// Action status. + public CardReader(string id = default(string), string deviceSoftwareVersion = default(string), string serialNumber = default(string), string status = default(string), string registrationCode = default(string), string deviceType = default(string), bool? deleted = default(bool?), ReaderActionStateInfo action = default(ReaderActionStateInfo)) + { + this.Id = id; + this.DeviceSoftwareVersion = deviceSoftwareVersion; + this.SerialNumber = serialNumber; + this.Status = status; + this.RegistrationCode = registrationCode; + this.DeviceType = deviceType; + this.Deleted = deleted; + this.Action = action; + } + + /// + /// Stripe reader id + /// + /// Stripe reader id + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Software version + /// + /// Software version + [DataMember(Name="DeviceSoftwareVersion", EmitDefaultValue=false)] + public string DeviceSoftwareVersion { get; set; } + + /// + /// Device serial number + /// + /// Device serial number + [DataMember(Name="SerialNumber", EmitDefaultValue=false)] + public string SerialNumber { get; set; } + + /// + /// Device status online or offline + /// + /// Device status online or offline + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Registration code + /// + /// Registration code + [DataMember(Name="RegistrationCode", EmitDefaultValue=false)] + public string RegistrationCode { get; set; } + + /// + /// Device type + /// + /// Device type + [DataMember(Name="DeviceType", EmitDefaultValue=false)] + public string DeviceType { get; set; } + + /// + /// Indicates that the reader is deleted or not + /// + /// Indicates that the reader is deleted or not + [DataMember(Name="Deleted", EmitDefaultValue=false)] + public bool? Deleted { get; set; } + + /// + /// Action status + /// + /// Action status + [DataMember(Name="Action", EmitDefaultValue=false)] + public ReaderActionStateInfo Action { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CardReader {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DeviceSoftwareVersion: ").Append(DeviceSoftwareVersion).Append("\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" RegistrationCode: ").Append(RegistrationCode).Append("\n"); + sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); + sb.Append(" Deleted: ").Append(Deleted).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CardReader); + } + + /// + /// Returns true if CardReader instances are equal + /// + /// Instance of CardReader to be compared + /// Boolean + public bool Equals(CardReader input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DeviceSoftwareVersion == input.DeviceSoftwareVersion || + (this.DeviceSoftwareVersion != null && + this.DeviceSoftwareVersion.Equals(input.DeviceSoftwareVersion)) + ) && + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.RegistrationCode == input.RegistrationCode || + (this.RegistrationCode != null && + this.RegistrationCode.Equals(input.RegistrationCode)) + ) && + ( + this.DeviceType == input.DeviceType || + (this.DeviceType != null && + this.DeviceType.Equals(input.DeviceType)) + ) && + ( + this.Deleted == input.Deleted || + (this.Deleted != null && + this.Deleted.Equals(input.Deleted)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.DeviceSoftwareVersion != null) + hashCode = hashCode * 59 + this.DeviceSoftwareVersion.GetHashCode(); + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.RegistrationCode != null) + hashCode = hashCode * 59 + this.RegistrationCode.GetHashCode(); + if (this.DeviceType != null) + hashCode = hashCode * 59 + this.DeviceType.GetHashCode(); + if (this.Deleted != null) + hashCode = hashCode * 59 + this.Deleted.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CardReaderRegistrationRequest.cs b/src/Flipdish/Model/CardReaderRegistrationRequest.cs new file mode 100644 index 00000000..4acdb121 --- /dev/null +++ b/src/Flipdish/Model/CardReaderRegistrationRequest.cs @@ -0,0 +1,143 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Card reader registration request + /// + [DataContract] + public partial class CardReaderRegistrationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CardReaderRegistrationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// The reader registration code (required). + /// The kiosk device id. + public CardReaderRegistrationRequest(string registrationCode = default(string), string kioskDeviceId = default(string)) + { + // to ensure "registrationCode" is required (not null) + if (registrationCode == null) + { + throw new InvalidDataException("registrationCode is a required property for CardReaderRegistrationRequest and cannot be null"); + } + else + { + this.RegistrationCode = registrationCode; + } + this.KioskDeviceId = kioskDeviceId; + } + + /// + /// The reader registration code + /// + /// The reader registration code + [DataMember(Name="RegistrationCode", EmitDefaultValue=false)] + public string RegistrationCode { get; set; } + + /// + /// The kiosk device id + /// + /// The kiosk device id + [DataMember(Name="KioskDeviceId", EmitDefaultValue=false)] + public string KioskDeviceId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CardReaderRegistrationRequest {\n"); + sb.Append(" RegistrationCode: ").Append(RegistrationCode).Append("\n"); + sb.Append(" KioskDeviceId: ").Append(KioskDeviceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CardReaderRegistrationRequest); + } + + /// + /// Returns true if CardReaderRegistrationRequest instances are equal + /// + /// Instance of CardReaderRegistrationRequest to be compared + /// Boolean + public bool Equals(CardReaderRegistrationRequest input) + { + if (input == null) + return false; + + return + ( + this.RegistrationCode == input.RegistrationCode || + (this.RegistrationCode != null && + this.RegistrationCode.Equals(input.RegistrationCode)) + ) && + ( + this.KioskDeviceId == input.KioskDeviceId || + (this.KioskDeviceId != null && + this.KioskDeviceId.Equals(input.KioskDeviceId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RegistrationCode != null) + hashCode = hashCode * 59 + this.RegistrationCode.GetHashCode(); + if (this.KioskDeviceId != null) + hashCode = hashCode * 59 + this.KioskDeviceId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogGroupArchivedEvent.cs b/src/Flipdish/Model/CatalogGroupArchivedEvent.cs new file mode 100644 index 00000000..121881d8 --- /dev/null +++ b/src/Flipdish/Model/CatalogGroupArchivedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogGroupArchivedEvent + /// + [DataContract] + public partial class CatalogGroupArchivedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the group. + /// Catalog group created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogGroupArchivedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Group group = default(Group), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Group = group; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the group + /// + /// User who has created the group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog group created + /// + /// Catalog group created + [DataMember(Name="Group", EmitDefaultValue=false)] + public Group Group { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogGroupArchivedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogGroupArchivedEvent); + } + + /// + /// Returns true if CatalogGroupArchivedEvent instances are equal + /// + /// Instance of CatalogGroupArchivedEvent to be compared + /// Boolean + public bool Equals(CatalogGroupArchivedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogGroupCreatedEvent.cs b/src/Flipdish/Model/CatalogGroupCreatedEvent.cs new file mode 100644 index 00000000..d0d1698f --- /dev/null +++ b/src/Flipdish/Model/CatalogGroupCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogGroupCreatedEvent + /// + [DataContract] + public partial class CatalogGroupCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the group. + /// Catalog group created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogGroupCreatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Group group = default(Group), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Group = group; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the group + /// + /// User who has created the group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog group created + /// + /// Catalog group created + [DataMember(Name="Group", EmitDefaultValue=false)] + public Group Group { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogGroupCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogGroupCreatedEvent); + } + + /// + /// Returns true if CatalogGroupCreatedEvent instances are equal + /// + /// Instance of CatalogGroupCreatedEvent to be compared + /// Boolean + public bool Equals(CatalogGroupCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogGroupReference.cs b/src/Flipdish/Model/CatalogGroupReference.cs new file mode 100644 index 00000000..31dd24d0 --- /dev/null +++ b/src/Flipdish/Model/CatalogGroupReference.cs @@ -0,0 +1,200 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + /// + [DataContract] + public partial class CatalogGroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CatalogGroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogItem}. + /// Identifier of the ProductId to use as SubProduct (required). + /// Identifier of the ProductId to use as SubProduct. + /// Type of the SupProduct (required). + public CatalogGroupReference(Group group = default(Group), string catalogGroupId = default(string), string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogGroupId" is required (not null) + if (catalogGroupId == null) + { + throw new InvalidDataException("catalogGroupId is a required property for CatalogGroupReference and cannot be null"); + } + else + { + this.CatalogGroupId = catalogGroupId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for CatalogGroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + this.Group = group; + this.CatalogItemId = catalogItemId; + } + + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogItem} + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogItem} + [DataMember(Name="Group", EmitDefaultValue=false)] + public Group Group { get; set; } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogGroupId", EmitDefaultValue=false)] + public string CatalogGroupId { get; set; } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogGroupReference {\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" CatalogGroupId: ").Append(CatalogGroupId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogGroupReference); + } + + /// + /// Returns true if CatalogGroupReference instances are equal + /// + /// Instance of CatalogGroupReference to be compared + /// Boolean + public bool Equals(CatalogGroupReference input) + { + if (input == null) + return false; + + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.CatalogGroupId == input.CatalogGroupId || + (this.CatalogGroupId != null && + this.CatalogGroupId.Equals(input.CatalogGroupId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.CatalogGroupId != null) + hashCode = hashCode * 59 + this.CatalogGroupId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs b/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs new file mode 100644 index 00000000..e2e29b7a --- /dev/null +++ b/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogGroupUpdatedEvent + /// + [DataContract] + public partial class CatalogGroupUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the group. + /// Catalog group created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogGroupUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Group group = default(Group), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Group = group; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the group + /// + /// User who has created the group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog group created + /// + /// Catalog group created + [DataMember(Name="Group", EmitDefaultValue=false)] + public Group Group { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogGroupUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogGroupUpdatedEvent); + } + + /// + /// Returns true if CatalogGroupUpdatedEvent instances are equal + /// + /// Instance of CatalogGroupUpdatedEvent to be compared + /// Boolean + public bool Equals(CatalogGroupUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogImage.cs b/src/Flipdish/Model/CatalogImage.cs new file mode 100644 index 00000000..03cd81db --- /dev/null +++ b/src/Flipdish/Model/CatalogImage.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Catalog Image + /// + [DataContract] + public partial class CatalogImage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog Item id. + public CatalogImage(string imageUri = default(string)) + { + this.ImageUri = imageUri; + } + + /// + /// Unique catalog Item id + /// + /// Unique catalog Item id + [DataMember(Name="ImageUri", EmitDefaultValue=false)] + public string ImageUri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogImage {\n"); + sb.Append(" ImageUri: ").Append(ImageUri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogImage); + } + + /// + /// Returns true if CatalogImage instances are equal + /// + /// Instance of CatalogImage to be compared + /// Boolean + public bool Equals(CatalogImage input) + { + if (input == null) + return false; + + return + ( + this.ImageUri == input.ImageUri || + (this.ImageUri != null && + this.ImageUri.Equals(input.ImageUri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageUri != null) + hashCode = hashCode * 59 + this.ImageUri.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogItem.cs b/src/Flipdish/Model/CatalogItem.cs new file mode 100644 index 00000000..0b94598f --- /dev/null +++ b/src/Flipdish/Model/CatalogItem.cs @@ -0,0 +1,341 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogItem + /// + [DataContract] + public partial class CatalogItem : IEquatable + { + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum ItemTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public ItemTypeEnum ItemType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CatalogItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog Item id. + /// Returns true if the item is archived. + /// Collection of groups associated with this item. + /// Collection of metafields. + /// Type of item (Product, Modifier, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Item name (required). + /// Item description. + /// Item price (required). + /// Image File Name. + /// item contains alcohol. + public CatalogItem(string catalogItemId = default(string), bool? isArchived = default(bool?), List groups = default(List), List metafields = default(List), ItemTypeEnum itemType = default(ItemTypeEnum), string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?)) + { + // to ensure "itemType" is required (not null) + if (itemType == null) + { + throw new InvalidDataException("itemType is a required property for CatalogItem and cannot be null"); + } + else + { + this.ItemType = itemType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for CatalogItem and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CatalogItem and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "price" is required (not null) + if (price == null) + { + throw new InvalidDataException("price is a required property for CatalogItem and cannot be null"); + } + else + { + this.Price = price; + } + this.CatalogItemId = catalogItemId; + this.IsArchived = isArchived; + this.Groups = groups; + this.Metafields = metafields; + this.Description = description; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + } + + /// + /// Unique catalog Item id + /// + /// Unique catalog Item id + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Returns true if the item is archived + /// + /// Returns true if the item is archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Item name + /// + /// Item name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Item description + /// + /// Item description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Item price + /// + /// Item price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// item contains alcohol + /// + /// item contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogItem {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" ItemType: ").Append(ItemType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogItem); + } + + /// + /// Returns true if CatalogItem instances are equal + /// + /// Instance of CatalogItem to be compared + /// Boolean + public bool Equals(CatalogItem input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.ItemType == input.ItemType || + (this.ItemType != null && + this.ItemType.Equals(input.ItemType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.ItemType != null) + hashCode = hashCode * 59 + this.ItemType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogItemArchivedEvent.cs b/src/Flipdish/Model/CatalogItemArchivedEvent.cs new file mode 100644 index 00000000..a5d723b9 --- /dev/null +++ b/src/Flipdish/Model/CatalogItemArchivedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogItemArchivedEvent + /// + [DataContract] + public partial class CatalogItemArchivedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the item. + /// Catalog item created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogItemArchivedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), CatalogItem catalogItem = default(CatalogItem), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.CatalogItem = catalogItem; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the item + /// + /// User who has created the item + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog item created + /// + /// Catalog item created + [DataMember(Name="CatalogItem", EmitDefaultValue=false)] + public CatalogItem CatalogItem { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogItemArchivedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" CatalogItem: ").Append(CatalogItem).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogItemArchivedEvent); + } + + /// + /// Returns true if CatalogItemArchivedEvent instances are equal + /// + /// Instance of CatalogItemArchivedEvent to be compared + /// Boolean + public bool Equals(CatalogItemArchivedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.CatalogItem == input.CatalogItem || + (this.CatalogItem != null && + this.CatalogItem.Equals(input.CatalogItem)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.CatalogItem != null) + hashCode = hashCode * 59 + this.CatalogItem.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogItemCreatedEvent.cs b/src/Flipdish/Model/CatalogItemCreatedEvent.cs new file mode 100644 index 00000000..c2eb057e --- /dev/null +++ b/src/Flipdish/Model/CatalogItemCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogItemCreatedEvent + /// + [DataContract] + public partial class CatalogItemCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the item. + /// Catalog item created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogItemCreatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), CatalogItem catalogItem = default(CatalogItem), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.CatalogItem = catalogItem; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the item + /// + /// User who has created the item + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog item created + /// + /// Catalog item created + [DataMember(Name="CatalogItem", EmitDefaultValue=false)] + public CatalogItem CatalogItem { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogItemCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" CatalogItem: ").Append(CatalogItem).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogItemCreatedEvent); + } + + /// + /// Returns true if CatalogItemCreatedEvent instances are equal + /// + /// Instance of CatalogItemCreatedEvent to be compared + /// Boolean + public bool Equals(CatalogItemCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.CatalogItem == input.CatalogItem || + (this.CatalogItem != null && + this.CatalogItem.Equals(input.CatalogItem)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.CatalogItem != null) + hashCode = hashCode * 59 + this.CatalogItem.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CatalogItemUpdatedEvent.cs b/src/Flipdish/Model/CatalogItemUpdatedEvent.cs new file mode 100644 index 00000000..454d2314 --- /dev/null +++ b/src/Flipdish/Model/CatalogItemUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogItemUpdatedEvent + /// + [DataContract] + public partial class CatalogItemUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the item. + /// Catalog item created. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CatalogItemUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), CatalogItem catalogItem = default(CatalogItem), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.CatalogItem = catalogItem; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the item + /// + /// User who has created the item + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Catalog item created + /// + /// Catalog item created + [DataMember(Name="CatalogItem", EmitDefaultValue=false)] + public CatalogItem CatalogItem { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CatalogItemUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" CatalogItem: ").Append(CatalogItem).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CatalogItemUpdatedEvent); + } + + /// + /// Returns true if CatalogItemUpdatedEvent instances are equal + /// + /// Instance of CatalogItemUpdatedEvent to be compared + /// Boolean + public bool Equals(CatalogItemUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.CatalogItem == input.CatalogItem || + (this.CatalogItem != null && + this.CatalogItem.Equals(input.CatalogItem)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.CatalogItem != null) + hashCode = hashCode * 59 + this.CatalogItem.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CertificateCreatedEvent.cs b/src/Flipdish/Model/CertificateCreatedEvent.cs new file mode 100644 index 00000000..4450ccf6 --- /dev/null +++ b/src/Flipdish/Model/CertificateCreatedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// The DNS for the Hostname verified + /// + [DataContract] + public partial class CertificateCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Description. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CertificateCreatedEvent(string hostname = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Hostname = hostname; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Description + /// + /// Description + [DataMember(Name="Hostname", EmitDefaultValue=false)] + public string Hostname { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CertificateCreatedEvent {\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CertificateCreatedEvent); + } + + /// + /// Returns true if CertificateCreatedEvent instances are equal + /// + /// Instance of CertificateCreatedEvent to be compared + /// Boolean + public bool Equals(CertificateCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Hostname != null) + hashCode = hashCode * 59 + this.Hostname.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CertificateRenewedEvent.cs b/src/Flipdish/Model/CertificateRenewedEvent.cs new file mode 100644 index 00000000..f8c97cf1 --- /dev/null +++ b/src/Flipdish/Model/CertificateRenewedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// The DNS for the Hostname verified + /// + [DataContract] + public partial class CertificateRenewedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Description. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CertificateRenewedEvent(string hostname = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Hostname = hostname; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Description + /// + /// Description + [DataMember(Name="Hostname", EmitDefaultValue=false)] + public string Hostname { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CertificateRenewedEvent {\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CertificateRenewedEvent); + } + + /// + /// Returns true if CertificateRenewedEvent instances are equal + /// + /// Instance of CertificateRenewedEvent to be compared + /// Boolean + public bool Equals(CertificateRenewedEvent input) + { + if (input == null) + return false; + + return + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Hostname != null) + hashCode = hashCode * 59 + this.Hostname.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ChangePasswordModel.cs b/src/Flipdish/Model/ChangePasswordModel.cs new file mode 100644 index 00000000..a700f8ee --- /dev/null +++ b/src/Flipdish/Model/ChangePasswordModel.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Change password model + /// + [DataContract] + public partial class ChangePasswordModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ChangePasswordModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Old password (required). + /// New password (required). + public ChangePasswordModel(string oldPassword = default(string), string newPassword = default(string)) + { + // to ensure "oldPassword" is required (not null) + if (oldPassword == null) + { + throw new InvalidDataException("oldPassword is a required property for ChangePasswordModel and cannot be null"); + } + else + { + this.OldPassword = oldPassword; + } + // to ensure "newPassword" is required (not null) + if (newPassword == null) + { + throw new InvalidDataException("newPassword is a required property for ChangePasswordModel and cannot be null"); + } + else + { + this.NewPassword = newPassword; + } + } + + /// + /// Old password + /// + /// Old password + [DataMember(Name="OldPassword", EmitDefaultValue=false)] + public string OldPassword { get; set; } + + /// + /// New password + /// + /// New password + [DataMember(Name="NewPassword", EmitDefaultValue=false)] + public string NewPassword { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChangePasswordModel {\n"); + sb.Append(" OldPassword: ").Append(OldPassword).Append("\n"); + sb.Append(" NewPassword: ").Append(NewPassword).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChangePasswordModel); + } + + /// + /// Returns true if ChangePasswordModel instances are equal + /// + /// Instance of ChangePasswordModel to be compared + /// Boolean + public bool Equals(ChangePasswordModel input) + { + if (input == null) + return false; + + return + ( + this.OldPassword == input.OldPassword || + (this.OldPassword != null && + this.OldPassword.Equals(input.OldPassword)) + ) && + ( + this.NewPassword == input.NewPassword || + (this.NewPassword != null && + this.NewPassword.Equals(input.NewPassword)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OldPassword != null) + hashCode = hashCode * 59 + this.OldPassword.GetHashCode(); + if (this.NewPassword != null) + hashCode = hashCode * 59 + this.NewPassword.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Channel.cs b/src/Flipdish/Model/Channel.cs new file mode 100644 index 00000000..39c47fd8 --- /dev/null +++ b/src/Flipdish/Model/Channel.cs @@ -0,0 +1,219 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Channel. + /// + [DataContract] + public partial class Channel : IEquatable + { + /// + /// Channel Source + /// + /// Channel Source + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + + /// + /// Enum Internal for value: Internal + /// + [EnumMember(Value = "Internal")] + Internal = 1, + + /// + /// Enum External for value: External + /// + [EnumMember(Value = "External")] + External = 2 + } + + /// + /// Channel Source + /// + /// Channel Source + [DataMember(Name="Source", EmitDefaultValue=false)] + public SourceEnum? Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Channel Id. + /// Channel TranslationKey. + /// Channel Source. + /// Channel Logo URl. + /// Channel is Available or not. + /// Channel is Maintained Externally or not. + public Channel(int? channelId = default(int?), string translationKey = default(string), SourceEnum? source = default(SourceEnum?), string logoUri = default(string), bool? available = default(bool?), bool? maintainedExternally = default(bool?)) + { + this.ChannelId = channelId; + this.TranslationKey = translationKey; + this.Source = source; + this.LogoUri = logoUri; + this.Available = available; + this.MaintainedExternally = maintainedExternally; + } + + /// + /// Channel Id + /// + /// Channel Id + [DataMember(Name="ChannelId", EmitDefaultValue=false)] + public int? ChannelId { get; set; } + + /// + /// Channel TranslationKey + /// + /// Channel TranslationKey + [DataMember(Name="TranslationKey", EmitDefaultValue=false)] + public string TranslationKey { get; set; } + + + /// + /// Channel Logo URl + /// + /// Channel Logo URl + [DataMember(Name="LogoUri", EmitDefaultValue=false)] + public string LogoUri { get; set; } + + /// + /// Channel is Available or not + /// + /// Channel is Available or not + [DataMember(Name="Available", EmitDefaultValue=false)] + public bool? Available { get; set; } + + /// + /// Channel is Maintained Externally or not + /// + /// Channel is Maintained Externally or not + [DataMember(Name="MaintainedExternally", EmitDefaultValue=false)] + public bool? MaintainedExternally { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Channel {\n"); + sb.Append(" ChannelId: ").Append(ChannelId).Append("\n"); + sb.Append(" TranslationKey: ").Append(TranslationKey).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" LogoUri: ").Append(LogoUri).Append("\n"); + sb.Append(" Available: ").Append(Available).Append("\n"); + sb.Append(" MaintainedExternally: ").Append(MaintainedExternally).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Channel); + } + + /// + /// Returns true if Channel instances are equal + /// + /// Instance of Channel to be compared + /// Boolean + public bool Equals(Channel input) + { + if (input == null) + return false; + + return + ( + this.ChannelId == input.ChannelId || + (this.ChannelId != null && + this.ChannelId.Equals(input.ChannelId)) + ) && + ( + this.TranslationKey == input.TranslationKey || + (this.TranslationKey != null && + this.TranslationKey.Equals(input.TranslationKey)) + ) && + ( + this.Source == input.Source || + (this.Source != null && + this.Source.Equals(input.Source)) + ) && + ( + this.LogoUri == input.LogoUri || + (this.LogoUri != null && + this.LogoUri.Equals(input.LogoUri)) + ) && + ( + this.Available == input.Available || + (this.Available != null && + this.Available.Equals(input.Available)) + ) && + ( + this.MaintainedExternally == input.MaintainedExternally || + (this.MaintainedExternally != null && + this.MaintainedExternally.Equals(input.MaintainedExternally)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChannelId != null) + hashCode = hashCode * 59 + this.ChannelId.GetHashCode(); + if (this.TranslationKey != null) + hashCode = hashCode * 59 + this.TranslationKey.GetHashCode(); + if (this.Source != null) + hashCode = hashCode * 59 + this.Source.GetHashCode(); + if (this.LogoUri != null) + hashCode = hashCode * 59 + this.LogoUri.GetHashCode(); + if (this.Available != null) + hashCode = hashCode * 59 + this.Available.GetHashCode(); + if (this.MaintainedExternally != null) + hashCode = hashCode * 59 + this.MaintainedExternally.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ChannelStoresUpdatedEvent.cs b/src/Flipdish/Model/ChannelStoresUpdatedEvent.cs new file mode 100644 index 00000000..d99a0393 --- /dev/null +++ b/src/Flipdish/Model/ChannelStoresUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Channel Stores Updated Event + /// + [DataContract] + public partial class ChannelStoresUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// ID of the channel. + /// List of store ids. + /// User info. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public ChannelStoresUpdatedEvent(string eventName = default(string), int? channelId = default(int?), List storeIds = default(List), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.ChannelId = channelId; + this.StoreIds = storeIds; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// ID of the channel + /// + /// ID of the channel + [DataMember(Name="ChannelId", EmitDefaultValue=false)] + public int? ChannelId { get; set; } + + /// + /// List of store ids + /// + /// List of store ids + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// User info + /// + /// User info + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChannelStoresUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" ChannelId: ").Append(ChannelId).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChannelStoresUpdatedEvent); + } + + /// + /// Returns true if ChannelStoresUpdatedEvent instances are equal + /// + /// Instance of ChannelStoresUpdatedEvent to be compared + /// Boolean + public bool Equals(ChannelStoresUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.ChannelId == input.ChannelId || + (this.ChannelId != null && + this.ChannelId.Equals(input.ChannelId)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.ChannelId != null) + hashCode = hashCode * 59 + this.ChannelId.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ChargebackDetails.cs b/src/Flipdish/Model/ChargebackDetails.cs new file mode 100644 index 00000000..0f849b2d --- /dev/null +++ b/src/Flipdish/Model/ChargebackDetails.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Chargebacks breakdown + /// + [DataContract] + public partial class ChargebackDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Chargeback amount. + /// POS Chargeback amount. + /// Chargeback refunded feeds. + /// Number of chargebacks. + /// Total amount. + public ChargebackDetails(double? chargebackAmount = default(double?), double? posSalesChargebackAmount = default(double?), double? chargebackRefundedFees = default(double?), int? chargebacksCount = default(int?), double? totalChargebackCost = default(double?)) + { + this.ChargebackAmount = chargebackAmount; + this.PosSalesChargebackAmount = posSalesChargebackAmount; + this.ChargebackRefundedFees = chargebackRefundedFees; + this.ChargebacksCount = chargebacksCount; + this.TotalChargebackCost = totalChargebackCost; + } + + /// + /// Chargeback amount + /// + /// Chargeback amount + [DataMember(Name="ChargebackAmount", EmitDefaultValue=false)] + public double? ChargebackAmount { get; set; } + + /// + /// POS Chargeback amount + /// + /// POS Chargeback amount + [DataMember(Name="PosSalesChargebackAmount", EmitDefaultValue=false)] + public double? PosSalesChargebackAmount { get; set; } + + /// + /// Chargeback refunded feeds + /// + /// Chargeback refunded feeds + [DataMember(Name="ChargebackRefundedFees", EmitDefaultValue=false)] + public double? ChargebackRefundedFees { get; set; } + + /// + /// Number of chargebacks + /// + /// Number of chargebacks + [DataMember(Name="ChargebacksCount", EmitDefaultValue=false)] + public int? ChargebacksCount { get; set; } + + /// + /// Total amount + /// + /// Total amount + [DataMember(Name="TotalChargebackCost", EmitDefaultValue=false)] + public double? TotalChargebackCost { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChargebackDetails {\n"); + sb.Append(" ChargebackAmount: ").Append(ChargebackAmount).Append("\n"); + sb.Append(" PosSalesChargebackAmount: ").Append(PosSalesChargebackAmount).Append("\n"); + sb.Append(" ChargebackRefundedFees: ").Append(ChargebackRefundedFees).Append("\n"); + sb.Append(" ChargebacksCount: ").Append(ChargebacksCount).Append("\n"); + sb.Append(" TotalChargebackCost: ").Append(TotalChargebackCost).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChargebackDetails); + } + + /// + /// Returns true if ChargebackDetails instances are equal + /// + /// Instance of ChargebackDetails to be compared + /// Boolean + public bool Equals(ChargebackDetails input) + { + if (input == null) + return false; + + return + ( + this.ChargebackAmount == input.ChargebackAmount || + (this.ChargebackAmount != null && + this.ChargebackAmount.Equals(input.ChargebackAmount)) + ) && + ( + this.PosSalesChargebackAmount == input.PosSalesChargebackAmount || + (this.PosSalesChargebackAmount != null && + this.PosSalesChargebackAmount.Equals(input.PosSalesChargebackAmount)) + ) && + ( + this.ChargebackRefundedFees == input.ChargebackRefundedFees || + (this.ChargebackRefundedFees != null && + this.ChargebackRefundedFees.Equals(input.ChargebackRefundedFees)) + ) && + ( + this.ChargebacksCount == input.ChargebacksCount || + (this.ChargebacksCount != null && + this.ChargebacksCount.Equals(input.ChargebacksCount)) + ) && + ( + this.TotalChargebackCost == input.TotalChargebackCost || + (this.TotalChargebackCost != null && + this.TotalChargebackCost.Equals(input.TotalChargebackCost)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChargebackAmount != null) + hashCode = hashCode * 59 + this.ChargebackAmount.GetHashCode(); + if (this.PosSalesChargebackAmount != null) + hashCode = hashCode * 59 + this.PosSalesChargebackAmount.GetHashCode(); + if (this.ChargebackRefundedFees != null) + hashCode = hashCode * 59 + this.ChargebackRefundedFees.GetHashCode(); + if (this.ChargebacksCount != null) + hashCode = hashCode * 59 + this.ChargebacksCount.GetHashCode(); + if (this.TotalChargebackCost != null) + hashCode = hashCode * 59 + this.TotalChargebackCost.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ClientDevice.cs b/src/Flipdish/Model/ClientDevice.cs new file mode 100644 index 00000000..0bc31919 --- /dev/null +++ b/src/Flipdish/Model/ClientDevice.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Client Device + /// + [DataContract] + public partial class ClientDevice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Device Model. + /// Device Id. + /// Device Name. + public ClientDevice(string deviceModel = default(string), string deviceId = default(string), string deviceName = default(string)) + { + this.DeviceModel = deviceModel; + this.DeviceId = deviceId; + this.DeviceName = deviceName; + } + + /// + /// Device Model + /// + /// Device Model + [DataMember(Name="DeviceModel", EmitDefaultValue=false)] + public string DeviceModel { get; set; } + + /// + /// Device Id + /// + /// Device Id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Device Name + /// + /// Device Name + [DataMember(Name="DeviceName", EmitDefaultValue=false)] + public string DeviceName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientDevice {\n"); + sb.Append(" DeviceModel: ").Append(DeviceModel).Append("\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientDevice); + } + + /// + /// Returns true if ClientDevice instances are equal + /// + /// Instance of ClientDevice to be compared + /// Boolean + public bool Equals(ClientDevice input) + { + if (input == null) + return false; + + return + ( + this.DeviceModel == input.DeviceModel || + (this.DeviceModel != null && + this.DeviceModel.Equals(input.DeviceModel)) + ) && + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.DeviceName == input.DeviceName || + (this.DeviceName != null && + this.DeviceName.Equals(input.DeviceName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceModel != null) + hashCode = hashCode * 59 + this.DeviceModel.GetHashCode(); + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.DeviceName != null) + hashCode = hashCode * 59 + this.DeviceName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ClientDeviceAssignEnrolledDevice.cs b/src/Flipdish/Model/ClientDeviceAssignEnrolledDevice.cs new file mode 100644 index 00000000..555df15b --- /dev/null +++ b/src/Flipdish/Model/ClientDeviceAssignEnrolledDevice.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Assign enrolled device to AppId + /// + [DataContract] + public partial class ClientDeviceAssignEnrolledDevice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Device Model. + /// Pin Code. + public ClientDeviceAssignEnrolledDevice(string deviceModel = default(string), string pinCode = default(string)) + { + this.DeviceModel = deviceModel; + this.PinCode = pinCode; + } + + /// + /// Device Model + /// + /// Device Model + [DataMember(Name="DeviceModel", EmitDefaultValue=false)] + public string DeviceModel { get; set; } + + /// + /// Pin Code + /// + /// Pin Code + [DataMember(Name="PinCode", EmitDefaultValue=false)] + public string PinCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientDeviceAssignEnrolledDevice {\n"); + sb.Append(" DeviceModel: ").Append(DeviceModel).Append("\n"); + sb.Append(" PinCode: ").Append(PinCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientDeviceAssignEnrolledDevice); + } + + /// + /// Returns true if ClientDeviceAssignEnrolledDevice instances are equal + /// + /// Instance of ClientDeviceAssignEnrolledDevice to be compared + /// Boolean + public bool Equals(ClientDeviceAssignEnrolledDevice input) + { + if (input == null) + return false; + + return + ( + this.DeviceModel == input.DeviceModel || + (this.DeviceModel != null && + this.DeviceModel.Equals(input.DeviceModel)) + ) && + ( + this.PinCode == input.PinCode || + (this.PinCode != null && + this.PinCode.Equals(input.PinCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceModel != null) + hashCode = hashCode * 59 + this.DeviceModel.GetHashCode(); + if (this.PinCode != null) + hashCode = hashCode * 59 + this.PinCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ClientDeviceEnroll.cs b/src/Flipdish/Model/ClientDeviceEnroll.cs new file mode 100644 index 00000000..a6336e0f --- /dev/null +++ b/src/Flipdish/Model/ClientDeviceEnroll.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Enroll a client device + /// + [DataContract] + public partial class ClientDeviceEnroll : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Device model. + /// Device Id. + /// Device Name. + public ClientDeviceEnroll(string deviceModel = default(string), string deviceId = default(string), string deviceName = default(string)) + { + this.DeviceModel = deviceModel; + this.DeviceId = deviceId; + this.DeviceName = deviceName; + } + + /// + /// Device model + /// + /// Device model + [DataMember(Name="DeviceModel", EmitDefaultValue=false)] + public string DeviceModel { get; set; } + + /// + /// Device Id + /// + /// Device Id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Device Name + /// + /// Device Name + [DataMember(Name="DeviceName", EmitDefaultValue=false)] + public string DeviceName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientDeviceEnroll {\n"); + sb.Append(" DeviceModel: ").Append(DeviceModel).Append("\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientDeviceEnroll); + } + + /// + /// Returns true if ClientDeviceEnroll instances are equal + /// + /// Instance of ClientDeviceEnroll to be compared + /// Boolean + public bool Equals(ClientDeviceEnroll input) + { + if (input == null) + return false; + + return + ( + this.DeviceModel == input.DeviceModel || + (this.DeviceModel != null && + this.DeviceModel.Equals(input.DeviceModel)) + ) && + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.DeviceName == input.DeviceName || + (this.DeviceName != null && + this.DeviceName.Equals(input.DeviceName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceModel != null) + hashCode = hashCode * 59 + this.DeviceModel.GetHashCode(); + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.DeviceName != null) + hashCode = hashCode * 59 + this.DeviceName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ClientDeviceEnrollmentResult.cs b/src/Flipdish/Model/ClientDeviceEnrollmentResult.cs new file mode 100644 index 00000000..9e9a7a42 --- /dev/null +++ b/src/Flipdish/Model/ClientDeviceEnrollmentResult.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Device enrollment result + /// + [DataContract] + public partial class ClientDeviceEnrollmentResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// PIN Code for assigning. + public ClientDeviceEnrollmentResult(string pinCode = default(string)) + { + this.PinCode = pinCode; + } + + /// + /// PIN Code for assigning + /// + /// PIN Code for assigning + [DataMember(Name="PinCode", EmitDefaultValue=false)] + public string PinCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientDeviceEnrollmentResult {\n"); + sb.Append(" PinCode: ").Append(PinCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientDeviceEnrollmentResult); + } + + /// + /// Returns true if ClientDeviceEnrollmentResult instances are equal + /// + /// Instance of ClientDeviceEnrollmentResult to be compared + /// Boolean + public bool Equals(ClientDeviceEnrollmentResult input) + { + if (input == null) + return false; + + return + ( + this.PinCode == input.PinCode || + (this.PinCode != null && + this.PinCode.Equals(input.PinCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PinCode != null) + hashCode = hashCode * 59 + this.PinCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ClientDeviceSummary.cs b/src/Flipdish/Model/ClientDeviceSummary.cs new file mode 100644 index 00000000..9b3affb5 --- /dev/null +++ b/src/Flipdish/Model/ClientDeviceSummary.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Client Device summary (header fields) + /// + [DataContract] + public partial class ClientDeviceSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Device Model. + /// Device Id. + /// Device Name. + public ClientDeviceSummary(string deviceModel = default(string), string deviceId = default(string), string deviceName = default(string)) + { + this.DeviceModel = deviceModel; + this.DeviceId = deviceId; + this.DeviceName = deviceName; + } + + /// + /// Device Model + /// + /// Device Model + [DataMember(Name="DeviceModel", EmitDefaultValue=false)] + public string DeviceModel { get; set; } + + /// + /// Device Id + /// + /// Device Id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Device Name + /// + /// Device Name + [DataMember(Name="DeviceName", EmitDefaultValue=false)] + public string DeviceName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientDeviceSummary {\n"); + sb.Append(" DeviceModel: ").Append(DeviceModel).Append("\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientDeviceSummary); + } + + /// + /// Returns true if ClientDeviceSummary instances are equal + /// + /// Instance of ClientDeviceSummary to be compared + /// Boolean + public bool Equals(ClientDeviceSummary input) + { + if (input == null) + return false; + + return + ( + this.DeviceModel == input.DeviceModel || + (this.DeviceModel != null && + this.DeviceModel.Equals(input.DeviceModel)) + ) && + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.DeviceName == input.DeviceName || + (this.DeviceName != null && + this.DeviceName.Equals(input.DeviceName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceModel != null) + hashCode = hashCode * 59 + this.DeviceModel.GetHashCode(); + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.DeviceName != null) + hashCode = hashCode * 59 + this.DeviceName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ConfiguredStore.cs b/src/Flipdish/Model/ConfiguredStore.cs new file mode 100644 index 00000000..3f3e9019 --- /dev/null +++ b/src/Flipdish/Model/ConfiguredStore.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ConfiguredStore + /// + [DataContract] + public partial class ConfiguredStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// storeId. + /// name. + public ConfiguredStore(int? storeId = default(int?), string name = default(string)) + { + this.StoreId = storeId; + this.Name = name; + } + + /// + /// Gets or Sets StoreId + /// + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConfiguredStore {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConfiguredStore); + } + + /// + /// Returns true if ConfiguredStore instances are equal + /// + /// Instance of ConfiguredStore to be compared + /// Boolean + public bool Equals(ConfiguredStore input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Coordinates.cs b/src/Flipdish/Model/Coordinates.cs new file mode 100644 index 00000000..272b16ab --- /dev/null +++ b/src/Flipdish/Model/Coordinates.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Coordinates + /// + [DataContract] + public partial class Coordinates : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Latitude. + /// Longitude. + public Coordinates(double? latitude = default(double?), double? longitude = default(double?)) + { + this.Latitude = latitude; + this.Longitude = longitude; + } + + /// + /// Latitude + /// + /// Latitude + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude + /// + /// Longitude + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Coordinates {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Coordinates); + } + + /// + /// Returns true if Coordinates instances are equal + /// + /// Instance of Coordinates to be compared + /// Boolean + public bool Equals(Coordinates input) + { + if (input == null) + return false; + + return + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CountryFormResponse.cs b/src/Flipdish/Model/CountryFormResponse.cs new file mode 100644 index 00000000..d1bcf4d1 --- /dev/null +++ b/src/Flipdish/Model/CountryFormResponse.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Country + /// + [DataContract] + public partial class CountryFormResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// ISO two letter code.. + /// Label. + public CountryFormResponse(string value = default(string), string label = default(string)) + { + this.Value = value; + this.Label = label; + } + + /// + /// ISO two letter code. + /// + /// ISO two letter code. + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Label + /// + /// Label + [DataMember(Name="Label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountryFormResponse {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" Label: ").Append(Label).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountryFormResponse); + } + + /// + /// Returns true if CountryFormResponse instances are equal + /// + /// Instance of CountryFormResponse to be compared + /// Boolean + public bool Equals(CountryFormResponse input) + { + if (input == null) + return false; + + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CountryWithAccountFieldsDefinitions.cs b/src/Flipdish/Model/CountryWithAccountFieldsDefinitions.cs new file mode 100644 index 00000000..093bc5a0 --- /dev/null +++ b/src/Flipdish/Model/CountryWithAccountFieldsDefinitions.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// List of field definitions per country + /// + [DataContract] + public partial class CountryWithAccountFieldsDefinitions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Country 2-letter ISO code. + /// Display name of the country. + /// Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported). + /// Bank Account field definitions. + public CountryWithAccountFieldsDefinitions(string countryCode = default(string), string displayName = default(string), string supportType = default(string), List fieldDefinitions = default(List)) + { + this.CountryCode = countryCode; + this.DisplayName = displayName; + this.SupportType = supportType; + this.FieldDefinitions = fieldDefinitions; + } + + /// + /// Country 2-letter ISO code + /// + /// Country 2-letter ISO code + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Display name of the country + /// + /// Display name of the country + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) + /// + /// Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) + [DataMember(Name="SupportType", EmitDefaultValue=false)] + public string SupportType { get; set; } + + /// + /// Bank Account field definitions + /// + /// Bank Account field definitions + [DataMember(Name="FieldDefinitions", EmitDefaultValue=false)] + public List FieldDefinitions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountryWithAccountFieldsDefinitions {\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" SupportType: ").Append(SupportType).Append("\n"); + sb.Append(" FieldDefinitions: ").Append(FieldDefinitions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountryWithAccountFieldsDefinitions); + } + + /// + /// Returns true if CountryWithAccountFieldsDefinitions instances are equal + /// + /// Instance of CountryWithAccountFieldsDefinitions to be compared + /// Boolean + public bool Equals(CountryWithAccountFieldsDefinitions input) + { + if (input == null) + return false; + + return + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.SupportType == input.SupportType || + (this.SupportType != null && + this.SupportType.Equals(input.SupportType)) + ) && + ( + this.FieldDefinitions == input.FieldDefinitions || + this.FieldDefinitions != null && + this.FieldDefinitions.SequenceEqual(input.FieldDefinitions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.SupportType != null) + hashCode = hashCode * 59 + this.SupportType.GetHashCode(); + if (this.FieldDefinitions != null) + hashCode = hashCode * 59 + this.FieldDefinitions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateAccountModel.cs b/src/Flipdish/Model/CreateAccountModel.cs new file mode 100644 index 00000000..d587dea3 --- /dev/null +++ b/src/Flipdish/Model/CreateAccountModel.cs @@ -0,0 +1,219 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create account model + /// + [DataContract] + public partial class CreateAccountModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccountModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Email address (required). + /// Store name (required). + /// LanguageId. + /// Referral ID. + /// Campaign ID. + /// Google Recaptcha Token. + public CreateAccountModel(string email = default(string), string storeName = default(string), string languageId = default(string), int? rid = default(int?), string cid = default(string), string recaptchaToken = default(string)) + { + // to ensure "email" is required (not null) + if (email == null) + { + throw new InvalidDataException("email is a required property for CreateAccountModel and cannot be null"); + } + else + { + this.Email = email; + } + // to ensure "storeName" is required (not null) + if (storeName == null) + { + throw new InvalidDataException("storeName is a required property for CreateAccountModel and cannot be null"); + } + else + { + this.StoreName = storeName; + } + this.LanguageId = languageId; + this.Rid = rid; + this.Cid = cid; + this.RecaptchaToken = recaptchaToken; + } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Store name + /// + /// Store name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// LanguageId + /// + /// LanguageId + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } + + /// + /// Referral ID + /// + /// Referral ID + [DataMember(Name="Rid", EmitDefaultValue=false)] + public int? Rid { get; set; } + + /// + /// Campaign ID + /// + /// Campaign ID + [DataMember(Name="Cid", EmitDefaultValue=false)] + public string Cid { get; set; } + + /// + /// Google Recaptcha Token + /// + /// Google Recaptcha Token + [DataMember(Name="RecaptchaToken", EmitDefaultValue=false)] + public string RecaptchaToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateAccountModel {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" LanguageId: ").Append(LanguageId).Append("\n"); + sb.Append(" Rid: ").Append(Rid).Append("\n"); + sb.Append(" Cid: ").Append(Cid).Append("\n"); + sb.Append(" RecaptchaToken: ").Append(RecaptchaToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateAccountModel); + } + + /// + /// Returns true if CreateAccountModel instances are equal + /// + /// Instance of CreateAccountModel to be compared + /// Boolean + public bool Equals(CreateAccountModel input) + { + if (input == null) + return false; + + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) + ) && + ( + this.Rid == input.Rid || + (this.Rid != null && + this.Rid.Equals(input.Rid)) + ) && + ( + this.Cid == input.Cid || + (this.Cid != null && + this.Cid.Equals(input.Cid)) + ) && + ( + this.RecaptchaToken == input.RecaptchaToken || + (this.RecaptchaToken != null && + this.RecaptchaToken.Equals(input.RecaptchaToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); + if (this.Rid != null) + hashCode = hashCode * 59 + this.Rid.GetHashCode(); + if (this.Cid != null) + hashCode = hashCode * 59 + this.Cid.GetHashCode(); + if (this.RecaptchaToken != null) + hashCode = hashCode * 59 + this.RecaptchaToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateAppParameters.cs b/src/Flipdish/Model/CreateAppParameters.cs new file mode 100644 index 00000000..753b7198 --- /dev/null +++ b/src/Flipdish/Model/CreateAppParameters.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// The parameters required to create a new app. + /// + [DataContract] + public partial class CreateAppParameters : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the brand that this app/white-label represents.. + public CreateAppParameters(string name = default(string)) + { + this.Name = name; + } + + /// + /// The name of the brand that this app/white-label represents. + /// + /// The name of the brand that this app/white-label represents. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateAppParameters {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateAppParameters); + } + + /// + /// Returns true if CreateAppParameters instances are equal + /// + /// Instance of CreateAppParameters to be compared + /// Boolean + public bool Equals(CreateAppParameters input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateAppStoreApp.cs b/src/Flipdish/Model/CreateAppStoreApp.cs new file mode 100644 index 00000000..d95fdb6f --- /dev/null +++ b/src/Flipdish/Model/CreateAppStoreApp.cs @@ -0,0 +1,749 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CreateAppStoreApp + /// + [DataContract] + public partial class CreateAppStoreApp : IEquatable + { + /// + /// Defines ConfigurationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigurationTypeEnum + { + + /// + /// Enum ExternalLink for value: ExternalLink + /// + [EnumMember(Value = "ExternalLink")] + ExternalLink = 1, + + /// + /// Enum FlipdishHosted for value: FlipdishHosted + /// + [EnumMember(Value = "FlipdishHosted")] + FlipdishHosted = 2 + } + + /// + /// Gets or Sets ConfigurationType + /// + [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] + public ConfigurationTypeEnum ConfigurationType { get; set; } + /// + /// Defines StoreSelectorType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Gets or Sets StoreSelectorType + /// + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum StoreSelectorType { get; set; } + /// + /// Defines TeammateAppAccessLevel + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TeammateAppAccessLevelEnum + { + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 1, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 2, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 4, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 7, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 10, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 11 + } + + /// + /// Gets or Sets TeammateAppAccessLevel + /// + [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] + public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } + /// + /// Defines PermissionsType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PermissionsTypeEnum + { + + /// + /// Enum Teammate for value: Teammate + /// + [EnumMember(Value = "Teammate")] + Teammate = 1 + } + + /// + /// Gets or Sets PermissionsType + /// + [DataMember(Name="PermissionsType", EmitDefaultValue=false)] + public PermissionsTypeEnum PermissionsType { get; set; } + /// + /// Defines Categories + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoriesEnum + { + + /// + /// Enum PointOfSale for value: PointOfSale + /// + [EnumMember(Value = "PointOfSale")] + PointOfSale = 1, + + /// + /// Enum DeliveryAndLogistics for value: DeliveryAndLogistics + /// + [EnumMember(Value = "DeliveryAndLogistics")] + DeliveryAndLogistics = 2, + + /// + /// Enum CRM for value: CRM + /// + [EnumMember(Value = "CRM")] + CRM = 3, + + /// + /// Enum GiftCard for value: GiftCard + /// + [EnumMember(Value = "GiftCard")] + GiftCard = 4, + + /// + /// Enum Accounting for value: Accounting + /// + [EnumMember(Value = "Accounting")] + Accounting = 5, + + /// + /// Enum LoyaltyAndMarketing for value: LoyaltyAndMarketing + /// + [EnumMember(Value = "LoyaltyAndMarketing")] + LoyaltyAndMarketing = 6, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 7 + } + + + /// + /// Gets or Sets Categories + /// + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + /// + /// Defines Countries + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CountriesEnum + { + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 1, + + /// + /// Enum IE for value: IE + /// + [EnumMember(Value = "IE")] + IE = 2, + + /// + /// Enum FR for value: FR + /// + [EnumMember(Value = "FR")] + FR = 3, + + /// + /// Enum ES for value: ES + /// + [EnumMember(Value = "ES")] + ES = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] + PT = 5, + + /// + /// Enum IT for value: IT + /// + [EnumMember(Value = "IT")] + IT = 6, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 7, + + /// + /// Enum PL for value: PL + /// + [EnumMember(Value = "PL")] + PL = 8, + + /// + /// Enum BE for value: BE + /// + [EnumMember(Value = "BE")] + BE = 9, + + /// + /// Enum LU for value: LU + /// + [EnumMember(Value = "LU")] + LU = 10, + + /// + /// Enum NL for value: NL + /// + [EnumMember(Value = "NL")] + NL = 11, + + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 12, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 13, + + /// + /// Enum BG for value: BG + /// + [EnumMember(Value = "BG")] + BG = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 16, + + /// + /// Enum NZ for value: NZ + /// + [EnumMember(Value = "NZ")] + NZ = 17 + } + + + /// + /// Gets or Sets Countries + /// + [DataMember(Name="Countries", EmitDefaultValue=false)] + public List Countries { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAppStoreApp() { } + /// + /// Initializes a new instance of the class. + /// + /// details (required). + /// configurationType (required). + /// storeSelectorType (required). + /// fieldGroups. + /// setupInstructions. + /// externalSetupLink. + /// teammateAppAccessLevel. + /// permissionsType (required). + /// support. + /// externalFunctionActionUrl. + /// externalFunctionSignatureKey. + /// isPaid. + /// name (required). + /// description (required). + /// isEnabled. + /// categories (required). + /// countries (required). + /// developerName. + public CreateAppStoreApp(string details = default(string), ConfigurationTypeEnum configurationType = default(ConfigurationTypeEnum), StoreSelectorTypeEnum storeSelectorType = default(StoreSelectorTypeEnum), List fieldGroups = default(List), string setupInstructions = default(string), string externalSetupLink = default(string), TeammateAppAccessLevelEnum? teammateAppAccessLevel = default(TeammateAppAccessLevelEnum?), PermissionsTypeEnum permissionsType = default(PermissionsTypeEnum), AppStoreAppSupportInfo support = default(AppStoreAppSupportInfo), string externalFunctionActionUrl = default(string), string externalFunctionSignatureKey = default(string), bool? isPaid = default(bool?), string name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + { + // to ensure "details" is required (not null) + if (details == null) + { + throw new InvalidDataException("details is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.Details = details; + } + // to ensure "configurationType" is required (not null) + if (configurationType == null) + { + throw new InvalidDataException("configurationType is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.ConfigurationType = configurationType; + } + // to ensure "storeSelectorType" is required (not null) + if (storeSelectorType == null) + { + throw new InvalidDataException("storeSelectorType is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.StoreSelectorType = storeSelectorType; + } + // to ensure "permissionsType" is required (not null) + if (permissionsType == null) + { + throw new InvalidDataException("permissionsType is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.PermissionsType = permissionsType; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "categories" is required (not null) + if (categories == null) + { + throw new InvalidDataException("categories is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.Categories = categories; + } + // to ensure "countries" is required (not null) + if (countries == null) + { + throw new InvalidDataException("countries is a required property for CreateAppStoreApp and cannot be null"); + } + else + { + this.Countries = countries; + } + this.FieldGroups = fieldGroups; + this.SetupInstructions = setupInstructions; + this.ExternalSetupLink = externalSetupLink; + this.TeammateAppAccessLevel = teammateAppAccessLevel; + this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; + this.IsEnabled = isEnabled; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Details + /// + [DataMember(Name="Details", EmitDefaultValue=false)] + public string Details { get; set; } + + + + /// + /// Gets or Sets FieldGroups + /// + [DataMember(Name="FieldGroups", EmitDefaultValue=false)] + public List FieldGroups { get; set; } + + /// + /// Gets or Sets SetupInstructions + /// + [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] + public string SetupInstructions { get; set; } + + /// + /// Gets or Sets ExternalSetupLink + /// + [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] + public string ExternalSetupLink { get; set; } + + + + /// + /// Gets or Sets Support + /// + [DataMember(Name="Support", EmitDefaultValue=false)] + public AppStoreAppSupportInfo Support { get; set; } + + /// + /// Gets or Sets ExternalFunctionActionUrl + /// + [DataMember(Name="ExternalFunctionActionUrl", EmitDefaultValue=false)] + public string ExternalFunctionActionUrl { get; set; } + + /// + /// Gets or Sets ExternalFunctionSignatureKey + /// + [DataMember(Name="ExternalFunctionSignatureKey", EmitDefaultValue=false)] + public string ExternalFunctionSignatureKey { get; set; } + + /// + /// Gets or Sets IsPaid + /// + [DataMember(Name="IsPaid", EmitDefaultValue=false)] + public bool? IsPaid { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateAppStoreApp {\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" ConfigurationType: ").Append(ConfigurationType).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" FieldGroups: ").Append(FieldGroups).Append("\n"); + sb.Append(" SetupInstructions: ").Append(SetupInstructions).Append("\n"); + sb.Append(" ExternalSetupLink: ").Append(ExternalSetupLink).Append("\n"); + sb.Append(" TeammateAppAccessLevel: ").Append(TeammateAppAccessLevel).Append("\n"); + sb.Append(" PermissionsType: ").Append(PermissionsType).Append("\n"); + sb.Append(" Support: ").Append(Support).Append("\n"); + sb.Append(" ExternalFunctionActionUrl: ").Append(ExternalFunctionActionUrl).Append("\n"); + sb.Append(" ExternalFunctionSignatureKey: ").Append(ExternalFunctionSignatureKey).Append("\n"); + sb.Append(" IsPaid: ").Append(IsPaid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" Countries: ").Append(Countries).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateAppStoreApp); + } + + /// + /// Returns true if CreateAppStoreApp instances are equal + /// + /// Instance of CreateAppStoreApp to be compared + /// Boolean + public bool Equals(CreateAppStoreApp input) + { + if (input == null) + return false; + + return + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ) && + ( + this.ConfigurationType == input.ConfigurationType || + (this.ConfigurationType != null && + this.ConfigurationType.Equals(input.ConfigurationType)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.FieldGroups == input.FieldGroups || + this.FieldGroups != null && + this.FieldGroups.SequenceEqual(input.FieldGroups) + ) && + ( + this.SetupInstructions == input.SetupInstructions || + (this.SetupInstructions != null && + this.SetupInstructions.Equals(input.SetupInstructions)) + ) && + ( + this.ExternalSetupLink == input.ExternalSetupLink || + (this.ExternalSetupLink != null && + this.ExternalSetupLink.Equals(input.ExternalSetupLink)) + ) && + ( + this.TeammateAppAccessLevel == input.TeammateAppAccessLevel || + (this.TeammateAppAccessLevel != null && + this.TeammateAppAccessLevel.Equals(input.TeammateAppAccessLevel)) + ) && + ( + this.PermissionsType == input.PermissionsType || + (this.PermissionsType != null && + this.PermissionsType.Equals(input.PermissionsType)) + ) && + ( + this.Support == input.Support || + (this.Support != null && + this.Support.Equals(input.Support)) + ) && + ( + this.ExternalFunctionActionUrl == input.ExternalFunctionActionUrl || + (this.ExternalFunctionActionUrl != null && + this.ExternalFunctionActionUrl.Equals(input.ExternalFunctionActionUrl)) + ) && + ( + this.ExternalFunctionSignatureKey == input.ExternalFunctionSignatureKey || + (this.ExternalFunctionSignatureKey != null && + this.ExternalFunctionSignatureKey.Equals(input.ExternalFunctionSignatureKey)) + ) && + ( + this.IsPaid == input.IsPaid || + (this.IsPaid != null && + this.IsPaid.Equals(input.IsPaid)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.Categories == input.Categories || + this.Categories != null && + this.Categories.SequenceEqual(input.Categories) + ) && + ( + this.Countries == input.Countries || + this.Countries != null && + this.Countries.SequenceEqual(input.Countries) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + if (this.ConfigurationType != null) + hashCode = hashCode * 59 + this.ConfigurationType.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.FieldGroups != null) + hashCode = hashCode * 59 + this.FieldGroups.GetHashCode(); + if (this.SetupInstructions != null) + hashCode = hashCode * 59 + this.SetupInstructions.GetHashCode(); + if (this.ExternalSetupLink != null) + hashCode = hashCode * 59 + this.ExternalSetupLink.GetHashCode(); + if (this.TeammateAppAccessLevel != null) + hashCode = hashCode * 59 + this.TeammateAppAccessLevel.GetHashCode(); + if (this.PermissionsType != null) + hashCode = hashCode * 59 + this.PermissionsType.GetHashCode(); + if (this.Support != null) + hashCode = hashCode * 59 + this.Support.GetHashCode(); + if (this.ExternalFunctionActionUrl != null) + hashCode = hashCode * 59 + this.ExternalFunctionActionUrl.GetHashCode(); + if (this.ExternalFunctionSignatureKey != null) + hashCode = hashCode * 59 + this.ExternalFunctionSignatureKey.GetHashCode(); + if (this.IsPaid != null) + hashCode = hashCode * 59 + this.IsPaid.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.Categories != null) + hashCode = hashCode * 59 + this.Categories.GetHashCode(); + if (this.Countries != null) + hashCode = hashCode * 59 + this.Countries.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateBasicAccountModel.cs b/src/Flipdish/Model/CreateBasicAccountModel.cs new file mode 100644 index 00000000..12949fbb --- /dev/null +++ b/src/Flipdish/Model/CreateBasicAccountModel.cs @@ -0,0 +1,143 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Basic attributes for creating an account + /// + [DataContract] + public partial class CreateBasicAccountModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateBasicAccountModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Store name (required). + /// LanguageId. + public CreateBasicAccountModel(string storeName = default(string), string languageId = default(string)) + { + // to ensure "storeName" is required (not null) + if (storeName == null) + { + throw new InvalidDataException("storeName is a required property for CreateBasicAccountModel and cannot be null"); + } + else + { + this.StoreName = storeName; + } + this.LanguageId = languageId; + } + + /// + /// Store name + /// + /// Store name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// LanguageId + /// + /// LanguageId + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateBasicAccountModel {\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" LanguageId: ").Append(LanguageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateBasicAccountModel); + } + + /// + /// Returns true if CreateBasicAccountModel instances are equal + /// + /// Instance of CreateBasicAccountModel to be compared + /// Boolean + public bool Equals(CreateBasicAccountModel input) + { + if (input == null) + return false; + + return + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateCatalogGroupReference.cs b/src/Flipdish/Model/CreateCatalogGroupReference.cs new file mode 100644 index 00000000..5489c494 --- /dev/null +++ b/src/Flipdish/Model/CreateCatalogGroupReference.cs @@ -0,0 +1,183 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + /// + [DataContract] + public partial class CreateCatalogGroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateCatalogGroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the ProductId to use as SubProduct (required). + /// Identifier of the ProductId to use as SubProduct. + /// Type of the SupProduct (required). + public CreateCatalogGroupReference(string catalogGroupId = default(string), string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogGroupId" is required (not null) + if (catalogGroupId == null) + { + throw new InvalidDataException("catalogGroupId is a required property for CreateCatalogGroupReference and cannot be null"); + } + else + { + this.CatalogGroupId = catalogGroupId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for CreateCatalogGroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + this.CatalogItemId = catalogItemId; + } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogGroupId", EmitDefaultValue=false)] + public string CatalogGroupId { get; set; } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateCatalogGroupReference {\n"); + sb.Append(" CatalogGroupId: ").Append(CatalogGroupId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateCatalogGroupReference); + } + + /// + /// Returns true if CreateCatalogGroupReference instances are equal + /// + /// Instance of CreateCatalogGroupReference to be compared + /// Boolean + public bool Equals(CreateCatalogGroupReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogGroupId == input.CatalogGroupId || + (this.CatalogGroupId != null && + this.CatalogGroupId.Equals(input.CatalogGroupId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogGroupId != null) + hashCode = hashCode * 59 + this.CatalogGroupId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateCatalogItem.cs b/src/Flipdish/Model/CreateCatalogItem.cs new file mode 100644 index 00000000..b609b4eb --- /dev/null +++ b/src/Flipdish/Model/CreateCatalogItem.cs @@ -0,0 +1,307 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create a Catalog Item + /// + [DataContract] + public partial class CreateCatalogItem : IEquatable + { + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum ItemTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [DataMember(Name="ItemType", EmitDefaultValue=false)] + public ItemTypeEnum ItemType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateCatalogItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Collection of groups associated with this item. + /// Collection of metafields. + /// Type of item (Product, Modifier, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Item name (required). + /// Item description. + /// Item price (required). + /// Image File Name. + /// item contains alcohol. + public CreateCatalogItem(List groups = default(List), List metafields = default(List), ItemTypeEnum itemType = default(ItemTypeEnum), string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?)) + { + // to ensure "itemType" is required (not null) + if (itemType == null) + { + throw new InvalidDataException("itemType is a required property for CreateCatalogItem and cannot be null"); + } + else + { + this.ItemType = itemType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for CreateCatalogItem and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CreateCatalogItem and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "price" is required (not null) + if (price == null) + { + throw new InvalidDataException("price is a required property for CreateCatalogItem and cannot be null"); + } + else + { + this.Price = price; + } + this.Groups = groups; + this.Metafields = metafields; + this.Description = description; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Item name + /// + /// Item name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Item description + /// + /// Item description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Item price + /// + /// Item price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// item contains alcohol + /// + /// item contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateCatalogItem {\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" ItemType: ").Append(ItemType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateCatalogItem); + } + + /// + /// Returns true if CreateCatalogItem instances are equal + /// + /// Instance of CreateCatalogItem to be compared + /// Boolean + public bool Equals(CreateCatalogItem input) + { + if (input == null) + return false; + + return + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.ItemType == input.ItemType || + (this.ItemType != null && + this.ItemType.Equals(input.ItemType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.ItemType != null) + hashCode = hashCode * 59 + this.ItemType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateEndUserFeeConfig.cs b/src/Flipdish/Model/CreateEndUserFeeConfig.cs new file mode 100644 index 00000000..8c79e8b4 --- /dev/null +++ b/src/Flipdish/Model/CreateEndUserFeeConfig.cs @@ -0,0 +1,284 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Input model for setting an end user fee config + /// + [DataContract] + public partial class CreateEndUserFeeConfig : IEquatable + { + /// + /// The order channel this fee config applies to + /// + /// The order channel this fee config applies to + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelEnum + { + + /// + /// Enum WebApp for value: WebApp + /// + [EnumMember(Value = "WebApp")] + WebApp = 1, + + /// + /// Enum InStore for value: InStore + /// + [EnumMember(Value = "InStore")] + InStore = 2, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 3 + } + + /// + /// The order channel this fee config applies to + /// + /// The order channel this fee config applies to + [DataMember(Name="Channel", EmitDefaultValue=false)] + public ChannelEnum Channel { get; set; } + /// + /// The payment method this fee config applies to + /// + /// The payment method this fee config applies to + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentMethodEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 2 + } + + /// + /// The payment method this fee config applies to + /// + /// The payment method this fee config applies to + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public PaymentMethodEnum PaymentMethod { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateEndUserFeeConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// The order channel this fee config applies to (required). + /// The payment method this fee config applies to (required). + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation. + /// Fixed fee charged for orders at or below MinOrderAmount. + /// Percentage fee applied to the order amount. + /// Fixed fee compared against the percentage fee - the greater of the two is charged. + /// Maximum fee that can be charged. + public CreateEndUserFeeConfig(ChannelEnum channel = default(ChannelEnum), PaymentMethodEnum paymentMethod = default(PaymentMethodEnum), double? minOrderAmount = default(double?), double? minFixedFee = default(double?), double? percentFee = default(double?), double? fixedFee = default(double?), double? cap = default(double?)) + { + // to ensure "channel" is required (not null) + if (channel == null) + { + throw new InvalidDataException("channel is a required property for CreateEndUserFeeConfig and cannot be null"); + } + else + { + this.Channel = channel; + } + // to ensure "paymentMethod" is required (not null) + if (paymentMethod == null) + { + throw new InvalidDataException("paymentMethod is a required property for CreateEndUserFeeConfig and cannot be null"); + } + else + { + this.PaymentMethod = paymentMethod; + } + this.MinOrderAmount = minOrderAmount; + this.MinFixedFee = minFixedFee; + this.PercentFee = percentFee; + this.FixedFee = fixedFee; + this.Cap = cap; + } + + + + /// + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation + /// + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation + [DataMember(Name="MinOrderAmount", EmitDefaultValue=false)] + public double? MinOrderAmount { get; set; } + + /// + /// Fixed fee charged for orders at or below MinOrderAmount + /// + /// Fixed fee charged for orders at or below MinOrderAmount + [DataMember(Name="MinFixedFee", EmitDefaultValue=false)] + public double? MinFixedFee { get; set; } + + /// + /// Percentage fee applied to the order amount + /// + /// Percentage fee applied to the order amount + [DataMember(Name="PercentFee", EmitDefaultValue=false)] + public double? PercentFee { get; set; } + + /// + /// Fixed fee compared against the percentage fee - the greater of the two is charged + /// + /// Fixed fee compared against the percentage fee - the greater of the two is charged + [DataMember(Name="FixedFee", EmitDefaultValue=false)] + public double? FixedFee { get; set; } + + /// + /// Maximum fee that can be charged + /// + /// Maximum fee that can be charged + [DataMember(Name="Cap", EmitDefaultValue=false)] + public double? Cap { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateEndUserFeeConfig {\n"); + sb.Append(" Channel: ").Append(Channel).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" MinOrderAmount: ").Append(MinOrderAmount).Append("\n"); + sb.Append(" MinFixedFee: ").Append(MinFixedFee).Append("\n"); + sb.Append(" PercentFee: ").Append(PercentFee).Append("\n"); + sb.Append(" FixedFee: ").Append(FixedFee).Append("\n"); + sb.Append(" Cap: ").Append(Cap).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateEndUserFeeConfig); + } + + /// + /// Returns true if CreateEndUserFeeConfig instances are equal + /// + /// Instance of CreateEndUserFeeConfig to be compared + /// Boolean + public bool Equals(CreateEndUserFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Channel == input.Channel || + (this.Channel != null && + this.Channel.Equals(input.Channel)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.MinOrderAmount == input.MinOrderAmount || + (this.MinOrderAmount != null && + this.MinOrderAmount.Equals(input.MinOrderAmount)) + ) && + ( + this.MinFixedFee == input.MinFixedFee || + (this.MinFixedFee != null && + this.MinFixedFee.Equals(input.MinFixedFee)) + ) && + ( + this.PercentFee == input.PercentFee || + (this.PercentFee != null && + this.PercentFee.Equals(input.PercentFee)) + ) && + ( + this.FixedFee == input.FixedFee || + (this.FixedFee != null && + this.FixedFee.Equals(input.FixedFee)) + ) && + ( + this.Cap == input.Cap || + (this.Cap != null && + this.Cap.Equals(input.Cap)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Channel != null) + hashCode = hashCode * 59 + this.Channel.GetHashCode(); + if (this.PaymentMethod != null) + hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); + if (this.MinOrderAmount != null) + hashCode = hashCode * 59 + this.MinOrderAmount.GetHashCode(); + if (this.MinFixedFee != null) + hashCode = hashCode * 59 + this.MinFixedFee.GetHashCode(); + if (this.PercentFee != null) + hashCode = hashCode * 59 + this.PercentFee.GetHashCode(); + if (this.FixedFee != null) + hashCode = hashCode * 59 + this.FixedFee.GetHashCode(); + if (this.Cap != null) + hashCode = hashCode * 59 + this.Cap.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFulfillmentStatesConfiguration.cs b/src/Flipdish/Model/CreateFulfillmentStatesConfiguration.cs new file mode 100644 index 00000000..4808e7c3 --- /dev/null +++ b/src/Flipdish/Model/CreateFulfillmentStatesConfiguration.cs @@ -0,0 +1,208 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create fulfillment states configuration + /// + [DataContract] + public partial class CreateFulfillmentStatesConfiguration : IEquatable + { + /// + /// Store Selector Type + /// + /// Store Selector Type + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Store Selector Type + /// + /// Store Selector Type + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum? StoreSelectorType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Stores id's. + /// Store Selector Type. + /// Settings. + /// Enable automatic transitions. + /// Name. + public CreateFulfillmentStatesConfiguration(List storeIds = default(List), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List states = default(List), bool? automaticTransitionsEnabled = default(bool?), string name = default(string)) + { + this.StoreIds = storeIds; + this.StoreSelectorType = storeSelectorType; + this.States = states; + this.AutomaticTransitionsEnabled = automaticTransitionsEnabled; + this.Name = name; + } + + /// + /// Stores id's + /// + /// Stores id's + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + + /// + /// Settings + /// + /// Settings + [DataMember(Name="States", EmitDefaultValue=false)] + public List States { get; set; } + + /// + /// Enable automatic transitions + /// + /// Enable automatic transitions + [DataMember(Name="AutomaticTransitionsEnabled", EmitDefaultValue=false)] + public bool? AutomaticTransitionsEnabled { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFulfillmentStatesConfiguration {\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" States: ").Append(States).Append("\n"); + sb.Append(" AutomaticTransitionsEnabled: ").Append(AutomaticTransitionsEnabled).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFulfillmentStatesConfiguration); + } + + /// + /// Returns true if CreateFulfillmentStatesConfiguration instances are equal + /// + /// Instance of CreateFulfillmentStatesConfiguration to be compared + /// Boolean + public bool Equals(CreateFulfillmentStatesConfiguration input) + { + if (input == null) + return false; + + return + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.States == input.States || + this.States != null && + this.States.SequenceEqual(input.States) + ) && + ( + this.AutomaticTransitionsEnabled == input.AutomaticTransitionsEnabled || + (this.AutomaticTransitionsEnabled != null && + this.AutomaticTransitionsEnabled.Equals(input.AutomaticTransitionsEnabled)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.States != null) + hashCode = hashCode * 59 + this.States.GetHashCode(); + if (this.AutomaticTransitionsEnabled != null) + hashCode = hashCode * 59 + this.AutomaticTransitionsEnabled.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFullMenu.cs b/src/Flipdish/Model/CreateFullMenu.cs new file mode 100644 index 00000000..6b5c1c6e --- /dev/null +++ b/src/Flipdish/Model/CreateFullMenu.cs @@ -0,0 +1,274 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create menu object + /// + [DataContract] + public partial class CreateFullMenu : IEquatable + { + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuSectionBehaviourEnum + { + + /// + /// Enum ExpandSingle for value: ExpandSingle + /// + [EnumMember(Value = "ExpandSingle")] + ExpandSingle = 1, + + /// + /// Enum ExpandMultiple for value: ExpandMultiple + /// + [EnumMember(Value = "ExpandMultiple")] + ExpandMultiple = 2 + } + + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [DataMember(Name="MenuSectionBehaviour", EmitDefaultValue=false)] + public MenuSectionBehaviourEnum? MenuSectionBehaviour { get; set; } + /// + /// Tax type + /// + /// Tax type + [JsonConverter(typeof(StringEnumConverter))] + public enum TaxTypeEnum + { + + /// + /// Enum IncludedInBasePrice for value: IncludedInBasePrice + /// + [EnumMember(Value = "IncludedInBasePrice")] + IncludedInBasePrice = 1, + + /// + /// Enum ExcludedFromBasePrice for value: ExcludedFromBasePrice + /// + [EnumMember(Value = "ExcludedFromBasePrice")] + ExcludedFromBasePrice = 2 + } + + /// + /// Tax type + /// + /// Tax type + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public TaxTypeEnum? TaxType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Name of Menu, only shown in portal. + /// Image url. + /// Menu sections (starters, main etc). + /// Menu tax rates. + /// Display menu section link on UI. + /// Menu section behaviour. + /// Tax type. + /// Flag to indicate if the menu is integrated (contains metadata). + public CreateFullMenu(string name = default(string), string imageUrl = default(string), List menuSections = default(List), List taxRates = default(List), bool? displaySectionLinks = default(bool?), MenuSectionBehaviourEnum? menuSectionBehaviour = default(MenuSectionBehaviourEnum?), TaxTypeEnum? taxType = default(TaxTypeEnum?), bool? isIntegrated = default(bool?)) + { + this.Name = name; + this.ImageUrl = imageUrl; + this.MenuSections = menuSections; + this.TaxRates = taxRates; + this.DisplaySectionLinks = displaySectionLinks; + this.MenuSectionBehaviour = menuSectionBehaviour; + this.TaxType = taxType; + this.IsIntegrated = isIntegrated; + } + + /// + /// Name of Menu, only shown in portal + /// + /// Name of Menu, only shown in portal + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu sections (starters, main etc) + /// + /// Menu sections (starters, main etc) + [DataMember(Name="MenuSections", EmitDefaultValue=false)] + public List MenuSections { get; set; } + + /// + /// Menu tax rates + /// + /// Menu tax rates + [DataMember(Name="TaxRates", EmitDefaultValue=false)] + public List TaxRates { get; set; } + + /// + /// Display menu section link on UI + /// + /// Display menu section link on UI + [DataMember(Name="DisplaySectionLinks", EmitDefaultValue=false)] + public bool? DisplaySectionLinks { get; set; } + + + + /// + /// Flag to indicate if the menu is integrated (contains metadata) + /// + /// Flag to indicate if the menu is integrated (contains metadata) + [DataMember(Name="IsIntegrated", EmitDefaultValue=false)] + public bool? IsIntegrated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFullMenu {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuSections: ").Append(MenuSections).Append("\n"); + sb.Append(" TaxRates: ").Append(TaxRates).Append("\n"); + sb.Append(" DisplaySectionLinks: ").Append(DisplaySectionLinks).Append("\n"); + sb.Append(" MenuSectionBehaviour: ").Append(MenuSectionBehaviour).Append("\n"); + sb.Append(" TaxType: ").Append(TaxType).Append("\n"); + sb.Append(" IsIntegrated: ").Append(IsIntegrated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFullMenu); + } + + /// + /// Returns true if CreateFullMenu instances are equal + /// + /// Instance of CreateFullMenu to be compared + /// Boolean + public bool Equals(CreateFullMenu input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuSections == input.MenuSections || + this.MenuSections != null && + this.MenuSections.SequenceEqual(input.MenuSections) + ) && + ( + this.TaxRates == input.TaxRates || + this.TaxRates != null && + this.TaxRates.SequenceEqual(input.TaxRates) + ) && + ( + this.DisplaySectionLinks == input.DisplaySectionLinks || + (this.DisplaySectionLinks != null && + this.DisplaySectionLinks.Equals(input.DisplaySectionLinks)) + ) && + ( + this.MenuSectionBehaviour == input.MenuSectionBehaviour || + (this.MenuSectionBehaviour != null && + this.MenuSectionBehaviour.Equals(input.MenuSectionBehaviour)) + ) && + ( + this.TaxType == input.TaxType || + (this.TaxType != null && + this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuSections != null) + hashCode = hashCode * 59 + this.MenuSections.GetHashCode(); + if (this.TaxRates != null) + hashCode = hashCode * 59 + this.TaxRates.GetHashCode(); + if (this.DisplaySectionLinks != null) + hashCode = hashCode * 59 + this.DisplaySectionLinks.GetHashCode(); + if (this.MenuSectionBehaviour != null) + hashCode = hashCode * 59 + this.MenuSectionBehaviour.GetHashCode(); + if (this.TaxType != null) + hashCode = hashCode * 59 + this.TaxType.GetHashCode(); + if (this.IsIntegrated != null) + hashCode = hashCode * 59 + this.IsIntegrated.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFullMenuItemOptionSet.cs b/src/Flipdish/Model/CreateFullMenuItemOptionSet.cs new file mode 100644 index 00000000..c170c232 --- /dev/null +++ b/src/Flipdish/Model/CreateFullMenuItemOptionSet.cs @@ -0,0 +1,282 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create menu item option set + /// + [DataContract] + public partial class CreateFullMenuItemOptionSet : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set identifier. + /// Option set items. + /// Menu item option set name. + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\").. + /// Display order. Displayed in ascending order.. + /// Minimum items must be selected. + /// Maximum number of items can be selected. + /// Small | Medium | Large Affects the layout of the menu.. + /// Permanent reference to the item.. + public CreateFullMenuItemOptionSet(int? menuItemOptionSetId = default(int?), List menuItemOptionSetItems = default(List), string name = default(string), bool? isMasterOptionSet = default(bool?), int? displayOrder = default(int?), int? minSelectCount = default(int?), int? maxSelectCount = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), Guid? publicId = default(Guid?)) + { + this.MenuItemOptionSetId = menuItemOptionSetId; + this.MenuItemOptionSetItems = menuItemOptionSetItems; + this.Name = name; + this.IsMasterOptionSet = isMasterOptionSet; + this.DisplayOrder = displayOrder; + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.CellLayoutType = cellLayoutType; + this.PublicId = publicId; + } + + /// + /// Menu item option set identifier + /// + /// Menu item option set identifier + [DataMember(Name="MenuItemOptionSetId", EmitDefaultValue=false)] + public int? MenuItemOptionSetId { get; set; } + + /// + /// Option set items + /// + /// Option set items + [DataMember(Name="MenuItemOptionSetItems", EmitDefaultValue=false)] + public List MenuItemOptionSetItems { get; set; } + + /// + /// Menu item option set name + /// + /// Menu item option set name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + [DataMember(Name="IsMasterOptionSet", EmitDefaultValue=false)] + public bool? IsMasterOptionSet { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Minimum items must be selected + /// + /// Minimum items must be selected + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items can be selected + /// + /// Maximum number of items can be selected + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFullMenuItemOptionSet {\n"); + sb.Append(" MenuItemOptionSetId: ").Append(MenuItemOptionSetId).Append("\n"); + sb.Append(" MenuItemOptionSetItems: ").Append(MenuItemOptionSetItems).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsMasterOptionSet: ").Append(IsMasterOptionSet).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFullMenuItemOptionSet); + } + + /// + /// Returns true if CreateFullMenuItemOptionSet instances are equal + /// + /// Instance of CreateFullMenuItemOptionSet to be compared + /// Boolean + public bool Equals(CreateFullMenuItemOptionSet input) + { + if (input == null) + return false; + + return + ( + this.MenuItemOptionSetId == input.MenuItemOptionSetId || + (this.MenuItemOptionSetId != null && + this.MenuItemOptionSetId.Equals(input.MenuItemOptionSetId)) + ) && + ( + this.MenuItemOptionSetItems == input.MenuItemOptionSetItems || + this.MenuItemOptionSetItems != null && + this.MenuItemOptionSetItems.SequenceEqual(input.MenuItemOptionSetItems) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsMasterOptionSet == input.IsMasterOptionSet || + (this.IsMasterOptionSet != null && + this.IsMasterOptionSet.Equals(input.IsMasterOptionSet)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemOptionSetId != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetId.GetHashCode(); + if (this.MenuItemOptionSetItems != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItems.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.IsMasterOptionSet != null) + hashCode = hashCode * 59 + this.IsMasterOptionSet.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFullMenuItemOptionSetItem.cs b/src/Flipdish/Model/CreateFullMenuItemOptionSetItem.cs new file mode 100644 index 00000000..7e9bc9da --- /dev/null +++ b/src/Flipdish/Model/CreateFullMenuItemOptionSetItem.cs @@ -0,0 +1,333 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create menu item option set item + /// + [DataContract] + public partial class CreateFullMenuItemOptionSetItem : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set item identifier. + /// List of metadata. + /// Tax rate name. + /// if null, next option set is next. if -1, this is the final option set. + /// Name. + /// Price. + /// An optional fee that can be added to the price of the item.. + /// Is available. + /// Display order. Displayed in ascending order.. + /// Small | Medium | Large Affects the layout of the menu.. + /// Image url. + /// Permanent reference to the item.. + public CreateFullMenuItemOptionSetItem(int? menuItemOptionSetItemId = default(int?), List metadata = default(List), string taxRateName = default(string), int? nextMenuItemOptionSetId = default(int?), string name = default(string), double? price = default(double?), double? depositReturnFee = default(double?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string), Guid? publicId = default(Guid?)) + { + this.MenuItemOptionSetItemId = menuItemOptionSetItemId; + this.Metadata = metadata; + this.TaxRateName = taxRateName; + this.NextMenuItemOptionSetId = nextMenuItemOptionSetId; + this.Name = name; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.IsAvailable = isAvailable; + this.DisplayOrder = displayOrder; + this.CellLayoutType = cellLayoutType; + this.ImageUrl = imageUrl; + this.PublicId = publicId; + } + + /// + /// Menu item option set item identifier + /// + /// Menu item option set item identifier + [DataMember(Name="MenuItemOptionSetItemId", EmitDefaultValue=false)] + public int? MenuItemOptionSetItemId { get; set; } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public List Metadata { get; set; } + + /// + /// Tax rate name + /// + /// Tax rate name + [DataMember(Name="TaxRateName", EmitDefaultValue=false)] + public string TaxRateName { get; set; } + + /// + /// if null, next option set is next. if -1, this is the final option set + /// + /// if null, next option set is next. if -1, this is the final option set + [DataMember(Name="NextMenuItemOptionSetId", EmitDefaultValue=false)] + public int? NextMenuItemOptionSetId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Price + /// + /// Price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFullMenuItemOptionSetItem {\n"); + sb.Append(" MenuItemOptionSetItemId: ").Append(MenuItemOptionSetItemId).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" TaxRateName: ").Append(TaxRateName).Append("\n"); + sb.Append(" NextMenuItemOptionSetId: ").Append(NextMenuItemOptionSetId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFullMenuItemOptionSetItem); + } + + /// + /// Returns true if CreateFullMenuItemOptionSetItem instances are equal + /// + /// Instance of CreateFullMenuItemOptionSetItem to be compared + /// Boolean + public bool Equals(CreateFullMenuItemOptionSetItem input) + { + if (input == null) + return false; + + return + ( + this.MenuItemOptionSetItemId == input.MenuItemOptionSetItemId || + (this.MenuItemOptionSetItemId != null && + this.MenuItemOptionSetItemId.Equals(input.MenuItemOptionSetItemId)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.TaxRateName == input.TaxRateName || + (this.TaxRateName != null && + this.TaxRateName.Equals(input.TaxRateName)) + ) && + ( + this.NextMenuItemOptionSetId == input.NextMenuItemOptionSetId || + (this.NextMenuItemOptionSetId != null && + this.NextMenuItemOptionSetId.Equals(input.NextMenuItemOptionSetId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemOptionSetItemId != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemId.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.TaxRateName != null) + hashCode = hashCode * 59 + this.TaxRateName.GetHashCode(); + if (this.NextMenuItemOptionSetId != null) + hashCode = hashCode * 59 + this.NextMenuItemOptionSetId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFullMenuSection.cs b/src/Flipdish/Model/CreateFullMenuSection.cs new file mode 100644 index 00000000..af25e767 --- /dev/null +++ b/src/Flipdish/Model/CreateFullMenuSection.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create menu section + /// + [DataContract] + public partial class CreateFullMenuSection : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu section availability. + /// Menu items. + /// Name. + /// Description. + /// Display order. + /// Is available. + /// Is hidden from customer. Perhaps when the item is out of stock.. + /// Image url. + /// Menu Section Id. + /// Permanent reference to the item.. + public CreateFullMenuSection(MenuSectionAvailability menuSectionAvailability = default(MenuSectionAvailability), List menuItems = default(List), string name = default(string), string description = default(string), int? displayOrder = default(int?), bool? isAvailable = default(bool?), bool? isHiddenFromCustomers = default(bool?), string imageUrl = default(string), int? menuSectionId = default(int?), Guid? publicId = default(Guid?)) + { + this.MenuSectionAvailability = menuSectionAvailability; + this.MenuItems = menuItems; + this.Name = name; + this.Description = description; + this.DisplayOrder = displayOrder; + this.IsAvailable = isAvailable; + this.IsHiddenFromCustomers = isHiddenFromCustomers; + this.ImageUrl = imageUrl; + this.MenuSectionId = menuSectionId; + this.PublicId = publicId; + } + + /// + /// Menu section availability + /// + /// Menu section availability + [DataMember(Name="MenuSectionAvailability", EmitDefaultValue=false)] + public MenuSectionAvailability MenuSectionAvailability { get; set; } + + /// + /// Menu items + /// + /// Menu items + [DataMember(Name="MenuItems", EmitDefaultValue=false)] + public List MenuItems { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + [DataMember(Name="IsHiddenFromCustomers", EmitDefaultValue=false)] + public bool? IsHiddenFromCustomers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu Section Id + /// + /// Menu Section Id + [DataMember(Name="MenuSectionId", EmitDefaultValue=false)] + public int? MenuSectionId { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFullMenuSection {\n"); + sb.Append(" MenuSectionAvailability: ").Append(MenuSectionAvailability).Append("\n"); + sb.Append(" MenuItems: ").Append(MenuItems).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" IsHiddenFromCustomers: ").Append(IsHiddenFromCustomers).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuSectionId: ").Append(MenuSectionId).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFullMenuSection); + } + + /// + /// Returns true if CreateFullMenuSection instances are equal + /// + /// Instance of CreateFullMenuSection to be compared + /// Boolean + public bool Equals(CreateFullMenuSection input) + { + if (input == null) + return false; + + return + ( + this.MenuSectionAvailability == input.MenuSectionAvailability || + (this.MenuSectionAvailability != null && + this.MenuSectionAvailability.Equals(input.MenuSectionAvailability)) + ) && + ( + this.MenuItems == input.MenuItems || + this.MenuItems != null && + this.MenuItems.SequenceEqual(input.MenuItems) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.IsHiddenFromCustomers == input.IsHiddenFromCustomers || + (this.IsHiddenFromCustomers != null && + this.IsHiddenFromCustomers.Equals(input.IsHiddenFromCustomers)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuSectionId == input.MenuSectionId || + (this.MenuSectionId != null && + this.MenuSectionId.Equals(input.MenuSectionId)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuSectionAvailability != null) + hashCode = hashCode * 59 + this.MenuSectionAvailability.GetHashCode(); + if (this.MenuItems != null) + hashCode = hashCode * 59 + this.MenuItems.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.IsHiddenFromCustomers != null) + hashCode = hashCode * 59 + this.IsHiddenFromCustomers.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuSectionId != null) + hashCode = hashCode * 59 + this.MenuSectionId.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateFullMenuSectionItem.cs b/src/Flipdish/Model/CreateFullMenuSectionItem.cs new file mode 100644 index 00000000..63cc1bac --- /dev/null +++ b/src/Flipdish/Model/CreateFullMenuSectionItem.cs @@ -0,0 +1,468 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create menu section item + /// + [DataContract] + public partial class CreateFullMenuSectionItem : IEquatable + { + /// + /// Spiciness rating + /// + /// Spiciness rating + [JsonConverter(typeof(StringEnumConverter))] + public enum SpicinessRatingEnum + { + + /// + /// Enum NotRated for value: NotRated + /// + [EnumMember(Value = "NotRated")] + NotRated = 1, + + /// + /// Enum Mild for value: Mild + /// + [EnumMember(Value = "Mild")] + Mild = 2, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 3, + + /// + /// Enum Hot for value: Hot + /// + [EnumMember(Value = "Hot")] + Hot = 4 + } + + /// + /// Spiciness rating + /// + /// Spiciness rating + [DataMember(Name="SpicinessRating", EmitDefaultValue=false)] + public SpicinessRatingEnum? SpicinessRating { get; set; } + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option sets. + /// List of metadata. + /// Tax rate name. + /// Menu item name (like \"Korma\"). + /// Description (like \"A lovely dish from the east\"). + /// Spiciness rating. + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists.. + /// An optional fee that can be added to the price of the item.. + /// Display order. + /// To be set true if the item or an option of the item contains an alcoholic drink.. + /// True if we accept orders for this item still. + /// Small | Medium | Large Affects the layout of the menu.. + /// If true, then vouchers won't be applied for this item. + /// Image url. + /// Image url. + /// Menu Item Id. + /// If true, the item is excluded from voucher discount calculations. + /// Permanent reference to the item.. + public CreateFullMenuSectionItem(List menuItemOptionSets = default(List), List metadata = default(List), string taxRateName = default(string), string name = default(string), string description = default(string), SpicinessRatingEnum? spicinessRating = default(SpicinessRatingEnum?), double? price = default(double?), double? depositReturnFee = default(double?), int? displayOrder = default(int?), bool? alcohol = default(bool?), bool? isAvailable = default(bool?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), bool? disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string), int? menuItemId = default(int?), bool? excludeFromVoucherDiscounting = default(bool?), Guid? publicId = default(Guid?)) + { + this.MenuItemOptionSets = menuItemOptionSets; + this.Metadata = metadata; + this.TaxRateName = taxRateName; + this.Name = name; + this.Description = description; + this.SpicinessRating = spicinessRating; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.DisplayOrder = displayOrder; + this.Alcohol = alcohol; + this.IsAvailable = isAvailable; + this.CellLayoutType = cellLayoutType; + this.DisableVouchers = disableVouchers; + this.ImageName = imageName; + this.ImageUrl = imageUrl; + this.MenuItemId = menuItemId; + this.ExcludeFromVoucherDiscounting = excludeFromVoucherDiscounting; + this.PublicId = publicId; + } + + /// + /// Menu item option sets + /// + /// Menu item option sets + [DataMember(Name="MenuItemOptionSets", EmitDefaultValue=false)] + public List MenuItemOptionSets { get; set; } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public List Metadata { get; set; } + + /// + /// Tax rate name + /// + /// Tax rate name + [DataMember(Name="TaxRateName", EmitDefaultValue=false)] + public string TaxRateName { get; set; } + + /// + /// Menu item name (like \"Korma\") + /// + /// Menu item name (like \"Korma\") + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description (like \"A lovely dish from the east\") + /// + /// Description (like \"A lovely dish from the east\") + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// True if we accept orders for this item still + /// + /// True if we accept orders for this item still + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + + /// + /// If true, then vouchers won't be applied for this item + /// + /// If true, then vouchers won't be applied for this item + [DataMember(Name="DisableVouchers", EmitDefaultValue=false)] + public bool? DisableVouchers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu Item Id + /// + /// Menu Item Id + [DataMember(Name="MenuItemId", EmitDefaultValue=false)] + public int? MenuItemId { get; set; } + + /// + /// If true, the item is excluded from voucher discount calculations + /// + /// If true, the item is excluded from voucher discount calculations + [DataMember(Name="ExcludeFromVoucherDiscounting", EmitDefaultValue=false)] + public bool? ExcludeFromVoucherDiscounting { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateFullMenuSectionItem {\n"); + sb.Append(" MenuItemOptionSets: ").Append(MenuItemOptionSets).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" TaxRateName: ").Append(TaxRateName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" SpicinessRating: ").Append(SpicinessRating).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" DisableVouchers: ").Append(DisableVouchers).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuItemId: ").Append(MenuItemId).Append("\n"); + sb.Append(" ExcludeFromVoucherDiscounting: ").Append(ExcludeFromVoucherDiscounting).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateFullMenuSectionItem); + } + + /// + /// Returns true if CreateFullMenuSectionItem instances are equal + /// + /// Instance of CreateFullMenuSectionItem to be compared + /// Boolean + public bool Equals(CreateFullMenuSectionItem input) + { + if (input == null) + return false; + + return + ( + this.MenuItemOptionSets == input.MenuItemOptionSets || + this.MenuItemOptionSets != null && + this.MenuItemOptionSets.SequenceEqual(input.MenuItemOptionSets) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.TaxRateName == input.TaxRateName || + (this.TaxRateName != null && + this.TaxRateName.Equals(input.TaxRateName)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SpicinessRating == input.SpicinessRating || + (this.SpicinessRating != null && + this.SpicinessRating.Equals(input.SpicinessRating)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.DisableVouchers == input.DisableVouchers || + (this.DisableVouchers != null && + this.DisableVouchers.Equals(input.DisableVouchers)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuItemId == input.MenuItemId || + (this.MenuItemId != null && + this.MenuItemId.Equals(input.MenuItemId)) + ) && + ( + this.ExcludeFromVoucherDiscounting == input.ExcludeFromVoucherDiscounting || + (this.ExcludeFromVoucherDiscounting != null && + this.ExcludeFromVoucherDiscounting.Equals(input.ExcludeFromVoucherDiscounting)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemOptionSets != null) + hashCode = hashCode * 59 + this.MenuItemOptionSets.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.TaxRateName != null) + hashCode = hashCode * 59 + this.TaxRateName.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SpicinessRating != null) + hashCode = hashCode * 59 + this.SpicinessRating.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.DisableVouchers != null) + hashCode = hashCode * 59 + this.DisableVouchers.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuItemId != null) + hashCode = hashCode * 59 + this.MenuItemId.GetHashCode(); + if (this.ExcludeFromVoucherDiscounting != null) + hashCode = hashCode * 59 + this.ExcludeFromVoucherDiscounting.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateGroup.cs b/src/Flipdish/Model/CreateGroup.cs new file mode 100644 index 00000000..049d452c --- /dev/null +++ b/src/Flipdish/Model/CreateGroup.cs @@ -0,0 +1,293 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create a Catalog Group + /// + [DataContract] + public partial class CreateGroup : IEquatable + { + /// + /// Type of group (ModifierGroup, etc) + /// + /// Type of group (ModifierGroup, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of group (ModifierGroup, etc) + /// + /// Type of group (ModifierGroup, etc) + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// Minimum number of items that the user has to select. + /// Maximum number of items that the user has to select. + /// Collection of items associated with this group. + /// Collection of metafields. + /// Type of group (ModifierGroup, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Group name (required). + /// Autogenerate display text in ordering applications. + /// Image File Name. + public CreateGroup(int? minSelectCount = default(int?), int? maxSelectCount = default(int?), List products = default(List), List metafields = default(List), GroupTypeEnum groupType = default(GroupTypeEnum), string sku = default(string), string name = default(string), bool? autogenerateDisplayText = default(bool?), string imageFileName = default(string)) + { + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for CreateGroup and cannot be null"); + } + else + { + this.GroupType = groupType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for CreateGroup and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CreateGroup and cannot be null"); + } + else + { + this.Name = name; + } + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.Products = products; + this.Metafields = metafields; + this.AutogenerateDisplayText = autogenerateDisplayText; + this.ImageFileName = imageFileName; + } + + /// + /// Minimum number of items that the user has to select + /// + /// Minimum number of items that the user has to select + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items that the user has to select + /// + /// Maximum number of items that the user has to select + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + /// + /// Collection of items associated with this group + /// + /// Collection of items associated with this group + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Group name + /// + /// Group name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Autogenerate display text in ordering applications + /// + /// Autogenerate display text in ordering applications + [DataMember(Name="AutogenerateDisplayText", EmitDefaultValue=false)] + public bool? AutogenerateDisplayText { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateGroup {\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AutogenerateDisplayText: ").Append(AutogenerateDisplayText).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateGroup); + } + + /// + /// Returns true if CreateGroup instances are equal + /// + /// Instance of CreateGroup to be compared + /// Boolean + public bool Equals(CreateGroup input) + { + if (input == null) + return false; + + return + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.Products == input.Products || + this.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.AutogenerateDisplayText == input.AutogenerateDisplayText || + (this.AutogenerateDisplayText != null && + this.AutogenerateDisplayText.Equals(input.AutogenerateDisplayText)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.Products != null) + hashCode = hashCode * 59 + this.Products.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.AutogenerateDisplayText != null) + hashCode = hashCode * 59 + this.AutogenerateDisplayText.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateGroupReference.cs b/src/Flipdish/Model/CreateGroupReference.cs new file mode 100644 index 00000000..f53a5d6f --- /dev/null +++ b/src/Flipdish/Model/CreateGroupReference.cs @@ -0,0 +1,166 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to create a reference to a {System.Text.RegularExpressions.Group} + /// + [DataContract] + public partial class CreateGroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateGroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the ProductId to use as SubProduct (required). + /// Type of the SupProduct (required). + public CreateGroupReference(string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for CreateGroupReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for CreateGroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateGroupReference {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateGroupReference); + } + + /// + /// Returns true if CreateGroupReference instances are equal + /// + /// Instance of CreateGroupReference to be compared + /// Boolean + public bool Equals(CreateGroupReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateLocation.cs b/src/Flipdish/Model/CreateLocation.cs new file mode 100644 index 00000000..04811708 --- /dev/null +++ b/src/Flipdish/Model/CreateLocation.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Input model for creating a Location + /// + [DataContract] + public partial class CreateLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Location Id. + /// Descriptive LocationArea name. + /// The order that the Location should be displayed on the screen. + /// Id of the Location on an external system. + public CreateLocation(int? locationId = default(int?), string locationName = default(string), int? displayOrder = default(int?), string externalLocationId = default(string)) + { + this.LocationId = locationId; + this.LocationName = locationName; + this.DisplayOrder = displayOrder; + this.ExternalLocationId = externalLocationId; + } + + /// + /// Location Id + /// + /// Location Id + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// Descriptive LocationArea name + /// + /// Descriptive LocationArea name + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public string LocationName { get; set; } + + /// + /// The order that the Location should be displayed on the screen + /// + /// The order that the Location should be displayed on the screen + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Id of the Location on an external system + /// + /// Id of the Location on an external system + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateLocation {\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" LocationName: ").Append(LocationName).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateLocation); + } + + /// + /// Returns true if CreateLocation instances are equal + /// + /// Instance of CreateLocation to be compared + /// Boolean + public bool Equals(CreateLocation input) + { + if (input == null) + return false; + + return + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.LocationName == input.LocationName || + (this.LocationName != null && + this.LocationName.Equals(input.LocationName)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.LocationName != null) + hashCode = hashCode * 59 + this.LocationName.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateLocationArea.cs b/src/Flipdish/Model/CreateLocationArea.cs new file mode 100644 index 00000000..2e3c9d5b --- /dev/null +++ b/src/Flipdish/Model/CreateLocationArea.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Input model for creating a LocationArea + /// + [DataContract] + public partial class CreateLocationArea : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateLocationArea() { } + /// + /// Initializes a new instance of the class. + /// + /// Descriptive LocationArea name (required). + public CreateLocationArea(string locationAreaName = default(string)) + { + // to ensure "locationAreaName" is required (not null) + if (locationAreaName == null) + { + throw new InvalidDataException("locationAreaName is a required property for CreateLocationArea and cannot be null"); + } + else + { + this.LocationAreaName = locationAreaName; + } + } + + /// + /// Descriptive LocationArea name + /// + /// Descriptive LocationArea name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateLocationArea {\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateLocationArea); + } + + /// + /// Returns true if CreateLocationArea instances are equal + /// + /// Instance of CreateLocationArea to be compared + /// Boolean + public bool Equals(CreateLocationArea input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateMenuSectionItemFromCatalogItems.cs b/src/Flipdish/Model/CreateMenuSectionItemFromCatalogItems.cs new file mode 100644 index 00000000..779fad75 --- /dev/null +++ b/src/Flipdish/Model/CreateMenuSectionItemFromCatalogItems.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Add CatalogItems to a Menu + /// + [DataContract] + public partial class CreateMenuSectionItemFromCatalogItems : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMenuSectionItemFromCatalogItems() { } + /// + /// Initializes a new instance of the class. + /// + /// List of CatalogItems to add to the section (required). + public CreateMenuSectionItemFromCatalogItems(List menuCatalogItems = default(List)) + { + // to ensure "menuCatalogItems" is required (not null) + if (menuCatalogItems == null) + { + throw new InvalidDataException("menuCatalogItems is a required property for CreateMenuSectionItemFromCatalogItems and cannot be null"); + } + else + { + this.MenuCatalogItems = menuCatalogItems; + } + } + + /// + /// List of CatalogItems to add to the section + /// + /// List of CatalogItems to add to the section + [DataMember(Name="MenuCatalogItems", EmitDefaultValue=false)] + public List MenuCatalogItems { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMenuSectionItemFromCatalogItems {\n"); + sb.Append(" MenuCatalogItems: ").Append(MenuCatalogItems).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateMenuSectionItemFromCatalogItems); + } + + /// + /// Returns true if CreateMenuSectionItemFromCatalogItems instances are equal + /// + /// Instance of CreateMenuSectionItemFromCatalogItems to be compared + /// Boolean + public bool Equals(CreateMenuSectionItemFromCatalogItems input) + { + if (input == null) + return false; + + return + ( + this.MenuCatalogItems == input.MenuCatalogItems || + this.MenuCatalogItems != null && + this.MenuCatalogItems.SequenceEqual(input.MenuCatalogItems) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuCatalogItems != null) + hashCode = hashCode * 59 + this.MenuCatalogItems.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateMenuTaxRate.cs b/src/Flipdish/Model/CreateMenuTaxRate.cs new file mode 100644 index 00000000..d6923667 --- /dev/null +++ b/src/Flipdish/Model/CreateMenuTaxRate.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Tax Rates Associated with a Menu + /// + [DataContract] + public partial class CreateMenuTaxRate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name of Tax Rate. + /// In Percentage. + public CreateMenuTaxRate(string name = default(string), double? rate = default(double?)) + { + this.Name = name; + this.Rate = rate; + } + + /// + /// Name of Tax Rate + /// + /// Name of Tax Rate + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// In Percentage + /// + /// In Percentage + [DataMember(Name="Rate", EmitDefaultValue=false)] + public double? Rate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMenuTaxRate {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateMenuTaxRate); + } + + /// + /// Returns true if CreateMenuTaxRate instances are equal + /// + /// Instance of CreateMenuTaxRate to be compared + /// Boolean + public bool Equals(CreateMenuTaxRate input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Rate == input.Rate || + (this.Rate != null && + this.Rate.Equals(input.Rate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Rate != null) + hashCode = hashCode * 59 + this.Rate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateMetadata.cs b/src/Flipdish/Model/CreateMetadata.cs new file mode 100644 index 00000000..54443cf5 --- /dev/null +++ b/src/Flipdish/Model/CreateMetadata.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create metadata + /// + [DataContract] + public partial class CreateMetadata : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Metadata key (Unique identifier). + /// Metadata value. + public CreateMetadata(int? storeId = default(int?), string key = default(string), string value = default(string)) + { + this.StoreId = storeId; + this.Key = key; + this.Value = value; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Metadata key (Unique identifier) + /// + /// Metadata key (Unique identifier) + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Metadata value + /// + /// Metadata value + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMetadata {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateMetadata); + } + + /// + /// Returns true if CreateMetadata instances are equal + /// + /// Instance of CreateMetadata to be compared + /// Boolean + public bool Equals(CreateMetadata input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateMetafieldDefinition.cs b/src/Flipdish/Model/CreateMetafieldDefinition.cs new file mode 100644 index 00000000..65f6ffaa --- /dev/null +++ b/src/Flipdish/Model/CreateMetafieldDefinition.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to create a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} + /// + [DataContract] + public partial class CreateMetafieldDefinition : IEquatable + { + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [JsonConverter(typeof(StringEnumConverter))] + public enum OwnerEntityEnum + { + + /// + /// Enum CatalogItem for value: CatalogItem + /// + [EnumMember(Value = "CatalogItem")] + CatalogItem = 1, + + /// + /// Enum CatalogGroup for value: CatalogGroup + /// + [EnumMember(Value = "CatalogGroup")] + CatalogGroup = 2, + + /// + /// Enum Menu for value: Menu + /// + [EnumMember(Value = "Menu")] + Menu = 3 + } + + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] + public OwnerEntityEnum? OwnerEntity { get; set; } + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueTypeEnum + { + + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + + /// + /// Enum Json for value: Json + /// + [EnumMember(Value = "Json")] + Json = 2, + + /// + /// Enum SingleLineString for value: SingleLineString + /// + [EnumMember(Value = "SingleLineString")] + SingleLineString = 3, + + /// + /// Enum MultiLineString for value: MultiLineString + /// + [EnumMember(Value = "MultiLineString")] + MultiLineString = 4 + } + + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [DataMember(Name="ValueType", EmitDefaultValue=false)] + public ValueTypeEnum? ValueType { get; set; } + /// + /// Defines Behaviors + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BehaviorsEnum + { + + /// + /// Enum SendToOrder for value: SendToOrder + /// + [EnumMember(Value = "SendToOrder")] + SendToOrder = 1, + + /// + /// Enum SendToMenu for value: SendToMenu + /// + [EnumMember(Value = "SendToMenu")] + SendToMenu = 2 + } + + + /// + /// Enable Metafield Behaviors + /// + /// Enable Metafield Behaviors + [DataMember(Name="Behaviors", EmitDefaultValue=false)] + public List Behaviors { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMetafieldDefinition() { } + /// + /// Initializes a new instance of the class. + /// + /// Indicates if a definition can be edited or not. + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity}. + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore (required). + /// The excepted type for the Value field. + /// Field Name (required). + /// Field Description. + /// Enable Metafield Behaviors. + /// Metafield Recommendation Id. + public CreateMetafieldDefinition(bool? isReadOnly = default(bool?), OwnerEntityEnum? ownerEntity = default(OwnerEntityEnum?), string key = default(string), ValueTypeEnum? valueType = default(ValueTypeEnum?), string name = default(string), string description = default(string), List behaviors = default(List), int? metafieldDefinitionRecommendationId = default(int?)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new InvalidDataException("key is a required property for CreateMetafieldDefinition and cannot be null"); + } + else + { + this.Key = key; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CreateMetafieldDefinition and cannot be null"); + } + else + { + this.Name = name; + } + this.IsReadOnly = isReadOnly; + this.OwnerEntity = ownerEntity; + this.ValueType = valueType; + this.Description = description; + this.Behaviors = behaviors; + this.MetafieldDefinitionRecommendationId = metafieldDefinitionRecommendationId; + } + + /// + /// Indicates if a definition can be edited or not + /// + /// Indicates if a definition can be edited or not + [DataMember(Name="IsReadOnly", EmitDefaultValue=false)] + public bool? IsReadOnly { get; set; } + + + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + + /// + /// Field Name + /// + /// Field Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Field Description + /// + /// Field Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Metafield Recommendation Id + /// + /// Metafield Recommendation Id + [DataMember(Name="MetafieldDefinitionRecommendationId", EmitDefaultValue=false)] + public int? MetafieldDefinitionRecommendationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMetafieldDefinition {\n"); + sb.Append(" IsReadOnly: ").Append(IsReadOnly).Append("\n"); + sb.Append(" OwnerEntity: ").Append(OwnerEntity).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" ValueType: ").Append(ValueType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Behaviors: ").Append(Behaviors).Append("\n"); + sb.Append(" MetafieldDefinitionRecommendationId: ").Append(MetafieldDefinitionRecommendationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateMetafieldDefinition); + } + + /// + /// Returns true if CreateMetafieldDefinition instances are equal + /// + /// Instance of CreateMetafieldDefinition to be compared + /// Boolean + public bool Equals(CreateMetafieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.IsReadOnly == input.IsReadOnly || + (this.IsReadOnly != null && + this.IsReadOnly.Equals(input.IsReadOnly)) + ) && + ( + this.OwnerEntity == input.OwnerEntity || + (this.OwnerEntity != null && + this.OwnerEntity.Equals(input.OwnerEntity)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.ValueType == input.ValueType || + (this.ValueType != null && + this.ValueType.Equals(input.ValueType)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Behaviors == input.Behaviors || + this.Behaviors != null && + this.Behaviors.SequenceEqual(input.Behaviors) + ) && + ( + this.MetafieldDefinitionRecommendationId == input.MetafieldDefinitionRecommendationId || + (this.MetafieldDefinitionRecommendationId != null && + this.MetafieldDefinitionRecommendationId.Equals(input.MetafieldDefinitionRecommendationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsReadOnly != null) + hashCode = hashCode * 59 + this.IsReadOnly.GetHashCode(); + if (this.OwnerEntity != null) + hashCode = hashCode * 59 + this.OwnerEntity.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.ValueType != null) + hashCode = hashCode * 59 + this.ValueType.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Behaviors != null) + hashCode = hashCode * 59 + this.Behaviors.GetHashCode(); + if (this.MetafieldDefinitionRecommendationId != null) + hashCode = hashCode * 59 + this.MetafieldDefinitionRecommendationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs b/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs new file mode 100644 index 00000000..ce79ac67 --- /dev/null +++ b/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CreatePayGreenConfigurationRequest. + /// + [DataContract] + public partial class CreatePayGreenConfigurationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// PayGreenId.. + /// PayGreenPrivateKey.. + /// AssignedStores.. + public CreatePayGreenConfigurationRequest(string name = default(string), string payGreenId = default(string), string payGreenPrivateKey = default(string), List assignedStores = default(List)) + { + this.Name = name; + this.PayGreenId = payGreenId; + this.PayGreenPrivateKey = payGreenPrivateKey; + this.AssignedStores = assignedStores; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// PayGreenId. + /// + /// PayGreenId. + [DataMember(Name="PayGreenId", EmitDefaultValue=false)] + public string PayGreenId { get; set; } + + /// + /// PayGreenPrivateKey. + /// + /// PayGreenPrivateKey. + [DataMember(Name="PayGreenPrivateKey", EmitDefaultValue=false)] + public string PayGreenPrivateKey { get; set; } + + /// + /// AssignedStores. + /// + /// AssignedStores. + [DataMember(Name="AssignedStores", EmitDefaultValue=false)] + public List AssignedStores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreatePayGreenConfigurationRequest {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PayGreenId: ").Append(PayGreenId).Append("\n"); + sb.Append(" PayGreenPrivateKey: ").Append(PayGreenPrivateKey).Append("\n"); + sb.Append(" AssignedStores: ").Append(AssignedStores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreatePayGreenConfigurationRequest); + } + + /// + /// Returns true if CreatePayGreenConfigurationRequest instances are equal + /// + /// Instance of CreatePayGreenConfigurationRequest to be compared + /// Boolean + public bool Equals(CreatePayGreenConfigurationRequest input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PayGreenId == input.PayGreenId || + (this.PayGreenId != null && + this.PayGreenId.Equals(input.PayGreenId)) + ) && + ( + this.PayGreenPrivateKey == input.PayGreenPrivateKey || + (this.PayGreenPrivateKey != null && + this.PayGreenPrivateKey.Equals(input.PayGreenPrivateKey)) + ) && + ( + this.AssignedStores == input.AssignedStores || + this.AssignedStores != null && + this.AssignedStores.SequenceEqual(input.AssignedStores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PayGreenId != null) + hashCode = hashCode * 59 + this.PayGreenId.GetHashCode(); + if (this.PayGreenPrivateKey != null) + hashCode = hashCode * 59 + this.PayGreenPrivateKey.GetHashCode(); + if (this.AssignedStores != null) + hashCode = hashCode * 59 + this.AssignedStores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateProduct.cs b/src/Flipdish/Model/CreateProduct.cs new file mode 100644 index 00000000..36cdc704 --- /dev/null +++ b/src/Flipdish/Model/CreateProduct.cs @@ -0,0 +1,307 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create a Catalog Item + /// + [DataContract] + public partial class CreateProduct : IEquatable + { + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [DataMember(Name="ProductType", EmitDefaultValue=false)] + public ProductTypeEnum ProductType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateProduct() { } + /// + /// Initializes a new instance of the class. + /// + /// Collection of groups associated with this item. + /// Collection of metafields. + /// Type of item (Product, Modifier, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Product name (required). + /// Product description. + /// Product price (required). + /// Image File Name. + /// Product contains alcohol. + public CreateProduct(List groups = default(List), List metafields = default(List), ProductTypeEnum productType = default(ProductTypeEnum), string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?)) + { + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new InvalidDataException("productType is a required property for CreateProduct and cannot be null"); + } + else + { + this.ProductType = productType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for CreateProduct and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for CreateProduct and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "price" is required (not null) + if (price == null) + { + throw new InvalidDataException("price is a required property for CreateProduct and cannot be null"); + } + else + { + this.Price = price; + } + this.Groups = groups; + this.Metafields = metafields; + this.Description = description; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Product name + /// + /// Product name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Product description + /// + /// Product description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Product price + /// + /// Product price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Product contains alcohol + /// + /// Product contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateProduct {\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateProduct); + } + + /// + /// Returns true if CreateProduct instances are equal + /// + /// Instance of CreateProduct to be compared + /// Boolean + public bool Equals(CreateProduct input) + { + if (input == null) + return false; + + return + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateProductReference.cs b/src/Flipdish/Model/CreateProductReference.cs new file mode 100644 index 00000000..67780f05 --- /dev/null +++ b/src/Flipdish/Model/CreateProductReference.cs @@ -0,0 +1,189 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Product} + /// + [DataContract] + public partial class CreateProductReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="ProductType", EmitDefaultValue=false)] + public ProductTypeEnum ProductType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateProductReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the CatalogItemId to use as SubProduct (required). + /// Type of the SupProduct (required). + /// Quantity of the modifier that will be set when the parent product is placed in the basket. + public CreateProductReference(string catalogItemId = default(string), ProductTypeEnum productType = default(ProductTypeEnum), int? preselectedQuantity = default(int?)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for CreateProductReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new InvalidDataException("productType is a required property for CreateProductReference and cannot be null"); + } + else + { + this.ProductType = productType; + } + this.PreselectedQuantity = preselectedQuantity; + } + + /// + /// Identifier of the CatalogItemId to use as SubProduct + /// + /// Identifier of the CatalogItemId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + [DataMember(Name="PreselectedQuantity", EmitDefaultValue=false)] + public int? PreselectedQuantity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateProductReference {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" PreselectedQuantity: ").Append(PreselectedQuantity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateProductReference); + } + + /// + /// Returns true if CreateProductReference instances are equal + /// + /// Instance of CreateProductReference to be compared + /// Boolean + public bool Equals(CreateProductReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.PreselectedQuantity == input.PreselectedQuantity || + (this.PreselectedQuantity != null && + this.PreselectedQuantity.Equals(input.PreselectedQuantity)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.PreselectedQuantity != null) + hashCode = hashCode * 59 + this.PreselectedQuantity.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreatePromotion.cs b/src/Flipdish/Model/CreatePromotion.cs new file mode 100644 index 00000000..2dcc2753 --- /dev/null +++ b/src/Flipdish/Model/CreatePromotion.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create Promotion + /// + [DataContract] + public partial class CreatePromotion : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Promotion Name. + /// Promotion Menu Item Awards. + public CreatePromotion(string name = default(string), List menuItemPublicIds = default(List)) + { + this.Name = name; + this.MenuItemPublicIds = menuItemPublicIds; + } + + /// + /// Promotion Name + /// + /// Promotion Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Promotion Menu Item Awards + /// + /// Promotion Menu Item Awards + [DataMember(Name="MenuItemPublicIds", EmitDefaultValue=false)] + public List MenuItemPublicIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreatePromotion {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" MenuItemPublicIds: ").Append(MenuItemPublicIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreatePromotion); + } + + /// + /// Returns true if CreatePromotion instances are equal + /// + /// Instance of CreatePromotion to be compared + /// Boolean + public bool Equals(CreatePromotion input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.MenuItemPublicIds == input.MenuItemPublicIds || + this.MenuItemPublicIds != null && + this.MenuItemPublicIds.SequenceEqual(input.MenuItemPublicIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.MenuItemPublicIds != null) + hashCode = hashCode * 59 + this.MenuItemPublicIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateTeammate.cs b/src/Flipdish/Model/CreateTeammate.cs new file mode 100644 index 00000000..320395b7 --- /dev/null +++ b/src/Flipdish/Model/CreateTeammate.cs @@ -0,0 +1,274 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CreateTeammate + /// + [DataContract] + public partial class CreateTeammate : IEquatable + { + /// + /// App access level + /// + /// App access level + [JsonConverter(typeof(StringEnumConverter))] + public enum AppAccessLevelEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 2, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 3, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 5, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 8, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 11, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, + + /// + /// Enum Support for value: Support + /// + [EnumMember(Value = "Support")] + Support = 14 + } + + /// + /// App access level + /// + /// App access level + [DataMember(Name="AppAccessLevel", EmitDefaultValue=false)] + public AppAccessLevelEnum? AppAccessLevel { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Email address. + /// App access level. + /// The user has access to all stores for the app (including new stores that added later). + /// Store IDs the user has access to (if HasAccessToAllStores is false). + /// Property Ids the user has access to (if HasAccessToAllStores is false). + public CreateTeammate(string email = default(string), AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), bool? hasAccessToAllStores = default(bool?), List storeIds = default(List), List propertyIds = default(List)) + { + this.Email = email; + this.AppAccessLevel = appAccessLevel; + this.HasAccessToAllStores = hasAccessToAllStores; + this.StoreIds = storeIds; + this.PropertyIds = propertyIds; + } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + + /// + /// The user has access to all stores for the app (including new stores that added later) + /// + /// The user has access to all stores for the app (including new stores that added later) + [DataMember(Name="HasAccessToAllStores", EmitDefaultValue=false)] + public bool? HasAccessToAllStores { get; set; } + + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="PropertyIds", EmitDefaultValue=false)] + public List PropertyIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateTeammate {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" AppAccessLevel: ").Append(AppAccessLevel).Append("\n"); + sb.Append(" HasAccessToAllStores: ").Append(HasAccessToAllStores).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" PropertyIds: ").Append(PropertyIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateTeammate); + } + + /// + /// Returns true if CreateTeammate instances are equal + /// + /// Instance of CreateTeammate to be compared + /// Boolean + public bool Equals(CreateTeammate input) + { + if (input == null) + return false; + + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.AppAccessLevel == input.AppAccessLevel || + (this.AppAccessLevel != null && + this.AppAccessLevel.Equals(input.AppAccessLevel)) + ) && + ( + this.HasAccessToAllStores == input.HasAccessToAllStores || + (this.HasAccessToAllStores != null && + this.HasAccessToAllStores.Equals(input.HasAccessToAllStores)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.AppAccessLevel != null) + hashCode = hashCode * 59 + this.AppAccessLevel.GetHashCode(); + if (this.HasAccessToAllStores != null) + hashCode = hashCode * 59 + this.HasAccessToAllStores.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.PropertyIds != null) + hashCode = hashCode * 59 + this.PropertyIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateUserDeliveryLocationRequest.cs b/src/Flipdish/Model/CreateUserDeliveryLocationRequest.cs new file mode 100644 index 00000000..33f6db07 --- /dev/null +++ b/src/Flipdish/Model/CreateUserDeliveryLocationRequest.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create a delivery location for a user (admin). + /// + [DataContract] + public partial class CreateUserDeliveryLocationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Building.. + /// Street.. + /// Town.. + /// PostCode.. + /// FullAddressJson.. + /// DeliveryInstructions.. + /// Coordinates.. + /// Passed through to the same parameter position as legacy admin MVC (maps to IsCustomAddress in map service).. + public CreateUserDeliveryLocationRequest(string building = default(string), string street = default(string), string town = default(string), string postCode = default(string), string fullAddressJson = default(string), string deliveryInstructions = default(string), Coordinates coordinates = default(Coordinates), bool? isDisplayed = default(bool?)) + { + this.Building = building; + this.Street = street; + this.Town = town; + this.PostCode = postCode; + this.FullAddressJson = fullAddressJson; + this.DeliveryInstructions = deliveryInstructions; + this.Coordinates = coordinates; + this.IsDisplayed = isDisplayed; + } + + /// + /// Building. + /// + /// Building. + [DataMember(Name="Building", EmitDefaultValue=false)] + public string Building { get; set; } + + /// + /// Street. + /// + /// Street. + [DataMember(Name="Street", EmitDefaultValue=false)] + public string Street { get; set; } + + /// + /// Town. + /// + /// Town. + [DataMember(Name="Town", EmitDefaultValue=false)] + public string Town { get; set; } + + /// + /// PostCode. + /// + /// PostCode. + [DataMember(Name="PostCode", EmitDefaultValue=false)] + public string PostCode { get; set; } + + /// + /// FullAddressJson. + /// + /// FullAddressJson. + [DataMember(Name="FullAddressJson", EmitDefaultValue=false)] + public string FullAddressJson { get; set; } + + /// + /// DeliveryInstructions. + /// + /// DeliveryInstructions. + [DataMember(Name="DeliveryInstructions", EmitDefaultValue=false)] + public string DeliveryInstructions { get; set; } + + /// + /// Coordinates. + /// + /// Coordinates. + [DataMember(Name="Coordinates", EmitDefaultValue=false)] + public Coordinates Coordinates { get; set; } + + /// + /// Passed through to the same parameter position as legacy admin MVC (maps to IsCustomAddress in map service). + /// + /// Passed through to the same parameter position as legacy admin MVC (maps to IsCustomAddress in map service). + [DataMember(Name="IsDisplayed", EmitDefaultValue=false)] + public bool? IsDisplayed { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateUserDeliveryLocationRequest {\n"); + sb.Append(" Building: ").Append(Building).Append("\n"); + sb.Append(" Street: ").Append(Street).Append("\n"); + sb.Append(" Town: ").Append(Town).Append("\n"); + sb.Append(" PostCode: ").Append(PostCode).Append("\n"); + sb.Append(" FullAddressJson: ").Append(FullAddressJson).Append("\n"); + sb.Append(" DeliveryInstructions: ").Append(DeliveryInstructions).Append("\n"); + sb.Append(" Coordinates: ").Append(Coordinates).Append("\n"); + sb.Append(" IsDisplayed: ").Append(IsDisplayed).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateUserDeliveryLocationRequest); + } + + /// + /// Returns true if CreateUserDeliveryLocationRequest instances are equal + /// + /// Instance of CreateUserDeliveryLocationRequest to be compared + /// Boolean + public bool Equals(CreateUserDeliveryLocationRequest input) + { + if (input == null) + return false; + + return + ( + this.Building == input.Building || + (this.Building != null && + this.Building.Equals(input.Building)) + ) && + ( + this.Street == input.Street || + (this.Street != null && + this.Street.Equals(input.Street)) + ) && + ( + this.Town == input.Town || + (this.Town != null && + this.Town.Equals(input.Town)) + ) && + ( + this.PostCode == input.PostCode || + (this.PostCode != null && + this.PostCode.Equals(input.PostCode)) + ) && + ( + this.FullAddressJson == input.FullAddressJson || + (this.FullAddressJson != null && + this.FullAddressJson.Equals(input.FullAddressJson)) + ) && + ( + this.DeliveryInstructions == input.DeliveryInstructions || + (this.DeliveryInstructions != null && + this.DeliveryInstructions.Equals(input.DeliveryInstructions)) + ) && + ( + this.Coordinates == input.Coordinates || + (this.Coordinates != null && + this.Coordinates.Equals(input.Coordinates)) + ) && + ( + this.IsDisplayed == input.IsDisplayed || + (this.IsDisplayed != null && + this.IsDisplayed.Equals(input.IsDisplayed)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Building != null) + hashCode = hashCode * 59 + this.Building.GetHashCode(); + if (this.Street != null) + hashCode = hashCode * 59 + this.Street.GetHashCode(); + if (this.Town != null) + hashCode = hashCode * 59 + this.Town.GetHashCode(); + if (this.PostCode != null) + hashCode = hashCode * 59 + this.PostCode.GetHashCode(); + if (this.FullAddressJson != null) + hashCode = hashCode * 59 + this.FullAddressJson.GetHashCode(); + if (this.DeliveryInstructions != null) + hashCode = hashCode * 59 + this.DeliveryInstructions.GetHashCode(); + if (this.Coordinates != null) + hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); + if (this.IsDisplayed != null) + hashCode = hashCode * 59 + this.IsDisplayed.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreateVoucher.cs b/src/Flipdish/Model/CreateVoucher.cs new file mode 100644 index 00000000..b2dd46f9 --- /dev/null +++ b/src/Flipdish/Model/CreateVoucher.cs @@ -0,0 +1,741 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Create Voucher + /// + [DataContract] + public partial class CreateVoucher : IEquatable + { + /// + /// Voucher Type + /// + /// Voucher Type + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherTypeEnum + { + + /// + /// Enum PercentageDiscount for value: PercentageDiscount + /// + [EnumMember(Value = "PercentageDiscount")] + PercentageDiscount = 1, + + /// + /// Enum LumpDiscount for value: LumpDiscount + /// + [EnumMember(Value = "LumpDiscount")] + LumpDiscount = 2, + + /// + /// Enum AddItem for value: AddItem + /// + [EnumMember(Value = "AddItem")] + AddItem = 3, + + /// + /// Enum CreditNote for value: CreditNote + /// + [EnumMember(Value = "CreditNote")] + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 + } + + /// + /// Voucher Type + /// + /// Voucher Type + [DataMember(Name="VoucherType", EmitDefaultValue=false)] + public VoucherTypeEnum? VoucherType { get; set; } + /// + /// Defines ChannelRestrictions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelRestrictionsEnum + { + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 3, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 4, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 5, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 6 + } + + + /// + /// Limit the channels this voucher can be used on + /// + /// Limit the channels this voucher can be used on + [DataMember(Name="ChannelRestrictions", EmitDefaultValue=false)] + public List ChannelRestrictions { get; set; } + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherSubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [DataMember(Name="VoucherSubType", EmitDefaultValue=false)] + public VoucherSubTypeEnum? VoucherSubType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Voucher Type. + /// Create Promotion details. + /// Credit note details. + /// Lump discount details. + /// Percent discount details. + /// Voucher Code. + /// Voucher Description (Visible on printout). + /// Stores that this voucher applies to. + /// Valid on orders on or above. + /// Takes priority. + /// Is voucher enabled. + /// Is voucher automatically applied. + /// Include delivery fees. + /// Valid for delivery orders. + /// Valid for pickup orders. + /// Valid for orders payed online. + /// Valid for orders payed in cash. + /// Valid only on the first order by the customer. + /// Valid once per customer. + /// Valid only once, by any customer (once used cannot be used again by any other customer). + /// Enables the voucher to be offered in the Voucher Discoverability feature. + /// Marks the voucher as promoted. + /// Force the discount to be applied which bypasses some menu restrictions. + /// Voucher Starts On (Time in UTC). + /// Voucher Expires On (Time in UTC). + /// Limit the channels this voucher can be used on. + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.. + /// Voucher Subtype. + /// Customer UserID. + /// Maximum number of times the voucher can be redeemed (used). + public CreateVoucher(VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), CreatePromotion promotion = default(CreatePromotion), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), List stores = default(List), double? validOnOrdersOver = default(double?), bool? takesPriority = default(bool?), bool? isEnabled = default(bool?), bool? isAutomaticallyApplied = default(bool?), bool? includeDeliveryFee = default(bool?), bool? isValidForDeliveryOrders = default(bool?), bool? isValidForPickupOrders = default(bool?), bool? isValidForOrdersPayedOnline = default(bool?), bool? isValidForOrdersPayedByCash = default(bool?), bool? isValidForFirstOrderOnly = default(bool?), bool? isValidOncePerCustomer = default(bool?), bool? isValidOnlyOnce = default(bool?), bool? isDiscoverable = default(bool?), bool? isPromoted = default(bool?), bool? forceDiscount = default(bool?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?), List channelRestrictions = default(List), List validityPeriods = default(List), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), int? customerId = default(int?), int? maxRedemptions = default(int?)) + { + this.VoucherType = voucherType; + this.Promotion = promotion; + this.CreditNoteDetails = creditNoteDetails; + this.LumpDiscountDetails = lumpDiscountDetails; + this.PercentDiscountDetails = percentDiscountDetails; + this.Code = code; + this.Description = description; + this.Stores = stores; + this.ValidOnOrdersOver = validOnOrdersOver; + this.TakesPriority = takesPriority; + this.IsEnabled = isEnabled; + this.IsAutomaticallyApplied = isAutomaticallyApplied; + this.IncludeDeliveryFee = includeDeliveryFee; + this.IsValidForDeliveryOrders = isValidForDeliveryOrders; + this.IsValidForPickupOrders = isValidForPickupOrders; + this.IsValidForOrdersPayedOnline = isValidForOrdersPayedOnline; + this.IsValidForOrdersPayedByCash = isValidForOrdersPayedByCash; + this.IsValidForFirstOrderOnly = isValidForFirstOrderOnly; + this.IsValidOncePerCustomer = isValidOncePerCustomer; + this.IsValidOnlyOnce = isValidOnlyOnce; + this.IsDiscoverable = isDiscoverable; + this.IsPromoted = isPromoted; + this.ForceDiscount = forceDiscount; + this.StartDate = startDate; + this.ExpiryDate = expiryDate; + this.ChannelRestrictions = channelRestrictions; + this.ValidityPeriods = validityPeriods; + this.VoucherSubType = voucherSubType; + this.CustomerId = customerId; + this.MaxRedemptions = maxRedemptions; + } + + + /// + /// Create Promotion details + /// + /// Create Promotion details + [DataMember(Name="Promotion", EmitDefaultValue=false)] + public CreatePromotion Promotion { get; set; } + + /// + /// Credit note details + /// + /// Credit note details + [DataMember(Name="CreditNoteDetails", EmitDefaultValue=false)] + public CreditNoteDetails CreditNoteDetails { get; set; } + + /// + /// Lump discount details + /// + /// Lump discount details + [DataMember(Name="LumpDiscountDetails", EmitDefaultValue=false)] + public LumpDiscountDetails LumpDiscountDetails { get; set; } + + /// + /// Percent discount details + /// + /// Percent discount details + [DataMember(Name="PercentDiscountDetails", EmitDefaultValue=false)] + public PercentDiscountDetails PercentDiscountDetails { get; set; } + + /// + /// Voucher Code + /// + /// Voucher Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Voucher Description (Visible on printout) + /// + /// Voucher Description (Visible on printout) + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Valid on orders on or above + /// + /// Valid on orders on or above + [DataMember(Name="ValidOnOrdersOver", EmitDefaultValue=false)] + public double? ValidOnOrdersOver { get; set; } + + /// + /// Takes priority + /// + /// Takes priority + [DataMember(Name="TakesPriority", EmitDefaultValue=false)] + public bool? TakesPriority { get; set; } + + /// + /// Is voucher enabled + /// + /// Is voucher enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Is voucher automatically applied + /// + /// Is voucher automatically applied + [DataMember(Name="IsAutomaticallyApplied", EmitDefaultValue=false)] + public bool? IsAutomaticallyApplied { get; set; } + + /// + /// Include delivery fees + /// + /// Include delivery fees + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Valid for delivery orders + /// + /// Valid for delivery orders + [DataMember(Name="IsValidForDeliveryOrders", EmitDefaultValue=false)] + public bool? IsValidForDeliveryOrders { get; set; } + + /// + /// Valid for pickup orders + /// + /// Valid for pickup orders + [DataMember(Name="IsValidForPickupOrders", EmitDefaultValue=false)] + public bool? IsValidForPickupOrders { get; set; } + + /// + /// Valid for orders payed online + /// + /// Valid for orders payed online + [DataMember(Name="IsValidForOrdersPayedOnline", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedOnline { get; set; } + + /// + /// Valid for orders payed in cash + /// + /// Valid for orders payed in cash + [DataMember(Name="IsValidForOrdersPayedByCash", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedByCash { get; set; } + + /// + /// Valid only on the first order by the customer + /// + /// Valid only on the first order by the customer + [DataMember(Name="IsValidForFirstOrderOnly", EmitDefaultValue=false)] + public bool? IsValidForFirstOrderOnly { get; set; } + + /// + /// Valid once per customer + /// + /// Valid once per customer + [DataMember(Name="IsValidOncePerCustomer", EmitDefaultValue=false)] + public bool? IsValidOncePerCustomer { get; set; } + + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + [DataMember(Name="IsValidOnlyOnce", EmitDefaultValue=false)] + public bool? IsValidOnlyOnce { get; set; } + + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + [DataMember(Name="IsDiscoverable", EmitDefaultValue=false)] + public bool? IsDiscoverable { get; set; } + + /// + /// Marks the voucher as promoted + /// + /// Marks the voucher as promoted + [DataMember(Name="IsPromoted", EmitDefaultValue=false)] + public bool? IsPromoted { get; set; } + + /// + /// Force the discount to be applied which bypasses some menu restrictions + /// + /// Force the discount to be applied which bypasses some menu restrictions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Voucher Starts On (Time in UTC) + /// + /// Voucher Starts On (Time in UTC) + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// Voucher Expires On (Time in UTC) + /// + /// Voucher Expires On (Time in UTC) + [DataMember(Name="ExpiryDate", EmitDefaultValue=false)] + public DateTime? ExpiryDate { get; set; } + + + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + [DataMember(Name="ValidityPeriods", EmitDefaultValue=false)] + public List ValidityPeriods { get; set; } + + + /// + /// Customer UserID + /// + /// Customer UserID + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public int? CustomerId { get; set; } + + /// + /// Maximum number of times the voucher can be redeemed (used) + /// + /// Maximum number of times the voucher can be redeemed (used) + [DataMember(Name="MaxRedemptions", EmitDefaultValue=false)] + public int? MaxRedemptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateVoucher {\n"); + sb.Append(" VoucherType: ").Append(VoucherType).Append("\n"); + sb.Append(" Promotion: ").Append(Promotion).Append("\n"); + sb.Append(" CreditNoteDetails: ").Append(CreditNoteDetails).Append("\n"); + sb.Append(" LumpDiscountDetails: ").Append(LumpDiscountDetails).Append("\n"); + sb.Append(" PercentDiscountDetails: ").Append(PercentDiscountDetails).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" ValidOnOrdersOver: ").Append(ValidOnOrdersOver).Append("\n"); + sb.Append(" TakesPriority: ").Append(TakesPriority).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsAutomaticallyApplied: ").Append(IsAutomaticallyApplied).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" IsValidForDeliveryOrders: ").Append(IsValidForDeliveryOrders).Append("\n"); + sb.Append(" IsValidForPickupOrders: ").Append(IsValidForPickupOrders).Append("\n"); + sb.Append(" IsValidForOrdersPayedOnline: ").Append(IsValidForOrdersPayedOnline).Append("\n"); + sb.Append(" IsValidForOrdersPayedByCash: ").Append(IsValidForOrdersPayedByCash).Append("\n"); + sb.Append(" IsValidForFirstOrderOnly: ").Append(IsValidForFirstOrderOnly).Append("\n"); + sb.Append(" IsValidOncePerCustomer: ").Append(IsValidOncePerCustomer).Append("\n"); + sb.Append(" IsValidOnlyOnce: ").Append(IsValidOnlyOnce).Append("\n"); + sb.Append(" IsDiscoverable: ").Append(IsDiscoverable).Append("\n"); + sb.Append(" IsPromoted: ").Append(IsPromoted).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" ExpiryDate: ").Append(ExpiryDate).Append("\n"); + sb.Append(" ChannelRestrictions: ").Append(ChannelRestrictions).Append("\n"); + sb.Append(" ValidityPeriods: ").Append(ValidityPeriods).Append("\n"); + sb.Append(" VoucherSubType: ").Append(VoucherSubType).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" MaxRedemptions: ").Append(MaxRedemptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateVoucher); + } + + /// + /// Returns true if CreateVoucher instances are equal + /// + /// Instance of CreateVoucher to be compared + /// Boolean + public bool Equals(CreateVoucher input) + { + if (input == null) + return false; + + return + ( + this.VoucherType == input.VoucherType || + (this.VoucherType != null && + this.VoucherType.Equals(input.VoucherType)) + ) && + ( + this.Promotion == input.Promotion || + (this.Promotion != null && + this.Promotion.Equals(input.Promotion)) + ) && + ( + this.CreditNoteDetails == input.CreditNoteDetails || + (this.CreditNoteDetails != null && + this.CreditNoteDetails.Equals(input.CreditNoteDetails)) + ) && + ( + this.LumpDiscountDetails == input.LumpDiscountDetails || + (this.LumpDiscountDetails != null && + this.LumpDiscountDetails.Equals(input.LumpDiscountDetails)) + ) && + ( + this.PercentDiscountDetails == input.PercentDiscountDetails || + (this.PercentDiscountDetails != null && + this.PercentDiscountDetails.Equals(input.PercentDiscountDetails)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.ValidOnOrdersOver == input.ValidOnOrdersOver || + (this.ValidOnOrdersOver != null && + this.ValidOnOrdersOver.Equals(input.ValidOnOrdersOver)) + ) && + ( + this.TakesPriority == input.TakesPriority || + (this.TakesPriority != null && + this.TakesPriority.Equals(input.TakesPriority)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsAutomaticallyApplied == input.IsAutomaticallyApplied || + (this.IsAutomaticallyApplied != null && + this.IsAutomaticallyApplied.Equals(input.IsAutomaticallyApplied)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.IsValidForDeliveryOrders == input.IsValidForDeliveryOrders || + (this.IsValidForDeliveryOrders != null && + this.IsValidForDeliveryOrders.Equals(input.IsValidForDeliveryOrders)) + ) && + ( + this.IsValidForPickupOrders == input.IsValidForPickupOrders || + (this.IsValidForPickupOrders != null && + this.IsValidForPickupOrders.Equals(input.IsValidForPickupOrders)) + ) && + ( + this.IsValidForOrdersPayedOnline == input.IsValidForOrdersPayedOnline || + (this.IsValidForOrdersPayedOnline != null && + this.IsValidForOrdersPayedOnline.Equals(input.IsValidForOrdersPayedOnline)) + ) && + ( + this.IsValidForOrdersPayedByCash == input.IsValidForOrdersPayedByCash || + (this.IsValidForOrdersPayedByCash != null && + this.IsValidForOrdersPayedByCash.Equals(input.IsValidForOrdersPayedByCash)) + ) && + ( + this.IsValidForFirstOrderOnly == input.IsValidForFirstOrderOnly || + (this.IsValidForFirstOrderOnly != null && + this.IsValidForFirstOrderOnly.Equals(input.IsValidForFirstOrderOnly)) + ) && + ( + this.IsValidOncePerCustomer == input.IsValidOncePerCustomer || + (this.IsValidOncePerCustomer != null && + this.IsValidOncePerCustomer.Equals(input.IsValidOncePerCustomer)) + ) && + ( + this.IsValidOnlyOnce == input.IsValidOnlyOnce || + (this.IsValidOnlyOnce != null && + this.IsValidOnlyOnce.Equals(input.IsValidOnlyOnce)) + ) && + ( + this.IsDiscoverable == input.IsDiscoverable || + (this.IsDiscoverable != null && + this.IsDiscoverable.Equals(input.IsDiscoverable)) + ) && + ( + this.IsPromoted == input.IsPromoted || + (this.IsPromoted != null && + this.IsPromoted.Equals(input.IsPromoted)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.ExpiryDate == input.ExpiryDate || + (this.ExpiryDate != null && + this.ExpiryDate.Equals(input.ExpiryDate)) + ) && + ( + this.ChannelRestrictions == input.ChannelRestrictions || + this.ChannelRestrictions != null && + this.ChannelRestrictions.SequenceEqual(input.ChannelRestrictions) + ) && + ( + this.ValidityPeriods == input.ValidityPeriods || + this.ValidityPeriods != null && + this.ValidityPeriods.SequenceEqual(input.ValidityPeriods) + ) && + ( + this.VoucherSubType == input.VoucherSubType || + (this.VoucherSubType != null && + this.VoucherSubType.Equals(input.VoucherSubType)) + ) && + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ) && + ( + this.MaxRedemptions == input.MaxRedemptions || + (this.MaxRedemptions != null && + this.MaxRedemptions.Equals(input.MaxRedemptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherType != null) + hashCode = hashCode * 59 + this.VoucherType.GetHashCode(); + if (this.Promotion != null) + hashCode = hashCode * 59 + this.Promotion.GetHashCode(); + if (this.CreditNoteDetails != null) + hashCode = hashCode * 59 + this.CreditNoteDetails.GetHashCode(); + if (this.LumpDiscountDetails != null) + hashCode = hashCode * 59 + this.LumpDiscountDetails.GetHashCode(); + if (this.PercentDiscountDetails != null) + hashCode = hashCode * 59 + this.PercentDiscountDetails.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.ValidOnOrdersOver != null) + hashCode = hashCode * 59 + this.ValidOnOrdersOver.GetHashCode(); + if (this.TakesPriority != null) + hashCode = hashCode * 59 + this.TakesPriority.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsAutomaticallyApplied != null) + hashCode = hashCode * 59 + this.IsAutomaticallyApplied.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.IsValidForDeliveryOrders != null) + hashCode = hashCode * 59 + this.IsValidForDeliveryOrders.GetHashCode(); + if (this.IsValidForPickupOrders != null) + hashCode = hashCode * 59 + this.IsValidForPickupOrders.GetHashCode(); + if (this.IsValidForOrdersPayedOnline != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedOnline.GetHashCode(); + if (this.IsValidForOrdersPayedByCash != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedByCash.GetHashCode(); + if (this.IsValidForFirstOrderOnly != null) + hashCode = hashCode * 59 + this.IsValidForFirstOrderOnly.GetHashCode(); + if (this.IsValidOncePerCustomer != null) + hashCode = hashCode * 59 + this.IsValidOncePerCustomer.GetHashCode(); + if (this.IsValidOnlyOnce != null) + hashCode = hashCode * 59 + this.IsValidOnlyOnce.GetHashCode(); + if (this.IsDiscoverable != null) + hashCode = hashCode * 59 + this.IsDiscoverable.GetHashCode(); + if (this.IsPromoted != null) + hashCode = hashCode * 59 + this.IsPromoted.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.ExpiryDate != null) + hashCode = hashCode * 59 + this.ExpiryDate.GetHashCode(); + if (this.ChannelRestrictions != null) + hashCode = hashCode * 59 + this.ChannelRestrictions.GetHashCode(); + if (this.ValidityPeriods != null) + hashCode = hashCode * 59 + this.ValidityPeriods.GetHashCode(); + if (this.VoucherSubType != null) + hashCode = hashCode * 59 + this.VoucherSubType.GetHashCode(); + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + if (this.MaxRedemptions != null) + hashCode = hashCode * 59 + this.MaxRedemptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreatedMenuSectionItems.cs b/src/Flipdish/Model/CreatedMenuSectionItems.cs new file mode 100644 index 00000000..2f9d204b --- /dev/null +++ b/src/Flipdish/Model/CreatedMenuSectionItems.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Response for the creation of multiple Menu Section Items + /// + [DataContract] + public partial class CreatedMenuSectionItems : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Created Menu Section Items. + public CreatedMenuSectionItems(List menuSectionItems = default(List)) + { + this.MenuSectionItems = menuSectionItems; + } + + /// + /// Created Menu Section Items + /// + /// Created Menu Section Items + [DataMember(Name="MenuSectionItems", EmitDefaultValue=false)] + public List MenuSectionItems { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreatedMenuSectionItems {\n"); + sb.Append(" MenuSectionItems: ").Append(MenuSectionItems).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreatedMenuSectionItems); + } + + /// + /// Returns true if CreatedMenuSectionItems instances are equal + /// + /// Instance of CreatedMenuSectionItems to be compared + /// Boolean + public bool Equals(CreatedMenuSectionItems input) + { + if (input == null) + return false; + + return + ( + this.MenuSectionItems == input.MenuSectionItems || + this.MenuSectionItems != null && + this.MenuSectionItems.SequenceEqual(input.MenuSectionItems) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuSectionItems != null) + hashCode = hashCode * 59 + this.MenuSectionItems.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CreditNoteDetails.cs b/src/Flipdish/Model/CreditNoteDetails.cs new file mode 100644 index 00000000..51009096 --- /dev/null +++ b/src/Flipdish/Model/CreditNoteDetails.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Credit note details + /// + [DataContract] + public partial class CreditNoteDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Remaining credit. + public CreditNoteDetails(double? remainingCredit = default(double?)) + { + this.RemainingCredit = remainingCredit; + } + + /// + /// Remaining credit + /// + /// Remaining credit + [DataMember(Name="RemainingCredit", EmitDefaultValue=false)] + public double? RemainingCredit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreditNoteDetails {\n"); + sb.Append(" RemainingCredit: ").Append(RemainingCredit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreditNoteDetails); + } + + /// + /// Returns true if CreditNoteDetails instances are equal + /// + /// Instance of CreditNoteDetails to be compared + /// Boolean + public bool Equals(CreditNoteDetails input) + { + if (input == null) + return false; + + return + ( + this.RemainingCredit == input.RemainingCredit || + (this.RemainingCredit != null && + this.RemainingCredit.Equals(input.RemainingCredit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RemainingCredit != null) + hashCode = hashCode * 59 + this.RemainingCredit.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CrossSellMenuItems.cs b/src/Flipdish/Model/CrossSellMenuItems.cs new file mode 100644 index 00000000..ea6b3091 --- /dev/null +++ b/src/Flipdish/Model/CrossSellMenuItems.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Items for Cross-Sell + /// + [DataContract] + public partial class CrossSellMenuItems : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu Item Id's. + public CrossSellMenuItems(List menuItemIds = default(List)) + { + this.MenuItemIds = menuItemIds; + } + + /// + /// Menu Item Id's + /// + /// Menu Item Id's + [DataMember(Name="MenuItemIds", EmitDefaultValue=false)] + public List MenuItemIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CrossSellMenuItems {\n"); + sb.Append(" MenuItemIds: ").Append(MenuItemIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CrossSellMenuItems); + } + + /// + /// Returns true if CrossSellMenuItems instances are equal + /// + /// Instance of CrossSellMenuItems to be compared + /// Boolean + public bool Equals(CrossSellMenuItems input) + { + if (input == null) + return false; + + return + ( + this.MenuItemIds == input.MenuItemIds || + this.MenuItemIds != null && + this.MenuItemIds.SequenceEqual(input.MenuItemIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemIds != null) + hashCode = hashCode * 59 + this.MenuItemIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CspReport.cs b/src/Flipdish/Model/CspReport.cs new file mode 100644 index 00000000..a7af04b7 --- /dev/null +++ b/src/Flipdish/Model/CspReport.cs @@ -0,0 +1,208 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CspReport + /// + [DataContract] + public partial class CspReport : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// documentUri. + /// referrer. + /// violatedDirective. + /// effectiveDirective. + /// originalPolicy. + /// blockedUri. + /// statusCode. + public CspReport(string documentUri = default(string), string referrer = default(string), string violatedDirective = default(string), string effectiveDirective = default(string), string originalPolicy = default(string), string blockedUri = default(string), int? statusCode = default(int?)) + { + this.Document_uri = documentUri; + this.Referrer = referrer; + this.Violated_directive = violatedDirective; + this.Effective_directive = effectiveDirective; + this.Original_policy = originalPolicy; + this.Blocked_uri = blockedUri; + this.Status_code = statusCode; + } + + /// + /// Gets or Sets Document_uri + /// + [DataMember(Name="Document-uri", EmitDefaultValue=false)] + public string Document_uri { get; set; } + + /// + /// Gets or Sets Referrer + /// + [DataMember(Name="Referrer", EmitDefaultValue=false)] + public string Referrer { get; set; } + + /// + /// Gets or Sets Violated_directive + /// + [DataMember(Name="Violated-directive", EmitDefaultValue=false)] + public string Violated_directive { get; set; } + + /// + /// Gets or Sets Effective_directive + /// + [DataMember(Name="Effective-directive", EmitDefaultValue=false)] + public string Effective_directive { get; set; } + + /// + /// Gets or Sets Original_policy + /// + [DataMember(Name="Original-policy", EmitDefaultValue=false)] + public string Original_policy { get; set; } + + /// + /// Gets or Sets Blocked_uri + /// + [DataMember(Name="Blocked-uri", EmitDefaultValue=false)] + public string Blocked_uri { get; set; } + + /// + /// Gets or Sets Status_code + /// + [DataMember(Name="Status-code", EmitDefaultValue=false)] + public int? Status_code { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CspReport {\n"); + sb.Append(" Document_uri: ").Append(Document_uri).Append("\n"); + sb.Append(" Referrer: ").Append(Referrer).Append("\n"); + sb.Append(" Violated_directive: ").Append(Violated_directive).Append("\n"); + sb.Append(" Effective_directive: ").Append(Effective_directive).Append("\n"); + sb.Append(" Original_policy: ").Append(Original_policy).Append("\n"); + sb.Append(" Blocked_uri: ").Append(Blocked_uri).Append("\n"); + sb.Append(" Status_code: ").Append(Status_code).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CspReport); + } + + /// + /// Returns true if CspReport instances are equal + /// + /// Instance of CspReport to be compared + /// Boolean + public bool Equals(CspReport input) + { + if (input == null) + return false; + + return + ( + this.Document_uri == input.Document_uri || + (this.Document_uri != null && + this.Document_uri.Equals(input.Document_uri)) + ) && + ( + this.Referrer == input.Referrer || + (this.Referrer != null && + this.Referrer.Equals(input.Referrer)) + ) && + ( + this.Violated_directive == input.Violated_directive || + (this.Violated_directive != null && + this.Violated_directive.Equals(input.Violated_directive)) + ) && + ( + this.Effective_directive == input.Effective_directive || + (this.Effective_directive != null && + this.Effective_directive.Equals(input.Effective_directive)) + ) && + ( + this.Original_policy == input.Original_policy || + (this.Original_policy != null && + this.Original_policy.Equals(input.Original_policy)) + ) && + ( + this.Blocked_uri == input.Blocked_uri || + (this.Blocked_uri != null && + this.Blocked_uri.Equals(input.Blocked_uri)) + ) && + ( + this.Status_code == input.Status_code || + (this.Status_code != null && + this.Status_code.Equals(input.Status_code)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Document_uri != null) + hashCode = hashCode * 59 + this.Document_uri.GetHashCode(); + if (this.Referrer != null) + hashCode = hashCode * 59 + this.Referrer.GetHashCode(); + if (this.Violated_directive != null) + hashCode = hashCode * 59 + this.Violated_directive.GetHashCode(); + if (this.Effective_directive != null) + hashCode = hashCode * 59 + this.Effective_directive.GetHashCode(); + if (this.Original_policy != null) + hashCode = hashCode * 59 + this.Original_policy.GetHashCode(); + if (this.Blocked_uri != null) + hashCode = hashCode * 59 + this.Blocked_uri.GetHashCode(); + if (this.Status_code != null) + hashCode = hashCode * 59 + this.Status_code.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CspReportRequest.cs b/src/Flipdish/Model/CspReportRequest.cs new file mode 100644 index 00000000..fe68f6ea --- /dev/null +++ b/src/Flipdish/Model/CspReportRequest.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CspReportRequest + /// + [DataContract] + public partial class CspReportRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// cspReport. + public CspReportRequest(CspReport cspReport = default(CspReport)) + { + this.Csp_report = cspReport; + } + + /// + /// Gets or Sets Csp_report + /// + [DataMember(Name="Csp-report", EmitDefaultValue=false)] + public CspReport Csp_report { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CspReportRequest {\n"); + sb.Append(" Csp_report: ").Append(Csp_report).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CspReportRequest); + } + + /// + /// Returns true if CspReportRequest instances are equal + /// + /// Instance of CspReportRequest to be compared + /// Boolean + public bool Equals(CspReportRequest input) + { + if (input == null) + return false; + + return + ( + this.Csp_report == input.Csp_report || + (this.Csp_report != null && + this.Csp_report.Equals(input.Csp_report)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Csp_report != null) + hashCode = hashCode * 59 + this.Csp_report.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CurrencyData.cs b/src/Flipdish/Model/CurrencyData.cs new file mode 100644 index 00000000..2e96f2b2 --- /dev/null +++ b/src/Flipdish/Model/CurrencyData.cs @@ -0,0 +1,817 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A single currency data piece, with no date + /// + [DataContract] + public partial class CurrencyData : IEquatable + { + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Currency. + /// Value. + public CurrencyData(CurrencyEnum? currency = default(CurrencyEnum?), double? value = default(double?)) + { + this.Currency = currency; + this.Value = value; + } + + + /// + /// Value + /// + /// Value + [DataMember(Name="Value", EmitDefaultValue=false)] + public double? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CurrencyData {\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CurrencyData); + } + + /// + /// Returns true if CurrencyData instances are equal + /// + /// Instance of CurrencyData to be compared + /// Boolean + public bool Equals(CurrencyData input) + { + if (input == null) + return false; + + return + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Customer.cs b/src/Flipdish/Model/Customer.cs new file mode 100644 index 00000000..9cb6241e --- /dev/null +++ b/src/Flipdish/Model/Customer.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines a customer + /// + [DataContract] + public partial class Customer : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of the customer. + /// Customer name. + /// Customer registration date. + /// Phone Number in international format. + /// Customer can place cash orders. + /// Customer can place card orders. + /// Customer can receive marketing. + public Customer(int? customerId = default(int?), string name = default(string), DateTime? registrationDate = default(DateTime?), string phoneNumber = default(string), bool? cashOrdersEnabled = default(bool?), bool? cardOrdersEnabled = default(bool?), bool? marketingEnabled = default(bool?)) + { + this.CustomerId = customerId; + this.Name = name; + this.RegistrationDate = registrationDate; + this.PhoneNumber = phoneNumber; + this.CashOrdersEnabled = cashOrdersEnabled; + this.CardOrdersEnabled = cardOrdersEnabled; + this.MarketingEnabled = marketingEnabled; + } + + /// + /// Id of the customer + /// + /// Id of the customer + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public int? CustomerId { get; set; } + + /// + /// Customer name + /// + /// Customer name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Customer registration date + /// + /// Customer registration date + [DataMember(Name="RegistrationDate", EmitDefaultValue=false)] + public DateTime? RegistrationDate { get; set; } + + /// + /// Phone Number in international format + /// + /// Phone Number in international format + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Customer can place cash orders + /// + /// Customer can place cash orders + [DataMember(Name="CashOrdersEnabled", EmitDefaultValue=false)] + public bool? CashOrdersEnabled { get; set; } + + /// + /// Customer can place card orders + /// + /// Customer can place card orders + [DataMember(Name="CardOrdersEnabled", EmitDefaultValue=false)] + public bool? CardOrdersEnabled { get; set; } + + /// + /// Customer can receive marketing + /// + /// Customer can receive marketing + [DataMember(Name="MarketingEnabled", EmitDefaultValue=false)] + public bool? MarketingEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Customer {\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" RegistrationDate: ").Append(RegistrationDate).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" CashOrdersEnabled: ").Append(CashOrdersEnabled).Append("\n"); + sb.Append(" CardOrdersEnabled: ").Append(CardOrdersEnabled).Append("\n"); + sb.Append(" MarketingEnabled: ").Append(MarketingEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Customer); + } + + /// + /// Returns true if Customer instances are equal + /// + /// Instance of Customer to be compared + /// Boolean + public bool Equals(Customer input) + { + if (input == null) + return false; + + return + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.RegistrationDate == input.RegistrationDate || + (this.RegistrationDate != null && + this.RegistrationDate.Equals(input.RegistrationDate)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.CashOrdersEnabled == input.CashOrdersEnabled || + (this.CashOrdersEnabled != null && + this.CashOrdersEnabled.Equals(input.CashOrdersEnabled)) + ) && + ( + this.CardOrdersEnabled == input.CardOrdersEnabled || + (this.CardOrdersEnabled != null && + this.CardOrdersEnabled.Equals(input.CardOrdersEnabled)) + ) && + ( + this.MarketingEnabled == input.MarketingEnabled || + (this.MarketingEnabled != null && + this.MarketingEnabled.Equals(input.MarketingEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.RegistrationDate != null) + hashCode = hashCode * 59 + this.RegistrationDate.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.CashOrdersEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersEnabled.GetHashCode(); + if (this.CardOrdersEnabled != null) + hashCode = hashCode * 59 + this.CardOrdersEnabled.GetHashCode(); + if (this.MarketingEnabled != null) + hashCode = hashCode * 59 + this.MarketingEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs b/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs new file mode 100644 index 00000000..50397b74 --- /dev/null +++ b/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Customer consent updated + /// + [DataContract] + public partial class CustomerConsentUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Enabled. + /// Description. + /// Customer User info. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CustomerConsentUpdatedEvent(string eventName = default(string), string orgId = default(string), bool? enabled = default(bool?), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.Enabled = enabled; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Enabled + /// + /// Enabled + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Customer User info + /// + /// Customer User info + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerConsentUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerConsentUpdatedEvent); + } + + /// + /// Returns true if CustomerConsentUpdatedEvent instances are equal + /// + /// Instance of CustomerConsentUpdatedEvent to be compared + /// Boolean + public bool Equals(CustomerConsentUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerCreateModel.cs b/src/Flipdish/Model/CustomerCreateModel.cs new file mode 100644 index 00000000..e655b4df --- /dev/null +++ b/src/Flipdish/Model/CustomerCreateModel.cs @@ -0,0 +1,238 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines a customer create model + /// + [DataContract] + public partial class CustomerCreateModel : IEquatable + { + /// + /// Customer AppType + /// + /// Customer AppType + [JsonConverter(typeof(StringEnumConverter))] + public enum AppTypeEnum + { + + /// + /// Enum Unknown for value: Unknown + /// + [EnumMember(Value = "Unknown")] + Unknown = 1, + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 2, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 3, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 4, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 5, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 6, + + /// + /// Enum TelephoneCall for value: TelephoneCall + /// + [EnumMember(Value = "TelephoneCall")] + TelephoneCall = 7, + + /// + /// Enum Sms for value: Sms + /// + [EnumMember(Value = "Sms")] + Sms = 8, + + /// + /// Enum PwaAndroid for value: PwaAndroid + /// + [EnumMember(Value = "PwaAndroid")] + PwaAndroid = 9, + + /// + /// Enum PwaIos for value: PwaIos + /// + [EnumMember(Value = "PwaIos")] + PwaIos = 10, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 11 + } + + /// + /// Customer AppType + /// + /// Customer AppType + [DataMember(Name="AppType", EmitDefaultValue=false)] + public AppTypeEnum? AppType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Customer Phone Number. + /// Customer AppType. + /// Customer Name. + /// marketingEnabled. + public CustomerCreateModel(string phoneNumber = default(string), AppTypeEnum? appType = default(AppTypeEnum?), string name = default(string), bool? marketingEnabled = default(bool?)) + { + this.PhoneNumber = phoneNumber; + this.AppType = appType; + this.Name = name; + this.MarketingEnabled = marketingEnabled; + } + + /// + /// Customer Phone Number + /// + /// Customer Phone Number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + + /// + /// Customer Name + /// + /// Customer Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets MarketingEnabled + /// + [DataMember(Name="MarketingEnabled", EmitDefaultValue=false)] + public bool? MarketingEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerCreateModel {\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" AppType: ").Append(AppType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" MarketingEnabled: ").Append(MarketingEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerCreateModel); + } + + /// + /// Returns true if CustomerCreateModel instances are equal + /// + /// Instance of CustomerCreateModel to be compared + /// Boolean + public bool Equals(CustomerCreateModel input) + { + if (input == null) + return false; + + return + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.AppType == input.AppType || + (this.AppType != null && + this.AppType.Equals(input.AppType)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.MarketingEnabled == input.MarketingEnabled || + (this.MarketingEnabled != null && + this.MarketingEnabled.Equals(input.MarketingEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.AppType != null) + hashCode = hashCode * 59 + this.AppType.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.MarketingEnabled != null) + hashCode = hashCode * 59 + this.MarketingEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerCreatedEvent.cs b/src/Flipdish/Model/CustomerCreatedEvent.cs new file mode 100644 index 00000000..b7c3b622 --- /dev/null +++ b/src/Flipdish/Model/CustomerCreatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Customer created event + /// + [DataContract] + public partial class CustomerCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Customer User info. + /// Description. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CustomerCreatedEvent(string eventName = default(string), string orgId = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.User = user; + this.Description = description; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Customer User info + /// + /// Customer User info + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerCreatedEvent); + } + + /// + /// Returns true if CustomerCreatedEvent instances are equal + /// + /// Instance of CustomerCreatedEvent to be compared + /// Boolean + public bool Equals(CustomerCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerDeliveryTrackingOrder.cs b/src/Flipdish/Model/CustomerDeliveryTrackingOrder.cs new file mode 100644 index 00000000..40fccf5a --- /dev/null +++ b/src/Flipdish/Model/CustomerDeliveryTrackingOrder.cs @@ -0,0 +1,1105 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines the order data required for customer driver tracking + /// + [DataContract] + public partial class CustomerDeliveryTrackingOrder : IEquatable + { + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Order Id. + /// Pretified address string in country format. + /// Delivery Notes. + /// Phone number of the store. + /// App Icon of the store. + /// Order Tracking Code. + /// Payment method description i.e Cash/Card/iDeal/Paypal. + /// Last 4 digits of the card if applicable otherwise null. + /// Order lines of the order. + /// Total amount for the order including tax. + /// Currency. + /// Customer Location Latitude. + /// Customer Location Longitude. + /// Order placed time. + /// Order requested for. + /// Driver Id. + /// Driver Name. + /// Driver Image. + /// estimatedMinutesForDelivery. + public CustomerDeliveryTrackingOrder(int? orderId = default(int?), string address = default(string), string deliveryNotes = default(string), string storePhoneNumber = default(string), string appIconUrl = default(string), string orderTrackingCode = default(string), string paymentMethodDescription = default(string), string lastFourDigits = default(string), List orderLines = default(List), double? totalAmount = default(double?), CurrencyEnum? currency = default(CurrencyEnum?), double? latitude = default(double?), double? longitude = default(double?), DateTime? placed = default(DateTime?), DateTime? requestedFor = default(DateTime?), int? driverId = default(int?), string driverName = default(string), string driverImage = default(string), int? estimatedMinutesForDelivery = default(int?)) + { + this.OrderId = orderId; + this.Address = address; + this.DeliveryNotes = deliveryNotes; + this.StorePhoneNumber = storePhoneNumber; + this.AppIconUrl = appIconUrl; + this.OrderTrackingCode = orderTrackingCode; + this.PaymentMethodDescription = paymentMethodDescription; + this.LastFourDigits = lastFourDigits; + this.OrderLines = orderLines; + this.TotalAmount = totalAmount; + this.Currency = currency; + this.Latitude = latitude; + this.Longitude = longitude; + this.Placed = placed; + this.RequestedFor = requestedFor; + this.DriverId = driverId; + this.DriverName = driverName; + this.DriverImage = driverImage; + this.EstimatedMinutesForDelivery = estimatedMinutesForDelivery; + } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Pretified address string in country format + /// + /// Pretified address string in country format + [DataMember(Name="Address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// Delivery Notes + /// + /// Delivery Notes + [DataMember(Name="DeliveryNotes", EmitDefaultValue=false)] + public string DeliveryNotes { get; set; } + + /// + /// Phone number of the store + /// + /// Phone number of the store + [DataMember(Name="StorePhoneNumber", EmitDefaultValue=false)] + public string StorePhoneNumber { get; set; } + + /// + /// App Icon of the store + /// + /// App Icon of the store + [DataMember(Name="AppIconUrl", EmitDefaultValue=false)] + public string AppIconUrl { get; set; } + + /// + /// Order Tracking Code + /// + /// Order Tracking Code + [DataMember(Name="OrderTrackingCode", EmitDefaultValue=false)] + public string OrderTrackingCode { get; set; } + + /// + /// Payment method description i.e Cash/Card/iDeal/Paypal + /// + /// Payment method description i.e Cash/Card/iDeal/Paypal + [DataMember(Name="PaymentMethodDescription", EmitDefaultValue=false)] + public string PaymentMethodDescription { get; set; } + + /// + /// Last 4 digits of the card if applicable otherwise null + /// + /// Last 4 digits of the card if applicable otherwise null + [DataMember(Name="LastFourDigits", EmitDefaultValue=false)] + public string LastFourDigits { get; set; } + + /// + /// Order lines of the order + /// + /// Order lines of the order + [DataMember(Name="OrderLines", EmitDefaultValue=false)] + public List OrderLines { get; set; } + + /// + /// Total amount for the order including tax + /// + /// Total amount for the order including tax + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public double? TotalAmount { get; set; } + + + /// + /// Customer Location Latitude + /// + /// Customer Location Latitude + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Customer Location Longitude + /// + /// Customer Location Longitude + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Order placed time + /// + /// Order placed time + [DataMember(Name="Placed", EmitDefaultValue=false)] + public DateTime? Placed { get; set; } + + /// + /// Order requested for + /// + /// Order requested for + [DataMember(Name="RequestedFor", EmitDefaultValue=false)] + public DateTime? RequestedFor { get; set; } + + /// + /// Driver Id + /// + /// Driver Id + [DataMember(Name="DriverId", EmitDefaultValue=false)] + public int? DriverId { get; set; } + + /// + /// Driver Name + /// + /// Driver Name + [DataMember(Name="DriverName", EmitDefaultValue=false)] + public string DriverName { get; set; } + + /// + /// Driver Image + /// + /// Driver Image + [DataMember(Name="DriverImage", EmitDefaultValue=false)] + public string DriverImage { get; set; } + + /// + /// Gets or Sets EstimatedMinutesForDelivery + /// + [DataMember(Name="EstimatedMinutesForDelivery", EmitDefaultValue=false)] + public int? EstimatedMinutesForDelivery { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerDeliveryTrackingOrder {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" DeliveryNotes: ").Append(DeliveryNotes).Append("\n"); + sb.Append(" StorePhoneNumber: ").Append(StorePhoneNumber).Append("\n"); + sb.Append(" AppIconUrl: ").Append(AppIconUrl).Append("\n"); + sb.Append(" OrderTrackingCode: ").Append(OrderTrackingCode).Append("\n"); + sb.Append(" PaymentMethodDescription: ").Append(PaymentMethodDescription).Append("\n"); + sb.Append(" LastFourDigits: ").Append(LastFourDigits).Append("\n"); + sb.Append(" OrderLines: ").Append(OrderLines).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append(" Placed: ").Append(Placed).Append("\n"); + sb.Append(" RequestedFor: ").Append(RequestedFor).Append("\n"); + sb.Append(" DriverId: ").Append(DriverId).Append("\n"); + sb.Append(" DriverName: ").Append(DriverName).Append("\n"); + sb.Append(" DriverImage: ").Append(DriverImage).Append("\n"); + sb.Append(" EstimatedMinutesForDelivery: ").Append(EstimatedMinutesForDelivery).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerDeliveryTrackingOrder); + } + + /// + /// Returns true if CustomerDeliveryTrackingOrder instances are equal + /// + /// Instance of CustomerDeliveryTrackingOrder to be compared + /// Boolean + public bool Equals(CustomerDeliveryTrackingOrder input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.DeliveryNotes == input.DeliveryNotes || + (this.DeliveryNotes != null && + this.DeliveryNotes.Equals(input.DeliveryNotes)) + ) && + ( + this.StorePhoneNumber == input.StorePhoneNumber || + (this.StorePhoneNumber != null && + this.StorePhoneNumber.Equals(input.StorePhoneNumber)) + ) && + ( + this.AppIconUrl == input.AppIconUrl || + (this.AppIconUrl != null && + this.AppIconUrl.Equals(input.AppIconUrl)) + ) && + ( + this.OrderTrackingCode == input.OrderTrackingCode || + (this.OrderTrackingCode != null && + this.OrderTrackingCode.Equals(input.OrderTrackingCode)) + ) && + ( + this.PaymentMethodDescription == input.PaymentMethodDescription || + (this.PaymentMethodDescription != null && + this.PaymentMethodDescription.Equals(input.PaymentMethodDescription)) + ) && + ( + this.LastFourDigits == input.LastFourDigits || + (this.LastFourDigits != null && + this.LastFourDigits.Equals(input.LastFourDigits)) + ) && + ( + this.OrderLines == input.OrderLines || + this.OrderLines != null && + this.OrderLines.SequenceEqual(input.OrderLines) + ) && + ( + this.TotalAmount == input.TotalAmount || + (this.TotalAmount != null && + this.TotalAmount.Equals(input.TotalAmount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ) && + ( + this.Placed == input.Placed || + (this.Placed != null && + this.Placed.Equals(input.Placed)) + ) && + ( + this.RequestedFor == input.RequestedFor || + (this.RequestedFor != null && + this.RequestedFor.Equals(input.RequestedFor)) + ) && + ( + this.DriverId == input.DriverId || + (this.DriverId != null && + this.DriverId.Equals(input.DriverId)) + ) && + ( + this.DriverName == input.DriverName || + (this.DriverName != null && + this.DriverName.Equals(input.DriverName)) + ) && + ( + this.DriverImage == input.DriverImage || + (this.DriverImage != null && + this.DriverImage.Equals(input.DriverImage)) + ) && + ( + this.EstimatedMinutesForDelivery == input.EstimatedMinutesForDelivery || + (this.EstimatedMinutesForDelivery != null && + this.EstimatedMinutesForDelivery.Equals(input.EstimatedMinutesForDelivery)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.DeliveryNotes != null) + hashCode = hashCode * 59 + this.DeliveryNotes.GetHashCode(); + if (this.StorePhoneNumber != null) + hashCode = hashCode * 59 + this.StorePhoneNumber.GetHashCode(); + if (this.AppIconUrl != null) + hashCode = hashCode * 59 + this.AppIconUrl.GetHashCode(); + if (this.OrderTrackingCode != null) + hashCode = hashCode * 59 + this.OrderTrackingCode.GetHashCode(); + if (this.PaymentMethodDescription != null) + hashCode = hashCode * 59 + this.PaymentMethodDescription.GetHashCode(); + if (this.LastFourDigits != null) + hashCode = hashCode * 59 + this.LastFourDigits.GetHashCode(); + if (this.OrderLines != null) + hashCode = hashCode * 59 + this.OrderLines.GetHashCode(); + if (this.TotalAmount != null) + hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + if (this.Placed != null) + hashCode = hashCode * 59 + this.Placed.GetHashCode(); + if (this.RequestedFor != null) + hashCode = hashCode * 59 + this.RequestedFor.GetHashCode(); + if (this.DriverId != null) + hashCode = hashCode * 59 + this.DriverId.GetHashCode(); + if (this.DriverName != null) + hashCode = hashCode * 59 + this.DriverName.GetHashCode(); + if (this.DriverImage != null) + hashCode = hashCode * 59 + this.DriverImage.GetHashCode(); + if (this.EstimatedMinutesForDelivery != null) + hashCode = hashCode * 59 + this.EstimatedMinutesForDelivery.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerDeliveryTrackingOrderLine.cs b/src/Flipdish/Model/CustomerDeliveryTrackingOrderLine.cs new file mode 100644 index 00000000..c439beda --- /dev/null +++ b/src/Flipdish/Model/CustomerDeliveryTrackingOrderLine.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines an order line for driver tracking + /// + [DataContract] + public partial class CustomerDeliveryTrackingOrderLine : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Item name from the order. + /// Selected option names. + public CustomerDeliveryTrackingOrderLine(string itemName = default(string), List selectedOptions = default(List)) + { + this.ItemName = itemName; + this.SelectedOptions = selectedOptions; + } + + /// + /// Item name from the order + /// + /// Item name from the order + [DataMember(Name="ItemName", EmitDefaultValue=false)] + public string ItemName { get; set; } + + /// + /// Selected option names + /// + /// Selected option names + [DataMember(Name="SelectedOptions", EmitDefaultValue=false)] + public List SelectedOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerDeliveryTrackingOrderLine {\n"); + sb.Append(" ItemName: ").Append(ItemName).Append("\n"); + sb.Append(" SelectedOptions: ").Append(SelectedOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerDeliveryTrackingOrderLine); + } + + /// + /// Returns true if CustomerDeliveryTrackingOrderLine instances are equal + /// + /// Instance of CustomerDeliveryTrackingOrderLine to be compared + /// Boolean + public bool Equals(CustomerDeliveryTrackingOrderLine input) + { + if (input == null) + return false; + + return + ( + this.ItemName == input.ItemName || + (this.ItemName != null && + this.ItemName.Equals(input.ItemName)) + ) && + ( + this.SelectedOptions == input.SelectedOptions || + this.SelectedOptions != null && + this.SelectedOptions.SequenceEqual(input.SelectedOptions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ItemName != null) + hashCode = hashCode * 59 + this.ItemName.GetHashCode(); + if (this.SelectedOptions != null) + hashCode = hashCode * 59 + this.SelectedOptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerMessages.cs b/src/Flipdish/Model/CustomerMessages.cs new file mode 100644 index 00000000..6f31c9bd --- /dev/null +++ b/src/Flipdish/Model/CustomerMessages.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery and pickup menu messages for a customer + /// + [DataContract] + public partial class CustomerMessages : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Delivery menu message. + /// Pickup menu message. + public CustomerMessages(string deliveryMenuMessage = default(string), string pickupMenuMessage = default(string)) + { + this.DeliveryMenuMessage = deliveryMenuMessage; + this.PickupMenuMessage = pickupMenuMessage; + } + + /// + /// Delivery menu message + /// + /// Delivery menu message + [DataMember(Name="DeliveryMenuMessage", EmitDefaultValue=false)] + public string DeliveryMenuMessage { get; set; } + + /// + /// Pickup menu message + /// + /// Pickup menu message + [DataMember(Name="PickupMenuMessage", EmitDefaultValue=false)] + public string PickupMenuMessage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerMessages {\n"); + sb.Append(" DeliveryMenuMessage: ").Append(DeliveryMenuMessage).Append("\n"); + sb.Append(" PickupMenuMessage: ").Append(PickupMenuMessage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerMessages); + } + + /// + /// Returns true if CustomerMessages instances are equal + /// + /// Instance of CustomerMessages to be compared + /// Boolean + public bool Equals(CustomerMessages input) + { + if (input == null) + return false; + + return + ( + this.DeliveryMenuMessage == input.DeliveryMenuMessage || + (this.DeliveryMenuMessage != null && + this.DeliveryMenuMessage.Equals(input.DeliveryMenuMessage)) + ) && + ( + this.PickupMenuMessage == input.PickupMenuMessage || + (this.PickupMenuMessage != null && + this.PickupMenuMessage.Equals(input.PickupMenuMessage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryMenuMessage != null) + hashCode = hashCode * 59 + this.DeliveryMenuMessage.GetHashCode(); + if (this.PickupMenuMessage != null) + hashCode = hashCode * 59 + this.PickupMenuMessage.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerSummary.cs b/src/Flipdish/Model/CustomerSummary.cs new file mode 100644 index 00000000..485c8dba --- /dev/null +++ b/src/Flipdish/Model/CustomerSummary.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Customer summary + /// + [DataContract] + public partial class CustomerSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Customer identifier. + /// Customer name. + /// Customer email address. + /// Customer local phone number. + /// Customer phone number. + /// Preferred language of the consumer. + public CustomerSummary(int? id = default(int?), string name = default(string), string emailAddress = default(string), string phoneNumberLocalFormat = default(string), string phoneNumber = default(string), string languagePreference = default(string)) + { + this.Id = id; + this.Name = name; + this.EmailAddress = emailAddress; + this.PhoneNumberLocalFormat = phoneNumberLocalFormat; + this.PhoneNumber = phoneNumber; + this.LanguagePreference = languagePreference; + } + + /// + /// Customer identifier + /// + /// Customer identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Customer name + /// + /// Customer name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Customer email address + /// + /// Customer email address + [DataMember(Name="EmailAddress", EmitDefaultValue=false)] + public string EmailAddress { get; set; } + + /// + /// Customer local phone number + /// + /// Customer local phone number + [DataMember(Name="PhoneNumberLocalFormat", EmitDefaultValue=false)] + public string PhoneNumberLocalFormat { get; set; } + + /// + /// Customer phone number + /// + /// Customer phone number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Preferred language of the consumer + /// + /// Preferred language of the consumer + [DataMember(Name="LanguagePreference", EmitDefaultValue=false)] + public string LanguagePreference { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" PhoneNumberLocalFormat: ").Append(PhoneNumberLocalFormat).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" LanguagePreference: ").Append(LanguagePreference).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerSummary); + } + + /// + /// Returns true if CustomerSummary instances are equal + /// + /// Instance of CustomerSummary to be compared + /// Boolean + public bool Equals(CustomerSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.PhoneNumberLocalFormat == input.PhoneNumberLocalFormat || + (this.PhoneNumberLocalFormat != null && + this.PhoneNumberLocalFormat.Equals(input.PhoneNumberLocalFormat)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.LanguagePreference == input.LanguagePreference || + (this.LanguagePreference != null && + this.LanguagePreference.Equals(input.LanguagePreference)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.EmailAddress != null) + hashCode = hashCode * 59 + this.EmailAddress.GetHashCode(); + if (this.PhoneNumberLocalFormat != null) + hashCode = hashCode * 59 + this.PhoneNumberLocalFormat.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.LanguagePreference != null) + hashCode = hashCode * 59 + this.LanguagePreference.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerUpdateModel.cs b/src/Flipdish/Model/CustomerUpdateModel.cs new file mode 100644 index 00000000..c56ce657 --- /dev/null +++ b/src/Flipdish/Model/CustomerUpdateModel.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines a customer update model + /// + [DataContract] + public partial class CustomerUpdateModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Customer can place cash orders. + /// Customer can place card orders. + /// Customer can receive marketing. + public CustomerUpdateModel(bool? cashOrdersEnabled = default(bool?), bool? cardOrdersEnabled = default(bool?), bool? marketingEnabled = default(bool?)) + { + this.CashOrdersEnabled = cashOrdersEnabled; + this.CardOrdersEnabled = cardOrdersEnabled; + this.MarketingEnabled = marketingEnabled; + } + + /// + /// Customer can place cash orders + /// + /// Customer can place cash orders + [DataMember(Name="CashOrdersEnabled", EmitDefaultValue=false)] + public bool? CashOrdersEnabled { get; set; } + + /// + /// Customer can place card orders + /// + /// Customer can place card orders + [DataMember(Name="CardOrdersEnabled", EmitDefaultValue=false)] + public bool? CardOrdersEnabled { get; set; } + + /// + /// Customer can receive marketing + /// + /// Customer can receive marketing + [DataMember(Name="MarketingEnabled", EmitDefaultValue=false)] + public bool? MarketingEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerUpdateModel {\n"); + sb.Append(" CashOrdersEnabled: ").Append(CashOrdersEnabled).Append("\n"); + sb.Append(" CardOrdersEnabled: ").Append(CardOrdersEnabled).Append("\n"); + sb.Append(" MarketingEnabled: ").Append(MarketingEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerUpdateModel); + } + + /// + /// Returns true if CustomerUpdateModel instances are equal + /// + /// Instance of CustomerUpdateModel to be compared + /// Boolean + public bool Equals(CustomerUpdateModel input) + { + if (input == null) + return false; + + return + ( + this.CashOrdersEnabled == input.CashOrdersEnabled || + (this.CashOrdersEnabled != null && + this.CashOrdersEnabled.Equals(input.CashOrdersEnabled)) + ) && + ( + this.CardOrdersEnabled == input.CardOrdersEnabled || + (this.CardOrdersEnabled != null && + this.CardOrdersEnabled.Equals(input.CardOrdersEnabled)) + ) && + ( + this.MarketingEnabled == input.MarketingEnabled || + (this.MarketingEnabled != null && + this.MarketingEnabled.Equals(input.MarketingEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CashOrdersEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersEnabled.GetHashCode(); + if (this.CardOrdersEnabled != null) + hashCode = hashCode * 59 + this.CardOrdersEnabled.GetHashCode(); + if (this.MarketingEnabled != null) + hashCode = hashCode * 59 + this.MarketingEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/CustomerUpdatedEvent.cs b/src/Flipdish/Model/CustomerUpdatedEvent.cs new file mode 100644 index 00000000..7b7a5954 --- /dev/null +++ b/src/Flipdish/Model/CustomerUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Customer updated event + /// + [DataContract] + public partial class CustomerUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Customer User info. + /// Description. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public CustomerUpdatedEvent(string eventName = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.User = user; + this.Description = description; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Customer User info + /// + /// Customer User info + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CustomerUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CustomerUpdatedEvent); + } + + /// + /// Returns true if CustomerUpdatedEvent instances are equal + /// + /// Instance of CustomerUpdatedEvent to be compared + /// Boolean + public bool Equals(CustomerUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Customers.cs b/src/Flipdish/Model/Customers.cs new file mode 100644 index 00000000..c4fdd96e --- /dev/null +++ b/src/Flipdish/Model/Customers.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Defines a list of customers + /// + [DataContract] + public partial class Customers : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// List of customers. + public Customers(List items = default(List)) + { + this.Items = items; + } + + /// + /// List of customers + /// + /// List of customers + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Customers {\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Customers); + } + + /// + /// Returns true if Customers instances are equal + /// + /// Instance of Customers to be compared + /// Boolean + public bool Equals(Customers input) + { + if (input == null) + return false; + + return + ( + this.Items == input.Items || + this.Items != null && + this.Items.SequenceEqual(input.Items) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Items != null) + hashCode = hashCode * 59 + this.Items.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DashboardEmbed.cs b/src/Flipdish/Model/DashboardEmbed.cs new file mode 100644 index 00000000..ab990f48 --- /dev/null +++ b/src/Flipdish/Model/DashboardEmbed.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// SSO Embed URL Information + /// + [DataContract] + public partial class DashboardEmbed : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// SSO URL generated by Flipdish to embed Looker dashboard. + public DashboardEmbed(string embedUrl = default(string)) + { + this.EmbedUrl = embedUrl; + } + + /// + /// SSO URL generated by Flipdish to embed Looker dashboard + /// + /// SSO URL generated by Flipdish to embed Looker dashboard + [DataMember(Name="EmbedUrl", EmitDefaultValue=false)] + public string EmbedUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DashboardEmbed {\n"); + sb.Append(" EmbedUrl: ").Append(EmbedUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DashboardEmbed); + } + + /// + /// Returns true if DashboardEmbed instances are equal + /// + /// Instance of DashboardEmbed to be compared + /// Boolean + public bool Equals(DashboardEmbed input) + { + if (input == null) + return false; + + return + ( + this.EmbedUrl == input.EmbedUrl || + (this.EmbedUrl != null && + this.EmbedUrl.Equals(input.EmbedUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmbedUrl != null) + hashCode = hashCode * 59 + this.EmbedUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryLocation.cs b/src/Flipdish/Model/DeliveryLocation.cs new file mode 100644 index 00000000..cf7fe369 --- /dev/null +++ b/src/Flipdish/Model/DeliveryLocation.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery location + /// + [DataContract] + public partial class DeliveryLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Geo cordinate. + /// Building. + /// Street. + /// Town. + /// Post code. + /// Delivery instructions. + /// Formatted, pretty address string. + public DeliveryLocation(Coordinates coordinates = default(Coordinates), string building = default(string), string street = default(string), string town = default(string), string postCode = default(string), string deliveryInstructions = default(string), string prettyAddressString = default(string)) + { + this.Coordinates = coordinates; + this.Building = building; + this.Street = street; + this.Town = town; + this.PostCode = postCode; + this.DeliveryInstructions = deliveryInstructions; + this.PrettyAddressString = prettyAddressString; + } + + /// + /// Geo cordinate + /// + /// Geo cordinate + [DataMember(Name="Coordinates", EmitDefaultValue=false)] + public Coordinates Coordinates { get; set; } + + /// + /// Building + /// + /// Building + [DataMember(Name="Building", EmitDefaultValue=false)] + public string Building { get; set; } + + /// + /// Street + /// + /// Street + [DataMember(Name="Street", EmitDefaultValue=false)] + public string Street { get; set; } + + /// + /// Town + /// + /// Town + [DataMember(Name="Town", EmitDefaultValue=false)] + public string Town { get; set; } + + /// + /// Post code + /// + /// Post code + [DataMember(Name="PostCode", EmitDefaultValue=false)] + public string PostCode { get; set; } + + /// + /// Delivery instructions + /// + /// Delivery instructions + [DataMember(Name="DeliveryInstructions", EmitDefaultValue=false)] + public string DeliveryInstructions { get; set; } + + /// + /// Formatted, pretty address string + /// + /// Formatted, pretty address string + [DataMember(Name="PrettyAddressString", EmitDefaultValue=false)] + public string PrettyAddressString { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryLocation {\n"); + sb.Append(" Coordinates: ").Append(Coordinates).Append("\n"); + sb.Append(" Building: ").Append(Building).Append("\n"); + sb.Append(" Street: ").Append(Street).Append("\n"); + sb.Append(" Town: ").Append(Town).Append("\n"); + sb.Append(" PostCode: ").Append(PostCode).Append("\n"); + sb.Append(" DeliveryInstructions: ").Append(DeliveryInstructions).Append("\n"); + sb.Append(" PrettyAddressString: ").Append(PrettyAddressString).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryLocation); + } + + /// + /// Returns true if DeliveryLocation instances are equal + /// + /// Instance of DeliveryLocation to be compared + /// Boolean + public bool Equals(DeliveryLocation input) + { + if (input == null) + return false; + + return + ( + this.Coordinates == input.Coordinates || + (this.Coordinates != null && + this.Coordinates.Equals(input.Coordinates)) + ) && + ( + this.Building == input.Building || + (this.Building != null && + this.Building.Equals(input.Building)) + ) && + ( + this.Street == input.Street || + (this.Street != null && + this.Street.Equals(input.Street)) + ) && + ( + this.Town == input.Town || + (this.Town != null && + this.Town.Equals(input.Town)) + ) && + ( + this.PostCode == input.PostCode || + (this.PostCode != null && + this.PostCode.Equals(input.PostCode)) + ) && + ( + this.DeliveryInstructions == input.DeliveryInstructions || + (this.DeliveryInstructions != null && + this.DeliveryInstructions.Equals(input.DeliveryInstructions)) + ) && + ( + this.PrettyAddressString == input.PrettyAddressString || + (this.PrettyAddressString != null && + this.PrettyAddressString.Equals(input.PrettyAddressString)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Coordinates != null) + hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); + if (this.Building != null) + hashCode = hashCode * 59 + this.Building.GetHashCode(); + if (this.Street != null) + hashCode = hashCode * 59 + this.Street.GetHashCode(); + if (this.Town != null) + hashCode = hashCode * 59 + this.Town.GetHashCode(); + if (this.PostCode != null) + hashCode = hashCode * 59 + this.PostCode.GetHashCode(); + if (this.DeliveryInstructions != null) + hashCode = hashCode * 59 + this.DeliveryInstructions.GetHashCode(); + if (this.PrettyAddressString != null) + hashCode = hashCode * 59 + this.PrettyAddressString.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryZone.cs b/src/Flipdish/Model/DeliveryZone.cs new file mode 100644 index 00000000..96b05f93 --- /dev/null +++ b/src/Flipdish/Model/DeliveryZone.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery Zone + /// + [DataContract] + public partial class DeliveryZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Delivery Fee Area Id. + /// Delivery Fee charged to store. + /// Delivery fee (will not be set below 0). + /// Minimum delivery order amount (will not be set below 0). + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m). + /// Is delivery zone enabled. + public DeliveryZone(int? id = default(int?), double? feeChargedToStore = default(double?), double? deliveryFee = default(double?), double? minimumDeliveryOrderAmount = default(double?), string wellKnownText = default(string), bool? isEnabled = default(bool?)) + { + this.Id = id; + this.FeeChargedToStore = feeChargedToStore; + this.DeliveryFee = deliveryFee; + this.MinimumDeliveryOrderAmount = minimumDeliveryOrderAmount; + this.WellKnownText = wellKnownText; + this.IsEnabled = isEnabled; + } + + /// + /// Delivery Fee Area Id + /// + /// Delivery Fee Area Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Delivery Fee charged to store + /// + /// Delivery Fee charged to store + [DataMember(Name="FeeChargedToStore", EmitDefaultValue=false)] + public double? FeeChargedToStore { get; set; } + + /// + /// Delivery fee (will not be set below 0) + /// + /// Delivery fee (will not be set below 0) + [DataMember(Name="DeliveryFee", EmitDefaultValue=false)] + public double? DeliveryFee { get; set; } + + /// + /// Minimum delivery order amount (will not be set below 0) + /// + /// Minimum delivery order amount (will not be set below 0) + [DataMember(Name="MinimumDeliveryOrderAmount", EmitDefaultValue=false)] + public double? MinimumDeliveryOrderAmount { get; set; } + + /// + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + /// + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + [DataMember(Name="WellKnownText", EmitDefaultValue=false)] + public string WellKnownText { get; set; } + + /// + /// Is delivery zone enabled + /// + /// Is delivery zone enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryZone {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" FeeChargedToStore: ").Append(FeeChargedToStore).Append("\n"); + sb.Append(" DeliveryFee: ").Append(DeliveryFee).Append("\n"); + sb.Append(" MinimumDeliveryOrderAmount: ").Append(MinimumDeliveryOrderAmount).Append("\n"); + sb.Append(" WellKnownText: ").Append(WellKnownText).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryZone); + } + + /// + /// Returns true if DeliveryZone instances are equal + /// + /// Instance of DeliveryZone to be compared + /// Boolean + public bool Equals(DeliveryZone input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.FeeChargedToStore == input.FeeChargedToStore || + (this.FeeChargedToStore != null && + this.FeeChargedToStore.Equals(input.FeeChargedToStore)) + ) && + ( + this.DeliveryFee == input.DeliveryFee || + (this.DeliveryFee != null && + this.DeliveryFee.Equals(input.DeliveryFee)) + ) && + ( + this.MinimumDeliveryOrderAmount == input.MinimumDeliveryOrderAmount || + (this.MinimumDeliveryOrderAmount != null && + this.MinimumDeliveryOrderAmount.Equals(input.MinimumDeliveryOrderAmount)) + ) && + ( + this.WellKnownText == input.WellKnownText || + (this.WellKnownText != null && + this.WellKnownText.Equals(input.WellKnownText)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.FeeChargedToStore != null) + hashCode = hashCode * 59 + this.FeeChargedToStore.GetHashCode(); + if (this.DeliveryFee != null) + hashCode = hashCode * 59 + this.DeliveryFee.GetHashCode(); + if (this.MinimumDeliveryOrderAmount != null) + hashCode = hashCode * 59 + this.MinimumDeliveryOrderAmount.GetHashCode(); + if (this.WellKnownText != null) + hashCode = hashCode * 59 + this.WellKnownText.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryZoneBase.cs b/src/Flipdish/Model/DeliveryZoneBase.cs new file mode 100644 index 00000000..5286e87d --- /dev/null +++ b/src/Flipdish/Model/DeliveryZoneBase.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery Zone Base + /// + [DataContract] + public partial class DeliveryZoneBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Delivery fee (will not be set below 0). + /// Minimum delivery order amount (will not be set below 0). + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m). + /// Is delivery zone enabled. + public DeliveryZoneBase(double? deliveryFee = default(double?), double? minimumDeliveryOrderAmount = default(double?), string wellKnownText = default(string), bool? isEnabled = default(bool?)) + { + this.DeliveryFee = deliveryFee; + this.MinimumDeliveryOrderAmount = minimumDeliveryOrderAmount; + this.WellKnownText = wellKnownText; + this.IsEnabled = isEnabled; + } + + /// + /// Delivery fee (will not be set below 0) + /// + /// Delivery fee (will not be set below 0) + [DataMember(Name="DeliveryFee", EmitDefaultValue=false)] + public double? DeliveryFee { get; set; } + + /// + /// Minimum delivery order amount (will not be set below 0) + /// + /// Minimum delivery order amount (will not be set below 0) + [DataMember(Name="MinimumDeliveryOrderAmount", EmitDefaultValue=false)] + public double? MinimumDeliveryOrderAmount { get; set; } + + /// + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + /// + /// Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + [DataMember(Name="WellKnownText", EmitDefaultValue=false)] + public string WellKnownText { get; set; } + + /// + /// Is delivery zone enabled + /// + /// Is delivery zone enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryZoneBase {\n"); + sb.Append(" DeliveryFee: ").Append(DeliveryFee).Append("\n"); + sb.Append(" MinimumDeliveryOrderAmount: ").Append(MinimumDeliveryOrderAmount).Append("\n"); + sb.Append(" WellKnownText: ").Append(WellKnownText).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryZoneBase); + } + + /// + /// Returns true if DeliveryZoneBase instances are equal + /// + /// Instance of DeliveryZoneBase to be compared + /// Boolean + public bool Equals(DeliveryZoneBase input) + { + if (input == null) + return false; + + return + ( + this.DeliveryFee == input.DeliveryFee || + (this.DeliveryFee != null && + this.DeliveryFee.Equals(input.DeliveryFee)) + ) && + ( + this.MinimumDeliveryOrderAmount == input.MinimumDeliveryOrderAmount || + (this.MinimumDeliveryOrderAmount != null && + this.MinimumDeliveryOrderAmount.Equals(input.MinimumDeliveryOrderAmount)) + ) && + ( + this.WellKnownText == input.WellKnownText || + (this.WellKnownText != null && + this.WellKnownText.Equals(input.WellKnownText)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryFee != null) + hashCode = hashCode * 59 + this.DeliveryFee.GetHashCode(); + if (this.MinimumDeliveryOrderAmount != null) + hashCode = hashCode * 59 + this.MinimumDeliveryOrderAmount.GetHashCode(); + if (this.WellKnownText != null) + hashCode = hashCode * 59 + this.WellKnownText.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs b/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs new file mode 100644 index 00000000..611ad41e --- /dev/null +++ b/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery Zone Created Event + /// + [DataContract] + public partial class DeliveryZoneCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which created delivery zone for this store. + /// Description. + /// Created Delivery Zone. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public DeliveryZoneCreatedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), DeliveryZone deliveryZone = default(DeliveryZone), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.DeliveryZone = deliveryZone; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which created delivery zone for this store + /// + /// User which created delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Created Delivery Zone + /// + /// Created Delivery Zone + [DataMember(Name="DeliveryZone", EmitDefaultValue=false)] + public DeliveryZone DeliveryZone { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryZoneCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DeliveryZone: ").Append(DeliveryZone).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryZoneCreatedEvent); + } + + /// + /// Returns true if DeliveryZoneCreatedEvent instances are equal + /// + /// Instance of DeliveryZoneCreatedEvent to be compared + /// Boolean + public bool Equals(DeliveryZoneCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DeliveryZone == input.DeliveryZone || + (this.DeliveryZone != null && + this.DeliveryZone.Equals(input.DeliveryZone)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DeliveryZone != null) + hashCode = hashCode * 59 + this.DeliveryZone.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryZoneDeletedEvent.cs b/src/Flipdish/Model/DeliveryZoneDeletedEvent.cs new file mode 100644 index 00000000..17dfa87d --- /dev/null +++ b/src/Flipdish/Model/DeliveryZoneDeletedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery Zone Deleted Event + /// + [DataContract] + public partial class DeliveryZoneDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which deleted delivery zone for this store. + /// Description. + /// Deleted Delivery Zone. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public DeliveryZoneDeletedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), DeliveryZone deliveryZone = default(DeliveryZone), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.DeliveryZone = deliveryZone; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which deleted delivery zone for this store + /// + /// User which deleted delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Deleted Delivery Zone + /// + /// Deleted Delivery Zone + [DataMember(Name="DeliveryZone", EmitDefaultValue=false)] + public DeliveryZone DeliveryZone { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryZoneDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DeliveryZone: ").Append(DeliveryZone).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryZoneDeletedEvent); + } + + /// + /// Returns true if DeliveryZoneDeletedEvent instances are equal + /// + /// Instance of DeliveryZoneDeletedEvent to be compared + /// Boolean + public bool Equals(DeliveryZoneDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DeliveryZone == input.DeliveryZone || + (this.DeliveryZone != null && + this.DeliveryZone.Equals(input.DeliveryZone)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DeliveryZone != null) + hashCode = hashCode * 59 + this.DeliveryZone.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeliveryZoneUpdatedEvent.cs b/src/Flipdish/Model/DeliveryZoneUpdatedEvent.cs new file mode 100644 index 00000000..3949f87f --- /dev/null +++ b/src/Flipdish/Model/DeliveryZoneUpdatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery Zone Updated Event + /// + [DataContract] + public partial class DeliveryZoneUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which updated delivery zone for this store. + /// Description. + /// Updated Delivery Zone. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public DeliveryZoneUpdatedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), DeliveryZone deliveryZone = default(DeliveryZone), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.DeliveryZone = deliveryZone; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which updated delivery zone for this store + /// + /// User which updated delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated Delivery Zone + /// + /// Updated Delivery Zone + [DataMember(Name="DeliveryZone", EmitDefaultValue=false)] + public DeliveryZone DeliveryZone { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeliveryZoneUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DeliveryZone: ").Append(DeliveryZone).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeliveryZoneUpdatedEvent); + } + + /// + /// Returns true if DeliveryZoneUpdatedEvent instances are equal + /// + /// Instance of DeliveryZoneUpdatedEvent to be compared + /// Boolean + public bool Equals(DeliveryZoneUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DeliveryZone == input.DeliveryZone || + (this.DeliveryZone != null && + this.DeliveryZone.Equals(input.DeliveryZone)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DeliveryZone != null) + hashCode = hashCode * 59 + this.DeliveryZone.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DepositReturnFeesSummary.cs b/src/Flipdish/Model/DepositReturnFeesSummary.cs new file mode 100644 index 00000000..5e735939 --- /dev/null +++ b/src/Flipdish/Model/DepositReturnFeesSummary.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// DepositReturnFeesSummary + /// + [DataContract] + public partial class DepositReturnFeesSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// count. + /// fee. + /// total. + public DepositReturnFeesSummary(int? count = default(int?), double? fee = default(double?), double? total = default(double?)) + { + this.Count = count; + this.Fee = fee; + this.Total = total; + } + + /// + /// Gets or Sets Count + /// + [DataMember(Name="Count", EmitDefaultValue=false)] + public int? Count { get; set; } + + /// + /// Gets or Sets Fee + /// + [DataMember(Name="Fee", EmitDefaultValue=false)] + public double? Fee { get; set; } + + /// + /// Gets or Sets Total + /// + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DepositReturnFeesSummary {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append(" Fee: ").Append(Fee).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DepositReturnFeesSummary); + } + + /// + /// Returns true if DepositReturnFeesSummary instances are equal + /// + /// Instance of DepositReturnFeesSummary to be compared + /// Boolean + public bool Equals(DepositReturnFeesSummary input) + { + if (input == null) + return false; + + return + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && + ( + this.Fee == input.Fee || + (this.Fee != null && + this.Fee.Equals(input.Fee)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); + if (this.Fee != null) + hashCode = hashCode * 59 + this.Fee.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DeviceSettings.cs b/src/Flipdish/Model/DeviceSettings.cs new file mode 100644 index 00000000..2fa25317 --- /dev/null +++ b/src/Flipdish/Model/DeviceSettings.cs @@ -0,0 +1,176 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Device settings for Hydra + /// + [DataContract] + public partial class DeviceSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DeviceSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// Gets or sets the device volume (required). + /// Gets or sets the font size used on the device (required). + /// Gets or sets the display brightness on the device (required). + public DeviceSettings(int? volume = default(int?), double? fontSize = default(double?), int? brightness = default(int?)) + { + // to ensure "volume" is required (not null) + if (volume == null) + { + throw new InvalidDataException("volume is a required property for DeviceSettings and cannot be null"); + } + else + { + this.Volume = volume; + } + // to ensure "fontSize" is required (not null) + if (fontSize == null) + { + throw new InvalidDataException("fontSize is a required property for DeviceSettings and cannot be null"); + } + else + { + this.FontSize = fontSize; + } + // to ensure "brightness" is required (not null) + if (brightness == null) + { + throw new InvalidDataException("brightness is a required property for DeviceSettings and cannot be null"); + } + else + { + this.Brightness = brightness; + } + } + + /// + /// Gets or sets the device volume + /// + /// Gets or sets the device volume + [DataMember(Name="Volume", EmitDefaultValue=false)] + public int? Volume { get; set; } + + /// + /// Gets or sets the font size used on the device + /// + /// Gets or sets the font size used on the device + [DataMember(Name="FontSize", EmitDefaultValue=false)] + public double? FontSize { get; set; } + + /// + /// Gets or sets the display brightness on the device + /// + /// Gets or sets the display brightness on the device + [DataMember(Name="Brightness", EmitDefaultValue=false)] + public int? Brightness { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeviceSettings {\n"); + sb.Append(" Volume: ").Append(Volume).Append("\n"); + sb.Append(" FontSize: ").Append(FontSize).Append("\n"); + sb.Append(" Brightness: ").Append(Brightness).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DeviceSettings); + } + + /// + /// Returns true if DeviceSettings instances are equal + /// + /// Instance of DeviceSettings to be compared + /// Boolean + public bool Equals(DeviceSettings input) + { + if (input == null) + return false; + + return + ( + this.Volume == input.Volume || + (this.Volume != null && + this.Volume.Equals(input.Volume)) + ) && + ( + this.FontSize == input.FontSize || + (this.FontSize != null && + this.FontSize.Equals(input.FontSize)) + ) && + ( + this.Brightness == input.Brightness || + (this.Brightness != null && + this.Brightness.Equals(input.Brightness)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Volume != null) + hashCode = hashCode * 59 + this.Volume.GetHashCode(); + if (this.FontSize != null) + hashCode = hashCode * 59 + this.FontSize.GetHashCode(); + if (this.Brightness != null) + hashCode = hashCode * 59 + this.Brightness.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DnsRecordInformation.cs b/src/Flipdish/Model/DnsRecordInformation.cs new file mode 100644 index 00000000..f88d3cc9 --- /dev/null +++ b/src/Flipdish/Model/DnsRecordInformation.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for the A and CNAME Records of a domain. + /// + [DataContract] + public partial class DnsRecordInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// indicates whether the CNAME record is ready or not.. + /// indicates whether the A record is ready or not.. + /// indicates whether the API CNAME record is ready or not.. + public DnsRecordInformation(bool? isCNameReady = default(bool?), bool? isAReady = default(bool?), bool? isApiCNameReady = default(bool?)) + { + this.IsCNameReady = isCNameReady; + this.IsAReady = isAReady; + this.IsApiCNameReady = isApiCNameReady; + } + + /// + /// indicates whether the CNAME record is ready or not. + /// + /// indicates whether the CNAME record is ready or not. + [DataMember(Name="IsCNameReady", EmitDefaultValue=false)] + public bool? IsCNameReady { get; set; } + + /// + /// indicates whether the A record is ready or not. + /// + /// indicates whether the A record is ready or not. + [DataMember(Name="IsAReady", EmitDefaultValue=false)] + public bool? IsAReady { get; set; } + + /// + /// indicates whether the API CNAME record is ready or not. + /// + /// indicates whether the API CNAME record is ready or not. + [DataMember(Name="IsApiCNameReady", EmitDefaultValue=false)] + public bool? IsApiCNameReady { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DnsRecordInformation {\n"); + sb.Append(" IsCNameReady: ").Append(IsCNameReady).Append("\n"); + sb.Append(" IsAReady: ").Append(IsAReady).Append("\n"); + sb.Append(" IsApiCNameReady: ").Append(IsApiCNameReady).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DnsRecordInformation); + } + + /// + /// Returns true if DnsRecordInformation instances are equal + /// + /// Instance of DnsRecordInformation to be compared + /// Boolean + public bool Equals(DnsRecordInformation input) + { + if (input == null) + return false; + + return + ( + this.IsCNameReady == input.IsCNameReady || + (this.IsCNameReady != null && + this.IsCNameReady.Equals(input.IsCNameReady)) + ) && + ( + this.IsAReady == input.IsAReady || + (this.IsAReady != null && + this.IsAReady.Equals(input.IsAReady)) + ) && + ( + this.IsApiCNameReady == input.IsApiCNameReady || + (this.IsApiCNameReady != null && + this.IsApiCNameReady.Equals(input.IsApiCNameReady)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsCNameReady != null) + hashCode = hashCode * 59 + this.IsCNameReady.GetHashCode(); + if (this.IsAReady != null) + hashCode = hashCode * 59 + this.IsAReady.GetHashCode(); + if (this.IsApiCNameReady != null) + hashCode = hashCode * 59 + this.IsApiCNameReady.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DnsVerifiedEvent.cs b/src/Flipdish/Model/DnsVerifiedEvent.cs new file mode 100644 index 00000000..467a4bc3 --- /dev/null +++ b/src/Flipdish/Model/DnsVerifiedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// The DNS for the Hostname verified + /// + [DataContract] + public partial class DnsVerifiedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Description. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public DnsVerifiedEvent(string hostname = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Hostname = hostname; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Description + /// + /// Description + [DataMember(Name="Hostname", EmitDefaultValue=false)] + public string Hostname { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DnsVerifiedEvent {\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DnsVerifiedEvent); + } + + /// + /// Returns true if DnsVerifiedEvent instances are equal + /// + /// Instance of DnsVerifiedEvent to be compared + /// Boolean + public bool Equals(DnsVerifiedEvent input) + { + if (input == null) + return false; + + return + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Hostname != null) + hashCode = hashCode * 59 + this.Hostname.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DriverLoginModel.cs b/src/Flipdish/Model/DriverLoginModel.cs new file mode 100644 index 00000000..c0a56d0c --- /dev/null +++ b/src/Flipdish/Model/DriverLoginModel.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Driver Login model + /// + [DataContract] + public partial class DriverLoginModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DriverLoginModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Phone number (required). + /// Code (required). + public DriverLoginModel(string phoneNumber = default(string), string code = default(string)) + { + // to ensure "phoneNumber" is required (not null) + if (phoneNumber == null) + { + throw new InvalidDataException("phoneNumber is a required property for DriverLoginModel and cannot be null"); + } + else + { + this.PhoneNumber = phoneNumber; + } + // to ensure "code" is required (not null) + if (code == null) + { + throw new InvalidDataException("code is a required property for DriverLoginModel and cannot be null"); + } + else + { + this.Code = code; + } + } + + /// + /// Phone number + /// + /// Phone number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Code + /// + /// Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DriverLoginModel {\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DriverLoginModel); + } + + /// + /// Returns true if DriverLoginModel instances are equal + /// + /// Instance of DriverLoginModel to be compared + /// Boolean + public bool Equals(DriverLoginModel input) + { + if (input == null) + return false; + + return + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DriverRequestLoginPinModel.cs b/src/Flipdish/Model/DriverRequestLoginPinModel.cs new file mode 100644 index 00000000..7b97e9ee --- /dev/null +++ b/src/Flipdish/Model/DriverRequestLoginPinModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Driver Request Login Pin model + /// + [DataContract] + public partial class DriverRequestLoginPinModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DriverRequestLoginPinModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Email address (required). + public DriverRequestLoginPinModel(string phoneNumber = default(string)) + { + // to ensure "phoneNumber" is required (not null) + if (phoneNumber == null) + { + throw new InvalidDataException("phoneNumber is a required property for DriverRequestLoginPinModel and cannot be null"); + } + else + { + this.PhoneNumber = phoneNumber; + } + } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DriverRequestLoginPinModel {\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DriverRequestLoginPinModel); + } + + /// + /// Returns true if DriverRequestLoginPinModel instances are equal + /// + /// Instance of DriverRequestLoginPinModel to be compared + /// Boolean + public bool Equals(DriverRequestLoginPinModel input) + { + if (input == null) + return false; + + return + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DynamicFormField.cs b/src/Flipdish/Model/DynamicFormField.cs new file mode 100644 index 00000000..5c41f167 --- /dev/null +++ b/src/Flipdish/Model/DynamicFormField.cs @@ -0,0 +1,224 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// DynamicFormField + /// + [DataContract] + public partial class DynamicFormField : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// identifier. + /// label. + /// placeholder. + /// rules. + /// mapping. + /// modifiers. + /// value. + /// scopes. + public DynamicFormField(string identifier = default(string), string label = default(string), string placeholder = default(string), DynamicFormRules rules = default(DynamicFormRules), Dictionary mapping = default(Dictionary), List modifiers = default(List), Object value = default(Object), string scopes = default(string)) + { + this.Identifier = identifier; + this.Label = label; + this.Placeholder = placeholder; + this.Rules = rules; + this.Mapping = mapping; + this.Modifiers = modifiers; + this.Value = value; + this.Scopes = scopes; + } + + /// + /// Gets or Sets Identifier + /// + [DataMember(Name="Identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// Gets or Sets Label + /// + [DataMember(Name="Label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// Gets or Sets Placeholder + /// + [DataMember(Name="Placeholder", EmitDefaultValue=false)] + public string Placeholder { get; set; } + + /// + /// Gets or Sets Rules + /// + [DataMember(Name="Rules", EmitDefaultValue=false)] + public DynamicFormRules Rules { get; set; } + + /// + /// Gets or Sets Mapping + /// + [DataMember(Name="Mapping", EmitDefaultValue=false)] + public Dictionary Mapping { get; set; } + + /// + /// Gets or Sets Modifiers + /// + [DataMember(Name="Modifiers", EmitDefaultValue=false)] + public List Modifiers { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name="Value", EmitDefaultValue=false)] + public Object Value { get; set; } + + /// + /// Gets or Sets Scopes + /// + [DataMember(Name="Scopes", EmitDefaultValue=false)] + public string Scopes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DynamicFormField {\n"); + sb.Append(" Identifier: ").Append(Identifier).Append("\n"); + sb.Append(" Label: ").Append(Label).Append("\n"); + sb.Append(" Placeholder: ").Append(Placeholder).Append("\n"); + sb.Append(" Rules: ").Append(Rules).Append("\n"); + sb.Append(" Mapping: ").Append(Mapping).Append("\n"); + sb.Append(" Modifiers: ").Append(Modifiers).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" Scopes: ").Append(Scopes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DynamicFormField); + } + + /// + /// Returns true if DynamicFormField instances are equal + /// + /// Instance of DynamicFormField to be compared + /// Boolean + public bool Equals(DynamicFormField input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ) && + ( + this.Placeholder == input.Placeholder || + (this.Placeholder != null && + this.Placeholder.Equals(input.Placeholder)) + ) && + ( + this.Rules == input.Rules || + (this.Rules != null && + this.Rules.Equals(input.Rules)) + ) && + ( + this.Mapping == input.Mapping || + this.Mapping != null && + this.Mapping.SequenceEqual(input.Mapping) + ) && + ( + this.Modifiers == input.Modifiers || + this.Modifiers != null && + this.Modifiers.SequenceEqual(input.Modifiers) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Scopes == input.Scopes || + (this.Scopes != null && + this.Scopes.Equals(input.Scopes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + if (this.Placeholder != null) + hashCode = hashCode * 59 + this.Placeholder.GetHashCode(); + if (this.Rules != null) + hashCode = hashCode * 59 + this.Rules.GetHashCode(); + if (this.Mapping != null) + hashCode = hashCode * 59 + this.Mapping.GetHashCode(); + if (this.Modifiers != null) + hashCode = hashCode * 59 + this.Modifiers.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.Scopes != null) + hashCode = hashCode * 59 + this.Scopes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DynamicFormFieldOption.cs b/src/Flipdish/Model/DynamicFormFieldOption.cs new file mode 100644 index 00000000..50af8157 --- /dev/null +++ b/src/Flipdish/Model/DynamicFormFieldOption.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// DynamicFormFieldOption + /// + [DataContract] + public partial class DynamicFormFieldOption : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// display. + /// value. + public DynamicFormFieldOption(string display = default(string), string value = default(string)) + { + this.Display = display; + this.Value = value; + } + + /// + /// Gets or Sets Display + /// + [DataMember(Name="Display", EmitDefaultValue=false)] + public string Display { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DynamicFormFieldOption {\n"); + sb.Append(" Display: ").Append(Display).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DynamicFormFieldOption); + } + + /// + /// Returns true if DynamicFormFieldOption instances are equal + /// + /// Instance of DynamicFormFieldOption to be compared + /// Boolean + public bool Equals(DynamicFormFieldOption input) + { + if (input == null) + return false; + + return + ( + this.Display == input.Display || + (this.Display != null && + this.Display.Equals(input.Display)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Display != null) + hashCode = hashCode * 59 + this.Display.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DynamicFormRule.cs b/src/Flipdish/Model/DynamicFormRule.cs new file mode 100644 index 00000000..a87e376e --- /dev/null +++ b/src/Flipdish/Model/DynamicFormRule.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// DynamicFormRule + /// + [DataContract] + public partial class DynamicFormRule : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// value. + /// message. + /// scopes. + public DynamicFormRule(Object value = default(Object), string message = default(string), string scopes = default(string)) + { + this.Value = value; + this.Message = message; + this.Scopes = scopes; + } + + /// + /// Gets or Sets Value + /// + [DataMember(Name="Value", EmitDefaultValue=false)] + public Object Value { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Gets or Sets Scopes + /// + [DataMember(Name="Scopes", EmitDefaultValue=false)] + public string Scopes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DynamicFormRule {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Scopes: ").Append(Scopes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DynamicFormRule); + } + + /// + /// Returns true if DynamicFormRule instances are equal + /// + /// Instance of DynamicFormRule to be compared + /// Boolean + public bool Equals(DynamicFormRule input) + { + if (input == null) + return false; + + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Scopes == input.Scopes || + (this.Scopes != null && + this.Scopes.Equals(input.Scopes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.Scopes != null) + hashCode = hashCode * 59 + this.Scopes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/DynamicFormRules.cs b/src/Flipdish/Model/DynamicFormRules.cs new file mode 100644 index 00000000..85e50687 --- /dev/null +++ b/src/Flipdish/Model/DynamicFormRules.cs @@ -0,0 +1,176 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// DynamicFormRules + /// + [DataContract] + public partial class DynamicFormRules : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// maxLength. + /// minLength. + /// required. + /// pattern. + /// predefined. + public DynamicFormRules(DynamicFormRule maxLength = default(DynamicFormRule), DynamicFormRule minLength = default(DynamicFormRule), DynamicFormRule required = default(DynamicFormRule), DynamicFormRule pattern = default(DynamicFormRule), List predefined = default(List)) + { + this.MaxLength = maxLength; + this.MinLength = minLength; + this.Required = required; + this.Pattern = pattern; + this.Predefined = predefined; + } + + /// + /// Gets or Sets MaxLength + /// + [DataMember(Name="MaxLength", EmitDefaultValue=false)] + public DynamicFormRule MaxLength { get; set; } + + /// + /// Gets or Sets MinLength + /// + [DataMember(Name="MinLength", EmitDefaultValue=false)] + public DynamicFormRule MinLength { get; set; } + + /// + /// Gets or Sets Required + /// + [DataMember(Name="Required", EmitDefaultValue=false)] + public DynamicFormRule Required { get; set; } + + /// + /// Gets or Sets Pattern + /// + [DataMember(Name="Pattern", EmitDefaultValue=false)] + public DynamicFormRule Pattern { get; set; } + + /// + /// Gets or Sets Predefined + /// + [DataMember(Name="Predefined", EmitDefaultValue=false)] + public List Predefined { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DynamicFormRules {\n"); + sb.Append(" MaxLength: ").Append(MaxLength).Append("\n"); + sb.Append(" MinLength: ").Append(MinLength).Append("\n"); + sb.Append(" Required: ").Append(Required).Append("\n"); + sb.Append(" Pattern: ").Append(Pattern).Append("\n"); + sb.Append(" Predefined: ").Append(Predefined).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DynamicFormRules); + } + + /// + /// Returns true if DynamicFormRules instances are equal + /// + /// Instance of DynamicFormRules to be compared + /// Boolean + public bool Equals(DynamicFormRules input) + { + if (input == null) + return false; + + return + ( + this.MaxLength == input.MaxLength || + (this.MaxLength != null && + this.MaxLength.Equals(input.MaxLength)) + ) && + ( + this.MinLength == input.MinLength || + (this.MinLength != null && + this.MinLength.Equals(input.MinLength)) + ) && + ( + this.Required == input.Required || + (this.Required != null && + this.Required.Equals(input.Required)) + ) && + ( + this.Pattern == input.Pattern || + (this.Pattern != null && + this.Pattern.Equals(input.Pattern)) + ) && + ( + this.Predefined == input.Predefined || + this.Predefined != null && + this.Predefined.SequenceEqual(input.Predefined) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MaxLength != null) + hashCode = hashCode * 59 + this.MaxLength.GetHashCode(); + if (this.MinLength != null) + hashCode = hashCode * 59 + this.MinLength.GetHashCode(); + if (this.Required != null) + hashCode = hashCode * 59 + this.Required.GetHashCode(); + if (this.Pattern != null) + hashCode = hashCode * 59 + this.Pattern.GetHashCode(); + if (this.Predefined != null) + hashCode = hashCode * 59 + this.Predefined.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/EmvNotificationEvent.cs b/src/Flipdish/Model/EmvNotificationEvent.cs new file mode 100644 index 00000000..d717a0a6 --- /dev/null +++ b/src/Flipdish/Model/EmvNotificationEvent.cs @@ -0,0 +1,419 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Terminal Notification + /// + [DataContract] + public partial class EmvNotificationEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Notification Sent. + /// Order. + /// TerminalId. + /// Description. + /// Expirey Date. + /// Card Type. + /// Payment Method. + /// Masked Account Number. + /// Auth Code. + /// Payment Provider Message. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public EmvNotificationEvent(string eventName = default(string), string notification = default(string), Order order = default(Order), string terminalId = default(string), string description = default(string), string expDate = default(string), string cardType = default(string), string paymentMethod = default(string), string accountNumber = default(string), string authCode = default(string), string providerMessage = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Notification = notification; + this.Order = order; + this.TerminalId = terminalId; + this.Description = description; + this.ExpDate = expDate; + this.CardType = cardType; + this.PaymentMethod = paymentMethod; + this.AccountNumber = accountNumber; + this.AuthCode = authCode; + this.ProviderMessage = providerMessage; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Notification Sent + /// + /// Notification Sent + [DataMember(Name="Notification", EmitDefaultValue=false)] + public string Notification { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// TerminalId + /// + /// TerminalId + [DataMember(Name="TerminalId", EmitDefaultValue=false)] + public string TerminalId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Expirey Date + /// + /// Expirey Date + [DataMember(Name="ExpDate", EmitDefaultValue=false)] + public string ExpDate { get; set; } + + /// + /// Card Type + /// + /// Card Type + [DataMember(Name="CardType", EmitDefaultValue=false)] + public string CardType { get; set; } + + /// + /// Payment Method + /// + /// Payment Method + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public string PaymentMethod { get; set; } + + /// + /// Masked Account Number + /// + /// Masked Account Number + [DataMember(Name="AccountNumber", EmitDefaultValue=false)] + public string AccountNumber { get; set; } + + /// + /// Auth Code + /// + /// Auth Code + [DataMember(Name="AuthCode", EmitDefaultValue=false)] + public string AuthCode { get; set; } + + /// + /// Payment Provider Message + /// + /// Payment Provider Message + [DataMember(Name="ProviderMessage", EmitDefaultValue=false)] + public string ProviderMessage { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class EmvNotificationEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Notification: ").Append(Notification).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ExpDate: ").Append(ExpDate).Append("\n"); + sb.Append(" CardType: ").Append(CardType).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); + sb.Append(" AuthCode: ").Append(AuthCode).Append("\n"); + sb.Append(" ProviderMessage: ").Append(ProviderMessage).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmvNotificationEvent); + } + + /// + /// Returns true if EmvNotificationEvent instances are equal + /// + /// Instance of EmvNotificationEvent to be compared + /// Boolean + public bool Equals(EmvNotificationEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Notification == input.Notification || + (this.Notification != null && + this.Notification.Equals(input.Notification)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ExpDate == input.ExpDate || + (this.ExpDate != null && + this.ExpDate.Equals(input.ExpDate)) + ) && + ( + this.CardType == input.CardType || + (this.CardType != null && + this.CardType.Equals(input.CardType)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.AccountNumber == input.AccountNumber || + (this.AccountNumber != null && + this.AccountNumber.Equals(input.AccountNumber)) + ) && + ( + this.AuthCode == input.AuthCode || + (this.AuthCode != null && + this.AuthCode.Equals(input.AuthCode)) + ) && + ( + this.ProviderMessage == input.ProviderMessage || + (this.ProviderMessage != null && + this.ProviderMessage.Equals(input.ProviderMessage)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Notification != null) + hashCode = hashCode * 59 + this.Notification.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.TerminalId != null) + hashCode = hashCode * 59 + this.TerminalId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ExpDate != null) + hashCode = hashCode * 59 + this.ExpDate.GetHashCode(); + if (this.CardType != null) + hashCode = hashCode * 59 + this.CardType.GetHashCode(); + if (this.PaymentMethod != null) + hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); + if (this.AccountNumber != null) + hashCode = hashCode * 59 + this.AccountNumber.GetHashCode(); + if (this.AuthCode != null) + hashCode = hashCode * 59 + this.AuthCode.GetHashCode(); + if (this.ProviderMessage != null) + hashCode = hashCode * 59 + this.ProviderMessage.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/EmvTerminal.cs b/src/Flipdish/Model/EmvTerminal.cs new file mode 100644 index 00000000..d8de9306 --- /dev/null +++ b/src/Flipdish/Model/EmvTerminal.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// EMV Payment Terminal + /// + [DataContract] + public partial class EmvTerminal : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Flipdish Identifier of Terminal. + /// External Identifier of Terminal. + /// URL at which terminal can be accessed. + /// TOKEN required to access terminal. + /// Identifies us to Provider. + /// Identifies installer of terminal. + public EmvTerminal(int? emvTerminalId = default(int?), string terminalId = default(string), string url = default(string), string token = default(string), string softwareHouseId = default(string), string installerId = default(string)) + { + this.EmvTerminalId = emvTerminalId; + this.TerminalId = terminalId; + this.Url = url; + this.Token = token; + this.SoftwareHouseId = softwareHouseId; + this.InstallerId = installerId; + } + + /// + /// Flipdish Identifier of Terminal + /// + /// Flipdish Identifier of Terminal + [DataMember(Name="EmvTerminalId", EmitDefaultValue=false)] + public int? EmvTerminalId { get; set; } + + /// + /// External Identifier of Terminal + /// + /// External Identifier of Terminal + [DataMember(Name="TerminalId", EmitDefaultValue=false)] + public string TerminalId { get; set; } + + /// + /// URL at which terminal can be accessed + /// + /// URL at which terminal can be accessed + [DataMember(Name="Url", EmitDefaultValue=false)] + public string Url { get; set; } + + /// + /// TOKEN required to access terminal + /// + /// TOKEN required to access terminal + [DataMember(Name="Token", EmitDefaultValue=false)] + public string Token { get; set; } + + /// + /// Identifies us to Provider + /// + /// Identifies us to Provider + [DataMember(Name="SoftwareHouseId", EmitDefaultValue=false)] + public string SoftwareHouseId { get; set; } + + /// + /// Identifies installer of terminal + /// + /// Identifies installer of terminal + [DataMember(Name="InstallerId", EmitDefaultValue=false)] + public string InstallerId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class EmvTerminal {\n"); + sb.Append(" EmvTerminalId: ").Append(EmvTerminalId).Append("\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" SoftwareHouseId: ").Append(SoftwareHouseId).Append("\n"); + sb.Append(" InstallerId: ").Append(InstallerId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmvTerminal); + } + + /// + /// Returns true if EmvTerminal instances are equal + /// + /// Instance of EmvTerminal to be compared + /// Boolean + public bool Equals(EmvTerminal input) + { + if (input == null) + return false; + + return + ( + this.EmvTerminalId == input.EmvTerminalId || + (this.EmvTerminalId != null && + this.EmvTerminalId.Equals(input.EmvTerminalId)) + ) && + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.SoftwareHouseId == input.SoftwareHouseId || + (this.SoftwareHouseId != null && + this.SoftwareHouseId.Equals(input.SoftwareHouseId)) + ) && + ( + this.InstallerId == input.InstallerId || + (this.InstallerId != null && + this.InstallerId.Equals(input.InstallerId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmvTerminalId != null) + hashCode = hashCode * 59 + this.EmvTerminalId.GetHashCode(); + if (this.TerminalId != null) + hashCode = hashCode * 59 + this.TerminalId.GetHashCode(); + if (this.Url != null) + hashCode = hashCode * 59 + this.Url.GetHashCode(); + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + if (this.SoftwareHouseId != null) + hashCode = hashCode * 59 + this.SoftwareHouseId.GetHashCode(); + if (this.InstallerId != null) + hashCode = hashCode * 59 + this.InstallerId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/EmvTerminalWithAssignments.cs b/src/Flipdish/Model/EmvTerminalWithAssignments.cs new file mode 100644 index 00000000..e6d8d023 --- /dev/null +++ b/src/Flipdish/Model/EmvTerminalWithAssignments.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// EMV Payment Terminal + /// + [DataContract] + public partial class EmvTerminalWithAssignments : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Flipdish Internal identifier of the Terminal. + /// External Identifier of the Terminal. + /// true if the terminal is assigned to a hydra device (e.g. a kiosk). + /// hydra device id (null if the terminal is not assigned to any hydra device). + /// external hydra device id (null if the terminal is not assigned to any hydra device). + /// hydra device name (null if the terminal is not assigned to any hydra device). + public EmvTerminalWithAssignments(string emvTerminalId = default(string), string terminalId = default(string), bool? isAssignedToHydraDevice = default(bool?), int? hydraConfigId = default(int?), string hydraDeviceId = default(string), string hydraName = default(string)) + { + this.EmvTerminalId = emvTerminalId; + this.TerminalId = terminalId; + this.IsAssignedToHydraDevice = isAssignedToHydraDevice; + this.HydraConfigId = hydraConfigId; + this.HydraDeviceId = hydraDeviceId; + this.HydraName = hydraName; + } + + /// + /// Flipdish Internal identifier of the Terminal + /// + /// Flipdish Internal identifier of the Terminal + [DataMember(Name="EmvTerminalId", EmitDefaultValue=false)] + public string EmvTerminalId { get; set; } + + /// + /// External Identifier of the Terminal + /// + /// External Identifier of the Terminal + [DataMember(Name="TerminalId", EmitDefaultValue=false)] + public string TerminalId { get; set; } + + /// + /// true if the terminal is assigned to a hydra device (e.g. a kiosk) + /// + /// true if the terminal is assigned to a hydra device (e.g. a kiosk) + [DataMember(Name="IsAssignedToHydraDevice", EmitDefaultValue=false)] + public bool? IsAssignedToHydraDevice { get; set; } + + /// + /// hydra device id (null if the terminal is not assigned to any hydra device) + /// + /// hydra device id (null if the terminal is not assigned to any hydra device) + [DataMember(Name="HydraConfigId", EmitDefaultValue=false)] + public int? HydraConfigId { get; set; } + + /// + /// external hydra device id (null if the terminal is not assigned to any hydra device) + /// + /// external hydra device id (null if the terminal is not assigned to any hydra device) + [DataMember(Name="HydraDeviceId", EmitDefaultValue=false)] + public string HydraDeviceId { get; set; } + + /// + /// hydra device name (null if the terminal is not assigned to any hydra device) + /// + /// hydra device name (null if the terminal is not assigned to any hydra device) + [DataMember(Name="HydraName", EmitDefaultValue=false)] + public string HydraName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class EmvTerminalWithAssignments {\n"); + sb.Append(" EmvTerminalId: ").Append(EmvTerminalId).Append("\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" IsAssignedToHydraDevice: ").Append(IsAssignedToHydraDevice).Append("\n"); + sb.Append(" HydraConfigId: ").Append(HydraConfigId).Append("\n"); + sb.Append(" HydraDeviceId: ").Append(HydraDeviceId).Append("\n"); + sb.Append(" HydraName: ").Append(HydraName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EmvTerminalWithAssignments); + } + + /// + /// Returns true if EmvTerminalWithAssignments instances are equal + /// + /// Instance of EmvTerminalWithAssignments to be compared + /// Boolean + public bool Equals(EmvTerminalWithAssignments input) + { + if (input == null) + return false; + + return + ( + this.EmvTerminalId == input.EmvTerminalId || + (this.EmvTerminalId != null && + this.EmvTerminalId.Equals(input.EmvTerminalId)) + ) && + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.IsAssignedToHydraDevice == input.IsAssignedToHydraDevice || + (this.IsAssignedToHydraDevice != null && + this.IsAssignedToHydraDevice.Equals(input.IsAssignedToHydraDevice)) + ) && + ( + this.HydraConfigId == input.HydraConfigId || + (this.HydraConfigId != null && + this.HydraConfigId.Equals(input.HydraConfigId)) + ) && + ( + this.HydraDeviceId == input.HydraDeviceId || + (this.HydraDeviceId != null && + this.HydraDeviceId.Equals(input.HydraDeviceId)) + ) && + ( + this.HydraName == input.HydraName || + (this.HydraName != null && + this.HydraName.Equals(input.HydraName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmvTerminalId != null) + hashCode = hashCode * 59 + this.EmvTerminalId.GetHashCode(); + if (this.TerminalId != null) + hashCode = hashCode * 59 + this.TerminalId.GetHashCode(); + if (this.IsAssignedToHydraDevice != null) + hashCode = hashCode * 59 + this.IsAssignedToHydraDevice.GetHashCode(); + if (this.HydraConfigId != null) + hashCode = hashCode * 59 + this.HydraConfigId.GetHashCode(); + if (this.HydraDeviceId != null) + hashCode = hashCode * 59 + this.HydraDeviceId.GetHashCode(); + if (this.HydraName != null) + hashCode = hashCode * 59 + this.HydraName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/EndUserFeeConfig.cs b/src/Flipdish/Model/EndUserFeeConfig.cs new file mode 100644 index 00000000..a450d1e9 --- /dev/null +++ b/src/Flipdish/Model/EndUserFeeConfig.cs @@ -0,0 +1,263 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Tiered end user fee config for a given order channel and payment method + /// + [DataContract] + public partial class EndUserFeeConfig : IEquatable + { + /// + /// The order channel this fee config applies to + /// + /// The order channel this fee config applies to + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelEnum + { + + /// + /// Enum WebApp for value: WebApp + /// + [EnumMember(Value = "WebApp")] + WebApp = 1, + + /// + /// Enum InStore for value: InStore + /// + [EnumMember(Value = "InStore")] + InStore = 2, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 3 + } + + /// + /// The order channel this fee config applies to + /// + /// The order channel this fee config applies to + [DataMember(Name="Channel", EmitDefaultValue=false)] + public ChannelEnum? Channel { get; set; } + /// + /// The payment method this fee config applies to + /// + /// The payment method this fee config applies to + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentMethodEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 2 + } + + /// + /// The payment method this fee config applies to + /// + /// The payment method this fee config applies to + [DataMember(Name="PaymentMethod", EmitDefaultValue=false)] + public PaymentMethodEnum? PaymentMethod { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The order channel this fee config applies to. + /// The payment method this fee config applies to. + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation. + /// Fixed fee charged for orders at or below MinOrderAmount. + /// Percentage fee applied to the order amount. + /// Fixed fee compared against the percentage fee - the greater of the two is charged. + /// Maximum fee that can be charged. + public EndUserFeeConfig(ChannelEnum? channel = default(ChannelEnum?), PaymentMethodEnum? paymentMethod = default(PaymentMethodEnum?), double? minOrderAmount = default(double?), double? minFixedFee = default(double?), double? percentFee = default(double?), double? fixedFee = default(double?), double? cap = default(double?)) + { + this.Channel = channel; + this.PaymentMethod = paymentMethod; + this.MinOrderAmount = minOrderAmount; + this.MinFixedFee = minFixedFee; + this.PercentFee = percentFee; + this.FixedFee = fixedFee; + this.Cap = cap; + } + + + + /// + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation + /// + /// Order amount below which MinFixedFee is charged instead of the percent/fixed calculation + [DataMember(Name="MinOrderAmount", EmitDefaultValue=false)] + public double? MinOrderAmount { get; set; } + + /// + /// Fixed fee charged for orders at or below MinOrderAmount + /// + /// Fixed fee charged for orders at or below MinOrderAmount + [DataMember(Name="MinFixedFee", EmitDefaultValue=false)] + public double? MinFixedFee { get; set; } + + /// + /// Percentage fee applied to the order amount + /// + /// Percentage fee applied to the order amount + [DataMember(Name="PercentFee", EmitDefaultValue=false)] + public double? PercentFee { get; set; } + + /// + /// Fixed fee compared against the percentage fee - the greater of the two is charged + /// + /// Fixed fee compared against the percentage fee - the greater of the two is charged + [DataMember(Name="FixedFee", EmitDefaultValue=false)] + public double? FixedFee { get; set; } + + /// + /// Maximum fee that can be charged + /// + /// Maximum fee that can be charged + [DataMember(Name="Cap", EmitDefaultValue=false)] + public double? Cap { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class EndUserFeeConfig {\n"); + sb.Append(" Channel: ").Append(Channel).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" MinOrderAmount: ").Append(MinOrderAmount).Append("\n"); + sb.Append(" MinFixedFee: ").Append(MinFixedFee).Append("\n"); + sb.Append(" PercentFee: ").Append(PercentFee).Append("\n"); + sb.Append(" FixedFee: ").Append(FixedFee).Append("\n"); + sb.Append(" Cap: ").Append(Cap).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EndUserFeeConfig); + } + + /// + /// Returns true if EndUserFeeConfig instances are equal + /// + /// Instance of EndUserFeeConfig to be compared + /// Boolean + public bool Equals(EndUserFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Channel == input.Channel || + (this.Channel != null && + this.Channel.Equals(input.Channel)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.MinOrderAmount == input.MinOrderAmount || + (this.MinOrderAmount != null && + this.MinOrderAmount.Equals(input.MinOrderAmount)) + ) && + ( + this.MinFixedFee == input.MinFixedFee || + (this.MinFixedFee != null && + this.MinFixedFee.Equals(input.MinFixedFee)) + ) && + ( + this.PercentFee == input.PercentFee || + (this.PercentFee != null && + this.PercentFee.Equals(input.PercentFee)) + ) && + ( + this.FixedFee == input.FixedFee || + (this.FixedFee != null && + this.FixedFee.Equals(input.FixedFee)) + ) && + ( + this.Cap == input.Cap || + (this.Cap != null && + this.Cap.Equals(input.Cap)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Channel != null) + hashCode = hashCode * 59 + this.Channel.GetHashCode(); + if (this.PaymentMethod != null) + hashCode = hashCode * 59 + this.PaymentMethod.GetHashCode(); + if (this.MinOrderAmount != null) + hashCode = hashCode * 59 + this.MinOrderAmount.GetHashCode(); + if (this.MinFixedFee != null) + hashCode = hashCode * 59 + this.MinFixedFee.GetHashCode(); + if (this.PercentFee != null) + hashCode = hashCode * 59 + this.PercentFee.GetHashCode(); + if (this.FixedFee != null) + hashCode = hashCode * 59 + this.FixedFee.GetHashCode(); + if (this.Cap != null) + hashCode = hashCode * 59 + this.Cap.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/EventSearchResult.cs b/src/Flipdish/Model/EventSearchResult.cs new file mode 100644 index 00000000..1d3bfe63 --- /dev/null +++ b/src/Flipdish/Model/EventSearchResult.cs @@ -0,0 +1,2510 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// EventSearchResult + /// + [DataContract] + public partial class EventSearchResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// App Created Event. + /// App Updated Event. + /// Client Analytics events. + /// Order accepted events. + /// Order dispatched events. + /// Order delivery tracking created events. + /// Order delivery tracking updated events. + /// Order Batch published event. + /// Order created events. + /// Order rating updated events. + /// Order refunded events. + /// Order rejected events. + /// Order tip updated events. + /// Order Terminal Notification events. + /// Store created events. + /// Store deleted events. + /// Store address updated events. + /// Store kiosk setting updated events. + /// Store delivery zone created events. + /// Store delivery zone updated events. + /// Store delivery zone deleted events. + /// Store opening hours updated events. + /// Store opening hours updated events. + /// Store business hours override created events. + /// Store business hours override deleted events. + /// Store archived events. + /// Store unarchived events. + /// Store published events. + /// Store unpublished events. + /// Store updated events. + /// Store updated events. + /// Store logo created events. + /// Store logo updated events. + /// Store logo deleted events. + /// Menu created events. + /// Menu async creation completed events. + /// Menu updated events. + /// Menu uploaded events. + /// Menu bulk events. + /// Menu section created events. + /// Menu section updated events. + /// Menu section deleted events. + /// Menu section item created events. + /// Menu section item updated events. + /// Menu section item deleted events. + /// Menu item option set created events. + /// Menu item option set updated events. + /// Menu item option set deleted events. + /// Menu item option set item created events. + /// Menu item option set item updated events. + /// Menu item option set item deleted events. + /// Menu checkpoint created event. + /// Store group created events. + /// Store group updated events. + /// Store group deleted events. + /// Customer created events. + /// Customer updated events. + /// Customer consent updated events. + /// Webhook subscription created events. + /// Webhook subscription updated events. + /// Webhook subscription deleted events. + /// Printer turned ON event. + /// Printer turned OFF event. + /// Printer assigned to store event. + /// Printer unassigned from store event. + /// Phone call started event. + /// Phone call ended event. + /// Telephony config updated event. + /// Channel stores updated event. + /// Loyalty campaign created event. + /// Loyalty campaign deleted event. + /// Loyalty campaign updated event. + /// Retention campaign created event. + /// Retention campaign deleted event. + /// Retention campaign updated event. + /// Sms received event. + /// User login event. + /// User created event. + /// User updated event. + /// User deleted event. + /// User password created event. + /// User answered signup questions event. + /// Voucher created event. + /// Voucher updated event. + /// Voucher deleted event. + /// Voucher applied event. + /// Teammate invite sent event. + /// Teammate invite accepted event. + /// Teammate updated event. + /// Teammate deleted event. + /// Bank account created event. + /// Bank account updated event. + /// Bank account updated event. + /// Bank account assigned event. + /// Hydra assigned event. + /// Hydra created event. + /// Hydra reset requested event. + /// Hydra store assigned event. + /// Hydra store unassigned. + /// Hydra settings changed event. + /// Hydra un-assigned event. + /// Hydra connection state change. + /// Bluetooth Pairing Mode initiated. + /// Bluetooth Unpairing Mode initiated. + /// Bluetooth Terminal Unpaired with Kiosk. + /// Terminal actionstate change. + /// Bluetooth Terminal Updated. + /// Trigger bluetooth payment terminal update checker. + /// Bluetooth Terminal Initiate Update. + /// Bluetooth Terminal Cancel Update Install. + /// Bluetooth Payment Terminal Firmware Version Status Info. + /// Bluetooth Terminal Update Installation Status. + /// Push notification scheduled event. + /// Push notification sent event. + /// Push notification deleted event. + /// DNS Verified. + /// Certificate created. + /// Certificate renewed. + /// Panacea vanity url updated. + /// Website updated. + /// Order capacity config updated. + /// External event. + /// Fulfillment status updated event. + /// App Store Config Created. + /// App Store Config Updated. + /// App Store Config Deleted. + /// App Store Subscription Change Job Updated. + /// Catalog Item Created. + /// Catalog Item Updated. + /// Catalog Item Archived. + /// Catalog Group Created. + /// Catalog Group Updated. + /// Catalog Group Archived. + /// Store Tip Updated Event. + /// LocationArea created event. + /// LocationArea updated event. + /// Location created event. + /// Location deleted event. + /// Service Charge Updated Event. + /// Mobile Submission Status Updated Event. + /// Mobile Submission Updated Event. + /// Store Fee Config Updated Event. + public EventSearchResult(List appCreatedEvent = default(List), List appUpdatedEvent = default(List), List analyticsClientEvent = default(List), List orderAcceptedEvent = default(List), List orderDispatchedEvent = default(List), List orderCustomerTrackingCreatedEvent = default(List), List orderDeliveryTrackingStatusUpdatedEvent = default(List), List orderBatchPublishedEvent = default(List), List orderCreatedEvent = default(List), List orderRatingUpdatedEvent = default(List), List orderRefundedEvent = default(List), List orderRejectedEvent = default(List), List orderTipUpdatedEvent = default(List), List orderTerminalNotifications = default(List), List storeCreatedEvent = default(List), List storeDeletedEvent = default(List), List storeAddressUpdatedEvent = default(List), List storeKioskSettingUpdatedEvent = default(List), List deliveryZoneCreatedEvent = default(List), List deliveryZoneUpdatedEvent = default(List), List deliveryZoneDeletedEvent = default(List), List storeOpeningHoursUpdatedEvent = default(List), List storeMenuAssignedEvent = default(List), List storeBusinessHoursOverrideCreatedEvent = default(List), List storeBusinessHoursOverrideDeletedEvent = default(List), List storeArchivedEvent = default(List), List storeUnarchivedEvent = default(List), List storePublishedEvent = default(List), List storeUnpublishedEvent = default(List), List storeUpdatedEvent = default(List), List storePreOrderConfigUpdatedEvent = default(List), List storeLogoCreatedEvent = default(List), List storeLogoUpdatedEvent = default(List), List storeLogoDeletedEvent = default(List), List menuCreatedEvent = default(List), List menuAsyncCreationCompletedEvent = default(List), List menuUpdatedEvent = default(List), List menuUploadedEvent = default(List), List menuBulkEditEvent = default(List), List menuSectionCreatedEvent = default(List), List menuSectionUpdatedEvent = default(List), List menuSectionDeletedEvent = default(List), List menuSectionItemCreatedEvent = default(List), List menuSectionItemUpdatedEvent = default(List), List menuSectionItemDeletedEvent = default(List), List menuItemOptionSetCreatedEvent = default(List), List menuItemOptionSetUpdatedEvent = default(List), List menuItemOptionSetDeletedEvent = default(List), List menuItemOptionSetItemCreatedEvent = default(List), List menuItemOptionSetItemUpdatedEvent = default(List), List menuItemOptionSetItemDeletedEvent = default(List), List menuCheckpointCreatedEvent = default(List), List storeGroupCreatedEvent = default(List), List storeGroupUpdatedEvent = default(List), List storeGroupDeletedEvent = default(List), List customerCreatedEvent = default(List), List customerUpdatedEvent = default(List), List customerConsentUpdatedEvent = default(List), List webhookSubscriptionCreatedEvent = default(List), List webhookSubscriptionUpdatedEvent = default(List), List webhookSubscriptionDeletedEvent = default(List), List printerTurnedOnEvent = default(List), List printerTurnedOffEvent = default(List), List printerAssignedToStoreEvent = default(List), List printerUnassignedFromStoreEvent = default(List), List phoneCallStartedEvent = default(List), List phoneCallEndedEvent = default(List), List telephonyConfigUpdatedEvent = default(List), List channelStoresUpdatedEvent = default(List), List loyaltyCampaignCreatedEvent = default(List), List loyaltyCampaignDeletedEvent = default(List), List loyaltyCampaignUpdatedEvent = default(List), List retentionCampaignCreatedEvent = default(List), List retentionCampaignDeletedEvent = default(List), List retentionCampaignUpdatedEvent = default(List), List smsReceivedEvent = default(List), List userLoginEvent = default(List), List userCreatedEvent = default(List), List userUpdatedEvent = default(List), List userDeletedEvent = default(List), List userCreatedPasswordEvent = default(List), List userAnsweredSignupQuestionsEvent = default(List), List voucherCreatedEvent = default(List), List voucherUpdatedEvent = default(List), List voucherDeletedEvent = default(List), List voucherAppliedEvent = default(List), List teammateInviteSentEvent = default(List), List teammateInviteAcceptedEvent = default(List), List teammateUpdatedEvent = default(List), List teammateDeletedEvent = default(List), List bankAccountCreatedEvent = default(List), List bankAccountUpdatedEvent = default(List), List bankAccountDeletedEvent = default(List), List bankAccountAssignedEvent = default(List), List hydraAssignedEvent = default(List), List hydraCreatedEvent = default(List), List hydraRequestResetEvent = default(List), List hydraStoreAssignedEvent = default(List), List hydraStoreUnassignedEvent = default(List), List hydraSettingChangedEvent = default(List), List hydraUnAssignedEvent = default(List), List hydraConnectionStatusChangedEvent = default(List), List kioskBluetoothPairingModeEvent = default(List), List kioskBluetoothUnpairingModeEvent = default(List), List kioskBluetoothTerminalUnpairedEvent = default(List), List kioskTerminalActionStateChangedEvent = default(List), List kioskBluetoothTerminalUpdatedEvent = default(List), List kioskBluetoothTerminalInitiateUpdateCheckEvent = default(List), List kioskBluetoothInstallUpdateInitiateEvent = default(List), List kioskBluetoothTerminalCancelUpdateEvent = default(List), List kioskBluetoothTerminalFirmwareVersionStatusEvent = default(List), List kioskBluetoothTerminalInstallationStatusEvent = default(List), List pushNotificationScheduledEvent = default(List), List pushNotificationSentEvent = default(List), List pushNotificationDeletedEvent = default(List), List dnsVerifiedEvent = default(List), List certificateCreatedEvent = default(List), List certificateRenewedEvent = default(List), List websiteVanityUrlUpdatedEvent = default(List), List websiteUpdatedEvent = default(List), List orderCapacityUpdatedEvent = default(List), List externalStoreEvent = default(List), List orderFulfillmentStatusUpdatedEvent = default(List), List appStoreConfigCreatedEvent = default(List), List appStoreConfigUpdatedEvent = default(List), List appStoreConfigDeletedEvent = default(List), List appStoreSubscriptionChangeJobUpdatedEvent = default(List), List catalogItemCreatedEvent = default(List), List catalogItemUpdatedEvent = default(List), List catalogItemArchivedEvent = default(List), List catalogGroupCreatedEvent = default(List), List catalogGroupUpdatedEvent = default(List), List catalogGroupArchivedEvent = default(List), List storeTipUpdatedEvent = default(List), List locationAreaCreatedEvent = default(List), List locationAreaUpdatedEvent = default(List), List locationCreatedEvent = default(List), List locationDeletedEvent = default(List), List storeServiceChargeUpdatedEvent = default(List), List mobileAppsSubmissionStatusUpdatedEvent = default(List), List mobileAppsSubmissionUpdatedEvent = default(List), List storeFeeConfigUpdatedEvent = default(List)) + { + this.AppCreatedEvent = appCreatedEvent; + this.AppUpdatedEvent = appUpdatedEvent; + this.AnalyticsClientEvent = analyticsClientEvent; + this.OrderAcceptedEvent = orderAcceptedEvent; + this.OrderDispatchedEvent = orderDispatchedEvent; + this.OrderCustomerTrackingCreatedEvent = orderCustomerTrackingCreatedEvent; + this.OrderDeliveryTrackingStatusUpdatedEvent = orderDeliveryTrackingStatusUpdatedEvent; + this.OrderBatchPublishedEvent = orderBatchPublishedEvent; + this.OrderCreatedEvent = orderCreatedEvent; + this.OrderRatingUpdatedEvent = orderRatingUpdatedEvent; + this.OrderRefundedEvent = orderRefundedEvent; + this.OrderRejectedEvent = orderRejectedEvent; + this.OrderTipUpdatedEvent = orderTipUpdatedEvent; + this.OrderTerminalNotifications = orderTerminalNotifications; + this.StoreCreatedEvent = storeCreatedEvent; + this.StoreDeletedEvent = storeDeletedEvent; + this.StoreAddressUpdatedEvent = storeAddressUpdatedEvent; + this.StoreKioskSettingUpdatedEvent = storeKioskSettingUpdatedEvent; + this.DeliveryZoneCreatedEvent = deliveryZoneCreatedEvent; + this.DeliveryZoneUpdatedEvent = deliveryZoneUpdatedEvent; + this.DeliveryZoneDeletedEvent = deliveryZoneDeletedEvent; + this.StoreOpeningHoursUpdatedEvent = storeOpeningHoursUpdatedEvent; + this.StoreMenuAssignedEvent = storeMenuAssignedEvent; + this.StoreBusinessHoursOverrideCreatedEvent = storeBusinessHoursOverrideCreatedEvent; + this.StoreBusinessHoursOverrideDeletedEvent = storeBusinessHoursOverrideDeletedEvent; + this.StoreArchivedEvent = storeArchivedEvent; + this.StoreUnarchivedEvent = storeUnarchivedEvent; + this.StorePublishedEvent = storePublishedEvent; + this.StoreUnpublishedEvent = storeUnpublishedEvent; + this.StoreUpdatedEvent = storeUpdatedEvent; + this.StorePreOrderConfigUpdatedEvent = storePreOrderConfigUpdatedEvent; + this.StoreLogoCreatedEvent = storeLogoCreatedEvent; + this.StoreLogoUpdatedEvent = storeLogoUpdatedEvent; + this.StoreLogoDeletedEvent = storeLogoDeletedEvent; + this.MenuCreatedEvent = menuCreatedEvent; + this.MenuAsyncCreationCompletedEvent = menuAsyncCreationCompletedEvent; + this.MenuUpdatedEvent = menuUpdatedEvent; + this.MenuUploadedEvent = menuUploadedEvent; + this.MenuBulkEditEvent = menuBulkEditEvent; + this.MenuSectionCreatedEvent = menuSectionCreatedEvent; + this.MenuSectionUpdatedEvent = menuSectionUpdatedEvent; + this.MenuSectionDeletedEvent = menuSectionDeletedEvent; + this.MenuSectionItemCreatedEvent = menuSectionItemCreatedEvent; + this.MenuSectionItemUpdatedEvent = menuSectionItemUpdatedEvent; + this.MenuSectionItemDeletedEvent = menuSectionItemDeletedEvent; + this.MenuItemOptionSetCreatedEvent = menuItemOptionSetCreatedEvent; + this.MenuItemOptionSetUpdatedEvent = menuItemOptionSetUpdatedEvent; + this.MenuItemOptionSetDeletedEvent = menuItemOptionSetDeletedEvent; + this.MenuItemOptionSetItemCreatedEvent = menuItemOptionSetItemCreatedEvent; + this.MenuItemOptionSetItemUpdatedEvent = menuItemOptionSetItemUpdatedEvent; + this.MenuItemOptionSetItemDeletedEvent = menuItemOptionSetItemDeletedEvent; + this.MenuCheckpointCreatedEvent = menuCheckpointCreatedEvent; + this.StoreGroupCreatedEvent = storeGroupCreatedEvent; + this.StoreGroupUpdatedEvent = storeGroupUpdatedEvent; + this.StoreGroupDeletedEvent = storeGroupDeletedEvent; + this.CustomerCreatedEvent = customerCreatedEvent; + this.CustomerUpdatedEvent = customerUpdatedEvent; + this.CustomerConsentUpdatedEvent = customerConsentUpdatedEvent; + this.WebhookSubscriptionCreatedEvent = webhookSubscriptionCreatedEvent; + this.WebhookSubscriptionUpdatedEvent = webhookSubscriptionUpdatedEvent; + this.WebhookSubscriptionDeletedEvent = webhookSubscriptionDeletedEvent; + this.PrinterTurnedOnEvent = printerTurnedOnEvent; + this.PrinterTurnedOffEvent = printerTurnedOffEvent; + this.PrinterAssignedToStoreEvent = printerAssignedToStoreEvent; + this.PrinterUnassignedFromStoreEvent = printerUnassignedFromStoreEvent; + this.PhoneCallStartedEvent = phoneCallStartedEvent; + this.PhoneCallEndedEvent = phoneCallEndedEvent; + this.TelephonyConfigUpdatedEvent = telephonyConfigUpdatedEvent; + this.ChannelStoresUpdatedEvent = channelStoresUpdatedEvent; + this.LoyaltyCampaignCreatedEvent = loyaltyCampaignCreatedEvent; + this.LoyaltyCampaignDeletedEvent = loyaltyCampaignDeletedEvent; + this.LoyaltyCampaignUpdatedEvent = loyaltyCampaignUpdatedEvent; + this.RetentionCampaignCreatedEvent = retentionCampaignCreatedEvent; + this.RetentionCampaignDeletedEvent = retentionCampaignDeletedEvent; + this.RetentionCampaignUpdatedEvent = retentionCampaignUpdatedEvent; + this.SmsReceivedEvent = smsReceivedEvent; + this.UserLoginEvent = userLoginEvent; + this.UserCreatedEvent = userCreatedEvent; + this.UserUpdatedEvent = userUpdatedEvent; + this.UserDeletedEvent = userDeletedEvent; + this.UserCreatedPasswordEvent = userCreatedPasswordEvent; + this.UserAnsweredSignupQuestionsEvent = userAnsweredSignupQuestionsEvent; + this.VoucherCreatedEvent = voucherCreatedEvent; + this.VoucherUpdatedEvent = voucherUpdatedEvent; + this.VoucherDeletedEvent = voucherDeletedEvent; + this.VoucherAppliedEvent = voucherAppliedEvent; + this.TeammateInviteSentEvent = teammateInviteSentEvent; + this.TeammateInviteAcceptedEvent = teammateInviteAcceptedEvent; + this.TeammateUpdatedEvent = teammateUpdatedEvent; + this.TeammateDeletedEvent = teammateDeletedEvent; + this.BankAccountCreatedEvent = bankAccountCreatedEvent; + this.BankAccountUpdatedEvent = bankAccountUpdatedEvent; + this.BankAccountDeletedEvent = bankAccountDeletedEvent; + this.BankAccountAssignedEvent = bankAccountAssignedEvent; + this.HydraAssignedEvent = hydraAssignedEvent; + this.HydraCreatedEvent = hydraCreatedEvent; + this.HydraRequestResetEvent = hydraRequestResetEvent; + this.HydraStoreAssignedEvent = hydraStoreAssignedEvent; + this.HydraStoreUnassignedEvent = hydraStoreUnassignedEvent; + this.HydraSettingChangedEvent = hydraSettingChangedEvent; + this.HydraUnAssignedEvent = hydraUnAssignedEvent; + this.HydraConnectionStatusChangedEvent = hydraConnectionStatusChangedEvent; + this.KioskBluetoothPairingModeEvent = kioskBluetoothPairingModeEvent; + this.KioskBluetoothUnpairingModeEvent = kioskBluetoothUnpairingModeEvent; + this.KioskBluetoothTerminalUnpairedEvent = kioskBluetoothTerminalUnpairedEvent; + this.KioskTerminalActionStateChangedEvent = kioskTerminalActionStateChangedEvent; + this.KioskBluetoothTerminalUpdatedEvent = kioskBluetoothTerminalUpdatedEvent; + this.KioskBluetoothTerminalInitiateUpdateCheckEvent = kioskBluetoothTerminalInitiateUpdateCheckEvent; + this.KioskBluetoothInstallUpdateInitiateEvent = kioskBluetoothInstallUpdateInitiateEvent; + this.KioskBluetoothTerminalCancelUpdateEvent = kioskBluetoothTerminalCancelUpdateEvent; + this.KioskBluetoothTerminalFirmwareVersionStatusEvent = kioskBluetoothTerminalFirmwareVersionStatusEvent; + this.KioskBluetoothTerminalInstallationStatusEvent = kioskBluetoothTerminalInstallationStatusEvent; + this.PushNotificationScheduledEvent = pushNotificationScheduledEvent; + this.PushNotificationSentEvent = pushNotificationSentEvent; + this.PushNotificationDeletedEvent = pushNotificationDeletedEvent; + this.DnsVerifiedEvent = dnsVerifiedEvent; + this.CertificateCreatedEvent = certificateCreatedEvent; + this.CertificateRenewedEvent = certificateRenewedEvent; + this.WebsiteVanityUrlUpdatedEvent = websiteVanityUrlUpdatedEvent; + this.WebsiteUpdatedEvent = websiteUpdatedEvent; + this.OrderCapacityUpdatedEvent = orderCapacityUpdatedEvent; + this.ExternalStoreEvent = externalStoreEvent; + this.OrderFulfillmentStatusUpdatedEvent = orderFulfillmentStatusUpdatedEvent; + this.AppStoreConfigCreatedEvent = appStoreConfigCreatedEvent; + this.AppStoreConfigUpdatedEvent = appStoreConfigUpdatedEvent; + this.AppStoreConfigDeletedEvent = appStoreConfigDeletedEvent; + this.AppStoreSubscriptionChangeJobUpdatedEvent = appStoreSubscriptionChangeJobUpdatedEvent; + this.CatalogItemCreatedEvent = catalogItemCreatedEvent; + this.CatalogItemUpdatedEvent = catalogItemUpdatedEvent; + this.CatalogItemArchivedEvent = catalogItemArchivedEvent; + this.CatalogGroupCreatedEvent = catalogGroupCreatedEvent; + this.CatalogGroupUpdatedEvent = catalogGroupUpdatedEvent; + this.CatalogGroupArchivedEvent = catalogGroupArchivedEvent; + this.StoreTipUpdatedEvent = storeTipUpdatedEvent; + this.LocationAreaCreatedEvent = locationAreaCreatedEvent; + this.LocationAreaUpdatedEvent = locationAreaUpdatedEvent; + this.LocationCreatedEvent = locationCreatedEvent; + this.LocationDeletedEvent = locationDeletedEvent; + this.StoreServiceChargeUpdatedEvent = storeServiceChargeUpdatedEvent; + this.MobileAppsSubmissionStatusUpdatedEvent = mobileAppsSubmissionStatusUpdatedEvent; + this.MobileAppsSubmissionUpdatedEvent = mobileAppsSubmissionUpdatedEvent; + this.StoreFeeConfigUpdatedEvent = storeFeeConfigUpdatedEvent; + } + + /// + /// App Created Event + /// + /// App Created Event + [DataMember(Name="AppCreatedEvent", EmitDefaultValue=false)] + public List AppCreatedEvent { get; set; } + + /// + /// App Updated Event + /// + /// App Updated Event + [DataMember(Name="AppUpdatedEvent", EmitDefaultValue=false)] + public List AppUpdatedEvent { get; set; } + + /// + /// Client Analytics events + /// + /// Client Analytics events + [DataMember(Name="AnalyticsClientEvent", EmitDefaultValue=false)] + public List AnalyticsClientEvent { get; set; } + + /// + /// Order accepted events + /// + /// Order accepted events + [DataMember(Name="OrderAcceptedEvent", EmitDefaultValue=false)] + public List OrderAcceptedEvent { get; set; } + + /// + /// Order dispatched events + /// + /// Order dispatched events + [DataMember(Name="OrderDispatchedEvent", EmitDefaultValue=false)] + public List OrderDispatchedEvent { get; set; } + + /// + /// Order delivery tracking created events + /// + /// Order delivery tracking created events + [DataMember(Name="OrderCustomerTrackingCreatedEvent", EmitDefaultValue=false)] + public List OrderCustomerTrackingCreatedEvent { get; set; } + + /// + /// Order delivery tracking updated events + /// + /// Order delivery tracking updated events + [DataMember(Name="OrderDeliveryTrackingStatusUpdatedEvent", EmitDefaultValue=false)] + public List OrderDeliveryTrackingStatusUpdatedEvent { get; set; } + + /// + /// Order Batch published event + /// + /// Order Batch published event + [DataMember(Name="OrderBatchPublishedEvent", EmitDefaultValue=false)] + public List OrderBatchPublishedEvent { get; set; } + + /// + /// Order created events + /// + /// Order created events + [DataMember(Name="OrderCreatedEvent", EmitDefaultValue=false)] + public List OrderCreatedEvent { get; set; } + + /// + /// Order rating updated events + /// + /// Order rating updated events + [DataMember(Name="OrderRatingUpdatedEvent", EmitDefaultValue=false)] + public List OrderRatingUpdatedEvent { get; set; } + + /// + /// Order refunded events + /// + /// Order refunded events + [DataMember(Name="OrderRefundedEvent", EmitDefaultValue=false)] + public List OrderRefundedEvent { get; set; } + + /// + /// Order rejected events + /// + /// Order rejected events + [DataMember(Name="OrderRejectedEvent", EmitDefaultValue=false)] + public List OrderRejectedEvent { get; set; } + + /// + /// Order tip updated events + /// + /// Order tip updated events + [DataMember(Name="OrderTipUpdatedEvent", EmitDefaultValue=false)] + public List OrderTipUpdatedEvent { get; set; } + + /// + /// Order Terminal Notification events + /// + /// Order Terminal Notification events + [DataMember(Name="OrderTerminalNotifications", EmitDefaultValue=false)] + public List OrderTerminalNotifications { get; set; } + + /// + /// Store created events + /// + /// Store created events + [DataMember(Name="StoreCreatedEvent", EmitDefaultValue=false)] + public List StoreCreatedEvent { get; set; } + + /// + /// Store deleted events + /// + /// Store deleted events + [DataMember(Name="StoreDeletedEvent", EmitDefaultValue=false)] + public List StoreDeletedEvent { get; set; } + + /// + /// Store address updated events + /// + /// Store address updated events + [DataMember(Name="StoreAddressUpdatedEvent", EmitDefaultValue=false)] + public List StoreAddressUpdatedEvent { get; set; } + + /// + /// Store kiosk setting updated events + /// + /// Store kiosk setting updated events + [DataMember(Name="StoreKioskSettingUpdatedEvent", EmitDefaultValue=false)] + public List StoreKioskSettingUpdatedEvent { get; set; } + + /// + /// Store delivery zone created events + /// + /// Store delivery zone created events + [DataMember(Name="DeliveryZoneCreatedEvent", EmitDefaultValue=false)] + public List DeliveryZoneCreatedEvent { get; set; } + + /// + /// Store delivery zone updated events + /// + /// Store delivery zone updated events + [DataMember(Name="DeliveryZoneUpdatedEvent", EmitDefaultValue=false)] + public List DeliveryZoneUpdatedEvent { get; set; } + + /// + /// Store delivery zone deleted events + /// + /// Store delivery zone deleted events + [DataMember(Name="DeliveryZoneDeletedEvent", EmitDefaultValue=false)] + public List DeliveryZoneDeletedEvent { get; set; } + + /// + /// Store opening hours updated events + /// + /// Store opening hours updated events + [DataMember(Name="StoreOpeningHoursUpdatedEvent", EmitDefaultValue=false)] + public List StoreOpeningHoursUpdatedEvent { get; set; } + + /// + /// Store opening hours updated events + /// + /// Store opening hours updated events + [DataMember(Name="StoreMenuAssignedEvent", EmitDefaultValue=false)] + public List StoreMenuAssignedEvent { get; set; } + + /// + /// Store business hours override created events + /// + /// Store business hours override created events + [DataMember(Name="StoreBusinessHoursOverrideCreatedEvent", EmitDefaultValue=false)] + public List StoreBusinessHoursOverrideCreatedEvent { get; set; } + + /// + /// Store business hours override deleted events + /// + /// Store business hours override deleted events + [DataMember(Name="StoreBusinessHoursOverrideDeletedEvent", EmitDefaultValue=false)] + public List StoreBusinessHoursOverrideDeletedEvent { get; set; } + + /// + /// Store archived events + /// + /// Store archived events + [DataMember(Name="StoreArchivedEvent", EmitDefaultValue=false)] + public List StoreArchivedEvent { get; set; } + + /// + /// Store unarchived events + /// + /// Store unarchived events + [DataMember(Name="StoreUnarchivedEvent", EmitDefaultValue=false)] + public List StoreUnarchivedEvent { get; set; } + + /// + /// Store published events + /// + /// Store published events + [DataMember(Name="StorePublishedEvent", EmitDefaultValue=false)] + public List StorePublishedEvent { get; set; } + + /// + /// Store unpublished events + /// + /// Store unpublished events + [DataMember(Name="StoreUnpublishedEvent", EmitDefaultValue=false)] + public List StoreUnpublishedEvent { get; set; } + + /// + /// Store updated events + /// + /// Store updated events + [DataMember(Name="StoreUpdatedEvent", EmitDefaultValue=false)] + public List StoreUpdatedEvent { get; set; } + + /// + /// Store updated events + /// + /// Store updated events + [DataMember(Name="StorePreOrderConfigUpdatedEvent", EmitDefaultValue=false)] + public List StorePreOrderConfigUpdatedEvent { get; set; } + + /// + /// Store logo created events + /// + /// Store logo created events + [DataMember(Name="StoreLogoCreatedEvent", EmitDefaultValue=false)] + public List StoreLogoCreatedEvent { get; set; } + + /// + /// Store logo updated events + /// + /// Store logo updated events + [DataMember(Name="StoreLogoUpdatedEvent", EmitDefaultValue=false)] + public List StoreLogoUpdatedEvent { get; set; } + + /// + /// Store logo deleted events + /// + /// Store logo deleted events + [DataMember(Name="StoreLogoDeletedEvent", EmitDefaultValue=false)] + public List StoreLogoDeletedEvent { get; set; } + + /// + /// Menu created events + /// + /// Menu created events + [DataMember(Name="MenuCreatedEvent", EmitDefaultValue=false)] + public List MenuCreatedEvent { get; set; } + + /// + /// Menu async creation completed events + /// + /// Menu async creation completed events + [DataMember(Name="MenuAsyncCreationCompletedEvent", EmitDefaultValue=false)] + public List MenuAsyncCreationCompletedEvent { get; set; } + + /// + /// Menu updated events + /// + /// Menu updated events + [DataMember(Name="MenuUpdatedEvent", EmitDefaultValue=false)] + public List MenuUpdatedEvent { get; set; } + + /// + /// Menu uploaded events + /// + /// Menu uploaded events + [DataMember(Name="MenuUploadedEvent", EmitDefaultValue=false)] + public List MenuUploadedEvent { get; set; } + + /// + /// Menu bulk events + /// + /// Menu bulk events + [DataMember(Name="MenuBulkEditEvent", EmitDefaultValue=false)] + public List MenuBulkEditEvent { get; set; } + + /// + /// Menu section created events + /// + /// Menu section created events + [DataMember(Name="MenuSectionCreatedEvent", EmitDefaultValue=false)] + public List MenuSectionCreatedEvent { get; set; } + + /// + /// Menu section updated events + /// + /// Menu section updated events + [DataMember(Name="MenuSectionUpdatedEvent", EmitDefaultValue=false)] + public List MenuSectionUpdatedEvent { get; set; } + + /// + /// Menu section deleted events + /// + /// Menu section deleted events + [DataMember(Name="MenuSectionDeletedEvent", EmitDefaultValue=false)] + public List MenuSectionDeletedEvent { get; set; } + + /// + /// Menu section item created events + /// + /// Menu section item created events + [DataMember(Name="MenuSectionItemCreatedEvent", EmitDefaultValue=false)] + public List MenuSectionItemCreatedEvent { get; set; } + + /// + /// Menu section item updated events + /// + /// Menu section item updated events + [DataMember(Name="MenuSectionItemUpdatedEvent", EmitDefaultValue=false)] + public List MenuSectionItemUpdatedEvent { get; set; } + + /// + /// Menu section item deleted events + /// + /// Menu section item deleted events + [DataMember(Name="MenuSectionItemDeletedEvent", EmitDefaultValue=false)] + public List MenuSectionItemDeletedEvent { get; set; } + + /// + /// Menu item option set created events + /// + /// Menu item option set created events + [DataMember(Name="MenuItemOptionSetCreatedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetCreatedEvent { get; set; } + + /// + /// Menu item option set updated events + /// + /// Menu item option set updated events + [DataMember(Name="MenuItemOptionSetUpdatedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetUpdatedEvent { get; set; } + + /// + /// Menu item option set deleted events + /// + /// Menu item option set deleted events + [DataMember(Name="MenuItemOptionSetDeletedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetDeletedEvent { get; set; } + + /// + /// Menu item option set item created events + /// + /// Menu item option set item created events + [DataMember(Name="MenuItemOptionSetItemCreatedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetItemCreatedEvent { get; set; } + + /// + /// Menu item option set item updated events + /// + /// Menu item option set item updated events + [DataMember(Name="MenuItemOptionSetItemUpdatedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetItemUpdatedEvent { get; set; } + + /// + /// Menu item option set item deleted events + /// + /// Menu item option set item deleted events + [DataMember(Name="MenuItemOptionSetItemDeletedEvent", EmitDefaultValue=false)] + public List MenuItemOptionSetItemDeletedEvent { get; set; } + + /// + /// Menu checkpoint created event + /// + /// Menu checkpoint created event + [DataMember(Name="MenuCheckpointCreatedEvent", EmitDefaultValue=false)] + public List MenuCheckpointCreatedEvent { get; set; } + + /// + /// Store group created events + /// + /// Store group created events + [DataMember(Name="StoreGroupCreatedEvent", EmitDefaultValue=false)] + public List StoreGroupCreatedEvent { get; set; } + + /// + /// Store group updated events + /// + /// Store group updated events + [DataMember(Name="StoreGroupUpdatedEvent", EmitDefaultValue=false)] + public List StoreGroupUpdatedEvent { get; set; } + + /// + /// Store group deleted events + /// + /// Store group deleted events + [DataMember(Name="StoreGroupDeletedEvent", EmitDefaultValue=false)] + public List StoreGroupDeletedEvent { get; set; } + + /// + /// Customer created events + /// + /// Customer created events + [DataMember(Name="CustomerCreatedEvent", EmitDefaultValue=false)] + public List CustomerCreatedEvent { get; set; } + + /// + /// Customer updated events + /// + /// Customer updated events + [DataMember(Name="CustomerUpdatedEvent", EmitDefaultValue=false)] + public List CustomerUpdatedEvent { get; set; } + + /// + /// Customer consent updated events + /// + /// Customer consent updated events + [DataMember(Name="CustomerConsentUpdatedEvent", EmitDefaultValue=false)] + public List CustomerConsentUpdatedEvent { get; set; } + + /// + /// Webhook subscription created events + /// + /// Webhook subscription created events + [DataMember(Name="WebhookSubscriptionCreatedEvent", EmitDefaultValue=false)] + public List WebhookSubscriptionCreatedEvent { get; set; } + + /// + /// Webhook subscription updated events + /// + /// Webhook subscription updated events + [DataMember(Name="WebhookSubscriptionUpdatedEvent", EmitDefaultValue=false)] + public List WebhookSubscriptionUpdatedEvent { get; set; } + + /// + /// Webhook subscription deleted events + /// + /// Webhook subscription deleted events + [DataMember(Name="WebhookSubscriptionDeletedEvent", EmitDefaultValue=false)] + public List WebhookSubscriptionDeletedEvent { get; set; } + + /// + /// Printer turned ON event + /// + /// Printer turned ON event + [DataMember(Name="PrinterTurnedOnEvent", EmitDefaultValue=false)] + public List PrinterTurnedOnEvent { get; set; } + + /// + /// Printer turned OFF event + /// + /// Printer turned OFF event + [DataMember(Name="PrinterTurnedOffEvent", EmitDefaultValue=false)] + public List PrinterTurnedOffEvent { get; set; } + + /// + /// Printer assigned to store event + /// + /// Printer assigned to store event + [DataMember(Name="PrinterAssignedToStoreEvent", EmitDefaultValue=false)] + public List PrinterAssignedToStoreEvent { get; set; } + + /// + /// Printer unassigned from store event + /// + /// Printer unassigned from store event + [DataMember(Name="PrinterUnassignedFromStoreEvent", EmitDefaultValue=false)] + public List PrinterUnassignedFromStoreEvent { get; set; } + + /// + /// Phone call started event + /// + /// Phone call started event + [DataMember(Name="PhoneCallStartedEvent", EmitDefaultValue=false)] + public List PhoneCallStartedEvent { get; set; } + + /// + /// Phone call ended event + /// + /// Phone call ended event + [DataMember(Name="PhoneCallEndedEvent", EmitDefaultValue=false)] + public List PhoneCallEndedEvent { get; set; } + + /// + /// Telephony config updated event + /// + /// Telephony config updated event + [DataMember(Name="TelephonyConfigUpdatedEvent", EmitDefaultValue=false)] + public List TelephonyConfigUpdatedEvent { get; set; } + + /// + /// Channel stores updated event + /// + /// Channel stores updated event + [DataMember(Name="ChannelStoresUpdatedEvent", EmitDefaultValue=false)] + public List ChannelStoresUpdatedEvent { get; set; } + + /// + /// Loyalty campaign created event + /// + /// Loyalty campaign created event + [DataMember(Name="LoyaltyCampaignCreatedEvent", EmitDefaultValue=false)] + public List LoyaltyCampaignCreatedEvent { get; set; } + + /// + /// Loyalty campaign deleted event + /// + /// Loyalty campaign deleted event + [DataMember(Name="LoyaltyCampaignDeletedEvent", EmitDefaultValue=false)] + public List LoyaltyCampaignDeletedEvent { get; set; } + + /// + /// Loyalty campaign updated event + /// + /// Loyalty campaign updated event + [DataMember(Name="LoyaltyCampaignUpdatedEvent", EmitDefaultValue=false)] + public List LoyaltyCampaignUpdatedEvent { get; set; } + + /// + /// Retention campaign created event + /// + /// Retention campaign created event + [DataMember(Name="RetentionCampaignCreatedEvent", EmitDefaultValue=false)] + public List RetentionCampaignCreatedEvent { get; set; } + + /// + /// Retention campaign deleted event + /// + /// Retention campaign deleted event + [DataMember(Name="RetentionCampaignDeletedEvent", EmitDefaultValue=false)] + public List RetentionCampaignDeletedEvent { get; set; } + + /// + /// Retention campaign updated event + /// + /// Retention campaign updated event + [DataMember(Name="RetentionCampaignUpdatedEvent", EmitDefaultValue=false)] + public List RetentionCampaignUpdatedEvent { get; set; } + + /// + /// Sms received event + /// + /// Sms received event + [DataMember(Name="SmsReceivedEvent", EmitDefaultValue=false)] + public List SmsReceivedEvent { get; set; } + + /// + /// User login event + /// + /// User login event + [DataMember(Name="UserLoginEvent", EmitDefaultValue=false)] + public List UserLoginEvent { get; set; } + + /// + /// User created event + /// + /// User created event + [DataMember(Name="UserCreatedEvent", EmitDefaultValue=false)] + public List UserCreatedEvent { get; set; } + + /// + /// User updated event + /// + /// User updated event + [DataMember(Name="UserUpdatedEvent", EmitDefaultValue=false)] + public List UserUpdatedEvent { get; set; } + + /// + /// User deleted event + /// + /// User deleted event + [DataMember(Name="UserDeletedEvent", EmitDefaultValue=false)] + public List UserDeletedEvent { get; set; } + + /// + /// User password created event + /// + /// User password created event + [DataMember(Name="UserCreatedPasswordEvent", EmitDefaultValue=false)] + public List UserCreatedPasswordEvent { get; set; } + + /// + /// User answered signup questions event + /// + /// User answered signup questions event + [DataMember(Name="UserAnsweredSignupQuestionsEvent", EmitDefaultValue=false)] + public List UserAnsweredSignupQuestionsEvent { get; set; } + + /// + /// Voucher created event + /// + /// Voucher created event + [DataMember(Name="VoucherCreatedEvent", EmitDefaultValue=false)] + public List VoucherCreatedEvent { get; set; } + + /// + /// Voucher updated event + /// + /// Voucher updated event + [DataMember(Name="VoucherUpdatedEvent", EmitDefaultValue=false)] + public List VoucherUpdatedEvent { get; set; } + + /// + /// Voucher deleted event + /// + /// Voucher deleted event + [DataMember(Name="VoucherDeletedEvent", EmitDefaultValue=false)] + public List VoucherDeletedEvent { get; set; } + + /// + /// Voucher applied event + /// + /// Voucher applied event + [DataMember(Name="VoucherAppliedEvent", EmitDefaultValue=false)] + public List VoucherAppliedEvent { get; set; } + + /// + /// Teammate invite sent event + /// + /// Teammate invite sent event + [DataMember(Name="TeammateInviteSentEvent", EmitDefaultValue=false)] + public List TeammateInviteSentEvent { get; set; } + + /// + /// Teammate invite accepted event + /// + /// Teammate invite accepted event + [DataMember(Name="TeammateInviteAcceptedEvent", EmitDefaultValue=false)] + public List TeammateInviteAcceptedEvent { get; set; } + + /// + /// Teammate updated event + /// + /// Teammate updated event + [DataMember(Name="TeammateUpdatedEvent", EmitDefaultValue=false)] + public List TeammateUpdatedEvent { get; set; } + + /// + /// Teammate deleted event + /// + /// Teammate deleted event + [DataMember(Name="TeammateDeletedEvent", EmitDefaultValue=false)] + public List TeammateDeletedEvent { get; set; } + + /// + /// Bank account created event + /// + /// Bank account created event + [DataMember(Name="BankAccountCreatedEvent", EmitDefaultValue=false)] + public List BankAccountCreatedEvent { get; set; } + + /// + /// Bank account updated event + /// + /// Bank account updated event + [DataMember(Name="BankAccountUpdatedEvent", EmitDefaultValue=false)] + public List BankAccountUpdatedEvent { get; set; } + + /// + /// Bank account updated event + /// + /// Bank account updated event + [DataMember(Name="BankAccountDeletedEvent", EmitDefaultValue=false)] + public List BankAccountDeletedEvent { get; set; } + + /// + /// Bank account assigned event + /// + /// Bank account assigned event + [DataMember(Name="BankAccountAssignedEvent", EmitDefaultValue=false)] + public List BankAccountAssignedEvent { get; set; } + + /// + /// Hydra assigned event + /// + /// Hydra assigned event + [DataMember(Name="HydraAssignedEvent", EmitDefaultValue=false)] + public List HydraAssignedEvent { get; set; } + + /// + /// Hydra created event + /// + /// Hydra created event + [DataMember(Name="HydraCreatedEvent", EmitDefaultValue=false)] + public List HydraCreatedEvent { get; set; } + + /// + /// Hydra reset requested event + /// + /// Hydra reset requested event + [DataMember(Name="HydraRequestResetEvent", EmitDefaultValue=false)] + public List HydraRequestResetEvent { get; set; } + + /// + /// Hydra store assigned event + /// + /// Hydra store assigned event + [DataMember(Name="HydraStoreAssignedEvent", EmitDefaultValue=false)] + public List HydraStoreAssignedEvent { get; set; } + + /// + /// Hydra store unassigned + /// + /// Hydra store unassigned + [DataMember(Name="HydraStoreUnassignedEvent", EmitDefaultValue=false)] + public List HydraStoreUnassignedEvent { get; set; } + + /// + /// Hydra settings changed event + /// + /// Hydra settings changed event + [DataMember(Name="HydraSettingChangedEvent", EmitDefaultValue=false)] + public List HydraSettingChangedEvent { get; set; } + + /// + /// Hydra un-assigned event + /// + /// Hydra un-assigned event + [DataMember(Name="HydraUnAssignedEvent", EmitDefaultValue=false)] + public List HydraUnAssignedEvent { get; set; } + + /// + /// Hydra connection state change + /// + /// Hydra connection state change + [DataMember(Name="HydraConnectionStatusChangedEvent", EmitDefaultValue=false)] + public List HydraConnectionStatusChangedEvent { get; set; } + + /// + /// Bluetooth Pairing Mode initiated + /// + /// Bluetooth Pairing Mode initiated + [DataMember(Name="KioskBluetoothPairingModeEvent", EmitDefaultValue=false)] + public List KioskBluetoothPairingModeEvent { get; set; } + + /// + /// Bluetooth Unpairing Mode initiated + /// + /// Bluetooth Unpairing Mode initiated + [DataMember(Name="KioskBluetoothUnpairingModeEvent", EmitDefaultValue=false)] + public List KioskBluetoothUnpairingModeEvent { get; set; } + + /// + /// Bluetooth Terminal Unpaired with Kiosk + /// + /// Bluetooth Terminal Unpaired with Kiosk + [DataMember(Name="KioskBluetoothTerminalUnpairedEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalUnpairedEvent { get; set; } + + /// + /// Terminal actionstate change + /// + /// Terminal actionstate change + [DataMember(Name="KioskTerminalActionStateChangedEvent", EmitDefaultValue=false)] + public List KioskTerminalActionStateChangedEvent { get; set; } + + /// + /// Bluetooth Terminal Updated + /// + /// Bluetooth Terminal Updated + [DataMember(Name="KioskBluetoothTerminalUpdatedEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalUpdatedEvent { get; set; } + + /// + /// Trigger bluetooth payment terminal update checker + /// + /// Trigger bluetooth payment terminal update checker + [DataMember(Name="KioskBluetoothTerminalInitiateUpdateCheckEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalInitiateUpdateCheckEvent { get; set; } + + /// + /// Bluetooth Terminal Initiate Update + /// + /// Bluetooth Terminal Initiate Update + [DataMember(Name="KioskBluetoothInstallUpdateInitiateEvent", EmitDefaultValue=false)] + public List KioskBluetoothInstallUpdateInitiateEvent { get; set; } + + /// + /// Bluetooth Terminal Cancel Update Install + /// + /// Bluetooth Terminal Cancel Update Install + [DataMember(Name="KioskBluetoothTerminalCancelUpdateEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalCancelUpdateEvent { get; set; } + + /// + /// Bluetooth Payment Terminal Firmware Version Status Info + /// + /// Bluetooth Payment Terminal Firmware Version Status Info + [DataMember(Name="KioskBluetoothTerminalFirmwareVersionStatusEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalFirmwareVersionStatusEvent { get; set; } + + /// + /// Bluetooth Terminal Update Installation Status + /// + /// Bluetooth Terminal Update Installation Status + [DataMember(Name="KioskBluetoothTerminalInstallationStatusEvent", EmitDefaultValue=false)] + public List KioskBluetoothTerminalInstallationStatusEvent { get; set; } + + /// + /// Push notification scheduled event + /// + /// Push notification scheduled event + [DataMember(Name="PushNotificationScheduledEvent", EmitDefaultValue=false)] + public List PushNotificationScheduledEvent { get; set; } + + /// + /// Push notification sent event + /// + /// Push notification sent event + [DataMember(Name="PushNotificationSentEvent", EmitDefaultValue=false)] + public List PushNotificationSentEvent { get; set; } + + /// + /// Push notification deleted event + /// + /// Push notification deleted event + [DataMember(Name="PushNotificationDeletedEvent", EmitDefaultValue=false)] + public List PushNotificationDeletedEvent { get; set; } + + /// + /// DNS Verified + /// + /// DNS Verified + [DataMember(Name="DnsVerifiedEvent", EmitDefaultValue=false)] + public List DnsVerifiedEvent { get; set; } + + /// + /// Certificate created + /// + /// Certificate created + [DataMember(Name="CertificateCreatedEvent", EmitDefaultValue=false)] + public List CertificateCreatedEvent { get; set; } + + /// + /// Certificate renewed + /// + /// Certificate renewed + [DataMember(Name="CertificateRenewedEvent", EmitDefaultValue=false)] + public List CertificateRenewedEvent { get; set; } + + /// + /// Panacea vanity url updated + /// + /// Panacea vanity url updated + [DataMember(Name="WebsiteVanityUrlUpdatedEvent", EmitDefaultValue=false)] + public List WebsiteVanityUrlUpdatedEvent { get; set; } + + /// + /// Website updated + /// + /// Website updated + [DataMember(Name="WebsiteUpdatedEvent", EmitDefaultValue=false)] + public List WebsiteUpdatedEvent { get; set; } + + /// + /// Order capacity config updated + /// + /// Order capacity config updated + [DataMember(Name="OrderCapacityUpdatedEvent", EmitDefaultValue=false)] + public List OrderCapacityUpdatedEvent { get; set; } + + /// + /// External event + /// + /// External event + [DataMember(Name="ExternalStoreEvent", EmitDefaultValue=false)] + public List ExternalStoreEvent { get; set; } + + /// + /// Fulfillment status updated event + /// + /// Fulfillment status updated event + [DataMember(Name="OrderFulfillmentStatusUpdatedEvent", EmitDefaultValue=false)] + public List OrderFulfillmentStatusUpdatedEvent { get; set; } + + /// + /// App Store Config Created + /// + /// App Store Config Created + [DataMember(Name="AppStoreConfigCreatedEvent", EmitDefaultValue=false)] + public List AppStoreConfigCreatedEvent { get; set; } + + /// + /// App Store Config Updated + /// + /// App Store Config Updated + [DataMember(Name="AppStoreConfigUpdatedEvent", EmitDefaultValue=false)] + public List AppStoreConfigUpdatedEvent { get; set; } + + /// + /// App Store Config Deleted + /// + /// App Store Config Deleted + [DataMember(Name="AppStoreConfigDeletedEvent", EmitDefaultValue=false)] + public List AppStoreConfigDeletedEvent { get; set; } + + /// + /// App Store Subscription Change Job Updated + /// + /// App Store Subscription Change Job Updated + [DataMember(Name="AppStoreSubscriptionChangeJobUpdatedEvent", EmitDefaultValue=false)] + public List AppStoreSubscriptionChangeJobUpdatedEvent { get; set; } + + /// + /// Catalog Item Created + /// + /// Catalog Item Created + [DataMember(Name="CatalogItemCreatedEvent", EmitDefaultValue=false)] + public List CatalogItemCreatedEvent { get; set; } + + /// + /// Catalog Item Updated + /// + /// Catalog Item Updated + [DataMember(Name="CatalogItemUpdatedEvent", EmitDefaultValue=false)] + public List CatalogItemUpdatedEvent { get; set; } + + /// + /// Catalog Item Archived + /// + /// Catalog Item Archived + [DataMember(Name="CatalogItemArchivedEvent", EmitDefaultValue=false)] + public List CatalogItemArchivedEvent { get; set; } + + /// + /// Catalog Group Created + /// + /// Catalog Group Created + [DataMember(Name="CatalogGroupCreatedEvent", EmitDefaultValue=false)] + public List CatalogGroupCreatedEvent { get; set; } + + /// + /// Catalog Group Updated + /// + /// Catalog Group Updated + [DataMember(Name="CatalogGroupUpdatedEvent", EmitDefaultValue=false)] + public List CatalogGroupUpdatedEvent { get; set; } + + /// + /// Catalog Group Archived + /// + /// Catalog Group Archived + [DataMember(Name="CatalogGroupArchivedEvent", EmitDefaultValue=false)] + public List CatalogGroupArchivedEvent { get; set; } + + /// + /// Store Tip Updated Event + /// + /// Store Tip Updated Event + [DataMember(Name="StoreTipUpdatedEvent", EmitDefaultValue=false)] + public List StoreTipUpdatedEvent { get; set; } + + /// + /// LocationArea created event + /// + /// LocationArea created event + [DataMember(Name="LocationAreaCreatedEvent", EmitDefaultValue=false)] + public List LocationAreaCreatedEvent { get; set; } + + /// + /// LocationArea updated event + /// + /// LocationArea updated event + [DataMember(Name="LocationAreaUpdatedEvent", EmitDefaultValue=false)] + public List LocationAreaUpdatedEvent { get; set; } + + /// + /// Location created event + /// + /// Location created event + [DataMember(Name="LocationCreatedEvent", EmitDefaultValue=false)] + public List LocationCreatedEvent { get; set; } + + /// + /// Location deleted event + /// + /// Location deleted event + [DataMember(Name="LocationDeletedEvent", EmitDefaultValue=false)] + public List LocationDeletedEvent { get; set; } + + /// + /// Service Charge Updated Event + /// + /// Service Charge Updated Event + [DataMember(Name="StoreServiceChargeUpdatedEvent", EmitDefaultValue=false)] + public List StoreServiceChargeUpdatedEvent { get; set; } + + /// + /// Mobile Submission Status Updated Event + /// + /// Mobile Submission Status Updated Event + [DataMember(Name="MobileAppsSubmissionStatusUpdatedEvent", EmitDefaultValue=false)] + public List MobileAppsSubmissionStatusUpdatedEvent { get; set; } + + /// + /// Mobile Submission Updated Event + /// + /// Mobile Submission Updated Event + [DataMember(Name="MobileAppsSubmissionUpdatedEvent", EmitDefaultValue=false)] + public List MobileAppsSubmissionUpdatedEvent { get; set; } + + /// + /// Store Fee Config Updated Event + /// + /// Store Fee Config Updated Event + [DataMember(Name="StoreFeeConfigUpdatedEvent", EmitDefaultValue=false)] + public List StoreFeeConfigUpdatedEvent { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class EventSearchResult {\n"); + sb.Append(" AppCreatedEvent: ").Append(AppCreatedEvent).Append("\n"); + sb.Append(" AppUpdatedEvent: ").Append(AppUpdatedEvent).Append("\n"); + sb.Append(" AnalyticsClientEvent: ").Append(AnalyticsClientEvent).Append("\n"); + sb.Append(" OrderAcceptedEvent: ").Append(OrderAcceptedEvent).Append("\n"); + sb.Append(" OrderDispatchedEvent: ").Append(OrderDispatchedEvent).Append("\n"); + sb.Append(" OrderCustomerTrackingCreatedEvent: ").Append(OrderCustomerTrackingCreatedEvent).Append("\n"); + sb.Append(" OrderDeliveryTrackingStatusUpdatedEvent: ").Append(OrderDeliveryTrackingStatusUpdatedEvent).Append("\n"); + sb.Append(" OrderBatchPublishedEvent: ").Append(OrderBatchPublishedEvent).Append("\n"); + sb.Append(" OrderCreatedEvent: ").Append(OrderCreatedEvent).Append("\n"); + sb.Append(" OrderRatingUpdatedEvent: ").Append(OrderRatingUpdatedEvent).Append("\n"); + sb.Append(" OrderRefundedEvent: ").Append(OrderRefundedEvent).Append("\n"); + sb.Append(" OrderRejectedEvent: ").Append(OrderRejectedEvent).Append("\n"); + sb.Append(" OrderTipUpdatedEvent: ").Append(OrderTipUpdatedEvent).Append("\n"); + sb.Append(" OrderTerminalNotifications: ").Append(OrderTerminalNotifications).Append("\n"); + sb.Append(" StoreCreatedEvent: ").Append(StoreCreatedEvent).Append("\n"); + sb.Append(" StoreDeletedEvent: ").Append(StoreDeletedEvent).Append("\n"); + sb.Append(" StoreAddressUpdatedEvent: ").Append(StoreAddressUpdatedEvent).Append("\n"); + sb.Append(" StoreKioskSettingUpdatedEvent: ").Append(StoreKioskSettingUpdatedEvent).Append("\n"); + sb.Append(" DeliveryZoneCreatedEvent: ").Append(DeliveryZoneCreatedEvent).Append("\n"); + sb.Append(" DeliveryZoneUpdatedEvent: ").Append(DeliveryZoneUpdatedEvent).Append("\n"); + sb.Append(" DeliveryZoneDeletedEvent: ").Append(DeliveryZoneDeletedEvent).Append("\n"); + sb.Append(" StoreOpeningHoursUpdatedEvent: ").Append(StoreOpeningHoursUpdatedEvent).Append("\n"); + sb.Append(" StoreMenuAssignedEvent: ").Append(StoreMenuAssignedEvent).Append("\n"); + sb.Append(" StoreBusinessHoursOverrideCreatedEvent: ").Append(StoreBusinessHoursOverrideCreatedEvent).Append("\n"); + sb.Append(" StoreBusinessHoursOverrideDeletedEvent: ").Append(StoreBusinessHoursOverrideDeletedEvent).Append("\n"); + sb.Append(" StoreArchivedEvent: ").Append(StoreArchivedEvent).Append("\n"); + sb.Append(" StoreUnarchivedEvent: ").Append(StoreUnarchivedEvent).Append("\n"); + sb.Append(" StorePublishedEvent: ").Append(StorePublishedEvent).Append("\n"); + sb.Append(" StoreUnpublishedEvent: ").Append(StoreUnpublishedEvent).Append("\n"); + sb.Append(" StoreUpdatedEvent: ").Append(StoreUpdatedEvent).Append("\n"); + sb.Append(" StorePreOrderConfigUpdatedEvent: ").Append(StorePreOrderConfigUpdatedEvent).Append("\n"); + sb.Append(" StoreLogoCreatedEvent: ").Append(StoreLogoCreatedEvent).Append("\n"); + sb.Append(" StoreLogoUpdatedEvent: ").Append(StoreLogoUpdatedEvent).Append("\n"); + sb.Append(" StoreLogoDeletedEvent: ").Append(StoreLogoDeletedEvent).Append("\n"); + sb.Append(" MenuCreatedEvent: ").Append(MenuCreatedEvent).Append("\n"); + sb.Append(" MenuAsyncCreationCompletedEvent: ").Append(MenuAsyncCreationCompletedEvent).Append("\n"); + sb.Append(" MenuUpdatedEvent: ").Append(MenuUpdatedEvent).Append("\n"); + sb.Append(" MenuUploadedEvent: ").Append(MenuUploadedEvent).Append("\n"); + sb.Append(" MenuBulkEditEvent: ").Append(MenuBulkEditEvent).Append("\n"); + sb.Append(" MenuSectionCreatedEvent: ").Append(MenuSectionCreatedEvent).Append("\n"); + sb.Append(" MenuSectionUpdatedEvent: ").Append(MenuSectionUpdatedEvent).Append("\n"); + sb.Append(" MenuSectionDeletedEvent: ").Append(MenuSectionDeletedEvent).Append("\n"); + sb.Append(" MenuSectionItemCreatedEvent: ").Append(MenuSectionItemCreatedEvent).Append("\n"); + sb.Append(" MenuSectionItemUpdatedEvent: ").Append(MenuSectionItemUpdatedEvent).Append("\n"); + sb.Append(" MenuSectionItemDeletedEvent: ").Append(MenuSectionItemDeletedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetCreatedEvent: ").Append(MenuItemOptionSetCreatedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetUpdatedEvent: ").Append(MenuItemOptionSetUpdatedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetDeletedEvent: ").Append(MenuItemOptionSetDeletedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetItemCreatedEvent: ").Append(MenuItemOptionSetItemCreatedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetItemUpdatedEvent: ").Append(MenuItemOptionSetItemUpdatedEvent).Append("\n"); + sb.Append(" MenuItemOptionSetItemDeletedEvent: ").Append(MenuItemOptionSetItemDeletedEvent).Append("\n"); + sb.Append(" MenuCheckpointCreatedEvent: ").Append(MenuCheckpointCreatedEvent).Append("\n"); + sb.Append(" StoreGroupCreatedEvent: ").Append(StoreGroupCreatedEvent).Append("\n"); + sb.Append(" StoreGroupUpdatedEvent: ").Append(StoreGroupUpdatedEvent).Append("\n"); + sb.Append(" StoreGroupDeletedEvent: ").Append(StoreGroupDeletedEvent).Append("\n"); + sb.Append(" CustomerCreatedEvent: ").Append(CustomerCreatedEvent).Append("\n"); + sb.Append(" CustomerUpdatedEvent: ").Append(CustomerUpdatedEvent).Append("\n"); + sb.Append(" CustomerConsentUpdatedEvent: ").Append(CustomerConsentUpdatedEvent).Append("\n"); + sb.Append(" WebhookSubscriptionCreatedEvent: ").Append(WebhookSubscriptionCreatedEvent).Append("\n"); + sb.Append(" WebhookSubscriptionUpdatedEvent: ").Append(WebhookSubscriptionUpdatedEvent).Append("\n"); + sb.Append(" WebhookSubscriptionDeletedEvent: ").Append(WebhookSubscriptionDeletedEvent).Append("\n"); + sb.Append(" PrinterTurnedOnEvent: ").Append(PrinterTurnedOnEvent).Append("\n"); + sb.Append(" PrinterTurnedOffEvent: ").Append(PrinterTurnedOffEvent).Append("\n"); + sb.Append(" PrinterAssignedToStoreEvent: ").Append(PrinterAssignedToStoreEvent).Append("\n"); + sb.Append(" PrinterUnassignedFromStoreEvent: ").Append(PrinterUnassignedFromStoreEvent).Append("\n"); + sb.Append(" PhoneCallStartedEvent: ").Append(PhoneCallStartedEvent).Append("\n"); + sb.Append(" PhoneCallEndedEvent: ").Append(PhoneCallEndedEvent).Append("\n"); + sb.Append(" TelephonyConfigUpdatedEvent: ").Append(TelephonyConfigUpdatedEvent).Append("\n"); + sb.Append(" ChannelStoresUpdatedEvent: ").Append(ChannelStoresUpdatedEvent).Append("\n"); + sb.Append(" LoyaltyCampaignCreatedEvent: ").Append(LoyaltyCampaignCreatedEvent).Append("\n"); + sb.Append(" LoyaltyCampaignDeletedEvent: ").Append(LoyaltyCampaignDeletedEvent).Append("\n"); + sb.Append(" LoyaltyCampaignUpdatedEvent: ").Append(LoyaltyCampaignUpdatedEvent).Append("\n"); + sb.Append(" RetentionCampaignCreatedEvent: ").Append(RetentionCampaignCreatedEvent).Append("\n"); + sb.Append(" RetentionCampaignDeletedEvent: ").Append(RetentionCampaignDeletedEvent).Append("\n"); + sb.Append(" RetentionCampaignUpdatedEvent: ").Append(RetentionCampaignUpdatedEvent).Append("\n"); + sb.Append(" SmsReceivedEvent: ").Append(SmsReceivedEvent).Append("\n"); + sb.Append(" UserLoginEvent: ").Append(UserLoginEvent).Append("\n"); + sb.Append(" UserCreatedEvent: ").Append(UserCreatedEvent).Append("\n"); + sb.Append(" UserUpdatedEvent: ").Append(UserUpdatedEvent).Append("\n"); + sb.Append(" UserDeletedEvent: ").Append(UserDeletedEvent).Append("\n"); + sb.Append(" UserCreatedPasswordEvent: ").Append(UserCreatedPasswordEvent).Append("\n"); + sb.Append(" UserAnsweredSignupQuestionsEvent: ").Append(UserAnsweredSignupQuestionsEvent).Append("\n"); + sb.Append(" VoucherCreatedEvent: ").Append(VoucherCreatedEvent).Append("\n"); + sb.Append(" VoucherUpdatedEvent: ").Append(VoucherUpdatedEvent).Append("\n"); + sb.Append(" VoucherDeletedEvent: ").Append(VoucherDeletedEvent).Append("\n"); + sb.Append(" VoucherAppliedEvent: ").Append(VoucherAppliedEvent).Append("\n"); + sb.Append(" TeammateInviteSentEvent: ").Append(TeammateInviteSentEvent).Append("\n"); + sb.Append(" TeammateInviteAcceptedEvent: ").Append(TeammateInviteAcceptedEvent).Append("\n"); + sb.Append(" TeammateUpdatedEvent: ").Append(TeammateUpdatedEvent).Append("\n"); + sb.Append(" TeammateDeletedEvent: ").Append(TeammateDeletedEvent).Append("\n"); + sb.Append(" BankAccountCreatedEvent: ").Append(BankAccountCreatedEvent).Append("\n"); + sb.Append(" BankAccountUpdatedEvent: ").Append(BankAccountUpdatedEvent).Append("\n"); + sb.Append(" BankAccountDeletedEvent: ").Append(BankAccountDeletedEvent).Append("\n"); + sb.Append(" BankAccountAssignedEvent: ").Append(BankAccountAssignedEvent).Append("\n"); + sb.Append(" HydraAssignedEvent: ").Append(HydraAssignedEvent).Append("\n"); + sb.Append(" HydraCreatedEvent: ").Append(HydraCreatedEvent).Append("\n"); + sb.Append(" HydraRequestResetEvent: ").Append(HydraRequestResetEvent).Append("\n"); + sb.Append(" HydraStoreAssignedEvent: ").Append(HydraStoreAssignedEvent).Append("\n"); + sb.Append(" HydraStoreUnassignedEvent: ").Append(HydraStoreUnassignedEvent).Append("\n"); + sb.Append(" HydraSettingChangedEvent: ").Append(HydraSettingChangedEvent).Append("\n"); + sb.Append(" HydraUnAssignedEvent: ").Append(HydraUnAssignedEvent).Append("\n"); + sb.Append(" HydraConnectionStatusChangedEvent: ").Append(HydraConnectionStatusChangedEvent).Append("\n"); + sb.Append(" KioskBluetoothPairingModeEvent: ").Append(KioskBluetoothPairingModeEvent).Append("\n"); + sb.Append(" KioskBluetoothUnpairingModeEvent: ").Append(KioskBluetoothUnpairingModeEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalUnpairedEvent: ").Append(KioskBluetoothTerminalUnpairedEvent).Append("\n"); + sb.Append(" KioskTerminalActionStateChangedEvent: ").Append(KioskTerminalActionStateChangedEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalUpdatedEvent: ").Append(KioskBluetoothTerminalUpdatedEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalInitiateUpdateCheckEvent: ").Append(KioskBluetoothTerminalInitiateUpdateCheckEvent).Append("\n"); + sb.Append(" KioskBluetoothInstallUpdateInitiateEvent: ").Append(KioskBluetoothInstallUpdateInitiateEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalCancelUpdateEvent: ").Append(KioskBluetoothTerminalCancelUpdateEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalFirmwareVersionStatusEvent: ").Append(KioskBluetoothTerminalFirmwareVersionStatusEvent).Append("\n"); + sb.Append(" KioskBluetoothTerminalInstallationStatusEvent: ").Append(KioskBluetoothTerminalInstallationStatusEvent).Append("\n"); + sb.Append(" PushNotificationScheduledEvent: ").Append(PushNotificationScheduledEvent).Append("\n"); + sb.Append(" PushNotificationSentEvent: ").Append(PushNotificationSentEvent).Append("\n"); + sb.Append(" PushNotificationDeletedEvent: ").Append(PushNotificationDeletedEvent).Append("\n"); + sb.Append(" DnsVerifiedEvent: ").Append(DnsVerifiedEvent).Append("\n"); + sb.Append(" CertificateCreatedEvent: ").Append(CertificateCreatedEvent).Append("\n"); + sb.Append(" CertificateRenewedEvent: ").Append(CertificateRenewedEvent).Append("\n"); + sb.Append(" WebsiteVanityUrlUpdatedEvent: ").Append(WebsiteVanityUrlUpdatedEvent).Append("\n"); + sb.Append(" WebsiteUpdatedEvent: ").Append(WebsiteUpdatedEvent).Append("\n"); + sb.Append(" OrderCapacityUpdatedEvent: ").Append(OrderCapacityUpdatedEvent).Append("\n"); + sb.Append(" ExternalStoreEvent: ").Append(ExternalStoreEvent).Append("\n"); + sb.Append(" OrderFulfillmentStatusUpdatedEvent: ").Append(OrderFulfillmentStatusUpdatedEvent).Append("\n"); + sb.Append(" AppStoreConfigCreatedEvent: ").Append(AppStoreConfigCreatedEvent).Append("\n"); + sb.Append(" AppStoreConfigUpdatedEvent: ").Append(AppStoreConfigUpdatedEvent).Append("\n"); + sb.Append(" AppStoreConfigDeletedEvent: ").Append(AppStoreConfigDeletedEvent).Append("\n"); + sb.Append(" AppStoreSubscriptionChangeJobUpdatedEvent: ").Append(AppStoreSubscriptionChangeJobUpdatedEvent).Append("\n"); + sb.Append(" CatalogItemCreatedEvent: ").Append(CatalogItemCreatedEvent).Append("\n"); + sb.Append(" CatalogItemUpdatedEvent: ").Append(CatalogItemUpdatedEvent).Append("\n"); + sb.Append(" CatalogItemArchivedEvent: ").Append(CatalogItemArchivedEvent).Append("\n"); + sb.Append(" CatalogGroupCreatedEvent: ").Append(CatalogGroupCreatedEvent).Append("\n"); + sb.Append(" CatalogGroupUpdatedEvent: ").Append(CatalogGroupUpdatedEvent).Append("\n"); + sb.Append(" CatalogGroupArchivedEvent: ").Append(CatalogGroupArchivedEvent).Append("\n"); + sb.Append(" StoreTipUpdatedEvent: ").Append(StoreTipUpdatedEvent).Append("\n"); + sb.Append(" LocationAreaCreatedEvent: ").Append(LocationAreaCreatedEvent).Append("\n"); + sb.Append(" LocationAreaUpdatedEvent: ").Append(LocationAreaUpdatedEvent).Append("\n"); + sb.Append(" LocationCreatedEvent: ").Append(LocationCreatedEvent).Append("\n"); + sb.Append(" LocationDeletedEvent: ").Append(LocationDeletedEvent).Append("\n"); + sb.Append(" StoreServiceChargeUpdatedEvent: ").Append(StoreServiceChargeUpdatedEvent).Append("\n"); + sb.Append(" MobileAppsSubmissionStatusUpdatedEvent: ").Append(MobileAppsSubmissionStatusUpdatedEvent).Append("\n"); + sb.Append(" MobileAppsSubmissionUpdatedEvent: ").Append(MobileAppsSubmissionUpdatedEvent).Append("\n"); + sb.Append(" StoreFeeConfigUpdatedEvent: ").Append(StoreFeeConfigUpdatedEvent).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EventSearchResult); + } + + /// + /// Returns true if EventSearchResult instances are equal + /// + /// Instance of EventSearchResult to be compared + /// Boolean + public bool Equals(EventSearchResult input) + { + if (input == null) + return false; + + return + ( + this.AppCreatedEvent == input.AppCreatedEvent || + this.AppCreatedEvent != null && + this.AppCreatedEvent.SequenceEqual(input.AppCreatedEvent) + ) && + ( + this.AppUpdatedEvent == input.AppUpdatedEvent || + this.AppUpdatedEvent != null && + this.AppUpdatedEvent.SequenceEqual(input.AppUpdatedEvent) + ) && + ( + this.AnalyticsClientEvent == input.AnalyticsClientEvent || + this.AnalyticsClientEvent != null && + this.AnalyticsClientEvent.SequenceEqual(input.AnalyticsClientEvent) + ) && + ( + this.OrderAcceptedEvent == input.OrderAcceptedEvent || + this.OrderAcceptedEvent != null && + this.OrderAcceptedEvent.SequenceEqual(input.OrderAcceptedEvent) + ) && + ( + this.OrderDispatchedEvent == input.OrderDispatchedEvent || + this.OrderDispatchedEvent != null && + this.OrderDispatchedEvent.SequenceEqual(input.OrderDispatchedEvent) + ) && + ( + this.OrderCustomerTrackingCreatedEvent == input.OrderCustomerTrackingCreatedEvent || + this.OrderCustomerTrackingCreatedEvent != null && + this.OrderCustomerTrackingCreatedEvent.SequenceEqual(input.OrderCustomerTrackingCreatedEvent) + ) && + ( + this.OrderDeliveryTrackingStatusUpdatedEvent == input.OrderDeliveryTrackingStatusUpdatedEvent || + this.OrderDeliveryTrackingStatusUpdatedEvent != null && + this.OrderDeliveryTrackingStatusUpdatedEvent.SequenceEqual(input.OrderDeliveryTrackingStatusUpdatedEvent) + ) && + ( + this.OrderBatchPublishedEvent == input.OrderBatchPublishedEvent || + this.OrderBatchPublishedEvent != null && + this.OrderBatchPublishedEvent.SequenceEqual(input.OrderBatchPublishedEvent) + ) && + ( + this.OrderCreatedEvent == input.OrderCreatedEvent || + this.OrderCreatedEvent != null && + this.OrderCreatedEvent.SequenceEqual(input.OrderCreatedEvent) + ) && + ( + this.OrderRatingUpdatedEvent == input.OrderRatingUpdatedEvent || + this.OrderRatingUpdatedEvent != null && + this.OrderRatingUpdatedEvent.SequenceEqual(input.OrderRatingUpdatedEvent) + ) && + ( + this.OrderRefundedEvent == input.OrderRefundedEvent || + this.OrderRefundedEvent != null && + this.OrderRefundedEvent.SequenceEqual(input.OrderRefundedEvent) + ) && + ( + this.OrderRejectedEvent == input.OrderRejectedEvent || + this.OrderRejectedEvent != null && + this.OrderRejectedEvent.SequenceEqual(input.OrderRejectedEvent) + ) && + ( + this.OrderTipUpdatedEvent == input.OrderTipUpdatedEvent || + this.OrderTipUpdatedEvent != null && + this.OrderTipUpdatedEvent.SequenceEqual(input.OrderTipUpdatedEvent) + ) && + ( + this.OrderTerminalNotifications == input.OrderTerminalNotifications || + this.OrderTerminalNotifications != null && + this.OrderTerminalNotifications.SequenceEqual(input.OrderTerminalNotifications) + ) && + ( + this.StoreCreatedEvent == input.StoreCreatedEvent || + this.StoreCreatedEvent != null && + this.StoreCreatedEvent.SequenceEqual(input.StoreCreatedEvent) + ) && + ( + this.StoreDeletedEvent == input.StoreDeletedEvent || + this.StoreDeletedEvent != null && + this.StoreDeletedEvent.SequenceEqual(input.StoreDeletedEvent) + ) && + ( + this.StoreAddressUpdatedEvent == input.StoreAddressUpdatedEvent || + this.StoreAddressUpdatedEvent != null && + this.StoreAddressUpdatedEvent.SequenceEqual(input.StoreAddressUpdatedEvent) + ) && + ( + this.StoreKioskSettingUpdatedEvent == input.StoreKioskSettingUpdatedEvent || + this.StoreKioskSettingUpdatedEvent != null && + this.StoreKioskSettingUpdatedEvent.SequenceEqual(input.StoreKioskSettingUpdatedEvent) + ) && + ( + this.DeliveryZoneCreatedEvent == input.DeliveryZoneCreatedEvent || + this.DeliveryZoneCreatedEvent != null && + this.DeliveryZoneCreatedEvent.SequenceEqual(input.DeliveryZoneCreatedEvent) + ) && + ( + this.DeliveryZoneUpdatedEvent == input.DeliveryZoneUpdatedEvent || + this.DeliveryZoneUpdatedEvent != null && + this.DeliveryZoneUpdatedEvent.SequenceEqual(input.DeliveryZoneUpdatedEvent) + ) && + ( + this.DeliveryZoneDeletedEvent == input.DeliveryZoneDeletedEvent || + this.DeliveryZoneDeletedEvent != null && + this.DeliveryZoneDeletedEvent.SequenceEqual(input.DeliveryZoneDeletedEvent) + ) && + ( + this.StoreOpeningHoursUpdatedEvent == input.StoreOpeningHoursUpdatedEvent || + this.StoreOpeningHoursUpdatedEvent != null && + this.StoreOpeningHoursUpdatedEvent.SequenceEqual(input.StoreOpeningHoursUpdatedEvent) + ) && + ( + this.StoreMenuAssignedEvent == input.StoreMenuAssignedEvent || + this.StoreMenuAssignedEvent != null && + this.StoreMenuAssignedEvent.SequenceEqual(input.StoreMenuAssignedEvent) + ) && + ( + this.StoreBusinessHoursOverrideCreatedEvent == input.StoreBusinessHoursOverrideCreatedEvent || + this.StoreBusinessHoursOverrideCreatedEvent != null && + this.StoreBusinessHoursOverrideCreatedEvent.SequenceEqual(input.StoreBusinessHoursOverrideCreatedEvent) + ) && + ( + this.StoreBusinessHoursOverrideDeletedEvent == input.StoreBusinessHoursOverrideDeletedEvent || + this.StoreBusinessHoursOverrideDeletedEvent != null && + this.StoreBusinessHoursOverrideDeletedEvent.SequenceEqual(input.StoreBusinessHoursOverrideDeletedEvent) + ) && + ( + this.StoreArchivedEvent == input.StoreArchivedEvent || + this.StoreArchivedEvent != null && + this.StoreArchivedEvent.SequenceEqual(input.StoreArchivedEvent) + ) && + ( + this.StoreUnarchivedEvent == input.StoreUnarchivedEvent || + this.StoreUnarchivedEvent != null && + this.StoreUnarchivedEvent.SequenceEqual(input.StoreUnarchivedEvent) + ) && + ( + this.StorePublishedEvent == input.StorePublishedEvent || + this.StorePublishedEvent != null && + this.StorePublishedEvent.SequenceEqual(input.StorePublishedEvent) + ) && + ( + this.StoreUnpublishedEvent == input.StoreUnpublishedEvent || + this.StoreUnpublishedEvent != null && + this.StoreUnpublishedEvent.SequenceEqual(input.StoreUnpublishedEvent) + ) && + ( + this.StoreUpdatedEvent == input.StoreUpdatedEvent || + this.StoreUpdatedEvent != null && + this.StoreUpdatedEvent.SequenceEqual(input.StoreUpdatedEvent) + ) && + ( + this.StorePreOrderConfigUpdatedEvent == input.StorePreOrderConfigUpdatedEvent || + this.StorePreOrderConfigUpdatedEvent != null && + this.StorePreOrderConfigUpdatedEvent.SequenceEqual(input.StorePreOrderConfigUpdatedEvent) + ) && + ( + this.StoreLogoCreatedEvent == input.StoreLogoCreatedEvent || + this.StoreLogoCreatedEvent != null && + this.StoreLogoCreatedEvent.SequenceEqual(input.StoreLogoCreatedEvent) + ) && + ( + this.StoreLogoUpdatedEvent == input.StoreLogoUpdatedEvent || + this.StoreLogoUpdatedEvent != null && + this.StoreLogoUpdatedEvent.SequenceEqual(input.StoreLogoUpdatedEvent) + ) && + ( + this.StoreLogoDeletedEvent == input.StoreLogoDeletedEvent || + this.StoreLogoDeletedEvent != null && + this.StoreLogoDeletedEvent.SequenceEqual(input.StoreLogoDeletedEvent) + ) && + ( + this.MenuCreatedEvent == input.MenuCreatedEvent || + this.MenuCreatedEvent != null && + this.MenuCreatedEvent.SequenceEqual(input.MenuCreatedEvent) + ) && + ( + this.MenuAsyncCreationCompletedEvent == input.MenuAsyncCreationCompletedEvent || + this.MenuAsyncCreationCompletedEvent != null && + this.MenuAsyncCreationCompletedEvent.SequenceEqual(input.MenuAsyncCreationCompletedEvent) + ) && + ( + this.MenuUpdatedEvent == input.MenuUpdatedEvent || + this.MenuUpdatedEvent != null && + this.MenuUpdatedEvent.SequenceEqual(input.MenuUpdatedEvent) + ) && + ( + this.MenuUploadedEvent == input.MenuUploadedEvent || + this.MenuUploadedEvent != null && + this.MenuUploadedEvent.SequenceEqual(input.MenuUploadedEvent) + ) && + ( + this.MenuBulkEditEvent == input.MenuBulkEditEvent || + this.MenuBulkEditEvent != null && + this.MenuBulkEditEvent.SequenceEqual(input.MenuBulkEditEvent) + ) && + ( + this.MenuSectionCreatedEvent == input.MenuSectionCreatedEvent || + this.MenuSectionCreatedEvent != null && + this.MenuSectionCreatedEvent.SequenceEqual(input.MenuSectionCreatedEvent) + ) && + ( + this.MenuSectionUpdatedEvent == input.MenuSectionUpdatedEvent || + this.MenuSectionUpdatedEvent != null && + this.MenuSectionUpdatedEvent.SequenceEqual(input.MenuSectionUpdatedEvent) + ) && + ( + this.MenuSectionDeletedEvent == input.MenuSectionDeletedEvent || + this.MenuSectionDeletedEvent != null && + this.MenuSectionDeletedEvent.SequenceEqual(input.MenuSectionDeletedEvent) + ) && + ( + this.MenuSectionItemCreatedEvent == input.MenuSectionItemCreatedEvent || + this.MenuSectionItemCreatedEvent != null && + this.MenuSectionItemCreatedEvent.SequenceEqual(input.MenuSectionItemCreatedEvent) + ) && + ( + this.MenuSectionItemUpdatedEvent == input.MenuSectionItemUpdatedEvent || + this.MenuSectionItemUpdatedEvent != null && + this.MenuSectionItemUpdatedEvent.SequenceEqual(input.MenuSectionItemUpdatedEvent) + ) && + ( + this.MenuSectionItemDeletedEvent == input.MenuSectionItemDeletedEvent || + this.MenuSectionItemDeletedEvent != null && + this.MenuSectionItemDeletedEvent.SequenceEqual(input.MenuSectionItemDeletedEvent) + ) && + ( + this.MenuItemOptionSetCreatedEvent == input.MenuItemOptionSetCreatedEvent || + this.MenuItemOptionSetCreatedEvent != null && + this.MenuItemOptionSetCreatedEvent.SequenceEqual(input.MenuItemOptionSetCreatedEvent) + ) && + ( + this.MenuItemOptionSetUpdatedEvent == input.MenuItemOptionSetUpdatedEvent || + this.MenuItemOptionSetUpdatedEvent != null && + this.MenuItemOptionSetUpdatedEvent.SequenceEqual(input.MenuItemOptionSetUpdatedEvent) + ) && + ( + this.MenuItemOptionSetDeletedEvent == input.MenuItemOptionSetDeletedEvent || + this.MenuItemOptionSetDeletedEvent != null && + this.MenuItemOptionSetDeletedEvent.SequenceEqual(input.MenuItemOptionSetDeletedEvent) + ) && + ( + this.MenuItemOptionSetItemCreatedEvent == input.MenuItemOptionSetItemCreatedEvent || + this.MenuItemOptionSetItemCreatedEvent != null && + this.MenuItemOptionSetItemCreatedEvent.SequenceEqual(input.MenuItemOptionSetItemCreatedEvent) + ) && + ( + this.MenuItemOptionSetItemUpdatedEvent == input.MenuItemOptionSetItemUpdatedEvent || + this.MenuItemOptionSetItemUpdatedEvent != null && + this.MenuItemOptionSetItemUpdatedEvent.SequenceEqual(input.MenuItemOptionSetItemUpdatedEvent) + ) && + ( + this.MenuItemOptionSetItemDeletedEvent == input.MenuItemOptionSetItemDeletedEvent || + this.MenuItemOptionSetItemDeletedEvent != null && + this.MenuItemOptionSetItemDeletedEvent.SequenceEqual(input.MenuItemOptionSetItemDeletedEvent) + ) && + ( + this.MenuCheckpointCreatedEvent == input.MenuCheckpointCreatedEvent || + this.MenuCheckpointCreatedEvent != null && + this.MenuCheckpointCreatedEvent.SequenceEqual(input.MenuCheckpointCreatedEvent) + ) && + ( + this.StoreGroupCreatedEvent == input.StoreGroupCreatedEvent || + this.StoreGroupCreatedEvent != null && + this.StoreGroupCreatedEvent.SequenceEqual(input.StoreGroupCreatedEvent) + ) && + ( + this.StoreGroupUpdatedEvent == input.StoreGroupUpdatedEvent || + this.StoreGroupUpdatedEvent != null && + this.StoreGroupUpdatedEvent.SequenceEqual(input.StoreGroupUpdatedEvent) + ) && + ( + this.StoreGroupDeletedEvent == input.StoreGroupDeletedEvent || + this.StoreGroupDeletedEvent != null && + this.StoreGroupDeletedEvent.SequenceEqual(input.StoreGroupDeletedEvent) + ) && + ( + this.CustomerCreatedEvent == input.CustomerCreatedEvent || + this.CustomerCreatedEvent != null && + this.CustomerCreatedEvent.SequenceEqual(input.CustomerCreatedEvent) + ) && + ( + this.CustomerUpdatedEvent == input.CustomerUpdatedEvent || + this.CustomerUpdatedEvent != null && + this.CustomerUpdatedEvent.SequenceEqual(input.CustomerUpdatedEvent) + ) && + ( + this.CustomerConsentUpdatedEvent == input.CustomerConsentUpdatedEvent || + this.CustomerConsentUpdatedEvent != null && + this.CustomerConsentUpdatedEvent.SequenceEqual(input.CustomerConsentUpdatedEvent) + ) && + ( + this.WebhookSubscriptionCreatedEvent == input.WebhookSubscriptionCreatedEvent || + this.WebhookSubscriptionCreatedEvent != null && + this.WebhookSubscriptionCreatedEvent.SequenceEqual(input.WebhookSubscriptionCreatedEvent) + ) && + ( + this.WebhookSubscriptionUpdatedEvent == input.WebhookSubscriptionUpdatedEvent || + this.WebhookSubscriptionUpdatedEvent != null && + this.WebhookSubscriptionUpdatedEvent.SequenceEqual(input.WebhookSubscriptionUpdatedEvent) + ) && + ( + this.WebhookSubscriptionDeletedEvent == input.WebhookSubscriptionDeletedEvent || + this.WebhookSubscriptionDeletedEvent != null && + this.WebhookSubscriptionDeletedEvent.SequenceEqual(input.WebhookSubscriptionDeletedEvent) + ) && + ( + this.PrinterTurnedOnEvent == input.PrinterTurnedOnEvent || + this.PrinterTurnedOnEvent != null && + this.PrinterTurnedOnEvent.SequenceEqual(input.PrinterTurnedOnEvent) + ) && + ( + this.PrinterTurnedOffEvent == input.PrinterTurnedOffEvent || + this.PrinterTurnedOffEvent != null && + this.PrinterTurnedOffEvent.SequenceEqual(input.PrinterTurnedOffEvent) + ) && + ( + this.PrinterAssignedToStoreEvent == input.PrinterAssignedToStoreEvent || + this.PrinterAssignedToStoreEvent != null && + this.PrinterAssignedToStoreEvent.SequenceEqual(input.PrinterAssignedToStoreEvent) + ) && + ( + this.PrinterUnassignedFromStoreEvent == input.PrinterUnassignedFromStoreEvent || + this.PrinterUnassignedFromStoreEvent != null && + this.PrinterUnassignedFromStoreEvent.SequenceEqual(input.PrinterUnassignedFromStoreEvent) + ) && + ( + this.PhoneCallStartedEvent == input.PhoneCallStartedEvent || + this.PhoneCallStartedEvent != null && + this.PhoneCallStartedEvent.SequenceEqual(input.PhoneCallStartedEvent) + ) && + ( + this.PhoneCallEndedEvent == input.PhoneCallEndedEvent || + this.PhoneCallEndedEvent != null && + this.PhoneCallEndedEvent.SequenceEqual(input.PhoneCallEndedEvent) + ) && + ( + this.TelephonyConfigUpdatedEvent == input.TelephonyConfigUpdatedEvent || + this.TelephonyConfigUpdatedEvent != null && + this.TelephonyConfigUpdatedEvent.SequenceEqual(input.TelephonyConfigUpdatedEvent) + ) && + ( + this.ChannelStoresUpdatedEvent == input.ChannelStoresUpdatedEvent || + this.ChannelStoresUpdatedEvent != null && + this.ChannelStoresUpdatedEvent.SequenceEqual(input.ChannelStoresUpdatedEvent) + ) && + ( + this.LoyaltyCampaignCreatedEvent == input.LoyaltyCampaignCreatedEvent || + this.LoyaltyCampaignCreatedEvent != null && + this.LoyaltyCampaignCreatedEvent.SequenceEqual(input.LoyaltyCampaignCreatedEvent) + ) && + ( + this.LoyaltyCampaignDeletedEvent == input.LoyaltyCampaignDeletedEvent || + this.LoyaltyCampaignDeletedEvent != null && + this.LoyaltyCampaignDeletedEvent.SequenceEqual(input.LoyaltyCampaignDeletedEvent) + ) && + ( + this.LoyaltyCampaignUpdatedEvent == input.LoyaltyCampaignUpdatedEvent || + this.LoyaltyCampaignUpdatedEvent != null && + this.LoyaltyCampaignUpdatedEvent.SequenceEqual(input.LoyaltyCampaignUpdatedEvent) + ) && + ( + this.RetentionCampaignCreatedEvent == input.RetentionCampaignCreatedEvent || + this.RetentionCampaignCreatedEvent != null && + this.RetentionCampaignCreatedEvent.SequenceEqual(input.RetentionCampaignCreatedEvent) + ) && + ( + this.RetentionCampaignDeletedEvent == input.RetentionCampaignDeletedEvent || + this.RetentionCampaignDeletedEvent != null && + this.RetentionCampaignDeletedEvent.SequenceEqual(input.RetentionCampaignDeletedEvent) + ) && + ( + this.RetentionCampaignUpdatedEvent == input.RetentionCampaignUpdatedEvent || + this.RetentionCampaignUpdatedEvent != null && + this.RetentionCampaignUpdatedEvent.SequenceEqual(input.RetentionCampaignUpdatedEvent) + ) && + ( + this.SmsReceivedEvent == input.SmsReceivedEvent || + this.SmsReceivedEvent != null && + this.SmsReceivedEvent.SequenceEqual(input.SmsReceivedEvent) + ) && + ( + this.UserLoginEvent == input.UserLoginEvent || + this.UserLoginEvent != null && + this.UserLoginEvent.SequenceEqual(input.UserLoginEvent) + ) && + ( + this.UserCreatedEvent == input.UserCreatedEvent || + this.UserCreatedEvent != null && + this.UserCreatedEvent.SequenceEqual(input.UserCreatedEvent) + ) && + ( + this.UserUpdatedEvent == input.UserUpdatedEvent || + this.UserUpdatedEvent != null && + this.UserUpdatedEvent.SequenceEqual(input.UserUpdatedEvent) + ) && + ( + this.UserDeletedEvent == input.UserDeletedEvent || + this.UserDeletedEvent != null && + this.UserDeletedEvent.SequenceEqual(input.UserDeletedEvent) + ) && + ( + this.UserCreatedPasswordEvent == input.UserCreatedPasswordEvent || + this.UserCreatedPasswordEvent != null && + this.UserCreatedPasswordEvent.SequenceEqual(input.UserCreatedPasswordEvent) + ) && + ( + this.UserAnsweredSignupQuestionsEvent == input.UserAnsweredSignupQuestionsEvent || + this.UserAnsweredSignupQuestionsEvent != null && + this.UserAnsweredSignupQuestionsEvent.SequenceEqual(input.UserAnsweredSignupQuestionsEvent) + ) && + ( + this.VoucherCreatedEvent == input.VoucherCreatedEvent || + this.VoucherCreatedEvent != null && + this.VoucherCreatedEvent.SequenceEqual(input.VoucherCreatedEvent) + ) && + ( + this.VoucherUpdatedEvent == input.VoucherUpdatedEvent || + this.VoucherUpdatedEvent != null && + this.VoucherUpdatedEvent.SequenceEqual(input.VoucherUpdatedEvent) + ) && + ( + this.VoucherDeletedEvent == input.VoucherDeletedEvent || + this.VoucherDeletedEvent != null && + this.VoucherDeletedEvent.SequenceEqual(input.VoucherDeletedEvent) + ) && + ( + this.VoucherAppliedEvent == input.VoucherAppliedEvent || + this.VoucherAppliedEvent != null && + this.VoucherAppliedEvent.SequenceEqual(input.VoucherAppliedEvent) + ) && + ( + this.TeammateInviteSentEvent == input.TeammateInviteSentEvent || + this.TeammateInviteSentEvent != null && + this.TeammateInviteSentEvent.SequenceEqual(input.TeammateInviteSentEvent) + ) && + ( + this.TeammateInviteAcceptedEvent == input.TeammateInviteAcceptedEvent || + this.TeammateInviteAcceptedEvent != null && + this.TeammateInviteAcceptedEvent.SequenceEqual(input.TeammateInviteAcceptedEvent) + ) && + ( + this.TeammateUpdatedEvent == input.TeammateUpdatedEvent || + this.TeammateUpdatedEvent != null && + this.TeammateUpdatedEvent.SequenceEqual(input.TeammateUpdatedEvent) + ) && + ( + this.TeammateDeletedEvent == input.TeammateDeletedEvent || + this.TeammateDeletedEvent != null && + this.TeammateDeletedEvent.SequenceEqual(input.TeammateDeletedEvent) + ) && + ( + this.BankAccountCreatedEvent == input.BankAccountCreatedEvent || + this.BankAccountCreatedEvent != null && + this.BankAccountCreatedEvent.SequenceEqual(input.BankAccountCreatedEvent) + ) && + ( + this.BankAccountUpdatedEvent == input.BankAccountUpdatedEvent || + this.BankAccountUpdatedEvent != null && + this.BankAccountUpdatedEvent.SequenceEqual(input.BankAccountUpdatedEvent) + ) && + ( + this.BankAccountDeletedEvent == input.BankAccountDeletedEvent || + this.BankAccountDeletedEvent != null && + this.BankAccountDeletedEvent.SequenceEqual(input.BankAccountDeletedEvent) + ) && + ( + this.BankAccountAssignedEvent == input.BankAccountAssignedEvent || + this.BankAccountAssignedEvent != null && + this.BankAccountAssignedEvent.SequenceEqual(input.BankAccountAssignedEvent) + ) && + ( + this.HydraAssignedEvent == input.HydraAssignedEvent || + this.HydraAssignedEvent != null && + this.HydraAssignedEvent.SequenceEqual(input.HydraAssignedEvent) + ) && + ( + this.HydraCreatedEvent == input.HydraCreatedEvent || + this.HydraCreatedEvent != null && + this.HydraCreatedEvent.SequenceEqual(input.HydraCreatedEvent) + ) && + ( + this.HydraRequestResetEvent == input.HydraRequestResetEvent || + this.HydraRequestResetEvent != null && + this.HydraRequestResetEvent.SequenceEqual(input.HydraRequestResetEvent) + ) && + ( + this.HydraStoreAssignedEvent == input.HydraStoreAssignedEvent || + this.HydraStoreAssignedEvent != null && + this.HydraStoreAssignedEvent.SequenceEqual(input.HydraStoreAssignedEvent) + ) && + ( + this.HydraStoreUnassignedEvent == input.HydraStoreUnassignedEvent || + this.HydraStoreUnassignedEvent != null && + this.HydraStoreUnassignedEvent.SequenceEqual(input.HydraStoreUnassignedEvent) + ) && + ( + this.HydraSettingChangedEvent == input.HydraSettingChangedEvent || + this.HydraSettingChangedEvent != null && + this.HydraSettingChangedEvent.SequenceEqual(input.HydraSettingChangedEvent) + ) && + ( + this.HydraUnAssignedEvent == input.HydraUnAssignedEvent || + this.HydraUnAssignedEvent != null && + this.HydraUnAssignedEvent.SequenceEqual(input.HydraUnAssignedEvent) + ) && + ( + this.HydraConnectionStatusChangedEvent == input.HydraConnectionStatusChangedEvent || + this.HydraConnectionStatusChangedEvent != null && + this.HydraConnectionStatusChangedEvent.SequenceEqual(input.HydraConnectionStatusChangedEvent) + ) && + ( + this.KioskBluetoothPairingModeEvent == input.KioskBluetoothPairingModeEvent || + this.KioskBluetoothPairingModeEvent != null && + this.KioskBluetoothPairingModeEvent.SequenceEqual(input.KioskBluetoothPairingModeEvent) + ) && + ( + this.KioskBluetoothUnpairingModeEvent == input.KioskBluetoothUnpairingModeEvent || + this.KioskBluetoothUnpairingModeEvent != null && + this.KioskBluetoothUnpairingModeEvent.SequenceEqual(input.KioskBluetoothUnpairingModeEvent) + ) && + ( + this.KioskBluetoothTerminalUnpairedEvent == input.KioskBluetoothTerminalUnpairedEvent || + this.KioskBluetoothTerminalUnpairedEvent != null && + this.KioskBluetoothTerminalUnpairedEvent.SequenceEqual(input.KioskBluetoothTerminalUnpairedEvent) + ) && + ( + this.KioskTerminalActionStateChangedEvent == input.KioskTerminalActionStateChangedEvent || + this.KioskTerminalActionStateChangedEvent != null && + this.KioskTerminalActionStateChangedEvent.SequenceEqual(input.KioskTerminalActionStateChangedEvent) + ) && + ( + this.KioskBluetoothTerminalUpdatedEvent == input.KioskBluetoothTerminalUpdatedEvent || + this.KioskBluetoothTerminalUpdatedEvent != null && + this.KioskBluetoothTerminalUpdatedEvent.SequenceEqual(input.KioskBluetoothTerminalUpdatedEvent) + ) && + ( + this.KioskBluetoothTerminalInitiateUpdateCheckEvent == input.KioskBluetoothTerminalInitiateUpdateCheckEvent || + this.KioskBluetoothTerminalInitiateUpdateCheckEvent != null && + this.KioskBluetoothTerminalInitiateUpdateCheckEvent.SequenceEqual(input.KioskBluetoothTerminalInitiateUpdateCheckEvent) + ) && + ( + this.KioskBluetoothInstallUpdateInitiateEvent == input.KioskBluetoothInstallUpdateInitiateEvent || + this.KioskBluetoothInstallUpdateInitiateEvent != null && + this.KioskBluetoothInstallUpdateInitiateEvent.SequenceEqual(input.KioskBluetoothInstallUpdateInitiateEvent) + ) && + ( + this.KioskBluetoothTerminalCancelUpdateEvent == input.KioskBluetoothTerminalCancelUpdateEvent || + this.KioskBluetoothTerminalCancelUpdateEvent != null && + this.KioskBluetoothTerminalCancelUpdateEvent.SequenceEqual(input.KioskBluetoothTerminalCancelUpdateEvent) + ) && + ( + this.KioskBluetoothTerminalFirmwareVersionStatusEvent == input.KioskBluetoothTerminalFirmwareVersionStatusEvent || + this.KioskBluetoothTerminalFirmwareVersionStatusEvent != null && + this.KioskBluetoothTerminalFirmwareVersionStatusEvent.SequenceEqual(input.KioskBluetoothTerminalFirmwareVersionStatusEvent) + ) && + ( + this.KioskBluetoothTerminalInstallationStatusEvent == input.KioskBluetoothTerminalInstallationStatusEvent || + this.KioskBluetoothTerminalInstallationStatusEvent != null && + this.KioskBluetoothTerminalInstallationStatusEvent.SequenceEqual(input.KioskBluetoothTerminalInstallationStatusEvent) + ) && + ( + this.PushNotificationScheduledEvent == input.PushNotificationScheduledEvent || + this.PushNotificationScheduledEvent != null && + this.PushNotificationScheduledEvent.SequenceEqual(input.PushNotificationScheduledEvent) + ) && + ( + this.PushNotificationSentEvent == input.PushNotificationSentEvent || + this.PushNotificationSentEvent != null && + this.PushNotificationSentEvent.SequenceEqual(input.PushNotificationSentEvent) + ) && + ( + this.PushNotificationDeletedEvent == input.PushNotificationDeletedEvent || + this.PushNotificationDeletedEvent != null && + this.PushNotificationDeletedEvent.SequenceEqual(input.PushNotificationDeletedEvent) + ) && + ( + this.DnsVerifiedEvent == input.DnsVerifiedEvent || + this.DnsVerifiedEvent != null && + this.DnsVerifiedEvent.SequenceEqual(input.DnsVerifiedEvent) + ) && + ( + this.CertificateCreatedEvent == input.CertificateCreatedEvent || + this.CertificateCreatedEvent != null && + this.CertificateCreatedEvent.SequenceEqual(input.CertificateCreatedEvent) + ) && + ( + this.CertificateRenewedEvent == input.CertificateRenewedEvent || + this.CertificateRenewedEvent != null && + this.CertificateRenewedEvent.SequenceEqual(input.CertificateRenewedEvent) + ) && + ( + this.WebsiteVanityUrlUpdatedEvent == input.WebsiteVanityUrlUpdatedEvent || + this.WebsiteVanityUrlUpdatedEvent != null && + this.WebsiteVanityUrlUpdatedEvent.SequenceEqual(input.WebsiteVanityUrlUpdatedEvent) + ) && + ( + this.WebsiteUpdatedEvent == input.WebsiteUpdatedEvent || + this.WebsiteUpdatedEvent != null && + this.WebsiteUpdatedEvent.SequenceEqual(input.WebsiteUpdatedEvent) + ) && + ( + this.OrderCapacityUpdatedEvent == input.OrderCapacityUpdatedEvent || + this.OrderCapacityUpdatedEvent != null && + this.OrderCapacityUpdatedEvent.SequenceEqual(input.OrderCapacityUpdatedEvent) + ) && + ( + this.ExternalStoreEvent == input.ExternalStoreEvent || + this.ExternalStoreEvent != null && + this.ExternalStoreEvent.SequenceEqual(input.ExternalStoreEvent) + ) && + ( + this.OrderFulfillmentStatusUpdatedEvent == input.OrderFulfillmentStatusUpdatedEvent || + this.OrderFulfillmentStatusUpdatedEvent != null && + this.OrderFulfillmentStatusUpdatedEvent.SequenceEqual(input.OrderFulfillmentStatusUpdatedEvent) + ) && + ( + this.AppStoreConfigCreatedEvent == input.AppStoreConfigCreatedEvent || + this.AppStoreConfigCreatedEvent != null && + this.AppStoreConfigCreatedEvent.SequenceEqual(input.AppStoreConfigCreatedEvent) + ) && + ( + this.AppStoreConfigUpdatedEvent == input.AppStoreConfigUpdatedEvent || + this.AppStoreConfigUpdatedEvent != null && + this.AppStoreConfigUpdatedEvent.SequenceEqual(input.AppStoreConfigUpdatedEvent) + ) && + ( + this.AppStoreConfigDeletedEvent == input.AppStoreConfigDeletedEvent || + this.AppStoreConfigDeletedEvent != null && + this.AppStoreConfigDeletedEvent.SequenceEqual(input.AppStoreConfigDeletedEvent) + ) && + ( + this.AppStoreSubscriptionChangeJobUpdatedEvent == input.AppStoreSubscriptionChangeJobUpdatedEvent || + this.AppStoreSubscriptionChangeJobUpdatedEvent != null && + this.AppStoreSubscriptionChangeJobUpdatedEvent.SequenceEqual(input.AppStoreSubscriptionChangeJobUpdatedEvent) + ) && + ( + this.CatalogItemCreatedEvent == input.CatalogItemCreatedEvent || + this.CatalogItemCreatedEvent != null && + this.CatalogItemCreatedEvent.SequenceEqual(input.CatalogItemCreatedEvent) + ) && + ( + this.CatalogItemUpdatedEvent == input.CatalogItemUpdatedEvent || + this.CatalogItemUpdatedEvent != null && + this.CatalogItemUpdatedEvent.SequenceEqual(input.CatalogItemUpdatedEvent) + ) && + ( + this.CatalogItemArchivedEvent == input.CatalogItemArchivedEvent || + this.CatalogItemArchivedEvent != null && + this.CatalogItemArchivedEvent.SequenceEqual(input.CatalogItemArchivedEvent) + ) && + ( + this.CatalogGroupCreatedEvent == input.CatalogGroupCreatedEvent || + this.CatalogGroupCreatedEvent != null && + this.CatalogGroupCreatedEvent.SequenceEqual(input.CatalogGroupCreatedEvent) + ) && + ( + this.CatalogGroupUpdatedEvent == input.CatalogGroupUpdatedEvent || + this.CatalogGroupUpdatedEvent != null && + this.CatalogGroupUpdatedEvent.SequenceEqual(input.CatalogGroupUpdatedEvent) + ) && + ( + this.CatalogGroupArchivedEvent == input.CatalogGroupArchivedEvent || + this.CatalogGroupArchivedEvent != null && + this.CatalogGroupArchivedEvent.SequenceEqual(input.CatalogGroupArchivedEvent) + ) && + ( + this.StoreTipUpdatedEvent == input.StoreTipUpdatedEvent || + this.StoreTipUpdatedEvent != null && + this.StoreTipUpdatedEvent.SequenceEqual(input.StoreTipUpdatedEvent) + ) && + ( + this.LocationAreaCreatedEvent == input.LocationAreaCreatedEvent || + this.LocationAreaCreatedEvent != null && + this.LocationAreaCreatedEvent.SequenceEqual(input.LocationAreaCreatedEvent) + ) && + ( + this.LocationAreaUpdatedEvent == input.LocationAreaUpdatedEvent || + this.LocationAreaUpdatedEvent != null && + this.LocationAreaUpdatedEvent.SequenceEqual(input.LocationAreaUpdatedEvent) + ) && + ( + this.LocationCreatedEvent == input.LocationCreatedEvent || + this.LocationCreatedEvent != null && + this.LocationCreatedEvent.SequenceEqual(input.LocationCreatedEvent) + ) && + ( + this.LocationDeletedEvent == input.LocationDeletedEvent || + this.LocationDeletedEvent != null && + this.LocationDeletedEvent.SequenceEqual(input.LocationDeletedEvent) + ) && + ( + this.StoreServiceChargeUpdatedEvent == input.StoreServiceChargeUpdatedEvent || + this.StoreServiceChargeUpdatedEvent != null && + this.StoreServiceChargeUpdatedEvent.SequenceEqual(input.StoreServiceChargeUpdatedEvent) + ) && + ( + this.MobileAppsSubmissionStatusUpdatedEvent == input.MobileAppsSubmissionStatusUpdatedEvent || + this.MobileAppsSubmissionStatusUpdatedEvent != null && + this.MobileAppsSubmissionStatusUpdatedEvent.SequenceEqual(input.MobileAppsSubmissionStatusUpdatedEvent) + ) && + ( + this.MobileAppsSubmissionUpdatedEvent == input.MobileAppsSubmissionUpdatedEvent || + this.MobileAppsSubmissionUpdatedEvent != null && + this.MobileAppsSubmissionUpdatedEvent.SequenceEqual(input.MobileAppsSubmissionUpdatedEvent) + ) && + ( + this.StoreFeeConfigUpdatedEvent == input.StoreFeeConfigUpdatedEvent || + this.StoreFeeConfigUpdatedEvent != null && + this.StoreFeeConfigUpdatedEvent.SequenceEqual(input.StoreFeeConfigUpdatedEvent) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppCreatedEvent != null) + hashCode = hashCode * 59 + this.AppCreatedEvent.GetHashCode(); + if (this.AppUpdatedEvent != null) + hashCode = hashCode * 59 + this.AppUpdatedEvent.GetHashCode(); + if (this.AnalyticsClientEvent != null) + hashCode = hashCode * 59 + this.AnalyticsClientEvent.GetHashCode(); + if (this.OrderAcceptedEvent != null) + hashCode = hashCode * 59 + this.OrderAcceptedEvent.GetHashCode(); + if (this.OrderDispatchedEvent != null) + hashCode = hashCode * 59 + this.OrderDispatchedEvent.GetHashCode(); + if (this.OrderCustomerTrackingCreatedEvent != null) + hashCode = hashCode * 59 + this.OrderCustomerTrackingCreatedEvent.GetHashCode(); + if (this.OrderDeliveryTrackingStatusUpdatedEvent != null) + hashCode = hashCode * 59 + this.OrderDeliveryTrackingStatusUpdatedEvent.GetHashCode(); + if (this.OrderBatchPublishedEvent != null) + hashCode = hashCode * 59 + this.OrderBatchPublishedEvent.GetHashCode(); + if (this.OrderCreatedEvent != null) + hashCode = hashCode * 59 + this.OrderCreatedEvent.GetHashCode(); + if (this.OrderRatingUpdatedEvent != null) + hashCode = hashCode * 59 + this.OrderRatingUpdatedEvent.GetHashCode(); + if (this.OrderRefundedEvent != null) + hashCode = hashCode * 59 + this.OrderRefundedEvent.GetHashCode(); + if (this.OrderRejectedEvent != null) + hashCode = hashCode * 59 + this.OrderRejectedEvent.GetHashCode(); + if (this.OrderTipUpdatedEvent != null) + hashCode = hashCode * 59 + this.OrderTipUpdatedEvent.GetHashCode(); + if (this.OrderTerminalNotifications != null) + hashCode = hashCode * 59 + this.OrderTerminalNotifications.GetHashCode(); + if (this.StoreCreatedEvent != null) + hashCode = hashCode * 59 + this.StoreCreatedEvent.GetHashCode(); + if (this.StoreDeletedEvent != null) + hashCode = hashCode * 59 + this.StoreDeletedEvent.GetHashCode(); + if (this.StoreAddressUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreAddressUpdatedEvent.GetHashCode(); + if (this.StoreKioskSettingUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreKioskSettingUpdatedEvent.GetHashCode(); + if (this.DeliveryZoneCreatedEvent != null) + hashCode = hashCode * 59 + this.DeliveryZoneCreatedEvent.GetHashCode(); + if (this.DeliveryZoneUpdatedEvent != null) + hashCode = hashCode * 59 + this.DeliveryZoneUpdatedEvent.GetHashCode(); + if (this.DeliveryZoneDeletedEvent != null) + hashCode = hashCode * 59 + this.DeliveryZoneDeletedEvent.GetHashCode(); + if (this.StoreOpeningHoursUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreOpeningHoursUpdatedEvent.GetHashCode(); + if (this.StoreMenuAssignedEvent != null) + hashCode = hashCode * 59 + this.StoreMenuAssignedEvent.GetHashCode(); + if (this.StoreBusinessHoursOverrideCreatedEvent != null) + hashCode = hashCode * 59 + this.StoreBusinessHoursOverrideCreatedEvent.GetHashCode(); + if (this.StoreBusinessHoursOverrideDeletedEvent != null) + hashCode = hashCode * 59 + this.StoreBusinessHoursOverrideDeletedEvent.GetHashCode(); + if (this.StoreArchivedEvent != null) + hashCode = hashCode * 59 + this.StoreArchivedEvent.GetHashCode(); + if (this.StoreUnarchivedEvent != null) + hashCode = hashCode * 59 + this.StoreUnarchivedEvent.GetHashCode(); + if (this.StorePublishedEvent != null) + hashCode = hashCode * 59 + this.StorePublishedEvent.GetHashCode(); + if (this.StoreUnpublishedEvent != null) + hashCode = hashCode * 59 + this.StoreUnpublishedEvent.GetHashCode(); + if (this.StoreUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreUpdatedEvent.GetHashCode(); + if (this.StorePreOrderConfigUpdatedEvent != null) + hashCode = hashCode * 59 + this.StorePreOrderConfigUpdatedEvent.GetHashCode(); + if (this.StoreLogoCreatedEvent != null) + hashCode = hashCode * 59 + this.StoreLogoCreatedEvent.GetHashCode(); + if (this.StoreLogoUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreLogoUpdatedEvent.GetHashCode(); + if (this.StoreLogoDeletedEvent != null) + hashCode = hashCode * 59 + this.StoreLogoDeletedEvent.GetHashCode(); + if (this.MenuCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuCreatedEvent.GetHashCode(); + if (this.MenuAsyncCreationCompletedEvent != null) + hashCode = hashCode * 59 + this.MenuAsyncCreationCompletedEvent.GetHashCode(); + if (this.MenuUpdatedEvent != null) + hashCode = hashCode * 59 + this.MenuUpdatedEvent.GetHashCode(); + if (this.MenuUploadedEvent != null) + hashCode = hashCode * 59 + this.MenuUploadedEvent.GetHashCode(); + if (this.MenuBulkEditEvent != null) + hashCode = hashCode * 59 + this.MenuBulkEditEvent.GetHashCode(); + if (this.MenuSectionCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionCreatedEvent.GetHashCode(); + if (this.MenuSectionUpdatedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionUpdatedEvent.GetHashCode(); + if (this.MenuSectionDeletedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionDeletedEvent.GetHashCode(); + if (this.MenuSectionItemCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionItemCreatedEvent.GetHashCode(); + if (this.MenuSectionItemUpdatedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionItemUpdatedEvent.GetHashCode(); + if (this.MenuSectionItemDeletedEvent != null) + hashCode = hashCode * 59 + this.MenuSectionItemDeletedEvent.GetHashCode(); + if (this.MenuItemOptionSetCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetCreatedEvent.GetHashCode(); + if (this.MenuItemOptionSetUpdatedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetUpdatedEvent.GetHashCode(); + if (this.MenuItemOptionSetDeletedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetDeletedEvent.GetHashCode(); + if (this.MenuItemOptionSetItemCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemCreatedEvent.GetHashCode(); + if (this.MenuItemOptionSetItemUpdatedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemUpdatedEvent.GetHashCode(); + if (this.MenuItemOptionSetItemDeletedEvent != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemDeletedEvent.GetHashCode(); + if (this.MenuCheckpointCreatedEvent != null) + hashCode = hashCode * 59 + this.MenuCheckpointCreatedEvent.GetHashCode(); + if (this.StoreGroupCreatedEvent != null) + hashCode = hashCode * 59 + this.StoreGroupCreatedEvent.GetHashCode(); + if (this.StoreGroupUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreGroupUpdatedEvent.GetHashCode(); + if (this.StoreGroupDeletedEvent != null) + hashCode = hashCode * 59 + this.StoreGroupDeletedEvent.GetHashCode(); + if (this.CustomerCreatedEvent != null) + hashCode = hashCode * 59 + this.CustomerCreatedEvent.GetHashCode(); + if (this.CustomerUpdatedEvent != null) + hashCode = hashCode * 59 + this.CustomerUpdatedEvent.GetHashCode(); + if (this.CustomerConsentUpdatedEvent != null) + hashCode = hashCode * 59 + this.CustomerConsentUpdatedEvent.GetHashCode(); + if (this.WebhookSubscriptionCreatedEvent != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionCreatedEvent.GetHashCode(); + if (this.WebhookSubscriptionUpdatedEvent != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionUpdatedEvent.GetHashCode(); + if (this.WebhookSubscriptionDeletedEvent != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionDeletedEvent.GetHashCode(); + if (this.PrinterTurnedOnEvent != null) + hashCode = hashCode * 59 + this.PrinterTurnedOnEvent.GetHashCode(); + if (this.PrinterTurnedOffEvent != null) + hashCode = hashCode * 59 + this.PrinterTurnedOffEvent.GetHashCode(); + if (this.PrinterAssignedToStoreEvent != null) + hashCode = hashCode * 59 + this.PrinterAssignedToStoreEvent.GetHashCode(); + if (this.PrinterUnassignedFromStoreEvent != null) + hashCode = hashCode * 59 + this.PrinterUnassignedFromStoreEvent.GetHashCode(); + if (this.PhoneCallStartedEvent != null) + hashCode = hashCode * 59 + this.PhoneCallStartedEvent.GetHashCode(); + if (this.PhoneCallEndedEvent != null) + hashCode = hashCode * 59 + this.PhoneCallEndedEvent.GetHashCode(); + if (this.TelephonyConfigUpdatedEvent != null) + hashCode = hashCode * 59 + this.TelephonyConfigUpdatedEvent.GetHashCode(); + if (this.ChannelStoresUpdatedEvent != null) + hashCode = hashCode * 59 + this.ChannelStoresUpdatedEvent.GetHashCode(); + if (this.LoyaltyCampaignCreatedEvent != null) + hashCode = hashCode * 59 + this.LoyaltyCampaignCreatedEvent.GetHashCode(); + if (this.LoyaltyCampaignDeletedEvent != null) + hashCode = hashCode * 59 + this.LoyaltyCampaignDeletedEvent.GetHashCode(); + if (this.LoyaltyCampaignUpdatedEvent != null) + hashCode = hashCode * 59 + this.LoyaltyCampaignUpdatedEvent.GetHashCode(); + if (this.RetentionCampaignCreatedEvent != null) + hashCode = hashCode * 59 + this.RetentionCampaignCreatedEvent.GetHashCode(); + if (this.RetentionCampaignDeletedEvent != null) + hashCode = hashCode * 59 + this.RetentionCampaignDeletedEvent.GetHashCode(); + if (this.RetentionCampaignUpdatedEvent != null) + hashCode = hashCode * 59 + this.RetentionCampaignUpdatedEvent.GetHashCode(); + if (this.SmsReceivedEvent != null) + hashCode = hashCode * 59 + this.SmsReceivedEvent.GetHashCode(); + if (this.UserLoginEvent != null) + hashCode = hashCode * 59 + this.UserLoginEvent.GetHashCode(); + if (this.UserCreatedEvent != null) + hashCode = hashCode * 59 + this.UserCreatedEvent.GetHashCode(); + if (this.UserUpdatedEvent != null) + hashCode = hashCode * 59 + this.UserUpdatedEvent.GetHashCode(); + if (this.UserDeletedEvent != null) + hashCode = hashCode * 59 + this.UserDeletedEvent.GetHashCode(); + if (this.UserCreatedPasswordEvent != null) + hashCode = hashCode * 59 + this.UserCreatedPasswordEvent.GetHashCode(); + if (this.UserAnsweredSignupQuestionsEvent != null) + hashCode = hashCode * 59 + this.UserAnsweredSignupQuestionsEvent.GetHashCode(); + if (this.VoucherCreatedEvent != null) + hashCode = hashCode * 59 + this.VoucherCreatedEvent.GetHashCode(); + if (this.VoucherUpdatedEvent != null) + hashCode = hashCode * 59 + this.VoucherUpdatedEvent.GetHashCode(); + if (this.VoucherDeletedEvent != null) + hashCode = hashCode * 59 + this.VoucherDeletedEvent.GetHashCode(); + if (this.VoucherAppliedEvent != null) + hashCode = hashCode * 59 + this.VoucherAppliedEvent.GetHashCode(); + if (this.TeammateInviteSentEvent != null) + hashCode = hashCode * 59 + this.TeammateInviteSentEvent.GetHashCode(); + if (this.TeammateInviteAcceptedEvent != null) + hashCode = hashCode * 59 + this.TeammateInviteAcceptedEvent.GetHashCode(); + if (this.TeammateUpdatedEvent != null) + hashCode = hashCode * 59 + this.TeammateUpdatedEvent.GetHashCode(); + if (this.TeammateDeletedEvent != null) + hashCode = hashCode * 59 + this.TeammateDeletedEvent.GetHashCode(); + if (this.BankAccountCreatedEvent != null) + hashCode = hashCode * 59 + this.BankAccountCreatedEvent.GetHashCode(); + if (this.BankAccountUpdatedEvent != null) + hashCode = hashCode * 59 + this.BankAccountUpdatedEvent.GetHashCode(); + if (this.BankAccountDeletedEvent != null) + hashCode = hashCode * 59 + this.BankAccountDeletedEvent.GetHashCode(); + if (this.BankAccountAssignedEvent != null) + hashCode = hashCode * 59 + this.BankAccountAssignedEvent.GetHashCode(); + if (this.HydraAssignedEvent != null) + hashCode = hashCode * 59 + this.HydraAssignedEvent.GetHashCode(); + if (this.HydraCreatedEvent != null) + hashCode = hashCode * 59 + this.HydraCreatedEvent.GetHashCode(); + if (this.HydraRequestResetEvent != null) + hashCode = hashCode * 59 + this.HydraRequestResetEvent.GetHashCode(); + if (this.HydraStoreAssignedEvent != null) + hashCode = hashCode * 59 + this.HydraStoreAssignedEvent.GetHashCode(); + if (this.HydraStoreUnassignedEvent != null) + hashCode = hashCode * 59 + this.HydraStoreUnassignedEvent.GetHashCode(); + if (this.HydraSettingChangedEvent != null) + hashCode = hashCode * 59 + this.HydraSettingChangedEvent.GetHashCode(); + if (this.HydraUnAssignedEvent != null) + hashCode = hashCode * 59 + this.HydraUnAssignedEvent.GetHashCode(); + if (this.HydraConnectionStatusChangedEvent != null) + hashCode = hashCode * 59 + this.HydraConnectionStatusChangedEvent.GetHashCode(); + if (this.KioskBluetoothPairingModeEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothPairingModeEvent.GetHashCode(); + if (this.KioskBluetoothUnpairingModeEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothUnpairingModeEvent.GetHashCode(); + if (this.KioskBluetoothTerminalUnpairedEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalUnpairedEvent.GetHashCode(); + if (this.KioskTerminalActionStateChangedEvent != null) + hashCode = hashCode * 59 + this.KioskTerminalActionStateChangedEvent.GetHashCode(); + if (this.KioskBluetoothTerminalUpdatedEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalUpdatedEvent.GetHashCode(); + if (this.KioskBluetoothTerminalInitiateUpdateCheckEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalInitiateUpdateCheckEvent.GetHashCode(); + if (this.KioskBluetoothInstallUpdateInitiateEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothInstallUpdateInitiateEvent.GetHashCode(); + if (this.KioskBluetoothTerminalCancelUpdateEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalCancelUpdateEvent.GetHashCode(); + if (this.KioskBluetoothTerminalFirmwareVersionStatusEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalFirmwareVersionStatusEvent.GetHashCode(); + if (this.KioskBluetoothTerminalInstallationStatusEvent != null) + hashCode = hashCode * 59 + this.KioskBluetoothTerminalInstallationStatusEvent.GetHashCode(); + if (this.PushNotificationScheduledEvent != null) + hashCode = hashCode * 59 + this.PushNotificationScheduledEvent.GetHashCode(); + if (this.PushNotificationSentEvent != null) + hashCode = hashCode * 59 + this.PushNotificationSentEvent.GetHashCode(); + if (this.PushNotificationDeletedEvent != null) + hashCode = hashCode * 59 + this.PushNotificationDeletedEvent.GetHashCode(); + if (this.DnsVerifiedEvent != null) + hashCode = hashCode * 59 + this.DnsVerifiedEvent.GetHashCode(); + if (this.CertificateCreatedEvent != null) + hashCode = hashCode * 59 + this.CertificateCreatedEvent.GetHashCode(); + if (this.CertificateRenewedEvent != null) + hashCode = hashCode * 59 + this.CertificateRenewedEvent.GetHashCode(); + if (this.WebsiteVanityUrlUpdatedEvent != null) + hashCode = hashCode * 59 + this.WebsiteVanityUrlUpdatedEvent.GetHashCode(); + if (this.WebsiteUpdatedEvent != null) + hashCode = hashCode * 59 + this.WebsiteUpdatedEvent.GetHashCode(); + if (this.OrderCapacityUpdatedEvent != null) + hashCode = hashCode * 59 + this.OrderCapacityUpdatedEvent.GetHashCode(); + if (this.ExternalStoreEvent != null) + hashCode = hashCode * 59 + this.ExternalStoreEvent.GetHashCode(); + if (this.OrderFulfillmentStatusUpdatedEvent != null) + hashCode = hashCode * 59 + this.OrderFulfillmentStatusUpdatedEvent.GetHashCode(); + if (this.AppStoreConfigCreatedEvent != null) + hashCode = hashCode * 59 + this.AppStoreConfigCreatedEvent.GetHashCode(); + if (this.AppStoreConfigUpdatedEvent != null) + hashCode = hashCode * 59 + this.AppStoreConfigUpdatedEvent.GetHashCode(); + if (this.AppStoreConfigDeletedEvent != null) + hashCode = hashCode * 59 + this.AppStoreConfigDeletedEvent.GetHashCode(); + if (this.AppStoreSubscriptionChangeJobUpdatedEvent != null) + hashCode = hashCode * 59 + this.AppStoreSubscriptionChangeJobUpdatedEvent.GetHashCode(); + if (this.CatalogItemCreatedEvent != null) + hashCode = hashCode * 59 + this.CatalogItemCreatedEvent.GetHashCode(); + if (this.CatalogItemUpdatedEvent != null) + hashCode = hashCode * 59 + this.CatalogItemUpdatedEvent.GetHashCode(); + if (this.CatalogItemArchivedEvent != null) + hashCode = hashCode * 59 + this.CatalogItemArchivedEvent.GetHashCode(); + if (this.CatalogGroupCreatedEvent != null) + hashCode = hashCode * 59 + this.CatalogGroupCreatedEvent.GetHashCode(); + if (this.CatalogGroupUpdatedEvent != null) + hashCode = hashCode * 59 + this.CatalogGroupUpdatedEvent.GetHashCode(); + if (this.CatalogGroupArchivedEvent != null) + hashCode = hashCode * 59 + this.CatalogGroupArchivedEvent.GetHashCode(); + if (this.StoreTipUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreTipUpdatedEvent.GetHashCode(); + if (this.LocationAreaCreatedEvent != null) + hashCode = hashCode * 59 + this.LocationAreaCreatedEvent.GetHashCode(); + if (this.LocationAreaUpdatedEvent != null) + hashCode = hashCode * 59 + this.LocationAreaUpdatedEvent.GetHashCode(); + if (this.LocationCreatedEvent != null) + hashCode = hashCode * 59 + this.LocationCreatedEvent.GetHashCode(); + if (this.LocationDeletedEvent != null) + hashCode = hashCode * 59 + this.LocationDeletedEvent.GetHashCode(); + if (this.StoreServiceChargeUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreServiceChargeUpdatedEvent.GetHashCode(); + if (this.MobileAppsSubmissionStatusUpdatedEvent != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionStatusUpdatedEvent.GetHashCode(); + if (this.MobileAppsSubmissionUpdatedEvent != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionUpdatedEvent.GetHashCode(); + if (this.StoreFeeConfigUpdatedEvent != null) + hashCode = hashCode * 59 + this.StoreFeeConfigUpdatedEvent.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ExecuteConfigurationActionRequest.cs b/src/Flipdish/Model/ExecuteConfigurationActionRequest.cs new file mode 100644 index 00000000..30750e5d --- /dev/null +++ b/src/Flipdish/Model/ExecuteConfigurationActionRequest.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ExecuteConfigurationActionRequest + /// + [DataContract] + public partial class ExecuteConfigurationActionRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// key. + /// action. + public ExecuteConfigurationActionRequest(string key = default(string), string action = default(string)) + { + this.Key = key; + this.Action = action; + } + + /// + /// Gets or Sets Key + /// + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Gets or Sets Action + /// + [DataMember(Name="Action", EmitDefaultValue=false)] + public string Action { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExecuteConfigurationActionRequest {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExecuteConfigurationActionRequest); + } + + /// + /// Returns true if ExecuteConfigurationActionRequest instances are equal + /// + /// Instance of ExecuteConfigurationActionRequest to be compared + /// Boolean + public bool Equals(ExecuteConfigurationActionRequest input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ExecuteConfigurationActionResult.cs b/src/Flipdish/Model/ExecuteConfigurationActionResult.cs new file mode 100644 index 00000000..bc54c343 --- /dev/null +++ b/src/Flipdish/Model/ExecuteConfigurationActionResult.cs @@ -0,0 +1,186 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ExecuteConfigurationActionResult + /// + [DataContract] + public partial class ExecuteConfigurationActionResult : IEquatable + { + /// + /// Defines RedirectTarget + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum RedirectTargetEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum NewWindow for value: NewWindow + /// + [EnumMember(Value = "NewWindow")] + NewWindow = 2, + + /// + /// Enum Popup for value: Popup + /// + [EnumMember(Value = "Popup")] + Popup = 3 + } + + /// + /// Gets or Sets RedirectTarget + /// + [DataMember(Name="RedirectTarget", EmitDefaultValue=false)] + public RedirectTargetEnum? RedirectTarget { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// errorMessage. + /// infoMessage. + /// redirectUrl. + /// redirectTarget. + public ExecuteConfigurationActionResult(string errorMessage = default(string), string infoMessage = default(string), string redirectUrl = default(string), RedirectTargetEnum? redirectTarget = default(RedirectTargetEnum?)) + { + this.ErrorMessage = errorMessage; + this.InfoMessage = infoMessage; + this.RedirectUrl = redirectUrl; + this.RedirectTarget = redirectTarget; + } + + /// + /// Gets or Sets ErrorMessage + /// + [DataMember(Name="ErrorMessage", EmitDefaultValue=false)] + public string ErrorMessage { get; set; } + + /// + /// Gets or Sets InfoMessage + /// + [DataMember(Name="InfoMessage", EmitDefaultValue=false)] + public string InfoMessage { get; set; } + + /// + /// Gets or Sets RedirectUrl + /// + [DataMember(Name="RedirectUrl", EmitDefaultValue=false)] + public string RedirectUrl { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExecuteConfigurationActionResult {\n"); + sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); + sb.Append(" InfoMessage: ").Append(InfoMessage).Append("\n"); + sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); + sb.Append(" RedirectTarget: ").Append(RedirectTarget).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExecuteConfigurationActionResult); + } + + /// + /// Returns true if ExecuteConfigurationActionResult instances are equal + /// + /// Instance of ExecuteConfigurationActionResult to be compared + /// Boolean + public bool Equals(ExecuteConfigurationActionResult input) + { + if (input == null) + return false; + + return + ( + this.ErrorMessage == input.ErrorMessage || + (this.ErrorMessage != null && + this.ErrorMessage.Equals(input.ErrorMessage)) + ) && + ( + this.InfoMessage == input.InfoMessage || + (this.InfoMessage != null && + this.InfoMessage.Equals(input.InfoMessage)) + ) && + ( + this.RedirectUrl == input.RedirectUrl || + (this.RedirectUrl != null && + this.RedirectUrl.Equals(input.RedirectUrl)) + ) && + ( + this.RedirectTarget == input.RedirectTarget || + (this.RedirectTarget != null && + this.RedirectTarget.Equals(input.RedirectTarget)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ErrorMessage != null) + hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); + if (this.InfoMessage != null) + hashCode = hashCode * 59 + this.InfoMessage.GetHashCode(); + if (this.RedirectUrl != null) + hashCode = hashCode * 59 + this.RedirectUrl.GetHashCode(); + if (this.RedirectTarget != null) + hashCode = hashCode * 59 + this.RedirectTarget.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ExternalStoreAuditLog.cs b/src/Flipdish/Model/ExternalStoreAuditLog.cs new file mode 100644 index 00000000..80222e00 --- /dev/null +++ b/src/Flipdish/Model/ExternalStoreAuditLog.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// External event + /// + [DataContract] + public partial class ExternalStoreAuditLog : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The time of creation of the event. + /// Store Id. + /// Description. + /// Identifies the source of the log. + /// Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source}. + /// Description with format placeholders. + /// Description with format placeholders. + /// Description. + /// Ref (reference field). + /// Ref2 (reference field). + /// Ref3 (reference field). + /// Ref4 (reference field). + /// Order Id. + /// Tags. + /// Field changes list. + public ExternalStoreAuditLog(DateTime? externalCreateTime = default(DateTime?), int? storeId = default(int?), string description = default(string), string source = default(string), string version = default(string), string descriptionFormat = default(string), string descriptionFields = default(string), string descriptionId = default(string), string ref1 = default(string), string ref2 = default(string), string ref3 = default(string), string ref4 = default(string), int? orderId = default(int?), List tags = default(List), List fieldChanges = default(List)) + { + this.ExternalCreateTime = externalCreateTime; + this.StoreId = storeId; + this.Description = description; + this.Source = source; + this.Version = version; + this.DescriptionFormat = descriptionFormat; + this.DescriptionFields = descriptionFields; + this.DescriptionId = descriptionId; + this.Ref1 = ref1; + this.Ref2 = ref2; + this.Ref3 = ref3; + this.Ref4 = ref4; + this.OrderId = orderId; + this.Tags = tags; + this.FieldChanges = fieldChanges; + } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="ExternalCreateTime", EmitDefaultValue=false)] + public DateTime? ExternalCreateTime { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Identifies the source of the log + /// + /// Identifies the source of the log + [DataMember(Name="Source", EmitDefaultValue=false)] + public string Source { get; set; } + + /// + /// Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source} + /// + /// Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source} + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Description with format placeholders + /// + /// Description with format placeholders + [DataMember(Name="DescriptionFormat", EmitDefaultValue=false)] + public string DescriptionFormat { get; set; } + + /// + /// Description with format placeholders + /// + /// Description with format placeholders + [DataMember(Name="DescriptionFields", EmitDefaultValue=false)] + public string DescriptionFields { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="DescriptionId", EmitDefaultValue=false)] + public string DescriptionId { get; set; } + + /// + /// Ref (reference field) + /// + /// Ref (reference field) + [DataMember(Name="Ref1", EmitDefaultValue=false)] + public string Ref1 { get; set; } + + /// + /// Ref2 (reference field) + /// + /// Ref2 (reference field) + [DataMember(Name="Ref2", EmitDefaultValue=false)] + public string Ref2 { get; set; } + + /// + /// Ref3 (reference field) + /// + /// Ref3 (reference field) + [DataMember(Name="Ref3", EmitDefaultValue=false)] + public string Ref3 { get; set; } + + /// + /// Ref4 (reference field) + /// + /// Ref4 (reference field) + [DataMember(Name="Ref4", EmitDefaultValue=false)] + public string Ref4 { get; set; } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Tags + /// + /// Tags + [DataMember(Name="Tags", EmitDefaultValue=false)] + public List Tags { get; set; } + + /// + /// Field changes list + /// + /// Field changes list + [DataMember(Name="FieldChanges", EmitDefaultValue=false)] + public List FieldChanges { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExternalStoreAuditLog {\n"); + sb.Append(" ExternalCreateTime: ").Append(ExternalCreateTime).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" DescriptionFormat: ").Append(DescriptionFormat).Append("\n"); + sb.Append(" DescriptionFields: ").Append(DescriptionFields).Append("\n"); + sb.Append(" DescriptionId: ").Append(DescriptionId).Append("\n"); + sb.Append(" Ref1: ").Append(Ref1).Append("\n"); + sb.Append(" Ref2: ").Append(Ref2).Append("\n"); + sb.Append(" Ref3: ").Append(Ref3).Append("\n"); + sb.Append(" Ref4: ").Append(Ref4).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" FieldChanges: ").Append(FieldChanges).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExternalStoreAuditLog); + } + + /// + /// Returns true if ExternalStoreAuditLog instances are equal + /// + /// Instance of ExternalStoreAuditLog to be compared + /// Boolean + public bool Equals(ExternalStoreAuditLog input) + { + if (input == null) + return false; + + return + ( + this.ExternalCreateTime == input.ExternalCreateTime || + (this.ExternalCreateTime != null && + this.ExternalCreateTime.Equals(input.ExternalCreateTime)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Source == input.Source || + (this.Source != null && + this.Source.Equals(input.Source)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.DescriptionFormat == input.DescriptionFormat || + (this.DescriptionFormat != null && + this.DescriptionFormat.Equals(input.DescriptionFormat)) + ) && + ( + this.DescriptionFields == input.DescriptionFields || + (this.DescriptionFields != null && + this.DescriptionFields.Equals(input.DescriptionFields)) + ) && + ( + this.DescriptionId == input.DescriptionId || + (this.DescriptionId != null && + this.DescriptionId.Equals(input.DescriptionId)) + ) && + ( + this.Ref1 == input.Ref1 || + (this.Ref1 != null && + this.Ref1.Equals(input.Ref1)) + ) && + ( + this.Ref2 == input.Ref2 || + (this.Ref2 != null && + this.Ref2.Equals(input.Ref2)) + ) && + ( + this.Ref3 == input.Ref3 || + (this.Ref3 != null && + this.Ref3.Equals(input.Ref3)) + ) && + ( + this.Ref4 == input.Ref4 || + (this.Ref4 != null && + this.Ref4.Equals(input.Ref4)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.FieldChanges == input.FieldChanges || + this.FieldChanges != null && + this.FieldChanges.SequenceEqual(input.FieldChanges) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ExternalCreateTime != null) + hashCode = hashCode * 59 + this.ExternalCreateTime.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Source != null) + hashCode = hashCode * 59 + this.Source.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.DescriptionFormat != null) + hashCode = hashCode * 59 + this.DescriptionFormat.GetHashCode(); + if (this.DescriptionFields != null) + hashCode = hashCode * 59 + this.DescriptionFields.GetHashCode(); + if (this.DescriptionId != null) + hashCode = hashCode * 59 + this.DescriptionId.GetHashCode(); + if (this.Ref1 != null) + hashCode = hashCode * 59 + this.Ref1.GetHashCode(); + if (this.Ref2 != null) + hashCode = hashCode * 59 + this.Ref2.GetHashCode(); + if (this.Ref3 != null) + hashCode = hashCode * 59 + this.Ref3.GetHashCode(); + if (this.Ref4 != null) + hashCode = hashCode * 59 + this.Ref4.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.FieldChanges != null) + hashCode = hashCode * 59 + this.FieldChanges.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ExternalStoreEvent.cs b/src/Flipdish/Model/ExternalStoreEvent.cs new file mode 100644 index 00000000..d3da3783 --- /dev/null +++ b/src/Flipdish/Model/ExternalStoreEvent.cs @@ -0,0 +1,470 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// External event + /// + [DataContract] + public partial class ExternalStoreEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which did the action. + /// Description. + /// Description with format placeholders. + /// Description with format placeholders. + /// Description. + /// Ref (reference field). + /// Ref2 (reference field). + /// Ref3 (reference field). + /// Ref4 (reference field). + /// Order Id. + /// Tags. + /// Field changes list. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public ExternalStoreEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), string descriptionFormat = default(string), string descriptionFields = default(string), string descriptionId = default(string), string ref1 = default(string), string ref2 = default(string), string ref3 = default(string), string ref4 = default(string), int? orderId = default(int?), List tags = default(List), List fieldChanges = default(List), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.DescriptionFormat = descriptionFormat; + this.DescriptionFields = descriptionFields; + this.DescriptionId = descriptionId; + this.Ref1 = ref1; + this.Ref2 = ref2; + this.Ref3 = ref3; + this.Ref4 = ref4; + this.OrderId = orderId; + this.Tags = tags; + this.FieldChanges = fieldChanges; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which did the action + /// + /// User which did the action + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Description with format placeholders + /// + /// Description with format placeholders + [DataMember(Name="DescriptionFormat", EmitDefaultValue=false)] + public string DescriptionFormat { get; set; } + + /// + /// Description with format placeholders + /// + /// Description with format placeholders + [DataMember(Name="DescriptionFields", EmitDefaultValue=false)] + public string DescriptionFields { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="DescriptionId", EmitDefaultValue=false)] + public string DescriptionId { get; set; } + + /// + /// Ref (reference field) + /// + /// Ref (reference field) + [DataMember(Name="Ref1", EmitDefaultValue=false)] + public string Ref1 { get; set; } + + /// + /// Ref2 (reference field) + /// + /// Ref2 (reference field) + [DataMember(Name="Ref2", EmitDefaultValue=false)] + public string Ref2 { get; set; } + + /// + /// Ref3 (reference field) + /// + /// Ref3 (reference field) + [DataMember(Name="Ref3", EmitDefaultValue=false)] + public string Ref3 { get; set; } + + /// + /// Ref4 (reference field) + /// + /// Ref4 (reference field) + [DataMember(Name="Ref4", EmitDefaultValue=false)] + public string Ref4 { get; set; } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Tags + /// + /// Tags + [DataMember(Name="Tags", EmitDefaultValue=false)] + public List Tags { get; set; } + + /// + /// Field changes list + /// + /// Field changes list + [DataMember(Name="FieldChanges", EmitDefaultValue=false)] + public List FieldChanges { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExternalStoreEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DescriptionFormat: ").Append(DescriptionFormat).Append("\n"); + sb.Append(" DescriptionFields: ").Append(DescriptionFields).Append("\n"); + sb.Append(" DescriptionId: ").Append(DescriptionId).Append("\n"); + sb.Append(" Ref1: ").Append(Ref1).Append("\n"); + sb.Append(" Ref2: ").Append(Ref2).Append("\n"); + sb.Append(" Ref3: ").Append(Ref3).Append("\n"); + sb.Append(" Ref4: ").Append(Ref4).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" FieldChanges: ").Append(FieldChanges).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExternalStoreEvent); + } + + /// + /// Returns true if ExternalStoreEvent instances are equal + /// + /// Instance of ExternalStoreEvent to be compared + /// Boolean + public bool Equals(ExternalStoreEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DescriptionFormat == input.DescriptionFormat || + (this.DescriptionFormat != null && + this.DescriptionFormat.Equals(input.DescriptionFormat)) + ) && + ( + this.DescriptionFields == input.DescriptionFields || + (this.DescriptionFields != null && + this.DescriptionFields.Equals(input.DescriptionFields)) + ) && + ( + this.DescriptionId == input.DescriptionId || + (this.DescriptionId != null && + this.DescriptionId.Equals(input.DescriptionId)) + ) && + ( + this.Ref1 == input.Ref1 || + (this.Ref1 != null && + this.Ref1.Equals(input.Ref1)) + ) && + ( + this.Ref2 == input.Ref2 || + (this.Ref2 != null && + this.Ref2.Equals(input.Ref2)) + ) && + ( + this.Ref3 == input.Ref3 || + (this.Ref3 != null && + this.Ref3.Equals(input.Ref3)) + ) && + ( + this.Ref4 == input.Ref4 || + (this.Ref4 != null && + this.Ref4.Equals(input.Ref4)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.FieldChanges == input.FieldChanges || + this.FieldChanges != null && + this.FieldChanges.SequenceEqual(input.FieldChanges) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DescriptionFormat != null) + hashCode = hashCode * 59 + this.DescriptionFormat.GetHashCode(); + if (this.DescriptionFields != null) + hashCode = hashCode * 59 + this.DescriptionFields.GetHashCode(); + if (this.DescriptionId != null) + hashCode = hashCode * 59 + this.DescriptionId.GetHashCode(); + if (this.Ref1 != null) + hashCode = hashCode * 59 + this.Ref1.GetHashCode(); + if (this.Ref2 != null) + hashCode = hashCode * 59 + this.Ref2.GetHashCode(); + if (this.Ref3 != null) + hashCode = hashCode * 59 + this.Ref3.GetHashCode(); + if (this.Ref4 != null) + hashCode = hashCode * 59 + this.Ref4.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.FieldChanges != null) + hashCode = hashCode * 59 + this.FieldChanges.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FeeSummary.cs b/src/Flipdish/Model/FeeSummary.cs new file mode 100644 index 00000000..2485a3fa --- /dev/null +++ b/src/Flipdish/Model/FeeSummary.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fee Summary + /// + [DataContract] + public partial class FeeSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Fee amount. + /// Percentage rate. + /// Per transaction fee. + public FeeSummary(double? feeAmount = default(double?), double? percentageRate = default(double?), double? perTransactionFee = default(double?)) + { + this.FeeAmount = feeAmount; + this.PercentageRate = percentageRate; + this.PerTransactionFee = perTransactionFee; + } + + /// + /// Fee amount + /// + /// Fee amount + [DataMember(Name="FeeAmount", EmitDefaultValue=false)] + public double? FeeAmount { get; set; } + + /// + /// Percentage rate + /// + /// Percentage rate + [DataMember(Name="PercentageRate", EmitDefaultValue=false)] + public double? PercentageRate { get; set; } + + /// + /// Per transaction fee + /// + /// Per transaction fee + [DataMember(Name="PerTransactionFee", EmitDefaultValue=false)] + public double? PerTransactionFee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FeeSummary {\n"); + sb.Append(" FeeAmount: ").Append(FeeAmount).Append("\n"); + sb.Append(" PercentageRate: ").Append(PercentageRate).Append("\n"); + sb.Append(" PerTransactionFee: ").Append(PerTransactionFee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FeeSummary); + } + + /// + /// Returns true if FeeSummary instances are equal + /// + /// Instance of FeeSummary to be compared + /// Boolean + public bool Equals(FeeSummary input) + { + if (input == null) + return false; + + return + ( + this.FeeAmount == input.FeeAmount || + (this.FeeAmount != null && + this.FeeAmount.Equals(input.FeeAmount)) + ) && + ( + this.PercentageRate == input.PercentageRate || + (this.PercentageRate != null && + this.PercentageRate.Equals(input.PercentageRate)) + ) && + ( + this.PerTransactionFee == input.PerTransactionFee || + (this.PerTransactionFee != null && + this.PerTransactionFee.Equals(input.PerTransactionFee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FeeAmount != null) + hashCode = hashCode * 59 + this.FeeAmount.GetHashCode(); + if (this.PercentageRate != null) + hashCode = hashCode * 59 + this.PercentageRate.GetHashCode(); + if (this.PerTransactionFee != null) + hashCode = hashCode * 59 + this.PerTransactionFee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Field.cs b/src/Flipdish/Model/Field.cs new file mode 100644 index 00000000..4d342ce7 --- /dev/null +++ b/src/Flipdish/Model/Field.cs @@ -0,0 +1,369 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Field + /// + [DataContract] + public partial class Field : IEquatable + { + /// + /// Defines FieldType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldTypeEnum + { + + /// + /// Enum Text for value: Text + /// + [EnumMember(Value = "Text")] + Text = 1, + + /// + /// Enum TextArea for value: TextArea + /// + [EnumMember(Value = "TextArea")] + TextArea = 2, + + /// + /// Enum Integer for value: Integer + /// + [EnumMember(Value = "Integer")] + Integer = 3, + + /// + /// Enum Decimal for value: Decimal + /// + [EnumMember(Value = "Decimal")] + Decimal = 4, + + /// + /// Enum Date for value: Date + /// + [EnumMember(Value = "Date")] + Date = 5, + + /// + /// Enum DateTime for value: DateTime + /// + [EnumMember(Value = "DateTime")] + DateTime = 6, + + /// + /// Enum Time for value: Time + /// + [EnumMember(Value = "Time")] + Time = 7, + + /// + /// Enum Select for value: Select + /// + [EnumMember(Value = "Select")] + Select = 8, + + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 9, + + /// + /// Enum ActionButton for value: ActionButton + /// + [EnumMember(Value = "ActionButton")] + ActionButton = 10 + } + + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=false)] + public FieldTypeEnum FieldType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Field() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// description (required). + /// key (required). + /// tooltip. + /// position (required). + /// defaultValue. + /// validValues. + /// validationRegex. + /// fieldType (required). + /// isFlipdishRestricted. + public Field(string name = default(string), string description = default(string), string key = default(string), string tooltip = default(string), int? position = default(int?), string defaultValue = default(string), List validValues = default(List), string validationRegex = default(string), FieldTypeEnum fieldType = default(FieldTypeEnum), bool? isFlipdishRestricted = default(bool?)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for Field and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for Field and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "key" is required (not null) + if (key == null) + { + throw new InvalidDataException("key is a required property for Field and cannot be null"); + } + else + { + this.Key = key; + } + // to ensure "position" is required (not null) + if (position == null) + { + throw new InvalidDataException("position is a required property for Field and cannot be null"); + } + else + { + this.Position = position; + } + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for Field and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + this.Tooltip = tooltip; + this.DefaultValue = defaultValue; + this.ValidValues = validValues; + this.ValidationRegex = validationRegex; + this.IsFlipdishRestricted = isFlipdishRestricted; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets Key + /// + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Gets or Sets Tooltip + /// + [DataMember(Name="Tooltip", EmitDefaultValue=false)] + public string Tooltip { get; set; } + + /// + /// Gets or Sets Position + /// + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// Gets or Sets DefaultValue + /// + [DataMember(Name="DefaultValue", EmitDefaultValue=false)] + public string DefaultValue { get; set; } + + /// + /// Gets or Sets ValidValues + /// + [DataMember(Name="ValidValues", EmitDefaultValue=false)] + public List ValidValues { get; set; } + + /// + /// Gets or Sets ValidationRegex + /// + [DataMember(Name="ValidationRegex", EmitDefaultValue=false)] + public string ValidationRegex { get; set; } + + + /// + /// Gets or Sets IsFlipdishRestricted + /// + [DataMember(Name="IsFlipdishRestricted", EmitDefaultValue=false)] + public bool? IsFlipdishRestricted { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Field {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Tooltip: ").Append(Tooltip).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" DefaultValue: ").Append(DefaultValue).Append("\n"); + sb.Append(" ValidValues: ").Append(ValidValues).Append("\n"); + sb.Append(" ValidationRegex: ").Append(ValidationRegex).Append("\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" IsFlipdishRestricted: ").Append(IsFlipdishRestricted).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Field); + } + + /// + /// Returns true if Field instances are equal + /// + /// Instance of Field to be compared + /// Boolean + public bool Equals(Field input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Tooltip == input.Tooltip || + (this.Tooltip != null && + this.Tooltip.Equals(input.Tooltip)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.DefaultValue == input.DefaultValue || + (this.DefaultValue != null && + this.DefaultValue.Equals(input.DefaultValue)) + ) && + ( + this.ValidValues == input.ValidValues || + this.ValidValues != null && + this.ValidValues.SequenceEqual(input.ValidValues) + ) && + ( + this.ValidationRegex == input.ValidationRegex || + (this.ValidationRegex != null && + this.ValidationRegex.Equals(input.ValidationRegex)) + ) && + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && + ( + this.IsFlipdishRestricted == input.IsFlipdishRestricted || + (this.IsFlipdishRestricted != null && + this.IsFlipdishRestricted.Equals(input.IsFlipdishRestricted)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Tooltip != null) + hashCode = hashCode * 59 + this.Tooltip.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.DefaultValue != null) + hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); + if (this.ValidValues != null) + hashCode = hashCode * 59 + this.ValidValues.GetHashCode(); + if (this.ValidationRegex != null) + hashCode = hashCode * 59 + this.ValidationRegex.GetHashCode(); + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.IsFlipdishRestricted != null) + hashCode = hashCode * 59 + this.IsFlipdishRestricted.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FieldChangeInformation.cs b/src/Flipdish/Model/FieldChangeInformation.cs new file mode 100644 index 00000000..a051dfab --- /dev/null +++ b/src/Flipdish/Model/FieldChangeInformation.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Change information for a field + /// + [DataContract] + public partial class FieldChangeInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Path (hierarchy). + /// Name of field. + /// Key (code) of field. + /// Old value. + /// New value. + public FieldChangeInformation(string path = default(string), string name = default(string), string key = default(string), string oldValue = default(string), string newValue = default(string)) + { + this.Path = path; + this.Name = name; + this.Key = key; + this.OldValue = oldValue; + this.NewValue = newValue; + } + + /// + /// Path (hierarchy) + /// + /// Path (hierarchy) + [DataMember(Name="Path", EmitDefaultValue=false)] + public string Path { get; set; } + + /// + /// Name of field + /// + /// Name of field + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Key (code) of field + /// + /// Key (code) of field + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Old value + /// + /// Old value + [DataMember(Name="OldValue", EmitDefaultValue=false)] + public string OldValue { get; set; } + + /// + /// New value + /// + /// New value + [DataMember(Name="NewValue", EmitDefaultValue=false)] + public string NewValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FieldChangeInformation {\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" OldValue: ").Append(OldValue).Append("\n"); + sb.Append(" NewValue: ").Append(NewValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FieldChangeInformation); + } + + /// + /// Returns true if FieldChangeInformation instances are equal + /// + /// Instance of FieldChangeInformation to be compared + /// Boolean + public bool Equals(FieldChangeInformation input) + { + if (input == null) + return false; + + return + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.OldValue == input.OldValue || + (this.OldValue != null && + this.OldValue.Equals(input.OldValue)) + ) && + ( + this.NewValue == input.NewValue || + (this.NewValue != null && + this.NewValue.Equals(input.NewValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Path != null) + hashCode = hashCode * 59 + this.Path.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.OldValue != null) + hashCode = hashCode * 59 + this.OldValue.GetHashCode(); + if (this.NewValue != null) + hashCode = hashCode * 59 + this.NewValue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FieldGroup.cs b/src/Flipdish/Model/FieldGroup.cs new file mode 100644 index 00000000..a0e90b58 --- /dev/null +++ b/src/Flipdish/Model/FieldGroup.cs @@ -0,0 +1,197 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// FieldGroup + /// + [DataContract] + public partial class FieldGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FieldGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// name (required). + /// description. + /// tooltip. + /// position (required). + /// fields. + public FieldGroup(string name = default(string), string description = default(string), string tooltip = default(string), int? position = default(int?), List fields = default(List)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for FieldGroup and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "position" is required (not null) + if (position == null) + { + throw new InvalidDataException("position is a required property for FieldGroup and cannot be null"); + } + else + { + this.Position = position; + } + this.Description = description; + this.Tooltip = tooltip; + this.Fields = fields; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets Tooltip + /// + [DataMember(Name="Tooltip", EmitDefaultValue=false)] + public string Tooltip { get; set; } + + /// + /// Gets or Sets Position + /// + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// Gets or Sets Fields + /// + [DataMember(Name="Fields", EmitDefaultValue=false)] + public List Fields { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FieldGroup {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Tooltip: ").Append(Tooltip).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" Fields: ").Append(Fields).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FieldGroup); + } + + /// + /// Returns true if FieldGroup instances are equal + /// + /// Instance of FieldGroup to be compared + /// Boolean + public bool Equals(FieldGroup input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Tooltip == input.Tooltip || + (this.Tooltip != null && + this.Tooltip.Equals(input.Tooltip)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Fields == input.Fields || + this.Fields != null && + this.Fields.SequenceEqual(input.Fields) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Tooltip != null) + hashCode = hashCode * 59 + this.Tooltip.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Fields != null) + hashCode = hashCode * 59 + this.Fields.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FirebaseApp.cs b/src/Flipdish/Model/FirebaseApp.cs new file mode 100644 index 00000000..086bf8f3 --- /dev/null +++ b/src/Flipdish/Model/FirebaseApp.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// FirebaseApp. + /// + [DataContract] + public partial class FirebaseApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// WhitelabelId.. + /// PackageId.. + /// FirebaseAppId.. + /// FirebaseProjectId.. + public FirebaseApp(int? whitelabelId = default(int?), string packageId = default(string), string firebaseAppId = default(string), string firebaseProjectId = default(string)) + { + this.WhitelabelId = whitelabelId; + this.PackageId = packageId; + this.FirebaseAppId = firebaseAppId; + this.FirebaseProjectId = firebaseProjectId; + } + + /// + /// WhitelabelId. + /// + /// WhitelabelId. + [DataMember(Name="WhitelabelId", EmitDefaultValue=false)] + public int? WhitelabelId { get; set; } + + /// + /// PackageId. + /// + /// PackageId. + [DataMember(Name="PackageId", EmitDefaultValue=false)] + public string PackageId { get; set; } + + /// + /// FirebaseAppId. + /// + /// FirebaseAppId. + [DataMember(Name="FirebaseAppId", EmitDefaultValue=false)] + public string FirebaseAppId { get; set; } + + /// + /// FirebaseProjectId. + /// + /// FirebaseProjectId. + [DataMember(Name="FirebaseProjectId", EmitDefaultValue=false)] + public string FirebaseProjectId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FirebaseApp {\n"); + sb.Append(" WhitelabelId: ").Append(WhitelabelId).Append("\n"); + sb.Append(" PackageId: ").Append(PackageId).Append("\n"); + sb.Append(" FirebaseAppId: ").Append(FirebaseAppId).Append("\n"); + sb.Append(" FirebaseProjectId: ").Append(FirebaseProjectId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FirebaseApp); + } + + /// + /// Returns true if FirebaseApp instances are equal + /// + /// Instance of FirebaseApp to be compared + /// Boolean + public bool Equals(FirebaseApp input) + { + if (input == null) + return false; + + return + ( + this.WhitelabelId == input.WhitelabelId || + (this.WhitelabelId != null && + this.WhitelabelId.Equals(input.WhitelabelId)) + ) && + ( + this.PackageId == input.PackageId || + (this.PackageId != null && + this.PackageId.Equals(input.PackageId)) + ) && + ( + this.FirebaseAppId == input.FirebaseAppId || + (this.FirebaseAppId != null && + this.FirebaseAppId.Equals(input.FirebaseAppId)) + ) && + ( + this.FirebaseProjectId == input.FirebaseProjectId || + (this.FirebaseProjectId != null && + this.FirebaseProjectId.Equals(input.FirebaseProjectId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhitelabelId != null) + hashCode = hashCode * 59 + this.WhitelabelId.GetHashCode(); + if (this.PackageId != null) + hashCode = hashCode * 59 + this.PackageId.GetHashCode(); + if (this.FirebaseAppId != null) + hashCode = hashCode * 59 + this.FirebaseAppId.GetHashCode(); + if (this.FirebaseProjectId != null) + hashCode = hashCode * 59 + this.FirebaseProjectId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FlipdishAccountName.cs b/src/Flipdish/Model/FlipdishAccountName.cs new file mode 100644 index 00000000..35db7b0a --- /dev/null +++ b/src/Flipdish/Model/FlipdishAccountName.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Flipdish Account Name + /// + [DataContract] + public partial class FlipdishAccountName : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Payee Bank Account Data Id. + /// Flipdish Account Id. + /// Account Name. + public FlipdishAccountName(int? payeeBankAccountDataId = default(int?), int? flipdishAccountId = default(int?), string name = default(string)) + { + this.PayeeBankAccountDataId = payeeBankAccountDataId; + this.FlipdishAccountId = flipdishAccountId; + this.Name = name; + } + + /// + /// Payee Bank Account Data Id + /// + /// Payee Bank Account Data Id + [DataMember(Name="PayeeBankAccountDataId", EmitDefaultValue=false)] + public int? PayeeBankAccountDataId { get; set; } + + /// + /// Flipdish Account Id + /// + /// Flipdish Account Id + [DataMember(Name="FlipdishAccountId", EmitDefaultValue=false)] + public int? FlipdishAccountId { get; set; } + + /// + /// Account Name + /// + /// Account Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlipdishAccountName {\n"); + sb.Append(" PayeeBankAccountDataId: ").Append(PayeeBankAccountDataId).Append("\n"); + sb.Append(" FlipdishAccountId: ").Append(FlipdishAccountId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlipdishAccountName); + } + + /// + /// Returns true if FlipdishAccountName instances are equal + /// + /// Instance of FlipdishAccountName to be compared + /// Boolean + public bool Equals(FlipdishAccountName input) + { + if (input == null) + return false; + + return + ( + this.PayeeBankAccountDataId == input.PayeeBankAccountDataId || + (this.PayeeBankAccountDataId != null && + this.PayeeBankAccountDataId.Equals(input.PayeeBankAccountDataId)) + ) && + ( + this.FlipdishAccountId == input.FlipdishAccountId || + (this.FlipdishAccountId != null && + this.FlipdishAccountId.Equals(input.FlipdishAccountId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayeeBankAccountDataId != null) + hashCode = hashCode * 59 + this.PayeeBankAccountDataId.GetHashCode(); + if (this.FlipdishAccountId != null) + hashCode = hashCode * 59 + this.FlipdishAccountId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FlipdishEventBase.cs b/src/Flipdish/Model/FlipdishEventBase.cs new file mode 100644 index 00000000..255d078b --- /dev/null +++ b/src/Flipdish/Model/FlipdishEventBase.cs @@ -0,0 +1,249 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Base Event + /// + [DataContract] + public partial class FlipdishEventBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public FlipdishEventBase(string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlipdishEventBase {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlipdishEventBase); + } + + /// + /// Returns true if FlipdishEventBase instances are equal + /// + /// Instance of FlipdishEventBase to be compared + /// Boolean + public bool Equals(FlipdishEventBase input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FlipdishFeesDetails.cs b/src/Flipdish/Model/FlipdishFeesDetails.cs new file mode 100644 index 00000000..585a5d59 --- /dev/null +++ b/src/Flipdish/Model/FlipdishFeesDetails.cs @@ -0,0 +1,249 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fees breakdown + /// + [DataContract] + public partial class FlipdishFeesDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Fees on online sales. + /// Fees on cash sales. + /// Fees of POS sales. + /// Total online and cash sales. + /// Fees on refunds for online sales. + /// Fees on refunds for cash sales. + /// Fees on refunds for POS sales. + /// VAT on sales fees. + /// Total fees. + public FlipdishFeesDetails(double? onlineSalesFees = default(double?), double? cashSalesFees = default(double?), double? posSalesFees = default(double?), double? totalSalesFees = default(double?), double? onlineSalesRefundedFees = default(double?), double? cashSalesRefundedFees = default(double?), double? posSalesRefundedFees = default(double?), double? salesFeesVat = default(double?), double? totalFees = default(double?)) + { + this.OnlineSalesFees = onlineSalesFees; + this.CashSalesFees = cashSalesFees; + this.PosSalesFees = posSalesFees; + this.TotalSalesFees = totalSalesFees; + this.OnlineSalesRefundedFees = onlineSalesRefundedFees; + this.CashSalesRefundedFees = cashSalesRefundedFees; + this.PosSalesRefundedFees = posSalesRefundedFees; + this.SalesFeesVat = salesFeesVat; + this.TotalFees = totalFees; + } + + /// + /// Fees on online sales + /// + /// Fees on online sales + [DataMember(Name="OnlineSalesFees", EmitDefaultValue=false)] + public double? OnlineSalesFees { get; set; } + + /// + /// Fees on cash sales + /// + /// Fees on cash sales + [DataMember(Name="CashSalesFees", EmitDefaultValue=false)] + public double? CashSalesFees { get; set; } + + /// + /// Fees of POS sales + /// + /// Fees of POS sales + [DataMember(Name="PosSalesFees", EmitDefaultValue=false)] + public double? PosSalesFees { get; set; } + + /// + /// Total online and cash sales + /// + /// Total online and cash sales + [DataMember(Name="TotalSalesFees", EmitDefaultValue=false)] + public double? TotalSalesFees { get; set; } + + /// + /// Fees on refunds for online sales + /// + /// Fees on refunds for online sales + [DataMember(Name="OnlineSalesRefundedFees", EmitDefaultValue=false)] + public double? OnlineSalesRefundedFees { get; set; } + + /// + /// Fees on refunds for cash sales + /// + /// Fees on refunds for cash sales + [DataMember(Name="CashSalesRefundedFees", EmitDefaultValue=false)] + public double? CashSalesRefundedFees { get; set; } + + /// + /// Fees on refunds for POS sales + /// + /// Fees on refunds for POS sales + [DataMember(Name="PosSalesRefundedFees", EmitDefaultValue=false)] + public double? PosSalesRefundedFees { get; set; } + + /// + /// VAT on sales fees + /// + /// VAT on sales fees + [DataMember(Name="SalesFeesVat", EmitDefaultValue=false)] + public double? SalesFeesVat { get; set; } + + /// + /// Total fees + /// + /// Total fees + [DataMember(Name="TotalFees", EmitDefaultValue=false)] + public double? TotalFees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlipdishFeesDetails {\n"); + sb.Append(" OnlineSalesFees: ").Append(OnlineSalesFees).Append("\n"); + sb.Append(" CashSalesFees: ").Append(CashSalesFees).Append("\n"); + sb.Append(" PosSalesFees: ").Append(PosSalesFees).Append("\n"); + sb.Append(" TotalSalesFees: ").Append(TotalSalesFees).Append("\n"); + sb.Append(" OnlineSalesRefundedFees: ").Append(OnlineSalesRefundedFees).Append("\n"); + sb.Append(" CashSalesRefundedFees: ").Append(CashSalesRefundedFees).Append("\n"); + sb.Append(" PosSalesRefundedFees: ").Append(PosSalesRefundedFees).Append("\n"); + sb.Append(" SalesFeesVat: ").Append(SalesFeesVat).Append("\n"); + sb.Append(" TotalFees: ").Append(TotalFees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlipdishFeesDetails); + } + + /// + /// Returns true if FlipdishFeesDetails instances are equal + /// + /// Instance of FlipdishFeesDetails to be compared + /// Boolean + public bool Equals(FlipdishFeesDetails input) + { + if (input == null) + return false; + + return + ( + this.OnlineSalesFees == input.OnlineSalesFees || + (this.OnlineSalesFees != null && + this.OnlineSalesFees.Equals(input.OnlineSalesFees)) + ) && + ( + this.CashSalesFees == input.CashSalesFees || + (this.CashSalesFees != null && + this.CashSalesFees.Equals(input.CashSalesFees)) + ) && + ( + this.PosSalesFees == input.PosSalesFees || + (this.PosSalesFees != null && + this.PosSalesFees.Equals(input.PosSalesFees)) + ) && + ( + this.TotalSalesFees == input.TotalSalesFees || + (this.TotalSalesFees != null && + this.TotalSalesFees.Equals(input.TotalSalesFees)) + ) && + ( + this.OnlineSalesRefundedFees == input.OnlineSalesRefundedFees || + (this.OnlineSalesRefundedFees != null && + this.OnlineSalesRefundedFees.Equals(input.OnlineSalesRefundedFees)) + ) && + ( + this.CashSalesRefundedFees == input.CashSalesRefundedFees || + (this.CashSalesRefundedFees != null && + this.CashSalesRefundedFees.Equals(input.CashSalesRefundedFees)) + ) && + ( + this.PosSalesRefundedFees == input.PosSalesRefundedFees || + (this.PosSalesRefundedFees != null && + this.PosSalesRefundedFees.Equals(input.PosSalesRefundedFees)) + ) && + ( + this.SalesFeesVat == input.SalesFeesVat || + (this.SalesFeesVat != null && + this.SalesFeesVat.Equals(input.SalesFeesVat)) + ) && + ( + this.TotalFees == input.TotalFees || + (this.TotalFees != null && + this.TotalFees.Equals(input.TotalFees)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OnlineSalesFees != null) + hashCode = hashCode * 59 + this.OnlineSalesFees.GetHashCode(); + if (this.CashSalesFees != null) + hashCode = hashCode * 59 + this.CashSalesFees.GetHashCode(); + if (this.PosSalesFees != null) + hashCode = hashCode * 59 + this.PosSalesFees.GetHashCode(); + if (this.TotalSalesFees != null) + hashCode = hashCode * 59 + this.TotalSalesFees.GetHashCode(); + if (this.OnlineSalesRefundedFees != null) + hashCode = hashCode * 59 + this.OnlineSalesRefundedFees.GetHashCode(); + if (this.CashSalesRefundedFees != null) + hashCode = hashCode * 59 + this.CashSalesRefundedFees.GetHashCode(); + if (this.PosSalesRefundedFees != null) + hashCode = hashCode * 59 + this.PosSalesRefundedFees.GetHashCode(); + if (this.SalesFeesVat != null) + hashCode = hashCode * 59 + this.SalesFeesVat.GetHashCode(); + if (this.TotalFees != null) + hashCode = hashCode * 59 + this.TotalFees.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FulfillentStatusActionItem.cs b/src/Flipdish/Model/FulfillentStatusActionItem.cs new file mode 100644 index 00000000..03f1fa77 --- /dev/null +++ b/src/Flipdish/Model/FulfillentStatusActionItem.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Action item for next fulfillment status selector + /// + [DataContract] + public partial class FulfillentStatusActionItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Status Id. + /// Status Name. + public FulfillentStatusActionItem(string id = default(string), string name = default(string)) + { + this.Id = id; + this.Name = name; + } + + /// + /// Status Id + /// + /// Status Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Status Name + /// + /// Status Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FulfillentStatusActionItem {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FulfillentStatusActionItem); + } + + /// + /// Returns true if FulfillentStatusActionItem instances are equal + /// + /// Instance of FulfillentStatusActionItem to be compared + /// Boolean + public bool Equals(FulfillentStatusActionItem input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FulfillmentStatesConfiguration.cs b/src/Flipdish/Model/FulfillmentStatesConfiguration.cs new file mode 100644 index 00000000..c753d497 --- /dev/null +++ b/src/Flipdish/Model/FulfillmentStatesConfiguration.cs @@ -0,0 +1,242 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fulfillment States Configuration + /// + [DataContract] + public partial class FulfillmentStatesConfiguration : IEquatable + { + /// + /// Store Selector Type + /// + /// Store Selector Type + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Store Selector Type + /// + /// Store Selector Type + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum? StoreSelectorType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// States. + /// Enable automatic transitions. + /// AppId. + /// Configuration Uid. + /// Store Selector Type. + /// Store Ids. + /// Name. + public FulfillmentStatesConfiguration(List states = default(List), bool? automaticTransitionsEnabled = default(bool?), string appId = default(string), string configurationUid = default(string), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List storeIds = default(List), string name = default(string)) + { + this.States = states; + this.AutomaticTransitionsEnabled = automaticTransitionsEnabled; + this.AppId = appId; + this.ConfigurationUid = configurationUid; + this.StoreSelectorType = storeSelectorType; + this.StoreIds = storeIds; + this.Name = name; + } + + /// + /// States + /// + /// States + [DataMember(Name="States", EmitDefaultValue=false)] + public List States { get; set; } + + /// + /// Enable automatic transitions + /// + /// Enable automatic transitions + [DataMember(Name="AutomaticTransitionsEnabled", EmitDefaultValue=false)] + public bool? AutomaticTransitionsEnabled { get; set; } + + /// + /// AppId + /// + /// AppId + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Configuration Uid + /// + /// Configuration Uid + [DataMember(Name="ConfigurationUid", EmitDefaultValue=false)] + public string ConfigurationUid { get; set; } + + + /// + /// Store Ids + /// + /// Store Ids + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FulfillmentStatesConfiguration {\n"); + sb.Append(" States: ").Append(States).Append("\n"); + sb.Append(" AutomaticTransitionsEnabled: ").Append(AutomaticTransitionsEnabled).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ConfigurationUid: ").Append(ConfigurationUid).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FulfillmentStatesConfiguration); + } + + /// + /// Returns true if FulfillmentStatesConfiguration instances are equal + /// + /// Instance of FulfillmentStatesConfiguration to be compared + /// Boolean + public bool Equals(FulfillmentStatesConfiguration input) + { + if (input == null) + return false; + + return + ( + this.States == input.States || + this.States != null && + this.States.SequenceEqual(input.States) + ) && + ( + this.AutomaticTransitionsEnabled == input.AutomaticTransitionsEnabled || + (this.AutomaticTransitionsEnabled != null && + this.AutomaticTransitionsEnabled.Equals(input.AutomaticTransitionsEnabled)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ConfigurationUid == input.ConfigurationUid || + (this.ConfigurationUid != null && + this.ConfigurationUid.Equals(input.ConfigurationUid)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.States != null) + hashCode = hashCode * 59 + this.States.GetHashCode(); + if (this.AutomaticTransitionsEnabled != null) + hashCode = hashCode * 59 + this.AutomaticTransitionsEnabled.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ConfigurationUid != null) + hashCode = hashCode * 59 + this.ConfigurationUid.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs b/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs new file mode 100644 index 00000000..b30c2e8c --- /dev/null +++ b/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs @@ -0,0 +1,221 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fulfillment configuration header information + /// + [DataContract] + public partial class FulfillmentStatesConfigurationSummary : IEquatable + { + /// + /// Store selector type + /// + /// Store selector type + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Store selector type + /// + /// Store selector type + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum? StoreSelectorType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentStatesConfigurationSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// AppId (required). + /// Configuration Uid. + /// Name. + /// Store selector type. + /// Stores. + public FulfillmentStatesConfigurationSummary(string appId = default(string), string configurationUid = default(string), string name = default(string), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List stores = default(List)) + { + // to ensure "appId" is required (not null) + if (appId == null) + { + throw new InvalidDataException("appId is a required property for FulfillmentStatesConfigurationSummary and cannot be null"); + } + else + { + this.AppId = appId; + } + this.ConfigurationUid = configurationUid; + this.Name = name; + this.StoreSelectorType = storeSelectorType; + this.Stores = stores; + } + + /// + /// AppId + /// + /// AppId + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Configuration Uid + /// + /// Configuration Uid + [DataMember(Name="ConfigurationUid", EmitDefaultValue=false)] + public string ConfigurationUid { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + /// + /// Stores + /// + /// Stores + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FulfillmentStatesConfigurationSummary {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ConfigurationUid: ").Append(ConfigurationUid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FulfillmentStatesConfigurationSummary); + } + + /// + /// Returns true if FulfillmentStatesConfigurationSummary instances are equal + /// + /// Instance of FulfillmentStatesConfigurationSummary to be compared + /// Boolean + public bool Equals(FulfillmentStatesConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ConfigurationUid == input.ConfigurationUid || + (this.ConfigurationUid != null && + this.ConfigurationUid.Equals(input.ConfigurationUid)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ConfigurationUid != null) + hashCode = hashCode * 59 + this.ConfigurationUid.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FulfillmentStatesConfiguredStore.cs b/src/Flipdish/Model/FulfillmentStatesConfiguredStore.cs new file mode 100644 index 00000000..e5766708 --- /dev/null +++ b/src/Flipdish/Model/FulfillmentStatesConfiguredStore.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Configured stores + /// + [DataContract] + public partial class FulfillmentStatesConfiguredStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store id. + /// Name of store. + public FulfillmentStatesConfiguredStore(int? storeId = default(int?), string name = default(string)) + { + this.StoreId = storeId; + this.Name = name; + } + + /// + /// Store id + /// + /// Store id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name of store + /// + /// Name of store + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FulfillmentStatesConfiguredStore {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FulfillmentStatesConfiguredStore); + } + + /// + /// Returns true if FulfillmentStatesConfiguredStore instances are equal + /// + /// Instance of FulfillmentStatesConfiguredStore to be compared + /// Boolean + public bool Equals(FulfillmentStatesConfiguredStore input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs b/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs new file mode 100644 index 00000000..450798df --- /dev/null +++ b/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs @@ -0,0 +1,411 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fulfillment Status Item + /// + [DataContract] + public partial class FulfillmentStatusConfigurationItem : IEquatable + { + /// + /// How will state change (manually or automated, including timed) + /// + /// How will state change (manually or automated, including timed) + [JsonConverter(typeof(StringEnumConverter))] + public enum ChangeTypeEnum + { + + /// + /// Enum Manual for value: Manual + /// + [EnumMember(Value = "Manual")] + Manual = 1, + + /// + /// Enum Automated for value: Automated + /// + [EnumMember(Value = "Automated")] + Automated = 2, + + /// + /// Enum Integrated for value: Integrated + /// + [EnumMember(Value = "Integrated")] + Integrated = 3 + } + + /// + /// How will state change (manually or automated, including timed) + /// + /// How will state change (manually or automated, including timed) + [DataMember(Name="ChangeType", EmitDefaultValue=false)] + public ChangeTypeEnum? ChangeType { get; set; } + /// + /// Defines OrderTypes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypesEnum + { + + /// + /// Enum All for value: All + /// + [EnumMember(Value = "All")] + All = 1, + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 2, + + /// + /// Enum Collection for value: Collection + /// + [EnumMember(Value = "Collection")] + Collection = 3, + + /// + /// Enum DineIn for value: DineIn + /// + [EnumMember(Value = "DineIn")] + DineIn = 4 + } + + + /// + /// If empty then applies to all ordertypes, otherwise a list of order types this state applies to + /// + /// If empty then applies to all ordertypes, otherwise a list of order types this state applies to + [DataMember(Name="OrderTypes", EmitDefaultValue=false)] + public List OrderTypes { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Status Id (no whitespaces). + /// Status name. + /// Is status enabled. + /// The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead. + /// Icon/Image that represents that status visual. + /// A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status). + /// Is internal state (internal states not shown to customers). + /// list of statuses that this status can move to (can be back or forth). + /// The default next status (on a dropdown or quick button on terminal or portal). + /// How will state change (manually or automated, including timed). + /// Include in reports. + /// Is custom state. If not, then it's a system state. + /// If empty then applies to all ordertypes, otherwise a list of order types this state applies to. + /// Whether state should fire off a notification to the customer. + /// Image (image filename, relative, not absolute URL). + public FulfillmentStatusConfigurationItem(string statusId = default(string), string statusName = default(string), bool? enabled = default(bool?), string displayName = default(string), string icon = default(string), string publicDescription = default(string), bool? _internal = default(bool?), List nextStatuses = default(List), List defaultNextStatus = default(List), ChangeTypeEnum? changeType = default(ChangeTypeEnum?), bool? includeInReports = default(bool?), bool? isCustom = default(bool?), List orderTypes = default(List), bool? communication = default(bool?), string image = default(string)) + { + this.StatusId = statusId; + this.StatusName = statusName; + this.Enabled = enabled; + this.DisplayName = displayName; + this.Icon = icon; + this.PublicDescription = publicDescription; + this.Internal = _internal; + this.NextStatuses = nextStatuses; + this.DefaultNextStatus = defaultNextStatus; + this.ChangeType = changeType; + this.IncludeInReports = includeInReports; + this.IsCustom = isCustom; + this.OrderTypes = orderTypes; + this.Communication = communication; + this.Image = image; + } + + /// + /// Status Id (no whitespaces) + /// + /// Status Id (no whitespaces) + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// Status name + /// + /// Status name + [DataMember(Name="StatusName", EmitDefaultValue=false)] + public string StatusName { get; set; } + + /// + /// Is status enabled + /// + /// Is status enabled + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead + /// + /// The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// Icon/Image that represents that status visual + /// + /// Icon/Image that represents that status visual + [DataMember(Name="Icon", EmitDefaultValue=false)] + public string Icon { get; set; } + + /// + /// A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status) + /// + /// A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status) + [DataMember(Name="PublicDescription", EmitDefaultValue=false)] + public string PublicDescription { get; set; } + + /// + /// Is internal state (internal states not shown to customers) + /// + /// Is internal state (internal states not shown to customers) + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// list of statuses that this status can move to (can be back or forth) + /// + /// list of statuses that this status can move to (can be back or forth) + [DataMember(Name="NextStatuses", EmitDefaultValue=false)] + public List NextStatuses { get; set; } + + /// + /// The default next status (on a dropdown or quick button on terminal or portal) + /// + /// The default next status (on a dropdown or quick button on terminal or portal) + [DataMember(Name="DefaultNextStatus", EmitDefaultValue=false)] + public List DefaultNextStatus { get; set; } + + + /// + /// Include in reports + /// + /// Include in reports + [DataMember(Name="IncludeInReports", EmitDefaultValue=false)] + public bool? IncludeInReports { get; set; } + + /// + /// Is custom state. If not, then it's a system state + /// + /// Is custom state. If not, then it's a system state + [DataMember(Name="IsCustom", EmitDefaultValue=false)] + public bool? IsCustom { get; set; } + + + /// + /// Whether state should fire off a notification to the customer + /// + /// Whether state should fire off a notification to the customer + [DataMember(Name="Communication", EmitDefaultValue=false)] + public bool? Communication { get; set; } + + /// + /// Image (image filename, relative, not absolute URL) + /// + /// Image (image filename, relative, not absolute URL) + [DataMember(Name="Image", EmitDefaultValue=false)] + public string Image { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FulfillmentStatusConfigurationItem {\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append(" StatusName: ").Append(StatusName).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Icon: ").Append(Icon).Append("\n"); + sb.Append(" PublicDescription: ").Append(PublicDescription).Append("\n"); + sb.Append(" Internal: ").Append(Internal).Append("\n"); + sb.Append(" NextStatuses: ").Append(NextStatuses).Append("\n"); + sb.Append(" DefaultNextStatus: ").Append(DefaultNextStatus).Append("\n"); + sb.Append(" ChangeType: ").Append(ChangeType).Append("\n"); + sb.Append(" IncludeInReports: ").Append(IncludeInReports).Append("\n"); + sb.Append(" IsCustom: ").Append(IsCustom).Append("\n"); + sb.Append(" OrderTypes: ").Append(OrderTypes).Append("\n"); + sb.Append(" Communication: ").Append(Communication).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FulfillmentStatusConfigurationItem); + } + + /// + /// Returns true if FulfillmentStatusConfigurationItem instances are equal + /// + /// Instance of FulfillmentStatusConfigurationItem to be compared + /// Boolean + public bool Equals(FulfillmentStatusConfigurationItem input) + { + if (input == null) + return false; + + return + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ) && + ( + this.StatusName == input.StatusName || + (this.StatusName != null && + this.StatusName.Equals(input.StatusName)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Icon == input.Icon || + (this.Icon != null && + this.Icon.Equals(input.Icon)) + ) && + ( + this.PublicDescription == input.PublicDescription || + (this.PublicDescription != null && + this.PublicDescription.Equals(input.PublicDescription)) + ) && + ( + this.Internal == input.Internal || + (this.Internal != null && + this.Internal.Equals(input.Internal)) + ) && + ( + this.NextStatuses == input.NextStatuses || + this.NextStatuses != null && + this.NextStatuses.SequenceEqual(input.NextStatuses) + ) && + ( + this.DefaultNextStatus == input.DefaultNextStatus || + this.DefaultNextStatus != null && + this.DefaultNextStatus.SequenceEqual(input.DefaultNextStatus) + ) && + ( + this.ChangeType == input.ChangeType || + (this.ChangeType != null && + this.ChangeType.Equals(input.ChangeType)) + ) && + ( + this.IncludeInReports == input.IncludeInReports || + (this.IncludeInReports != null && + this.IncludeInReports.Equals(input.IncludeInReports)) + ) && + ( + this.IsCustom == input.IsCustom || + (this.IsCustom != null && + this.IsCustom.Equals(input.IsCustom)) + ) && + ( + this.OrderTypes == input.OrderTypes || + this.OrderTypes != null && + this.OrderTypes.SequenceEqual(input.OrderTypes) + ) && + ( + this.Communication == input.Communication || + (this.Communication != null && + this.Communication.Equals(input.Communication)) + ) && + ( + this.Image == input.Image || + (this.Image != null && + this.Image.Equals(input.Image)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + if (this.StatusName != null) + hashCode = hashCode * 59 + this.StatusName.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.Icon != null) + hashCode = hashCode * 59 + this.Icon.GetHashCode(); + if (this.PublicDescription != null) + hashCode = hashCode * 59 + this.PublicDescription.GetHashCode(); + if (this.Internal != null) + hashCode = hashCode * 59 + this.Internal.GetHashCode(); + if (this.NextStatuses != null) + hashCode = hashCode * 59 + this.NextStatuses.GetHashCode(); + if (this.DefaultNextStatus != null) + hashCode = hashCode * 59 + this.DefaultNextStatus.GetHashCode(); + if (this.ChangeType != null) + hashCode = hashCode * 59 + this.ChangeType.GetHashCode(); + if (this.IncludeInReports != null) + hashCode = hashCode * 59 + this.IncludeInReports.GetHashCode(); + if (this.IsCustom != null) + hashCode = hashCode * 59 + this.IsCustom.GetHashCode(); + if (this.OrderTypes != null) + hashCode = hashCode * 59 + this.OrderTypes.GetHashCode(); + if (this.Communication != null) + hashCode = hashCode * 59 + this.Communication.GetHashCode(); + if (this.Image != null) + hashCode = hashCode * 59 + this.Image.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GeoPointRequest.cs b/src/Flipdish/Model/GeoPointRequest.cs new file mode 100644 index 00000000..b685861c --- /dev/null +++ b/src/Flipdish/Model/GeoPointRequest.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Terminal location request + /// + [DataContract] + public partial class GeoPointRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Kiosk device latitude. + /// Kiosk device longitude. + public GeoPointRequest(double? latitude = default(double?), double? longitude = default(double?)) + { + this.Latitude = latitude; + this.Longitude = longitude; + } + + /// + /// Kiosk device latitude + /// + /// Kiosk device latitude + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Kiosk device longitude + /// + /// Kiosk device longitude + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GeoPointRequest {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GeoPointRequest); + } + + /// + /// Returns true if GeoPointRequest instances are equal + /// + /// Instance of GeoPointRequest to be compared + /// Boolean + public bool Equals(GeoPointRequest input) + { + if (input == null) + return false; + + return + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GetEndUserFeeConfigsResponse.cs b/src/Flipdish/Model/GetEndUserFeeConfigsResponse.cs new file mode 100644 index 00000000..3edbca5e --- /dev/null +++ b/src/Flipdish/Model/GetEndUserFeeConfigsResponse.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// The current end user fee configs for a Store, one per channel and payment method + /// + [DataContract] + public partial class GetEndUserFeeConfigsResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The current end user fee configs for the Store, one per channel and payment method combination present. + /// Whether the V2 (tiered) fee calculation is enabled for this Store. + public GetEndUserFeeConfigsResponse(List endUserFees = default(List), bool? isV2FeeCalculationEnabled = default(bool?)) + { + this.EndUserFees = endUserFees; + this.IsV2FeeCalculationEnabled = isV2FeeCalculationEnabled; + } + + /// + /// The current end user fee configs for the Store, one per channel and payment method combination present + /// + /// The current end user fee configs for the Store, one per channel and payment method combination present + [DataMember(Name="EndUserFees", EmitDefaultValue=false)] + public List EndUserFees { get; set; } + + /// + /// Whether the V2 (tiered) fee calculation is enabled for this Store + /// + /// Whether the V2 (tiered) fee calculation is enabled for this Store + [DataMember(Name="IsV2FeeCalculationEnabled", EmitDefaultValue=false)] + public bool? IsV2FeeCalculationEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetEndUserFeeConfigsResponse {\n"); + sb.Append(" EndUserFees: ").Append(EndUserFees).Append("\n"); + sb.Append(" IsV2FeeCalculationEnabled: ").Append(IsV2FeeCalculationEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetEndUserFeeConfigsResponse); + } + + /// + /// Returns true if GetEndUserFeeConfigsResponse instances are equal + /// + /// Instance of GetEndUserFeeConfigsResponse to be compared + /// Boolean + public bool Equals(GetEndUserFeeConfigsResponse input) + { + if (input == null) + return false; + + return + ( + this.EndUserFees == input.EndUserFees || + this.EndUserFees != null && + this.EndUserFees.SequenceEqual(input.EndUserFees) + ) && + ( + this.IsV2FeeCalculationEnabled == input.IsV2FeeCalculationEnabled || + (this.IsV2FeeCalculationEnabled != null && + this.IsV2FeeCalculationEnabled.Equals(input.IsV2FeeCalculationEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EndUserFees != null) + hashCode = hashCode * 59 + this.EndUserFees.GetHashCode(); + if (this.IsV2FeeCalculationEnabled != null) + hashCode = hashCode * 59 + this.IsV2FeeCalculationEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GetReceiptByOrderIdQueryResponse.cs b/src/Flipdish/Model/GetReceiptByOrderIdQueryResponse.cs new file mode 100644 index 00000000..195bd69e --- /dev/null +++ b/src/Flipdish/Model/GetReceiptByOrderIdQueryResponse.cs @@ -0,0 +1,256 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GetReceiptByOrderIdQueryResponse + /// + [DataContract] + public partial class GetReceiptByOrderIdQueryResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// previousOrder. + /// depositReturnFeesSummary. + /// tsRequestedForLocal. + /// tsOrderPlacedLocal. + /// logoUrl. + /// address. + /// vatNumber. + /// paymentMethodDescription. + /// orgId. + /// countryCode. + public GetReceiptByOrderIdQueryResponse(PreviousOrder previousOrder = default(PreviousOrder), List depositReturnFeesSummary = default(List), DateTime? tsRequestedForLocal = default(DateTime?), DateTime? tsOrderPlacedLocal = default(DateTime?), string logoUrl = default(string), string address = default(string), string vatNumber = default(string), string paymentMethodDescription = default(string), string orgId = default(string), string countryCode = default(string)) + { + this.PreviousOrder = previousOrder; + this.DepositReturnFeesSummary = depositReturnFeesSummary; + this.TsRequestedForLocal = tsRequestedForLocal; + this.TsOrderPlacedLocal = tsOrderPlacedLocal; + this.LogoUrl = logoUrl; + this.Address = address; + this.VatNumber = vatNumber; + this.PaymentMethodDescription = paymentMethodDescription; + this.OrgId = orgId; + this.CountryCode = countryCode; + } + + /// + /// Gets or Sets PreviousOrder + /// + [DataMember(Name="PreviousOrder", EmitDefaultValue=false)] + public PreviousOrder PreviousOrder { get; set; } + + /// + /// Gets or Sets DepositReturnFeesSummary + /// + [DataMember(Name="DepositReturnFeesSummary", EmitDefaultValue=false)] + public List DepositReturnFeesSummary { get; set; } + + /// + /// Gets or Sets TsRequestedForLocal + /// + [DataMember(Name="TsRequestedForLocal", EmitDefaultValue=false)] + public DateTime? TsRequestedForLocal { get; set; } + + /// + /// Gets or Sets TsOrderPlacedLocal + /// + [DataMember(Name="TsOrderPlacedLocal", EmitDefaultValue=false)] + public DateTime? TsOrderPlacedLocal { get; set; } + + /// + /// Gets or Sets LogoUrl + /// + [DataMember(Name="LogoUrl", EmitDefaultValue=false)] + public string LogoUrl { get; set; } + + /// + /// Gets or Sets Address + /// + [DataMember(Name="Address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// Gets or Sets VatNumber + /// + [DataMember(Name="VatNumber", EmitDefaultValue=false)] + public string VatNumber { get; set; } + + /// + /// Gets or Sets PaymentMethodDescription + /// + [DataMember(Name="PaymentMethodDescription", EmitDefaultValue=false)] + public string PaymentMethodDescription { get; set; } + + /// + /// Gets or Sets OrgId + /// + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Gets or Sets CountryCode + /// + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetReceiptByOrderIdQueryResponse {\n"); + sb.Append(" PreviousOrder: ").Append(PreviousOrder).Append("\n"); + sb.Append(" DepositReturnFeesSummary: ").Append(DepositReturnFeesSummary).Append("\n"); + sb.Append(" TsRequestedForLocal: ").Append(TsRequestedForLocal).Append("\n"); + sb.Append(" TsOrderPlacedLocal: ").Append(TsOrderPlacedLocal).Append("\n"); + sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); + sb.Append(" PaymentMethodDescription: ").Append(PaymentMethodDescription).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetReceiptByOrderIdQueryResponse); + } + + /// + /// Returns true if GetReceiptByOrderIdQueryResponse instances are equal + /// + /// Instance of GetReceiptByOrderIdQueryResponse to be compared + /// Boolean + public bool Equals(GetReceiptByOrderIdQueryResponse input) + { + if (input == null) + return false; + + return + ( + this.PreviousOrder == input.PreviousOrder || + (this.PreviousOrder != null && + this.PreviousOrder.Equals(input.PreviousOrder)) + ) && + ( + this.DepositReturnFeesSummary == input.DepositReturnFeesSummary || + this.DepositReturnFeesSummary != null && + this.DepositReturnFeesSummary.SequenceEqual(input.DepositReturnFeesSummary) + ) && + ( + this.TsRequestedForLocal == input.TsRequestedForLocal || + (this.TsRequestedForLocal != null && + this.TsRequestedForLocal.Equals(input.TsRequestedForLocal)) + ) && + ( + this.TsOrderPlacedLocal == input.TsOrderPlacedLocal || + (this.TsOrderPlacedLocal != null && + this.TsOrderPlacedLocal.Equals(input.TsOrderPlacedLocal)) + ) && + ( + this.LogoUrl == input.LogoUrl || + (this.LogoUrl != null && + this.LogoUrl.Equals(input.LogoUrl)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.PaymentMethodDescription == input.PaymentMethodDescription || + (this.PaymentMethodDescription != null && + this.PaymentMethodDescription.Equals(input.PaymentMethodDescription)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PreviousOrder != null) + hashCode = hashCode * 59 + this.PreviousOrder.GetHashCode(); + if (this.DepositReturnFeesSummary != null) + hashCode = hashCode * 59 + this.DepositReturnFeesSummary.GetHashCode(); + if (this.TsRequestedForLocal != null) + hashCode = hashCode * 59 + this.TsRequestedForLocal.GetHashCode(); + if (this.TsOrderPlacedLocal != null) + hashCode = hashCode * 59 + this.TsOrderPlacedLocal.GetHashCode(); + if (this.LogoUrl != null) + hashCode = hashCode * 59 + this.LogoUrl.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.VatNumber != null) + hashCode = hashCode * 59 + this.VatNumber.GetHashCode(); + if (this.PaymentMethodDescription != null) + hashCode = hashCode * 59 + this.PaymentMethodDescription.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleAddress.cs b/src/Flipdish/Model/GoogleAddress.cs new file mode 100644 index 00000000..2d6cd554 --- /dev/null +++ b/src/Flipdish/Model/GoogleAddress.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleAddress + /// + [DataContract] + public partial class GoogleAddress : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// results. + /// result. + /// status. + public GoogleAddress(List results = default(List), GoogleAddressResult result = default(GoogleAddressResult), string status = default(string)) + { + this.Results = results; + this.Result = result; + this.Status = status; + } + + /// + /// Gets or Sets Results + /// + [DataMember(Name="Results", EmitDefaultValue=false)] + public List Results { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name="Result", EmitDefaultValue=false)] + public GoogleAddressResult Result { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleAddress {\n"); + sb.Append(" Results: ").Append(Results).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleAddress); + } + + /// + /// Returns true if GoogleAddress instances are equal + /// + /// Instance of GoogleAddress to be compared + /// Boolean + public bool Equals(GoogleAddress input) + { + if (input == null) + return false; + + return + ( + this.Results == input.Results || + this.Results != null && + this.Results.SequenceEqual(input.Results) + ) && + ( + this.Result == input.Result || + (this.Result != null && + this.Result.Equals(input.Result)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Results != null) + hashCode = hashCode * 59 + this.Results.GetHashCode(); + if (this.Result != null) + hashCode = hashCode * 59 + this.Result.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleAddressComponent.cs b/src/Flipdish/Model/GoogleAddressComponent.cs new file mode 100644 index 00000000..3c11c192 --- /dev/null +++ b/src/Flipdish/Model/GoogleAddressComponent.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleAddressComponent + /// + [DataContract] + public partial class GoogleAddressComponent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// longName. + /// shortName. + /// types. + public GoogleAddressComponent(string longName = default(string), string shortName = default(string), List types = default(List)) + { + this.Long_name = longName; + this.Short_name = shortName; + this.Types = types; + } + + /// + /// Gets or Sets Long_name + /// + [DataMember(Name="Long_name", EmitDefaultValue=false)] + public string Long_name { get; set; } + + /// + /// Gets or Sets Short_name + /// + [DataMember(Name="Short_name", EmitDefaultValue=false)] + public string Short_name { get; set; } + + /// + /// Gets or Sets Types + /// + [DataMember(Name="Types", EmitDefaultValue=false)] + public List Types { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleAddressComponent {\n"); + sb.Append(" Long_name: ").Append(Long_name).Append("\n"); + sb.Append(" Short_name: ").Append(Short_name).Append("\n"); + sb.Append(" Types: ").Append(Types).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleAddressComponent); + } + + /// + /// Returns true if GoogleAddressComponent instances are equal + /// + /// Instance of GoogleAddressComponent to be compared + /// Boolean + public bool Equals(GoogleAddressComponent input) + { + if (input == null) + return false; + + return + ( + this.Long_name == input.Long_name || + (this.Long_name != null && + this.Long_name.Equals(input.Long_name)) + ) && + ( + this.Short_name == input.Short_name || + (this.Short_name != null && + this.Short_name.Equals(input.Short_name)) + ) && + ( + this.Types == input.Types || + this.Types != null && + this.Types.SequenceEqual(input.Types) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Long_name != null) + hashCode = hashCode * 59 + this.Long_name.GetHashCode(); + if (this.Short_name != null) + hashCode = hashCode * 59 + this.Short_name.GetHashCode(); + if (this.Types != null) + hashCode = hashCode * 59 + this.Types.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleAddressResult.cs b/src/Flipdish/Model/GoogleAddressResult.cs new file mode 100644 index 00000000..c0519f78 --- /dev/null +++ b/src/Flipdish/Model/GoogleAddressResult.cs @@ -0,0 +1,176 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleAddressResult + /// + [DataContract] + public partial class GoogleAddressResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// addressComponents. + /// formattedAddress. + /// geometry. + /// placeId. + /// types. + public GoogleAddressResult(List addressComponents = default(List), string formattedAddress = default(string), GoogleGeometry geometry = default(GoogleGeometry), string placeId = default(string), List types = default(List)) + { + this.Address_components = addressComponents; + this.Formatted_address = formattedAddress; + this.Geometry = geometry; + this.Place_id = placeId; + this.Types = types; + } + + /// + /// Gets or Sets Address_components + /// + [DataMember(Name="Address_components", EmitDefaultValue=false)] + public List Address_components { get; set; } + + /// + /// Gets or Sets Formatted_address + /// + [DataMember(Name="Formatted_address", EmitDefaultValue=false)] + public string Formatted_address { get; set; } + + /// + /// Gets or Sets Geometry + /// + [DataMember(Name="Geometry", EmitDefaultValue=false)] + public GoogleGeometry Geometry { get; set; } + + /// + /// Gets or Sets Place_id + /// + [DataMember(Name="Place_id", EmitDefaultValue=false)] + public string Place_id { get; set; } + + /// + /// Gets or Sets Types + /// + [DataMember(Name="Types", EmitDefaultValue=false)] + public List Types { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleAddressResult {\n"); + sb.Append(" Address_components: ").Append(Address_components).Append("\n"); + sb.Append(" Formatted_address: ").Append(Formatted_address).Append("\n"); + sb.Append(" Geometry: ").Append(Geometry).Append("\n"); + sb.Append(" Place_id: ").Append(Place_id).Append("\n"); + sb.Append(" Types: ").Append(Types).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleAddressResult); + } + + /// + /// Returns true if GoogleAddressResult instances are equal + /// + /// Instance of GoogleAddressResult to be compared + /// Boolean + public bool Equals(GoogleAddressResult input) + { + if (input == null) + return false; + + return + ( + this.Address_components == input.Address_components || + this.Address_components != null && + this.Address_components.SequenceEqual(input.Address_components) + ) && + ( + this.Formatted_address == input.Formatted_address || + (this.Formatted_address != null && + this.Formatted_address.Equals(input.Formatted_address)) + ) && + ( + this.Geometry == input.Geometry || + (this.Geometry != null && + this.Geometry.Equals(input.Geometry)) + ) && + ( + this.Place_id == input.Place_id || + (this.Place_id != null && + this.Place_id.Equals(input.Place_id)) + ) && + ( + this.Types == input.Types || + this.Types != null && + this.Types.SequenceEqual(input.Types) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Address_components != null) + hashCode = hashCode * 59 + this.Address_components.GetHashCode(); + if (this.Formatted_address != null) + hashCode = hashCode * 59 + this.Formatted_address.GetHashCode(); + if (this.Geometry != null) + hashCode = hashCode * 59 + this.Geometry.GetHashCode(); + if (this.Place_id != null) + hashCode = hashCode * 59 + this.Place_id.GetHashCode(); + if (this.Types != null) + hashCode = hashCode * 59 + this.Types.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleCoordinates.cs b/src/Flipdish/Model/GoogleCoordinates.cs new file mode 100644 index 00000000..c2924d7d --- /dev/null +++ b/src/Flipdish/Model/GoogleCoordinates.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleCoordinates + /// + [DataContract] + public partial class GoogleCoordinates : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// lat. + /// lng. + public GoogleCoordinates(float? lat = default(float?), float? lng = default(float?)) + { + this.Lat = lat; + this.Lng = lng; + } + + /// + /// Gets or Sets Lat + /// + [DataMember(Name="Lat", EmitDefaultValue=false)] + public float? Lat { get; set; } + + /// + /// Gets or Sets Lng + /// + [DataMember(Name="Lng", EmitDefaultValue=false)] + public float? Lng { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleCoordinates {\n"); + sb.Append(" Lat: ").Append(Lat).Append("\n"); + sb.Append(" Lng: ").Append(Lng).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleCoordinates); + } + + /// + /// Returns true if GoogleCoordinates instances are equal + /// + /// Instance of GoogleCoordinates to be compared + /// Boolean + public bool Equals(GoogleCoordinates input) + { + if (input == null) + return false; + + return + ( + this.Lat == input.Lat || + (this.Lat != null && + this.Lat.Equals(input.Lat)) + ) && + ( + this.Lng == input.Lng || + (this.Lng != null && + this.Lng.Equals(input.Lng)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Lat != null) + hashCode = hashCode * 59 + this.Lat.GetHashCode(); + if (this.Lng != null) + hashCode = hashCode * 59 + this.Lng.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleGeometry.cs b/src/Flipdish/Model/GoogleGeometry.cs new file mode 100644 index 00000000..73077b8f --- /dev/null +++ b/src/Flipdish/Model/GoogleGeometry.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleGeometry + /// + [DataContract] + public partial class GoogleGeometry : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// location. + /// locationType. + /// viewport. + public GoogleGeometry(GoogleLocation location = default(GoogleLocation), string locationType = default(string), GoogleViewport viewport = default(GoogleViewport)) + { + this.Location = location; + this.Location_type = locationType; + this.Viewport = viewport; + } + + /// + /// Gets or Sets Location + /// + [DataMember(Name="Location", EmitDefaultValue=false)] + public GoogleLocation Location { get; set; } + + /// + /// Gets or Sets Location_type + /// + [DataMember(Name="Location_type", EmitDefaultValue=false)] + public string Location_type { get; set; } + + /// + /// Gets or Sets Viewport + /// + [DataMember(Name="Viewport", EmitDefaultValue=false)] + public GoogleViewport Viewport { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleGeometry {\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); + sb.Append(" Location_type: ").Append(Location_type).Append("\n"); + sb.Append(" Viewport: ").Append(Viewport).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleGeometry); + } + + /// + /// Returns true if GoogleGeometry instances are equal + /// + /// Instance of GoogleGeometry to be compared + /// Boolean + public bool Equals(GoogleGeometry input) + { + if (input == null) + return false; + + return + ( + this.Location == input.Location || + (this.Location != null && + this.Location.Equals(input.Location)) + ) && + ( + this.Location_type == input.Location_type || + (this.Location_type != null && + this.Location_type.Equals(input.Location_type)) + ) && + ( + this.Viewport == input.Viewport || + (this.Viewport != null && + this.Viewport.Equals(input.Viewport)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Location != null) + hashCode = hashCode * 59 + this.Location.GetHashCode(); + if (this.Location_type != null) + hashCode = hashCode * 59 + this.Location_type.GetHashCode(); + if (this.Viewport != null) + hashCode = hashCode * 59 + this.Viewport.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleLocation.cs b/src/Flipdish/Model/GoogleLocation.cs new file mode 100644 index 00000000..fd40f7c0 --- /dev/null +++ b/src/Flipdish/Model/GoogleLocation.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleLocation + /// + [DataContract] + public partial class GoogleLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// lat. + /// lng. + public GoogleLocation(float? lat = default(float?), float? lng = default(float?)) + { + this.Lat = lat; + this.Lng = lng; + } + + /// + /// Gets or Sets Lat + /// + [DataMember(Name="Lat", EmitDefaultValue=false)] + public float? Lat { get; set; } + + /// + /// Gets or Sets Lng + /// + [DataMember(Name="Lng", EmitDefaultValue=false)] + public float? Lng { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleLocation {\n"); + sb.Append(" Lat: ").Append(Lat).Append("\n"); + sb.Append(" Lng: ").Append(Lng).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleLocation); + } + + /// + /// Returns true if GoogleLocation instances are equal + /// + /// Instance of GoogleLocation to be compared + /// Boolean + public bool Equals(GoogleLocation input) + { + if (input == null) + return false; + + return + ( + this.Lat == input.Lat || + (this.Lat != null && + this.Lat.Equals(input.Lat)) + ) && + ( + this.Lng == input.Lng || + (this.Lng != null && + this.Lng.Equals(input.Lng)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Lat != null) + hashCode = hashCode * 59 + this.Lat.GetHashCode(); + if (this.Lng != null) + hashCode = hashCode * 59 + this.Lng.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GoogleViewport.cs b/src/Flipdish/Model/GoogleViewport.cs new file mode 100644 index 00000000..06c0e36b --- /dev/null +++ b/src/Flipdish/Model/GoogleViewport.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// GoogleViewport + /// + [DataContract] + public partial class GoogleViewport : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// northeast. + /// southwest. + public GoogleViewport(GoogleCoordinates northeast = default(GoogleCoordinates), GoogleCoordinates southwest = default(GoogleCoordinates)) + { + this.Northeast = northeast; + this.Southwest = southwest; + } + + /// + /// Gets or Sets Northeast + /// + [DataMember(Name="Northeast", EmitDefaultValue=false)] + public GoogleCoordinates Northeast { get; set; } + + /// + /// Gets or Sets Southwest + /// + [DataMember(Name="Southwest", EmitDefaultValue=false)] + public GoogleCoordinates Southwest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GoogleViewport {\n"); + sb.Append(" Northeast: ").Append(Northeast).Append("\n"); + sb.Append(" Southwest: ").Append(Southwest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GoogleViewport); + } + + /// + /// Returns true if GoogleViewport instances are equal + /// + /// Instance of GoogleViewport to be compared + /// Boolean + public bool Equals(GoogleViewport input) + { + if (input == null) + return false; + + return + ( + this.Northeast == input.Northeast || + (this.Northeast != null && + this.Northeast.Equals(input.Northeast)) + ) && + ( + this.Southwest == input.Southwest || + (this.Southwest != null && + this.Southwest.Equals(input.Southwest)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Northeast != null) + hashCode = hashCode * 59 + this.Northeast.GetHashCode(); + if (this.Southwest != null) + hashCode = hashCode * 59 + this.Southwest.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Group.cs b/src/Flipdish/Model/Group.cs new file mode 100644 index 00000000..88e70f65 --- /dev/null +++ b/src/Flipdish/Model/Group.cs @@ -0,0 +1,344 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// CatalogGroup + /// + [DataContract] + public partial class Group : IEquatable + { + /// + /// Type of group (ModifierGroup, etc) + /// + /// Type of group (ModifierGroup, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of group (ModifierGroup, etc) + /// + /// Type of group (ModifierGroup, etc) + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Group() { } + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog group id. + /// Unique catalog item id. + /// Returns true if the group is archived. + /// Minimum number of items that the user has to select. + /// Maximum number of items that the user has to select. + /// Collection of items associated with this product. + /// Collection of metafields. + /// Type of group (ModifierGroup, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Group name (required). + /// Autogenerate display text in ordering applications. + /// Image File Name. + public Group(string catalogGroupId = default(string), string catalogItemId = default(string), bool? isArchived = default(bool?), int? minSelectCount = default(int?), int? maxSelectCount = default(int?), List products = default(List), List metafields = default(List), GroupTypeEnum groupType = default(GroupTypeEnum), string sku = default(string), string name = default(string), bool? autogenerateDisplayText = default(bool?), string imageFileName = default(string)) + { + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for Group and cannot be null"); + } + else + { + this.GroupType = groupType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for Group and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for Group and cannot be null"); + } + else + { + this.Name = name; + } + this.CatalogGroupId = catalogGroupId; + this.CatalogItemId = catalogItemId; + this.IsArchived = isArchived; + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.Products = products; + this.Metafields = metafields; + this.AutogenerateDisplayText = autogenerateDisplayText; + this.ImageFileName = imageFileName; + } + + /// + /// Unique catalog group id + /// + /// Unique catalog group id + [DataMember(Name="CatalogGroupId", EmitDefaultValue=false)] + public string CatalogGroupId { get; set; } + + /// + /// Unique catalog item id + /// + /// Unique catalog item id + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Returns true if the group is archived + /// + /// Returns true if the group is archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Minimum number of items that the user has to select + /// + /// Minimum number of items that the user has to select + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items that the user has to select + /// + /// Maximum number of items that the user has to select + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + /// + /// Collection of items associated with this product + /// + /// Collection of items associated with this product + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Group name + /// + /// Group name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Autogenerate display text in ordering applications + /// + /// Autogenerate display text in ordering applications + [DataMember(Name="AutogenerateDisplayText", EmitDefaultValue=false)] + public bool? AutogenerateDisplayText { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Group {\n"); + sb.Append(" CatalogGroupId: ").Append(CatalogGroupId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AutogenerateDisplayText: ").Append(AutogenerateDisplayText).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Group); + } + + /// + /// Returns true if Group instances are equal + /// + /// Instance of Group to be compared + /// Boolean + public bool Equals(Group input) + { + if (input == null) + return false; + + return + ( + this.CatalogGroupId == input.CatalogGroupId || + (this.CatalogGroupId != null && + this.CatalogGroupId.Equals(input.CatalogGroupId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.Products == input.Products || + this.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.AutogenerateDisplayText == input.AutogenerateDisplayText || + (this.AutogenerateDisplayText != null && + this.AutogenerateDisplayText.Equals(input.AutogenerateDisplayText)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogGroupId != null) + hashCode = hashCode * 59 + this.CatalogGroupId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.Products != null) + hashCode = hashCode * 59 + this.Products.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.AutogenerateDisplayText != null) + hashCode = hashCode * 59 + this.AutogenerateDisplayText.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GroupReference.cs b/src/Flipdish/Model/GroupReference.cs new file mode 100644 index 00000000..9a7d88c2 --- /dev/null +++ b/src/Flipdish/Model/GroupReference.cs @@ -0,0 +1,183 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + /// + [DataContract] + public partial class GroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference.Group}. + /// Identifier of the ProductId to use as SubProduct (required). + /// Type of the SupProduct (required). + public GroupReference(Group group = default(Group), string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for GroupReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for GroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + this.Group = group; + } + + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference.Group} + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference.Group} + [DataMember(Name="Group", EmitDefaultValue=false)] + public Group Group { get; set; } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GroupReference {\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GroupReference); + } + + /// + /// Returns true if GroupReference instances are equal + /// + /// Instance of GroupReference to be compared + /// Boolean + public bool Equals(GroupReference input) + { + if (input == null) + return false; + + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/GroupedCoordinates.cs b/src/Flipdish/Model/GroupedCoordinates.cs new file mode 100644 index 00000000..c45b4ee4 --- /dev/null +++ b/src/Flipdish/Model/GroupedCoordinates.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes coordinates that have a group + /// + [DataContract] + public partial class GroupedCoordinates : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Latitude of this coordinate. + /// Longitude of this coordinate. + /// Count of members in the group. + public GroupedCoordinates(double? latitude = default(double?), double? longitude = default(double?), int? count = default(int?)) + { + this.Latitude = latitude; + this.Longitude = longitude; + this.Count = count; + } + + /// + /// Latitude of this coordinate + /// + /// Latitude of this coordinate + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude of this coordinate + /// + /// Longitude of this coordinate + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Count of members in the group + /// + /// Count of members in the group + [DataMember(Name="Count", EmitDefaultValue=false)] + public int? Count { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GroupedCoordinates {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GroupedCoordinates); + } + + /// + /// Returns true if GroupedCoordinates instances are equal + /// + /// Instance of GroupedCoordinates to be compared + /// Boolean + public bool Equals(GroupedCoordinates input) + { + if (input == null) + return false; + + return + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ) && + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HasPaymentMethodResponse.cs b/src/Flipdish/Model/HasPaymentMethodResponse.cs new file mode 100644 index 00000000..98dd9ecd --- /dev/null +++ b/src/Flipdish/Model/HasPaymentMethodResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Has Payment Method Response + /// + [DataContract] + public partial class HasPaymentMethodResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected HasPaymentMethodResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Has Payment Method (required). + public HasPaymentMethodResponse(bool? hasPaymentMethod = default(bool?)) + { + // to ensure "hasPaymentMethod" is required (not null) + if (hasPaymentMethod == null) + { + throw new InvalidDataException("hasPaymentMethod is a required property for HasPaymentMethodResponse and cannot be null"); + } + else + { + this.HasPaymentMethod = hasPaymentMethod; + } + } + + /// + /// Has Payment Method + /// + /// Has Payment Method + [DataMember(Name="HasPaymentMethod", EmitDefaultValue=false)] + public bool? HasPaymentMethod { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HasPaymentMethodResponse {\n"); + sb.Append(" HasPaymentMethod: ").Append(HasPaymentMethod).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HasPaymentMethodResponse); + } + + /// + /// Returns true if HasPaymentMethodResponse instances are equal + /// + /// Instance of HasPaymentMethodResponse to be compared + /// Boolean + public bool Equals(HasPaymentMethodResponse input) + { + if (input == null) + return false; + + return + ( + this.HasPaymentMethod == input.HasPaymentMethod || + (this.HasPaymentMethod != null && + this.HasPaymentMethod.Equals(input.HasPaymentMethod)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HasPaymentMethod != null) + hashCode = hashCode * 59 + this.HasPaymentMethod.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HomeAction.cs b/src/Flipdish/Model/HomeAction.cs new file mode 100644 index 00000000..fc20bf4a --- /dev/null +++ b/src/Flipdish/Model/HomeAction.cs @@ -0,0 +1,246 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// HomeAction + /// + [DataContract] + public partial class HomeAction : IEquatable + { + /// + /// Type of Action + /// + /// Type of Action + [JsonConverter(typeof(StringEnumConverter))] + public enum HomeActionTypeEnum + { + + /// + /// Enum Portal for value: Portal + /// + [EnumMember(Value = "Portal")] + Portal = 1, + + /// + /// Enum External for value: External + /// + [EnumMember(Value = "External")] + External = 2 + } + + /// + /// Type of Action + /// + /// Type of Action + [DataMember(Name="HomeActionType", EmitDefaultValue=false)] + public HomeActionTypeEnum? HomeActionType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// homeActionId. + /// Type of Action. + /// order. + /// titleKey. + /// actionKey. + /// descriptionKey. + /// action. + /// dismissible. + public HomeAction(int? homeActionId = default(int?), HomeActionTypeEnum? homeActionType = default(HomeActionTypeEnum?), int? order = default(int?), string titleKey = default(string), string actionKey = default(string), string descriptionKey = default(string), string action = default(string), bool? dismissible = default(bool?)) + { + this.HomeActionId = homeActionId; + this.HomeActionType = homeActionType; + this.Order = order; + this.TitleKey = titleKey; + this.ActionKey = actionKey; + this.DescriptionKey = descriptionKey; + this.Action = action; + this.Dismissible = dismissible; + } + + /// + /// Gets or Sets HomeActionId + /// + [DataMember(Name="HomeActionId", EmitDefaultValue=false)] + public int? HomeActionId { get; set; } + + + /// + /// Gets or Sets Order + /// + [DataMember(Name="Order", EmitDefaultValue=false)] + public int? Order { get; set; } + + /// + /// Gets or Sets TitleKey + /// + [DataMember(Name="TitleKey", EmitDefaultValue=false)] + public string TitleKey { get; set; } + + /// + /// Gets or Sets ActionKey + /// + [DataMember(Name="ActionKey", EmitDefaultValue=false)] + public string ActionKey { get; set; } + + /// + /// Gets or Sets DescriptionKey + /// + [DataMember(Name="DescriptionKey", EmitDefaultValue=false)] + public string DescriptionKey { get; set; } + + /// + /// Gets or Sets Action + /// + [DataMember(Name="Action", EmitDefaultValue=false)] + public string Action { get; set; } + + /// + /// Gets or Sets Dismissible + /// + [DataMember(Name="Dismissible", EmitDefaultValue=false)] + public bool? Dismissible { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HomeAction {\n"); + sb.Append(" HomeActionId: ").Append(HomeActionId).Append("\n"); + sb.Append(" HomeActionType: ").Append(HomeActionType).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" TitleKey: ").Append(TitleKey).Append("\n"); + sb.Append(" ActionKey: ").Append(ActionKey).Append("\n"); + sb.Append(" DescriptionKey: ").Append(DescriptionKey).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Dismissible: ").Append(Dismissible).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HomeAction); + } + + /// + /// Returns true if HomeAction instances are equal + /// + /// Instance of HomeAction to be compared + /// Boolean + public bool Equals(HomeAction input) + { + if (input == null) + return false; + + return + ( + this.HomeActionId == input.HomeActionId || + (this.HomeActionId != null && + this.HomeActionId.Equals(input.HomeActionId)) + ) && + ( + this.HomeActionType == input.HomeActionType || + (this.HomeActionType != null && + this.HomeActionType.Equals(input.HomeActionType)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.TitleKey == input.TitleKey || + (this.TitleKey != null && + this.TitleKey.Equals(input.TitleKey)) + ) && + ( + this.ActionKey == input.ActionKey || + (this.ActionKey != null && + this.ActionKey.Equals(input.ActionKey)) + ) && + ( + this.DescriptionKey == input.DescriptionKey || + (this.DescriptionKey != null && + this.DescriptionKey.Equals(input.DescriptionKey)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.Dismissible == input.Dismissible || + (this.Dismissible != null && + this.Dismissible.Equals(input.Dismissible)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HomeActionId != null) + hashCode = hashCode * 59 + this.HomeActionId.GetHashCode(); + if (this.HomeActionType != null) + hashCode = hashCode * 59 + this.HomeActionType.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.TitleKey != null) + hashCode = hashCode * 59 + this.TitleKey.GetHashCode(); + if (this.ActionKey != null) + hashCode = hashCode * 59 + this.ActionKey.GetHashCode(); + if (this.DescriptionKey != null) + hashCode = hashCode * 59 + this.DescriptionKey.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.Dismissible != null) + hashCode = hashCode * 59 + this.Dismissible.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HomeStatistics.cs b/src/Flipdish/Model/HomeStatistics.cs new file mode 100644 index 00000000..14534a7c --- /dev/null +++ b/src/Flipdish/Model/HomeStatistics.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Home statitstics + /// + [DataContract] + public partial class HomeStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Money saved. + public HomeStatistics(List totalMoneySaved = default(List)) + { + this.TotalMoneySaved = totalMoneySaved; + } + + /// + /// Money saved + /// + /// Money saved + [DataMember(Name="TotalMoneySaved", EmitDefaultValue=false)] + public List TotalMoneySaved { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HomeStatistics {\n"); + sb.Append(" TotalMoneySaved: ").Append(TotalMoneySaved).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HomeStatistics); + } + + /// + /// Returns true if HomeStatistics instances are equal + /// + /// Instance of HomeStatistics to be compared + /// Boolean + public bool Equals(HomeStatistics input) + { + if (input == null) + return false; + + return + ( + this.TotalMoneySaved == input.TotalMoneySaved || + this.TotalMoneySaved != null && + this.TotalMoneySaved.SequenceEqual(input.TotalMoneySaved) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TotalMoneySaved != null) + hashCode = hashCode * 59 + this.TotalMoneySaved.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HttpPostedFileBase.cs b/src/Flipdish/Model/HttpPostedFileBase.cs new file mode 100644 index 00000000..34ae9193 --- /dev/null +++ b/src/Flipdish/Model/HttpPostedFileBase.cs @@ -0,0 +1,153 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// HttpPostedFileBase + /// + [DataContract] + public partial class HttpPostedFileBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public HttpPostedFileBase() + { + } + + /// + /// Gets or Sets ContentLength + /// + [DataMember(Name="ContentLength", EmitDefaultValue=false)] + public int? ContentLength { get; private set; } + + /// + /// Gets or Sets ContentType + /// + [DataMember(Name="ContentType", EmitDefaultValue=false)] + public string ContentType { get; private set; } + + /// + /// Gets or Sets FileName + /// + [DataMember(Name="FileName", EmitDefaultValue=false)] + public string FileName { get; private set; } + + /// + /// Gets or Sets InputStream + /// + [DataMember(Name="InputStream", EmitDefaultValue=false)] + public Stream InputStream { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HttpPostedFileBase {\n"); + sb.Append(" ContentLength: ").Append(ContentLength).Append("\n"); + sb.Append(" ContentType: ").Append(ContentType).Append("\n"); + sb.Append(" FileName: ").Append(FileName).Append("\n"); + sb.Append(" InputStream: ").Append(InputStream).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HttpPostedFileBase); + } + + /// + /// Returns true if HttpPostedFileBase instances are equal + /// + /// Instance of HttpPostedFileBase to be compared + /// Boolean + public bool Equals(HttpPostedFileBase input) + { + if (input == null) + return false; + + return + ( + this.ContentLength == input.ContentLength || + (this.ContentLength != null && + this.ContentLength.Equals(input.ContentLength)) + ) && + ( + this.ContentType == input.ContentType || + (this.ContentType != null && + this.ContentType.Equals(input.ContentType)) + ) && + ( + this.FileName == input.FileName || + (this.FileName != null && + this.FileName.Equals(input.FileName)) + ) && + ( + this.InputStream == input.InputStream || + (this.InputStream != null && + this.InputStream.Equals(input.InputStream)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContentLength != null) + hashCode = hashCode * 59 + this.ContentLength.GetHashCode(); + if (this.ContentType != null) + hashCode = hashCode * 59 + this.ContentType.GetHashCode(); + if (this.FileName != null) + hashCode = hashCode * 59 + this.FileName.GetHashCode(); + if (this.InputStream != null) + hashCode = hashCode * 59 + this.InputStream.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraAssignedEvent.cs b/src/Flipdish/Model/HydraAssignedEvent.cs new file mode 100644 index 00000000..78ec1d0d --- /dev/null +++ b/src/Flipdish/Model/HydraAssignedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra assigned event + /// + [DataContract] + public partial class HydraAssignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who made the change. + /// Status of Hydra. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraAssignedEvent(UserEventInfo user = default(UserEventInfo), HydraStatus hydraStatus = default(HydraStatus), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.HydraStatus = hydraStatus; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Status of Hydra + /// + /// Status of Hydra + [DataMember(Name="HydraStatus", EmitDefaultValue=false)] + public HydraStatus HydraStatus { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraAssignedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" HydraStatus: ").Append(HydraStatus).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraAssignedEvent); + } + + /// + /// Returns true if HydraAssignedEvent instances are equal + /// + /// Instance of HydraAssignedEvent to be compared + /// Boolean + public bool Equals(HydraAssignedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.HydraStatus == input.HydraStatus || + (this.HydraStatus != null && + this.HydraStatus.Equals(input.HydraStatus)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.HydraStatus != null) + hashCode = hashCode * 59 + this.HydraStatus.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraConfig.cs b/src/Flipdish/Model/HydraConfig.cs new file mode 100644 index 00000000..104d7868 --- /dev/null +++ b/src/Flipdish/Model/HydraConfig.cs @@ -0,0 +1,271 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra configuration + /// + [DataContract] + public partial class HydraConfig : IEquatable + { + /// + /// Defines PaymentOptions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentOptionsEnum + { + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 1, + + /// + /// Enum Emv for value: Emv + /// + [EnumMember(Value = "Emv")] + Emv = 2, + + /// + /// Enum Counter for value: Counter + /// + [EnumMember(Value = "Counter")] + Counter = 3 + } + + + /// + /// Payment options + /// + /// Payment options + [DataMember(Name="PaymentOptions", EmitDefaultValue=false)] + public List PaymentOptions { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected HydraConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Minimum version (required). + /// Payment options (required). + /// Device settings (required). + /// Version of the device. + /// Build number of the device. + /// SHA of the commit. + /// Build branch. + public HydraConfig(string minimumVersion = default(string), List paymentOptions = default(List), DeviceSettings deviceSettings = default(DeviceSettings), string version = default(string), string buildNumber = default(string), string gitSha = default(string), string gitBranch = default(string)) + { + // to ensure "minimumVersion" is required (not null) + if (minimumVersion == null) + { + throw new InvalidDataException("minimumVersion is a required property for HydraConfig and cannot be null"); + } + else + { + this.MinimumVersion = minimumVersion; + } + // to ensure "paymentOptions" is required (not null) + if (paymentOptions == null) + { + throw new InvalidDataException("paymentOptions is a required property for HydraConfig and cannot be null"); + } + else + { + this.PaymentOptions = paymentOptions; + } + // to ensure "deviceSettings" is required (not null) + if (deviceSettings == null) + { + throw new InvalidDataException("deviceSettings is a required property for HydraConfig and cannot be null"); + } + else + { + this.DeviceSettings = deviceSettings; + } + this.Version = version; + this.BuildNumber = buildNumber; + this.GitSha = gitSha; + this.GitBranch = gitBranch; + } + + /// + /// Minimum version + /// + /// Minimum version + [DataMember(Name="MinimumVersion", EmitDefaultValue=false)] + public string MinimumVersion { get; set; } + + + /// + /// Device settings + /// + /// Device settings + [DataMember(Name="DeviceSettings", EmitDefaultValue=false)] + public DeviceSettings DeviceSettings { get; set; } + + /// + /// Version of the device + /// + /// Version of the device + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Build number of the device + /// + /// Build number of the device + [DataMember(Name="BuildNumber", EmitDefaultValue=false)] + public string BuildNumber { get; set; } + + /// + /// SHA of the commit + /// + /// SHA of the commit + [DataMember(Name="GitSha", EmitDefaultValue=false)] + public string GitSha { get; set; } + + /// + /// Build branch + /// + /// Build branch + [DataMember(Name="GitBranch", EmitDefaultValue=false)] + public string GitBranch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraConfig {\n"); + sb.Append(" MinimumVersion: ").Append(MinimumVersion).Append("\n"); + sb.Append(" PaymentOptions: ").Append(PaymentOptions).Append("\n"); + sb.Append(" DeviceSettings: ").Append(DeviceSettings).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" BuildNumber: ").Append(BuildNumber).Append("\n"); + sb.Append(" GitSha: ").Append(GitSha).Append("\n"); + sb.Append(" GitBranch: ").Append(GitBranch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraConfig); + } + + /// + /// Returns true if HydraConfig instances are equal + /// + /// Instance of HydraConfig to be compared + /// Boolean + public bool Equals(HydraConfig input) + { + if (input == null) + return false; + + return + ( + this.MinimumVersion == input.MinimumVersion || + (this.MinimumVersion != null && + this.MinimumVersion.Equals(input.MinimumVersion)) + ) && + ( + this.PaymentOptions == input.PaymentOptions || + this.PaymentOptions != null && + this.PaymentOptions.SequenceEqual(input.PaymentOptions) + ) && + ( + this.DeviceSettings == input.DeviceSettings || + (this.DeviceSettings != null && + this.DeviceSettings.Equals(input.DeviceSettings)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.BuildNumber == input.BuildNumber || + (this.BuildNumber != null && + this.BuildNumber.Equals(input.BuildNumber)) + ) && + ( + this.GitSha == input.GitSha || + (this.GitSha != null && + this.GitSha.Equals(input.GitSha)) + ) && + ( + this.GitBranch == input.GitBranch || + (this.GitBranch != null && + this.GitBranch.Equals(input.GitBranch)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MinimumVersion != null) + hashCode = hashCode * 59 + this.MinimumVersion.GetHashCode(); + if (this.PaymentOptions != null) + hashCode = hashCode * 59 + this.PaymentOptions.GetHashCode(); + if (this.DeviceSettings != null) + hashCode = hashCode * 59 + this.DeviceSettings.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.BuildNumber != null) + hashCode = hashCode * 59 + this.BuildNumber.GetHashCode(); + if (this.GitSha != null) + hashCode = hashCode * 59 + this.GitSha.GetHashCode(); + if (this.GitBranch != null) + hashCode = hashCode * 59 + this.GitBranch.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs b/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs new file mode 100644 index 00000000..be0ae1bc --- /dev/null +++ b/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs @@ -0,0 +1,327 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra Connection Status Changed Event + /// + [DataContract] + public partial class HydraConnectionStatusChangedEvent : IEquatable + { + /// + /// Hydra Device Status + /// + /// Hydra Device Status + [JsonConverter(typeof(StringEnumConverter))] + public enum HydraDeviceStatusEnum + { + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 1, + + /// + /// Enum PossiblyOffline for value: PossiblyOffline + /// + [EnumMember(Value = "PossiblyOffline")] + PossiblyOffline = 2, + + /// + /// Enum Offline for value: Offline + /// + [EnumMember(Value = "Offline")] + Offline = 3 + } + + /// + /// Hydra Device Status + /// + /// Hydra Device Status + [DataMember(Name="HydraDeviceStatus", EmitDefaultValue=false)] + public HydraDeviceStatusEnum? HydraDeviceStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Hydra Device Id. + /// Hydra Device Status. + /// Hydra Last Poll Time. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraConnectionStatusChangedEvent(string deviceId = default(string), HydraDeviceStatusEnum? hydraDeviceStatus = default(HydraDeviceStatusEnum?), DateTime? pollTime = default(DateTime?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.HydraDeviceStatus = hydraDeviceStatus; + this.PollTime = pollTime; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Hydra Device Id + /// + /// Hydra Device Id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// Hydra Last Poll Time + /// + /// Hydra Last Poll Time + [DataMember(Name="PollTime", EmitDefaultValue=false)] + public DateTime? PollTime { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraConnectionStatusChangedEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" HydraDeviceStatus: ").Append(HydraDeviceStatus).Append("\n"); + sb.Append(" PollTime: ").Append(PollTime).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraConnectionStatusChangedEvent); + } + + /// + /// Returns true if HydraConnectionStatusChangedEvent instances are equal + /// + /// Instance of HydraConnectionStatusChangedEvent to be compared + /// Boolean + public bool Equals(HydraConnectionStatusChangedEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.HydraDeviceStatus == input.HydraDeviceStatus || + (this.HydraDeviceStatus != null && + this.HydraDeviceStatus.Equals(input.HydraDeviceStatus)) + ) && + ( + this.PollTime == input.PollTime || + (this.PollTime != null && + this.PollTime.Equals(input.PollTime)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.HydraDeviceStatus != null) + hashCode = hashCode * 59 + this.HydraDeviceStatus.GetHashCode(); + if (this.PollTime != null) + hashCode = hashCode * 59 + this.PollTime.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraCreatedEvent.cs b/src/Flipdish/Model/HydraCreatedEvent.cs new file mode 100644 index 00000000..30c2d781 --- /dev/null +++ b/src/Flipdish/Model/HydraCreatedEvent.cs @@ -0,0 +1,388 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra device created event (pin-stage / pre-register). + /// + [DataContract] + public partial class HydraCreatedEvent : IEquatable + { + /// + /// Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}. + /// + /// Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}. + [JsonConverter(typeof(StringEnumConverter))] + public enum UserTypeEnum + { + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 1, + + /// + /// Enum Terminal for value: Terminal + /// + [EnumMember(Value = "Terminal")] + Terminal = 2, + + /// + /// Enum LegacyPrinter for value: LegacyPrinter + /// + [EnumMember(Value = "LegacyPrinter")] + LegacyPrinter = 3 + } + + /// + /// Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}. + /// + /// Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}. + [DataMember(Name="UserType", EmitDefaultValue=false)] + public UserTypeEnum? UserType { get; set; } + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + [JsonConverter(typeof(StringEnumConverter))] + public enum DeviceTypeEnum + { + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 1, + + /// + /// Enum Terminal for value: Terminal + /// + [EnumMember(Value = "Terminal")] + Terminal = 2, + + /// + /// Enum LegacyPrinter for value: LegacyPrinter + /// + [EnumMember(Value = "LegacyPrinter")] + LegacyPrinter = 3 + } + + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + [DataMember(Name="DeviceType", EmitDefaultValue=false)] + public DeviceTypeEnum? DeviceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Optional user who triggered creation (may be null for device self-create).. + /// Device id. + /// Zeus Hydra user id. + /// Hydra user type (Kiosk / Terminal) as integer. Prefer {Flipdish.PublicModels.V1.Events.Hydra.HydraCreatedEvent.DeviceType}.. + /// Hydra device type (Kiosk / Terminal), serialized as string.. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraCreatedEvent(UserEventInfo user = default(UserEventInfo), string deviceId = default(string), int? hydraUserId = default(int?), UserTypeEnum? userType = default(UserTypeEnum?), DeviceTypeEnum? deviceType = default(DeviceTypeEnum?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.DeviceId = deviceId; + this.HydraUserId = hydraUserId; + this.UserType = userType; + this.DeviceType = deviceType; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Optional user who triggered creation (may be null for device self-create). + /// + /// Optional user who triggered creation (may be null for device self-create). + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Device id + /// + /// Device id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Zeus Hydra user id + /// + /// Zeus Hydra user id + [DataMember(Name="HydraUserId", EmitDefaultValue=false)] + public int? HydraUserId { get; set; } + + + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraCreatedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" HydraUserId: ").Append(HydraUserId).Append("\n"); + sb.Append(" UserType: ").Append(UserType).Append("\n"); + sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraCreatedEvent); + } + + /// + /// Returns true if HydraCreatedEvent instances are equal + /// + /// Instance of HydraCreatedEvent to be compared + /// Boolean + public bool Equals(HydraCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.HydraUserId == input.HydraUserId || + (this.HydraUserId != null && + this.HydraUserId.Equals(input.HydraUserId)) + ) && + ( + this.UserType == input.UserType || + (this.UserType != null && + this.UserType.Equals(input.UserType)) + ) && + ( + this.DeviceType == input.DeviceType || + (this.DeviceType != null && + this.DeviceType.Equals(input.DeviceType)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.HydraUserId != null) + hashCode = hashCode * 59 + this.HydraUserId.GetHashCode(); + if (this.UserType != null) + hashCode = hashCode * 59 + this.UserType.GetHashCode(); + if (this.DeviceType != null) + hashCode = hashCode * 59 + this.DeviceType.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraDeviceDetails.cs b/src/Flipdish/Model/HydraDeviceDetails.cs new file mode 100644 index 00000000..7ef95db2 --- /dev/null +++ b/src/Flipdish/Model/HydraDeviceDetails.cs @@ -0,0 +1,354 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra device details + /// + [DataContract] + public partial class HydraDeviceDetails : IEquatable + { + /// + /// Type of the device + /// + /// Type of the device + [JsonConverter(typeof(StringEnumConverter))] + public enum DeviceTypeEnum + { + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 1, + + /// + /// Enum Terminal for value: Terminal + /// + [EnumMember(Value = "Terminal")] + Terminal = 2, + + /// + /// Enum LegacyPrinter for value: LegacyPrinter + /// + [EnumMember(Value = "LegacyPrinter")] + LegacyPrinter = 3 + } + + /// + /// Type of the device + /// + /// Type of the device + [DataMember(Name="DeviceType", EmitDefaultValue=false)] + public DeviceTypeEnum? DeviceType { get; set; } + /// + /// Status of the device + /// + /// Status of the device + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 1, + + /// + /// Enum PossiblyOffline for value: PossiblyOffline + /// + [EnumMember(Value = "PossiblyOffline")] + PossiblyOffline = 2, + + /// + /// Enum Offline for value: Offline + /// + [EnumMember(Value = "Offline")] + Offline = 3 + } + + /// + /// Status of the device + /// + /// Status of the device + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Flipdish internal device identifier. + /// Device Id. + /// Serial Number. + /// Type of the device. + /// Status of the device. + /// Device Name. + /// Store Names. + /// Last poll time in UTC. + /// Version of the device. + /// Build number of the device. + /// SHA of the commit. + /// Build branch. + public HydraDeviceDetails(int? hydraConfigId = default(int?), string deviceId = default(string), string serialNumber = default(string), DeviceTypeEnum? deviceType = default(DeviceTypeEnum?), StatusEnum? status = default(StatusEnum?), string deviceName = default(string), List storeNames = default(List), DateTime? lastPollUtc = default(DateTime?), string version = default(string), string buildNumber = default(string), string gitSha = default(string), string gitBranch = default(string)) + { + this.HydraConfigId = hydraConfigId; + this.DeviceId = deviceId; + this.SerialNumber = serialNumber; + this.DeviceType = deviceType; + this.Status = status; + this.DeviceName = deviceName; + this.StoreNames = storeNames; + this.LastPollUtc = lastPollUtc; + this.Version = version; + this.BuildNumber = buildNumber; + this.GitSha = gitSha; + this.GitBranch = gitBranch; + } + + /// + /// Flipdish internal device identifier + /// + /// Flipdish internal device identifier + [DataMember(Name="HydraConfigId", EmitDefaultValue=false)] + public int? HydraConfigId { get; set; } + + /// + /// Device Id + /// + /// Device Id + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Serial Number + /// + /// Serial Number + [DataMember(Name="SerialNumber", EmitDefaultValue=false)] + public string SerialNumber { get; set; } + + + + /// + /// Device Name + /// + /// Device Name + [DataMember(Name="DeviceName", EmitDefaultValue=false)] + public string DeviceName { get; set; } + + /// + /// Store Names + /// + /// Store Names + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Last poll time in UTC + /// + /// Last poll time in UTC + [DataMember(Name="LastPollUtc", EmitDefaultValue=false)] + public DateTime? LastPollUtc { get; set; } + + /// + /// Version of the device + /// + /// Version of the device + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Build number of the device + /// + /// Build number of the device + [DataMember(Name="BuildNumber", EmitDefaultValue=false)] + public string BuildNumber { get; set; } + + /// + /// SHA of the commit + /// + /// SHA of the commit + [DataMember(Name="GitSha", EmitDefaultValue=false)] + public string GitSha { get; set; } + + /// + /// Build branch + /// + /// Build branch + [DataMember(Name="GitBranch", EmitDefaultValue=false)] + public string GitBranch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraDeviceDetails {\n"); + sb.Append(" HydraConfigId: ").Append(HydraConfigId).Append("\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" LastPollUtc: ").Append(LastPollUtc).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" BuildNumber: ").Append(BuildNumber).Append("\n"); + sb.Append(" GitSha: ").Append(GitSha).Append("\n"); + sb.Append(" GitBranch: ").Append(GitBranch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraDeviceDetails); + } + + /// + /// Returns true if HydraDeviceDetails instances are equal + /// + /// Instance of HydraDeviceDetails to be compared + /// Boolean + public bool Equals(HydraDeviceDetails input) + { + if (input == null) + return false; + + return + ( + this.HydraConfigId == input.HydraConfigId || + (this.HydraConfigId != null && + this.HydraConfigId.Equals(input.HydraConfigId)) + ) && + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.DeviceType == input.DeviceType || + (this.DeviceType != null && + this.DeviceType.Equals(input.DeviceType)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.DeviceName == input.DeviceName || + (this.DeviceName != null && + this.DeviceName.Equals(input.DeviceName)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.LastPollUtc == input.LastPollUtc || + (this.LastPollUtc != null && + this.LastPollUtc.Equals(input.LastPollUtc)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.BuildNumber == input.BuildNumber || + (this.BuildNumber != null && + this.BuildNumber.Equals(input.BuildNumber)) + ) && + ( + this.GitSha == input.GitSha || + (this.GitSha != null && + this.GitSha.Equals(input.GitSha)) + ) && + ( + this.GitBranch == input.GitBranch || + (this.GitBranch != null && + this.GitBranch.Equals(input.GitBranch)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HydraConfigId != null) + hashCode = hashCode * 59 + this.HydraConfigId.GetHashCode(); + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.DeviceType != null) + hashCode = hashCode * 59 + this.DeviceType.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.DeviceName != null) + hashCode = hashCode * 59 + this.DeviceName.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.LastPollUtc != null) + hashCode = hashCode * 59 + this.LastPollUtc.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.BuildNumber != null) + hashCode = hashCode * 59 + this.BuildNumber.GetHashCode(); + if (this.GitSha != null) + hashCode = hashCode * 59 + this.GitSha.GetHashCode(); + if (this.GitBranch != null) + hashCode = hashCode * 59 + this.GitBranch.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraRegistrationRequest.cs b/src/Flipdish/Model/HydraRegistrationRequest.cs new file mode 100644 index 00000000..3d70a7e8 --- /dev/null +++ b/src/Flipdish/Model/HydraRegistrationRequest.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra registration result + /// + [DataContract] + public partial class HydraRegistrationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected HydraRegistrationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Stores to assign the hydra (required). + /// Hydra device name (required). + /// 6 digit PIN code (not starting with zero).. + public HydraRegistrationRequest(List storeIds = default(List), string deviceName = default(string), int? pinCode = default(int?)) + { + // to ensure "storeIds" is required (not null) + if (storeIds == null) + { + throw new InvalidDataException("storeIds is a required property for HydraRegistrationRequest and cannot be null"); + } + else + { + this.StoreIds = storeIds; + } + // to ensure "deviceName" is required (not null) + if (deviceName == null) + { + throw new InvalidDataException("deviceName is a required property for HydraRegistrationRequest and cannot be null"); + } + else + { + this.DeviceName = deviceName; + } + this.PinCode = pinCode; + } + + /// + /// Stores to assign the hydra + /// + /// Stores to assign the hydra + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Hydra device name + /// + /// Hydra device name + [DataMember(Name="DeviceName", EmitDefaultValue=false)] + public string DeviceName { get; set; } + + /// + /// 6 digit PIN code (not starting with zero). + /// + /// 6 digit PIN code (not starting with zero). + [DataMember(Name="PinCode", EmitDefaultValue=false)] + public int? PinCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraRegistrationRequest {\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append(" PinCode: ").Append(PinCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraRegistrationRequest); + } + + /// + /// Returns true if HydraRegistrationRequest instances are equal + /// + /// Instance of HydraRegistrationRequest to be compared + /// Boolean + public bool Equals(HydraRegistrationRequest input) + { + if (input == null) + return false; + + return + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.DeviceName == input.DeviceName || + (this.DeviceName != null && + this.DeviceName.Equals(input.DeviceName)) + ) && + ( + this.PinCode == input.PinCode || + (this.PinCode != null && + this.PinCode.Equals(input.PinCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.DeviceName != null) + hashCode = hashCode * 59 + this.DeviceName.GetHashCode(); + if (this.PinCode != null) + hashCode = hashCode * 59 + this.PinCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraRequestResetEvent.cs b/src/Flipdish/Model/HydraRequestResetEvent.cs new file mode 100644 index 00000000..956e038f --- /dev/null +++ b/src/Flipdish/Model/HydraRequestResetEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra request reset event + /// + [DataContract] + public partial class HydraRequestResetEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who initiated the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraRequestResetEvent(UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who initiated the change + /// + /// User who initiated the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraRequestResetEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraRequestResetEvent); + } + + /// + /// Returns true if HydraRequestResetEvent instances are equal + /// + /// Instance of HydraRequestResetEvent to be compared + /// Boolean + public bool Equals(HydraRequestResetEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraSettingChangedEvent.cs b/src/Flipdish/Model/HydraSettingChangedEvent.cs new file mode 100644 index 00000000..b3b6a97c --- /dev/null +++ b/src/Flipdish/Model/HydraSettingChangedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra settings changed + /// + [DataContract] + public partial class HydraSettingChangedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who made the change. + /// Hydra configuration. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraSettingChangedEvent(UserEventInfo user = default(UserEventInfo), HydraConfig hydraConfig = default(HydraConfig), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.HydraConfig = hydraConfig; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Hydra configuration + /// + /// Hydra configuration + [DataMember(Name="HydraConfig", EmitDefaultValue=false)] + public HydraConfig HydraConfig { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraSettingChangedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" HydraConfig: ").Append(HydraConfig).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraSettingChangedEvent); + } + + /// + /// Returns true if HydraSettingChangedEvent instances are equal + /// + /// Instance of HydraSettingChangedEvent to be compared + /// Boolean + public bool Equals(HydraSettingChangedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.HydraConfig == input.HydraConfig || + (this.HydraConfig != null && + this.HydraConfig.Equals(input.HydraConfig)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.HydraConfig != null) + hashCode = hashCode * 59 + this.HydraConfig.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraStatus.cs b/src/Flipdish/Model/HydraStatus.cs new file mode 100644 index 00000000..1af7758f --- /dev/null +++ b/src/Flipdish/Model/HydraStatus.cs @@ -0,0 +1,323 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra status + /// + [DataContract] + public partial class HydraStatus : IEquatable + { + /// + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. + /// + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. + [JsonConverter(typeof(StringEnumConverter))] + public enum UserTypeEnum + { + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 1, + + /// + /// Enum Terminal for value: Terminal + /// + [EnumMember(Value = "Terminal")] + Terminal = 2, + + /// + /// Enum LegacyPrinter for value: LegacyPrinter + /// + [EnumMember(Value = "LegacyPrinter")] + LegacyPrinter = 3 + } + + /// + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. + /// + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. + [DataMember(Name="UserType", EmitDefaultValue=false)] + public UserTypeEnum? UserType { get; set; } + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + [JsonConverter(typeof(StringEnumConverter))] + public enum DeviceTypeEnum + { + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 1, + + /// + /// Enum Terminal for value: Terminal + /// + [EnumMember(Value = "Terminal")] + Terminal = 2, + + /// + /// Enum LegacyPrinter for value: LegacyPrinter + /// + [EnumMember(Value = "LegacyPrinter")] + LegacyPrinter = 3 + } + + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + /// + /// Hydra device type (Kiosk / Terminal), serialized as string. + [DataMember(Name="DeviceType", EmitDefaultValue=false)] + public DeviceTypeEnum? DeviceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected HydraStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// appId (required). + /// Store to assign the hydra. + /// AuthZ Property ids for assigned stores. + /// The device has been already registered (required). + /// 6 digit PIN code (not starting with zero).. + /// Hydra images (covers). + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}.. + /// Hydra device type (Kiosk / Terminal), serialized as string.. + /// Zeus Hydra user id. + public HydraStatus(string appId = default(string), List storeIds = default(List), List propertyIds = default(List), bool? isRegistered = default(bool?), int? pinCode = default(int?), List images = default(List), UserTypeEnum? userType = default(UserTypeEnum?), DeviceTypeEnum? deviceType = default(DeviceTypeEnum?), int? hydraUserId = default(int?)) + { + // to ensure "appId" is required (not null) + if (appId == null) + { + throw new InvalidDataException("appId is a required property for HydraStatus and cannot be null"); + } + else + { + this.AppId = appId; + } + // to ensure "isRegistered" is required (not null) + if (isRegistered == null) + { + throw new InvalidDataException("isRegistered is a required property for HydraStatus and cannot be null"); + } + else + { + this.IsRegistered = isRegistered; + } + this.StoreIds = storeIds; + this.PropertyIds = propertyIds; + this.PinCode = pinCode; + this.Images = images; + this.UserType = userType; + this.DeviceType = deviceType; + this.HydraUserId = hydraUserId; + } + + /// + /// Gets or Sets AppId + /// + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Store to assign the hydra + /// + /// Store to assign the hydra + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// AuthZ Property ids for assigned stores + /// + /// AuthZ Property ids for assigned stores + [DataMember(Name="PropertyIds", EmitDefaultValue=false)] + public List PropertyIds { get; set; } + + /// + /// The device has been already registered + /// + /// The device has been already registered + [DataMember(Name="IsRegistered", EmitDefaultValue=false)] + public bool? IsRegistered { get; set; } + + /// + /// 6 digit PIN code (not starting with zero). + /// + /// 6 digit PIN code (not starting with zero). + [DataMember(Name="PinCode", EmitDefaultValue=false)] + public int? PinCode { get; set; } + + /// + /// Hydra images (covers) + /// + /// Hydra images (covers) + [DataMember(Name="Images", EmitDefaultValue=false)] + public List Images { get; set; } + + + + /// + /// Zeus Hydra user id + /// + /// Zeus Hydra user id + [DataMember(Name="HydraUserId", EmitDefaultValue=false)] + public int? HydraUserId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraStatus {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" PropertyIds: ").Append(PropertyIds).Append("\n"); + sb.Append(" IsRegistered: ").Append(IsRegistered).Append("\n"); + sb.Append(" PinCode: ").Append(PinCode).Append("\n"); + sb.Append(" Images: ").Append(Images).Append("\n"); + sb.Append(" UserType: ").Append(UserType).Append("\n"); + sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); + sb.Append(" HydraUserId: ").Append(HydraUserId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraStatus); + } + + /// + /// Returns true if HydraStatus instances are equal + /// + /// Instance of HydraStatus to be compared + /// Boolean + public bool Equals(HydraStatus input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) + ) && + ( + this.IsRegistered == input.IsRegistered || + (this.IsRegistered != null && + this.IsRegistered.Equals(input.IsRegistered)) + ) && + ( + this.PinCode == input.PinCode || + (this.PinCode != null && + this.PinCode.Equals(input.PinCode)) + ) && + ( + this.Images == input.Images || + this.Images != null && + this.Images.SequenceEqual(input.Images) + ) && + ( + this.UserType == input.UserType || + (this.UserType != null && + this.UserType.Equals(input.UserType)) + ) && + ( + this.DeviceType == input.DeviceType || + (this.DeviceType != null && + this.DeviceType.Equals(input.DeviceType)) + ) && + ( + this.HydraUserId == input.HydraUserId || + (this.HydraUserId != null && + this.HydraUserId.Equals(input.HydraUserId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.PropertyIds != null) + hashCode = hashCode * 59 + this.PropertyIds.GetHashCode(); + if (this.IsRegistered != null) + hashCode = hashCode * 59 + this.IsRegistered.GetHashCode(); + if (this.PinCode != null) + hashCode = hashCode * 59 + this.PinCode.GetHashCode(); + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + if (this.UserType != null) + hashCode = hashCode * 59 + this.UserType.GetHashCode(); + if (this.DeviceType != null) + hashCode = hashCode * 59 + this.DeviceType.GetHashCode(); + if (this.HydraUserId != null) + hashCode = hashCode * 59 + this.HydraUserId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraStoreAssignedEvent.cs b/src/Flipdish/Model/HydraStoreAssignedEvent.cs new file mode 100644 index 00000000..ad59740d --- /dev/null +++ b/src/Flipdish/Model/HydraStoreAssignedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra store\\s assigned event + /// + [DataContract] + public partial class HydraStoreAssignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who made the change. + /// Store\\s to assign hydra to. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraStoreAssignedEvent(UserEventInfo user = default(UserEventInfo), List storeIds = default(List), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.StoreIds = storeIds; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Store\\s to assign hydra to + /// + /// Store\\s to assign hydra to + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraStoreAssignedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraStoreAssignedEvent); + } + + /// + /// Returns true if HydraStoreAssignedEvent instances are equal + /// + /// Instance of HydraStoreAssignedEvent to be compared + /// Boolean + public bool Equals(HydraStoreAssignedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraStoreData.cs b/src/Flipdish/Model/HydraStoreData.cs new file mode 100644 index 00000000..72405c2e --- /dev/null +++ b/src/Flipdish/Model/HydraStoreData.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Data + /// + [DataContract] + public partial class HydraStoreData : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of the store. + /// Name of the store. + public HydraStoreData(int? storeId = default(int?), string storeName = default(string)) + { + this.StoreId = storeId; + this.StoreName = storeName; + } + + /// + /// Id of the store + /// + /// Id of the store + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name of the store + /// + /// Name of the store + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraStoreData {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraStoreData); + } + + /// + /// Returns true if HydraStoreData instances are equal + /// + /// Instance of HydraStoreData to be compared + /// Boolean + public bool Equals(HydraStoreData input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraStoreUnassignedEvent.cs b/src/Flipdish/Model/HydraStoreUnassignedEvent.cs new file mode 100644 index 00000000..fff6e663 --- /dev/null +++ b/src/Flipdish/Model/HydraStoreUnassignedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra store\\s unassigned event + /// + [DataContract] + public partial class HydraStoreUnassignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who made the change. + /// Store\\s to unassign hydra from. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraStoreUnassignedEvent(UserEventInfo user = default(UserEventInfo), List storeIds = default(List), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.StoreIds = storeIds; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Store\\s to unassign hydra from + /// + /// Store\\s to unassign hydra from + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraStoreUnassignedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraStoreUnassignedEvent); + } + + /// + /// Returns true if HydraStoreUnassignedEvent instances are equal + /// + /// Instance of HydraStoreUnassignedEvent to be compared + /// Boolean + public bool Equals(HydraStoreUnassignedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/HydraUnAssignedEvent.cs b/src/Flipdish/Model/HydraUnAssignedEvent.cs new file mode 100644 index 00000000..b7ab2ffa --- /dev/null +++ b/src/Flipdish/Model/HydraUnAssignedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hydra unassigned event + /// + [DataContract] + public partial class HydraUnAssignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User who made the change. + /// Status of Hydra. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public HydraUnAssignedEvent(UserEventInfo user = default(UserEventInfo), HydraStatus hydraStatus = default(HydraStatus), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.User = user; + this.HydraStatus = hydraStatus; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Status of Hydra + /// + /// Status of Hydra + [DataMember(Name="HydraStatus", EmitDefaultValue=false)] + public HydraStatus HydraStatus { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HydraUnAssignedEvent {\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" HydraStatus: ").Append(HydraStatus).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HydraUnAssignedEvent); + } + + /// + /// Returns true if HydraUnAssignedEvent instances are equal + /// + /// Instance of HydraUnAssignedEvent to be compared + /// Boolean + public bool Equals(HydraUnAssignedEvent input) + { + if (input == null) + return false; + + return + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.HydraStatus == input.HydraStatus || + (this.HydraStatus != null && + this.HydraStatus.Equals(input.HydraStatus)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.HydraStatus != null) + hashCode = hashCode * 59 + this.HydraStatus.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/IndexPage.cs b/src/Flipdish/Model/IndexPage.cs new file mode 100644 index 00000000..38eb5992 --- /dev/null +++ b/src/Flipdish/Model/IndexPage.cs @@ -0,0 +1,368 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Index Page + /// + [DataContract] + public partial class IndexPage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Testimonials. + /// Images. + /// About section enabled. + /// About section title. + /// About section sub-title. + /// About section title left. + /// About section text left. + /// About section title right. + /// About section text right. + /// Opening hours section Enabled. + /// Menu Preview section Enabled. + /// Gallery section enabled. + /// Testimonials section Enabled. + /// Contact Form section Enabled. + /// Contact Form Email. + /// Map section Enabled. + public IndexPage(List testimonials = default(List), List images = default(List), bool? aboutSectionEnabled = default(bool?), string aboutSectionTitle = default(string), string aboutSectionSubtitle = default(string), string aboutSectionLeftTitle = default(string), string aboutSectionLeftBody = default(string), string aboutSectionRightTitle = default(string), string aboutSectionRightBody = default(string), bool? openingHoursEnabled = default(bool?), bool? menuPreviewEnabled = default(bool?), bool? galleryEnabled = default(bool?), bool? testimonialsEnabled = default(bool?), bool? contactFormEnabled = default(bool?), string contactFormEmail = default(string), bool? mapEnabled = default(bool?)) + { + this.Testimonials = testimonials; + this.Images = images; + this.AboutSectionEnabled = aboutSectionEnabled; + this.AboutSectionTitle = aboutSectionTitle; + this.AboutSectionSubtitle = aboutSectionSubtitle; + this.AboutSectionLeftTitle = aboutSectionLeftTitle; + this.AboutSectionLeftBody = aboutSectionLeftBody; + this.AboutSectionRightTitle = aboutSectionRightTitle; + this.AboutSectionRightBody = aboutSectionRightBody; + this.OpeningHoursEnabled = openingHoursEnabled; + this.MenuPreviewEnabled = menuPreviewEnabled; + this.GalleryEnabled = galleryEnabled; + this.TestimonialsEnabled = testimonialsEnabled; + this.ContactFormEnabled = contactFormEnabled; + this.ContactFormEmail = contactFormEmail; + this.MapEnabled = mapEnabled; + } + + /// + /// Testimonials + /// + /// Testimonials + [DataMember(Name="Testimonials", EmitDefaultValue=false)] + public List Testimonials { get; set; } + + /// + /// Images + /// + /// Images + [DataMember(Name="Images", EmitDefaultValue=false)] + public List Images { get; set; } + + /// + /// About section enabled + /// + /// About section enabled + [DataMember(Name="AboutSectionEnabled", EmitDefaultValue=false)] + public bool? AboutSectionEnabled { get; set; } + + /// + /// About section title + /// + /// About section title + [DataMember(Name="AboutSectionTitle", EmitDefaultValue=false)] + public string AboutSectionTitle { get; set; } + + /// + /// About section sub-title + /// + /// About section sub-title + [DataMember(Name="AboutSectionSubtitle", EmitDefaultValue=false)] + public string AboutSectionSubtitle { get; set; } + + /// + /// About section title left + /// + /// About section title left + [DataMember(Name="AboutSectionLeftTitle", EmitDefaultValue=false)] + public string AboutSectionLeftTitle { get; set; } + + /// + /// About section text left + /// + /// About section text left + [DataMember(Name="AboutSectionLeftBody", EmitDefaultValue=false)] + public string AboutSectionLeftBody { get; set; } + + /// + /// About section title right + /// + /// About section title right + [DataMember(Name="AboutSectionRightTitle", EmitDefaultValue=false)] + public string AboutSectionRightTitle { get; set; } + + /// + /// About section text right + /// + /// About section text right + [DataMember(Name="AboutSectionRightBody", EmitDefaultValue=false)] + public string AboutSectionRightBody { get; set; } + + /// + /// Opening hours section Enabled + /// + /// Opening hours section Enabled + [DataMember(Name="OpeningHoursEnabled", EmitDefaultValue=false)] + public bool? OpeningHoursEnabled { get; set; } + + /// + /// Menu Preview section Enabled + /// + /// Menu Preview section Enabled + [DataMember(Name="MenuPreviewEnabled", EmitDefaultValue=false)] + public bool? MenuPreviewEnabled { get; set; } + + /// + /// Gallery section enabled + /// + /// Gallery section enabled + [DataMember(Name="GalleryEnabled", EmitDefaultValue=false)] + public bool? GalleryEnabled { get; set; } + + /// + /// Testimonials section Enabled + /// + /// Testimonials section Enabled + [DataMember(Name="TestimonialsEnabled", EmitDefaultValue=false)] + public bool? TestimonialsEnabled { get; set; } + + /// + /// Contact Form section Enabled + /// + /// Contact Form section Enabled + [DataMember(Name="ContactFormEnabled", EmitDefaultValue=false)] + public bool? ContactFormEnabled { get; set; } + + /// + /// Contact Form Email + /// + /// Contact Form Email + [DataMember(Name="ContactFormEmail", EmitDefaultValue=false)] + public string ContactFormEmail { get; set; } + + /// + /// Map section Enabled + /// + /// Map section Enabled + [DataMember(Name="MapEnabled", EmitDefaultValue=false)] + public bool? MapEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IndexPage {\n"); + sb.Append(" Testimonials: ").Append(Testimonials).Append("\n"); + sb.Append(" Images: ").Append(Images).Append("\n"); + sb.Append(" AboutSectionEnabled: ").Append(AboutSectionEnabled).Append("\n"); + sb.Append(" AboutSectionTitle: ").Append(AboutSectionTitle).Append("\n"); + sb.Append(" AboutSectionSubtitle: ").Append(AboutSectionSubtitle).Append("\n"); + sb.Append(" AboutSectionLeftTitle: ").Append(AboutSectionLeftTitle).Append("\n"); + sb.Append(" AboutSectionLeftBody: ").Append(AboutSectionLeftBody).Append("\n"); + sb.Append(" AboutSectionRightTitle: ").Append(AboutSectionRightTitle).Append("\n"); + sb.Append(" AboutSectionRightBody: ").Append(AboutSectionRightBody).Append("\n"); + sb.Append(" OpeningHoursEnabled: ").Append(OpeningHoursEnabled).Append("\n"); + sb.Append(" MenuPreviewEnabled: ").Append(MenuPreviewEnabled).Append("\n"); + sb.Append(" GalleryEnabled: ").Append(GalleryEnabled).Append("\n"); + sb.Append(" TestimonialsEnabled: ").Append(TestimonialsEnabled).Append("\n"); + sb.Append(" ContactFormEnabled: ").Append(ContactFormEnabled).Append("\n"); + sb.Append(" ContactFormEmail: ").Append(ContactFormEmail).Append("\n"); + sb.Append(" MapEnabled: ").Append(MapEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IndexPage); + } + + /// + /// Returns true if IndexPage instances are equal + /// + /// Instance of IndexPage to be compared + /// Boolean + public bool Equals(IndexPage input) + { + if (input == null) + return false; + + return + ( + this.Testimonials == input.Testimonials || + this.Testimonials != null && + this.Testimonials.SequenceEqual(input.Testimonials) + ) && + ( + this.Images == input.Images || + this.Images != null && + this.Images.SequenceEqual(input.Images) + ) && + ( + this.AboutSectionEnabled == input.AboutSectionEnabled || + (this.AboutSectionEnabled != null && + this.AboutSectionEnabled.Equals(input.AboutSectionEnabled)) + ) && + ( + this.AboutSectionTitle == input.AboutSectionTitle || + (this.AboutSectionTitle != null && + this.AboutSectionTitle.Equals(input.AboutSectionTitle)) + ) && + ( + this.AboutSectionSubtitle == input.AboutSectionSubtitle || + (this.AboutSectionSubtitle != null && + this.AboutSectionSubtitle.Equals(input.AboutSectionSubtitle)) + ) && + ( + this.AboutSectionLeftTitle == input.AboutSectionLeftTitle || + (this.AboutSectionLeftTitle != null && + this.AboutSectionLeftTitle.Equals(input.AboutSectionLeftTitle)) + ) && + ( + this.AboutSectionLeftBody == input.AboutSectionLeftBody || + (this.AboutSectionLeftBody != null && + this.AboutSectionLeftBody.Equals(input.AboutSectionLeftBody)) + ) && + ( + this.AboutSectionRightTitle == input.AboutSectionRightTitle || + (this.AboutSectionRightTitle != null && + this.AboutSectionRightTitle.Equals(input.AboutSectionRightTitle)) + ) && + ( + this.AboutSectionRightBody == input.AboutSectionRightBody || + (this.AboutSectionRightBody != null && + this.AboutSectionRightBody.Equals(input.AboutSectionRightBody)) + ) && + ( + this.OpeningHoursEnabled == input.OpeningHoursEnabled || + (this.OpeningHoursEnabled != null && + this.OpeningHoursEnabled.Equals(input.OpeningHoursEnabled)) + ) && + ( + this.MenuPreviewEnabled == input.MenuPreviewEnabled || + (this.MenuPreviewEnabled != null && + this.MenuPreviewEnabled.Equals(input.MenuPreviewEnabled)) + ) && + ( + this.GalleryEnabled == input.GalleryEnabled || + (this.GalleryEnabled != null && + this.GalleryEnabled.Equals(input.GalleryEnabled)) + ) && + ( + this.TestimonialsEnabled == input.TestimonialsEnabled || + (this.TestimonialsEnabled != null && + this.TestimonialsEnabled.Equals(input.TestimonialsEnabled)) + ) && + ( + this.ContactFormEnabled == input.ContactFormEnabled || + (this.ContactFormEnabled != null && + this.ContactFormEnabled.Equals(input.ContactFormEnabled)) + ) && + ( + this.ContactFormEmail == input.ContactFormEmail || + (this.ContactFormEmail != null && + this.ContactFormEmail.Equals(input.ContactFormEmail)) + ) && + ( + this.MapEnabled == input.MapEnabled || + (this.MapEnabled != null && + this.MapEnabled.Equals(input.MapEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Testimonials != null) + hashCode = hashCode * 59 + this.Testimonials.GetHashCode(); + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + if (this.AboutSectionEnabled != null) + hashCode = hashCode * 59 + this.AboutSectionEnabled.GetHashCode(); + if (this.AboutSectionTitle != null) + hashCode = hashCode * 59 + this.AboutSectionTitle.GetHashCode(); + if (this.AboutSectionSubtitle != null) + hashCode = hashCode * 59 + this.AboutSectionSubtitle.GetHashCode(); + if (this.AboutSectionLeftTitle != null) + hashCode = hashCode * 59 + this.AboutSectionLeftTitle.GetHashCode(); + if (this.AboutSectionLeftBody != null) + hashCode = hashCode * 59 + this.AboutSectionLeftBody.GetHashCode(); + if (this.AboutSectionRightTitle != null) + hashCode = hashCode * 59 + this.AboutSectionRightTitle.GetHashCode(); + if (this.AboutSectionRightBody != null) + hashCode = hashCode * 59 + this.AboutSectionRightBody.GetHashCode(); + if (this.OpeningHoursEnabled != null) + hashCode = hashCode * 59 + this.OpeningHoursEnabled.GetHashCode(); + if (this.MenuPreviewEnabled != null) + hashCode = hashCode * 59 + this.MenuPreviewEnabled.GetHashCode(); + if (this.GalleryEnabled != null) + hashCode = hashCode * 59 + this.GalleryEnabled.GetHashCode(); + if (this.TestimonialsEnabled != null) + hashCode = hashCode * 59 + this.TestimonialsEnabled.GetHashCode(); + if (this.ContactFormEnabled != null) + hashCode = hashCode * 59 + this.ContactFormEnabled.GetHashCode(); + if (this.ContactFormEmail != null) + hashCode = hashCode * 59 + this.ContactFormEmail.GetHashCode(); + if (this.MapEnabled != null) + hashCode = hashCode * 59 + this.MapEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/IndexPageBase.cs b/src/Flipdish/Model/IndexPageBase.cs new file mode 100644 index 00000000..f3015967 --- /dev/null +++ b/src/Flipdish/Model/IndexPageBase.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Base of Index Page + /// + [DataContract] + public partial class IndexPageBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// About section enabled. + /// About section title. + /// About section sub-title. + /// About section title left. + /// About section text left. + /// About section title right. + /// About section text right. + /// Opening hours section Enabled. + /// Menu Preview section Enabled. + /// Gallery section enabled. + /// Testimonials section Enabled. + /// Contact Form section Enabled. + /// Contact Form Email. + /// Map section Enabled. + public IndexPageBase(bool? aboutSectionEnabled = default(bool?), string aboutSectionTitle = default(string), string aboutSectionSubtitle = default(string), string aboutSectionLeftTitle = default(string), string aboutSectionLeftBody = default(string), string aboutSectionRightTitle = default(string), string aboutSectionRightBody = default(string), bool? openingHoursEnabled = default(bool?), bool? menuPreviewEnabled = default(bool?), bool? galleryEnabled = default(bool?), bool? testimonialsEnabled = default(bool?), bool? contactFormEnabled = default(bool?), string contactFormEmail = default(string), bool? mapEnabled = default(bool?)) + { + this.AboutSectionEnabled = aboutSectionEnabled; + this.AboutSectionTitle = aboutSectionTitle; + this.AboutSectionSubtitle = aboutSectionSubtitle; + this.AboutSectionLeftTitle = aboutSectionLeftTitle; + this.AboutSectionLeftBody = aboutSectionLeftBody; + this.AboutSectionRightTitle = aboutSectionRightTitle; + this.AboutSectionRightBody = aboutSectionRightBody; + this.OpeningHoursEnabled = openingHoursEnabled; + this.MenuPreviewEnabled = menuPreviewEnabled; + this.GalleryEnabled = galleryEnabled; + this.TestimonialsEnabled = testimonialsEnabled; + this.ContactFormEnabled = contactFormEnabled; + this.ContactFormEmail = contactFormEmail; + this.MapEnabled = mapEnabled; + } + + /// + /// About section enabled + /// + /// About section enabled + [DataMember(Name="AboutSectionEnabled", EmitDefaultValue=false)] + public bool? AboutSectionEnabled { get; set; } + + /// + /// About section title + /// + /// About section title + [DataMember(Name="AboutSectionTitle", EmitDefaultValue=false)] + public string AboutSectionTitle { get; set; } + + /// + /// About section sub-title + /// + /// About section sub-title + [DataMember(Name="AboutSectionSubtitle", EmitDefaultValue=false)] + public string AboutSectionSubtitle { get; set; } + + /// + /// About section title left + /// + /// About section title left + [DataMember(Name="AboutSectionLeftTitle", EmitDefaultValue=false)] + public string AboutSectionLeftTitle { get; set; } + + /// + /// About section text left + /// + /// About section text left + [DataMember(Name="AboutSectionLeftBody", EmitDefaultValue=false)] + public string AboutSectionLeftBody { get; set; } + + /// + /// About section title right + /// + /// About section title right + [DataMember(Name="AboutSectionRightTitle", EmitDefaultValue=false)] + public string AboutSectionRightTitle { get; set; } + + /// + /// About section text right + /// + /// About section text right + [DataMember(Name="AboutSectionRightBody", EmitDefaultValue=false)] + public string AboutSectionRightBody { get; set; } + + /// + /// Opening hours section Enabled + /// + /// Opening hours section Enabled + [DataMember(Name="OpeningHoursEnabled", EmitDefaultValue=false)] + public bool? OpeningHoursEnabled { get; set; } + + /// + /// Menu Preview section Enabled + /// + /// Menu Preview section Enabled + [DataMember(Name="MenuPreviewEnabled", EmitDefaultValue=false)] + public bool? MenuPreviewEnabled { get; set; } + + /// + /// Gallery section enabled + /// + /// Gallery section enabled + [DataMember(Name="GalleryEnabled", EmitDefaultValue=false)] + public bool? GalleryEnabled { get; set; } + + /// + /// Testimonials section Enabled + /// + /// Testimonials section Enabled + [DataMember(Name="TestimonialsEnabled", EmitDefaultValue=false)] + public bool? TestimonialsEnabled { get; set; } + + /// + /// Contact Form section Enabled + /// + /// Contact Form section Enabled + [DataMember(Name="ContactFormEnabled", EmitDefaultValue=false)] + public bool? ContactFormEnabled { get; set; } + + /// + /// Contact Form Email + /// + /// Contact Form Email + [DataMember(Name="ContactFormEmail", EmitDefaultValue=false)] + public string ContactFormEmail { get; set; } + + /// + /// Map section Enabled + /// + /// Map section Enabled + [DataMember(Name="MapEnabled", EmitDefaultValue=false)] + public bool? MapEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IndexPageBase {\n"); + sb.Append(" AboutSectionEnabled: ").Append(AboutSectionEnabled).Append("\n"); + sb.Append(" AboutSectionTitle: ").Append(AboutSectionTitle).Append("\n"); + sb.Append(" AboutSectionSubtitle: ").Append(AboutSectionSubtitle).Append("\n"); + sb.Append(" AboutSectionLeftTitle: ").Append(AboutSectionLeftTitle).Append("\n"); + sb.Append(" AboutSectionLeftBody: ").Append(AboutSectionLeftBody).Append("\n"); + sb.Append(" AboutSectionRightTitle: ").Append(AboutSectionRightTitle).Append("\n"); + sb.Append(" AboutSectionRightBody: ").Append(AboutSectionRightBody).Append("\n"); + sb.Append(" OpeningHoursEnabled: ").Append(OpeningHoursEnabled).Append("\n"); + sb.Append(" MenuPreviewEnabled: ").Append(MenuPreviewEnabled).Append("\n"); + sb.Append(" GalleryEnabled: ").Append(GalleryEnabled).Append("\n"); + sb.Append(" TestimonialsEnabled: ").Append(TestimonialsEnabled).Append("\n"); + sb.Append(" ContactFormEnabled: ").Append(ContactFormEnabled).Append("\n"); + sb.Append(" ContactFormEmail: ").Append(ContactFormEmail).Append("\n"); + sb.Append(" MapEnabled: ").Append(MapEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IndexPageBase); + } + + /// + /// Returns true if IndexPageBase instances are equal + /// + /// Instance of IndexPageBase to be compared + /// Boolean + public bool Equals(IndexPageBase input) + { + if (input == null) + return false; + + return + ( + this.AboutSectionEnabled == input.AboutSectionEnabled || + (this.AboutSectionEnabled != null && + this.AboutSectionEnabled.Equals(input.AboutSectionEnabled)) + ) && + ( + this.AboutSectionTitle == input.AboutSectionTitle || + (this.AboutSectionTitle != null && + this.AboutSectionTitle.Equals(input.AboutSectionTitle)) + ) && + ( + this.AboutSectionSubtitle == input.AboutSectionSubtitle || + (this.AboutSectionSubtitle != null && + this.AboutSectionSubtitle.Equals(input.AboutSectionSubtitle)) + ) && + ( + this.AboutSectionLeftTitle == input.AboutSectionLeftTitle || + (this.AboutSectionLeftTitle != null && + this.AboutSectionLeftTitle.Equals(input.AboutSectionLeftTitle)) + ) && + ( + this.AboutSectionLeftBody == input.AboutSectionLeftBody || + (this.AboutSectionLeftBody != null && + this.AboutSectionLeftBody.Equals(input.AboutSectionLeftBody)) + ) && + ( + this.AboutSectionRightTitle == input.AboutSectionRightTitle || + (this.AboutSectionRightTitle != null && + this.AboutSectionRightTitle.Equals(input.AboutSectionRightTitle)) + ) && + ( + this.AboutSectionRightBody == input.AboutSectionRightBody || + (this.AboutSectionRightBody != null && + this.AboutSectionRightBody.Equals(input.AboutSectionRightBody)) + ) && + ( + this.OpeningHoursEnabled == input.OpeningHoursEnabled || + (this.OpeningHoursEnabled != null && + this.OpeningHoursEnabled.Equals(input.OpeningHoursEnabled)) + ) && + ( + this.MenuPreviewEnabled == input.MenuPreviewEnabled || + (this.MenuPreviewEnabled != null && + this.MenuPreviewEnabled.Equals(input.MenuPreviewEnabled)) + ) && + ( + this.GalleryEnabled == input.GalleryEnabled || + (this.GalleryEnabled != null && + this.GalleryEnabled.Equals(input.GalleryEnabled)) + ) && + ( + this.TestimonialsEnabled == input.TestimonialsEnabled || + (this.TestimonialsEnabled != null && + this.TestimonialsEnabled.Equals(input.TestimonialsEnabled)) + ) && + ( + this.ContactFormEnabled == input.ContactFormEnabled || + (this.ContactFormEnabled != null && + this.ContactFormEnabled.Equals(input.ContactFormEnabled)) + ) && + ( + this.ContactFormEmail == input.ContactFormEmail || + (this.ContactFormEmail != null && + this.ContactFormEmail.Equals(input.ContactFormEmail)) + ) && + ( + this.MapEnabled == input.MapEnabled || + (this.MapEnabled != null && + this.MapEnabled.Equals(input.MapEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AboutSectionEnabled != null) + hashCode = hashCode * 59 + this.AboutSectionEnabled.GetHashCode(); + if (this.AboutSectionTitle != null) + hashCode = hashCode * 59 + this.AboutSectionTitle.GetHashCode(); + if (this.AboutSectionSubtitle != null) + hashCode = hashCode * 59 + this.AboutSectionSubtitle.GetHashCode(); + if (this.AboutSectionLeftTitle != null) + hashCode = hashCode * 59 + this.AboutSectionLeftTitle.GetHashCode(); + if (this.AboutSectionLeftBody != null) + hashCode = hashCode * 59 + this.AboutSectionLeftBody.GetHashCode(); + if (this.AboutSectionRightTitle != null) + hashCode = hashCode * 59 + this.AboutSectionRightTitle.GetHashCode(); + if (this.AboutSectionRightBody != null) + hashCode = hashCode * 59 + this.AboutSectionRightBody.GetHashCode(); + if (this.OpeningHoursEnabled != null) + hashCode = hashCode * 59 + this.OpeningHoursEnabled.GetHashCode(); + if (this.MenuPreviewEnabled != null) + hashCode = hashCode * 59 + this.MenuPreviewEnabled.GetHashCode(); + if (this.GalleryEnabled != null) + hashCode = hashCode * 59 + this.GalleryEnabled.GetHashCode(); + if (this.TestimonialsEnabled != null) + hashCode = hashCode * 59 + this.TestimonialsEnabled.GetHashCode(); + if (this.ContactFormEnabled != null) + hashCode = hashCode * 59 + this.ContactFormEnabled.GetHashCode(); + if (this.ContactFormEmail != null) + hashCode = hashCode * 59 + this.ContactFormEmail.GetHashCode(); + if (this.MapEnabled != null) + hashCode = hashCode * 59 + this.MapEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/IntercomUserHash.cs b/src/Flipdish/Model/IntercomUserHash.cs new file mode 100644 index 00000000..b6e37d18 --- /dev/null +++ b/src/Flipdish/Model/IntercomUserHash.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Intercom user hash + /// + [DataContract] + public partial class IntercomUserHash : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User hash. + public IntercomUserHash(string userHash = default(string)) + { + this.UserHash = userHash; + } + + /// + /// User hash + /// + /// User hash + [DataMember(Name="UserHash", EmitDefaultValue=false)] + public string UserHash { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IntercomUserHash {\n"); + sb.Append(" UserHash: ").Append(UserHash).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IntercomUserHash); + } + + /// + /// Returns true if IntercomUserHash instances are equal + /// + /// Instance of IntercomUserHash to be compared + /// Boolean + public bool Equals(IntercomUserHash input) + { + if (input == null) + return false; + + return + ( + this.UserHash == input.UserHash || + (this.UserHash != null && + this.UserHash.Equals(input.UserHash)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserHash != null) + hashCode = hashCode * 59 + this.UserHash.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Invoice.cs b/src/Flipdish/Model/Invoice.cs new file mode 100644 index 00000000..ee1e1143 --- /dev/null +++ b/src/Flipdish/Model/Invoice.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents an ordering invoice for a period of time. + /// + [DataContract] + public partial class Invoice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Invoice Number. + /// The start day of the invoice period.. + /// The end day of the invoice period.. + public Invoice(string invoiceNumber = default(string), DateTime? startDay = default(DateTime?), DateTime? endDay = default(DateTime?)) + { + this.InvoiceNumber = invoiceNumber; + this.StartDay = startDay; + this.EndDay = endDay; + } + + /// + /// Invoice Number + /// + /// Invoice Number + [DataMember(Name="InvoiceNumber", EmitDefaultValue=false)] + public string InvoiceNumber { get; set; } + + /// + /// The start day of the invoice period. + /// + /// The start day of the invoice period. + [DataMember(Name="StartDay", EmitDefaultValue=false)] + public DateTime? StartDay { get; set; } + + /// + /// The end day of the invoice period. + /// + /// The end day of the invoice period. + [DataMember(Name="EndDay", EmitDefaultValue=false)] + public DateTime? EndDay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Invoice {\n"); + sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n"); + sb.Append(" StartDay: ").Append(StartDay).Append("\n"); + sb.Append(" EndDay: ").Append(EndDay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Invoice); + } + + /// + /// Returns true if Invoice instances are equal + /// + /// Instance of Invoice to be compared + /// Boolean + public bool Equals(Invoice input) + { + if (input == null) + return false; + + return + ( + this.InvoiceNumber == input.InvoiceNumber || + (this.InvoiceNumber != null && + this.InvoiceNumber.Equals(input.InvoiceNumber)) + ) && + ( + this.StartDay == input.StartDay || + (this.StartDay != null && + this.StartDay.Equals(input.StartDay)) + ) && + ( + this.EndDay == input.EndDay || + (this.EndDay != null && + this.EndDay.Equals(input.EndDay)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InvoiceNumber != null) + hashCode = hashCode * 59 + this.InvoiceNumber.GetHashCode(); + if (this.StartDay != null) + hashCode = hashCode * 59 + this.StartDay.GetHashCode(); + if (this.EndDay != null) + hashCode = hashCode * 59 + this.EndDay.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/InvoiceDiscount.cs b/src/Flipdish/Model/InvoiceDiscount.cs new file mode 100644 index 00000000..83cc7e72 --- /dev/null +++ b/src/Flipdish/Model/InvoiceDiscount.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Invoice Discount + /// + [DataContract] + public partial class InvoiceDiscount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InvoiceDiscount() { } + /// + /// Initializes a new instance of the class. + /// + /// Name (required). + /// Amount (required). + public InvoiceDiscount(string name = default(string), double? amount = default(double?)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for InvoiceDiscount and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new InvalidDataException("amount is a required property for InvoiceDiscount and cannot be null"); + } + else + { + this.Amount = amount; + } + } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Amount + /// + /// Amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InvoiceDiscount {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InvoiceDiscount); + } + + /// + /// Returns true if InvoiceDiscount instances are equal + /// + /// Instance of InvoiceDiscount to be compared + /// Boolean + public bool Equals(InvoiceDiscount input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/InvoiceItem.cs b/src/Flipdish/Model/InvoiceItem.cs new file mode 100644 index 00000000..33bf1e4a --- /dev/null +++ b/src/Flipdish/Model/InvoiceItem.cs @@ -0,0 +1,251 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Invoice Item + /// + [DataContract] + public partial class InvoiceItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InvoiceItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Description (required). + /// Quantity (required). + /// Unit Amount Excluding Tax (required). + /// Tax (required). + /// Amount (required). + /// Period (required). + public InvoiceItem(string description = default(string), long? quantity = default(long?), double? unitAmountExcludingTax = default(double?), double? tax = default(double?), double? amount = default(double?), InvoicePeriod period = default(InvoicePeriod)) + { + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for InvoiceItem and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "quantity" is required (not null) + if (quantity == null) + { + throw new InvalidDataException("quantity is a required property for InvoiceItem and cannot be null"); + } + else + { + this.Quantity = quantity; + } + // to ensure "unitAmountExcludingTax" is required (not null) + if (unitAmountExcludingTax == null) + { + throw new InvalidDataException("unitAmountExcludingTax is a required property for InvoiceItem and cannot be null"); + } + else + { + this.UnitAmountExcludingTax = unitAmountExcludingTax; + } + // to ensure "tax" is required (not null) + if (tax == null) + { + throw new InvalidDataException("tax is a required property for InvoiceItem and cannot be null"); + } + else + { + this.Tax = tax; + } + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new InvalidDataException("amount is a required property for InvoiceItem and cannot be null"); + } + else + { + this.Amount = amount; + } + // to ensure "period" is required (not null) + if (period == null) + { + throw new InvalidDataException("period is a required property for InvoiceItem and cannot be null"); + } + else + { + this.Period = period; + } + } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Quantity + /// + /// Quantity + [DataMember(Name="Quantity", EmitDefaultValue=false)] + public long? Quantity { get; set; } + + /// + /// Unit Amount Excluding Tax + /// + /// Unit Amount Excluding Tax + [DataMember(Name="UnitAmountExcludingTax", EmitDefaultValue=false)] + public double? UnitAmountExcludingTax { get; set; } + + /// + /// Tax + /// + /// Tax + [DataMember(Name="Tax", EmitDefaultValue=false)] + public double? Tax { get; set; } + + /// + /// Amount + /// + /// Amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Period + /// + /// Period + [DataMember(Name="Period", EmitDefaultValue=false)] + public InvoicePeriod Period { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InvoiceItem {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Quantity: ").Append(Quantity).Append("\n"); + sb.Append(" UnitAmountExcludingTax: ").Append(UnitAmountExcludingTax).Append("\n"); + sb.Append(" Tax: ").Append(Tax).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InvoiceItem); + } + + /// + /// Returns true if InvoiceItem instances are equal + /// + /// Instance of InvoiceItem to be compared + /// Boolean + public bool Equals(InvoiceItem input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) + ) && + ( + this.UnitAmountExcludingTax == input.UnitAmountExcludingTax || + (this.UnitAmountExcludingTax != null && + this.UnitAmountExcludingTax.Equals(input.UnitAmountExcludingTax)) + ) && + ( + this.Tax == input.Tax || + (this.Tax != null && + this.Tax.Equals(input.Tax)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.Period == input.Period || + (this.Period != null && + this.Period.Equals(input.Period)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Quantity != null) + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); + if (this.UnitAmountExcludingTax != null) + hashCode = hashCode * 59 + this.UnitAmountExcludingTax.GetHashCode(); + if (this.Tax != null) + hashCode = hashCode * 59 + this.Tax.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.Period != null) + hashCode = hashCode * 59 + this.Period.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/InvoicePeriod.cs b/src/Flipdish/Model/InvoicePeriod.cs new file mode 100644 index 00000000..dc5d1877 --- /dev/null +++ b/src/Flipdish/Model/InvoicePeriod.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Invoice Period + /// + [DataContract] + public partial class InvoicePeriod : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Start. + /// End. + public InvoicePeriod(DateTime? start = default(DateTime?), DateTime? end = default(DateTime?)) + { + this.Start = start; + this.End = end; + } + + /// + /// Start + /// + /// Start + [DataMember(Name="Start", EmitDefaultValue=false)] + public DateTime? Start { get; set; } + + /// + /// End + /// + /// End + [DataMember(Name="End", EmitDefaultValue=false)] + public DateTime? End { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InvoicePeriod {\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append(" End: ").Append(End).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InvoicePeriod); + } + + /// + /// Returns true if InvoicePeriod instances are equal + /// + /// Instance of InvoicePeriod to be compared + /// Boolean + public bool Equals(InvoicePeriod input) + { + if (input == null) + return false; + + return + ( + this.Start == input.Start || + (this.Start != null && + this.Start.Equals(input.Start)) + ) && + ( + this.End == input.End || + (this.End != null && + this.End.Equals(input.End)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Start != null) + hashCode = hashCode * 59 + this.Start.GetHashCode(); + if (this.End != null) + hashCode = hashCode * 59 + this.End.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ItemNutritionInfoAddUpdateModel.cs b/src/Flipdish/Model/ItemNutritionInfoAddUpdateModel.cs new file mode 100644 index 00000000..959bbce1 --- /dev/null +++ b/src/Flipdish/Model/ItemNutritionInfoAddUpdateModel.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ItemNutritionInfoAddUpdateModel. + /// + [DataContract] + public partial class ItemNutritionInfoAddUpdateModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Labels.. + public ItemNutritionInfoAddUpdateModel(List labels = default(List)) + { + this.Labels = labels; + } + + /// + /// Labels. + /// + /// Labels. + [DataMember(Name="Labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ItemNutritionInfoAddUpdateModel {\n"); + sb.Append(" Labels: ").Append(Labels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ItemNutritionInfoAddUpdateModel); + } + + /// + /// Returns true if ItemNutritionInfoAddUpdateModel instances are equal + /// + /// Instance of ItemNutritionInfoAddUpdateModel to be compared + /// Boolean + public bool Equals(ItemNutritionInfoAddUpdateModel input) + { + if (input == null) + return false; + + return + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ItemNutritionInfoV2AddUpdateModel.cs b/src/Flipdish/Model/ItemNutritionInfoV2AddUpdateModel.cs new file mode 100644 index 00000000..d50bed8a --- /dev/null +++ b/src/Flipdish/Model/ItemNutritionInfoV2AddUpdateModel.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ItemNutritionInfoV2AddUpdateModel. + /// + [DataContract] + public partial class ItemNutritionInfoV2AddUpdateModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// AllergenIds.. + public ItemNutritionInfoV2AddUpdateModel(List allergenIds = default(List)) + { + this.AllergenIds = allergenIds; + } + + /// + /// AllergenIds. + /// + /// AllergenIds. + [DataMember(Name="AllergenIds", EmitDefaultValue=false)] + public List AllergenIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ItemNutritionInfoV2AddUpdateModel {\n"); + sb.Append(" AllergenIds: ").Append(AllergenIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ItemNutritionInfoV2AddUpdateModel); + } + + /// + /// Returns true if ItemNutritionInfoV2AddUpdateModel instances are equal + /// + /// Instance of ItemNutritionInfoV2AddUpdateModel to be compared + /// Boolean + public bool Equals(ItemNutritionInfoV2AddUpdateModel input) + { + if (input == null) + return false; + + return + ( + this.AllergenIds == input.AllergenIds || + this.AllergenIds != null && + this.AllergenIds.SequenceEqual(input.AllergenIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AllergenIds != null) + hashCode = hashCode * 59 + this.AllergenIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobAddress.cs b/src/Flipdish/Model/JobAddress.cs new file mode 100644 index 00000000..576f45e5 --- /dev/null +++ b/src/Flipdish/Model/JobAddress.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Address + /// + [DataContract] + public partial class JobAddress : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Street. + /// Postcode. + /// City. + /// Country. + /// Zone. + /// Formatted Address. + public JobAddress(string street = default(string), string postcode = default(string), string city = default(string), string country = default(string), string zone = default(string), string formattedAddress = default(string)) + { + this.Street = street; + this.Postcode = postcode; + this.City = city; + this.Country = country; + this.Zone = zone; + this.FormattedAddress = formattedAddress; + } + + /// + /// Street + /// + /// Street + [DataMember(Name="Street", EmitDefaultValue=false)] + public string Street { get; set; } + + /// + /// Postcode + /// + /// Postcode + [DataMember(Name="Postcode", EmitDefaultValue=false)] + public string Postcode { get; set; } + + /// + /// City + /// + /// City + [DataMember(Name="City", EmitDefaultValue=false)] + public string City { get; set; } + + /// + /// Country + /// + /// Country + [DataMember(Name="Country", EmitDefaultValue=false)] + public string Country { get; set; } + + /// + /// Zone + /// + /// Zone + [DataMember(Name="Zone", EmitDefaultValue=false)] + public string Zone { get; set; } + + /// + /// Formatted Address + /// + /// Formatted Address + [DataMember(Name="FormattedAddress", EmitDefaultValue=false)] + public string FormattedAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobAddress {\n"); + sb.Append(" Street: ").Append(Street).Append("\n"); + sb.Append(" Postcode: ").Append(Postcode).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" Country: ").Append(Country).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append(" FormattedAddress: ").Append(FormattedAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobAddress); + } + + /// + /// Returns true if JobAddress instances are equal + /// + /// Instance of JobAddress to be compared + /// Boolean + public bool Equals(JobAddress input) + { + if (input == null) + return false; + + return + ( + this.Street == input.Street || + (this.Street != null && + this.Street.Equals(input.Street)) + ) && + ( + this.Postcode == input.Postcode || + (this.Postcode != null && + this.Postcode.Equals(input.Postcode)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.Country == input.Country || + (this.Country != null && + this.Country.Equals(input.Country)) + ) && + ( + this.Zone == input.Zone || + (this.Zone != null && + this.Zone.Equals(input.Zone)) + ) && + ( + this.FormattedAddress == input.FormattedAddress || + (this.FormattedAddress != null && + this.FormattedAddress.Equals(input.FormattedAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Street != null) + hashCode = hashCode * 59 + this.Street.GetHashCode(); + if (this.Postcode != null) + hashCode = hashCode * 59 + this.Postcode.GetHashCode(); + if (this.City != null) + hashCode = hashCode * 59 + this.City.GetHashCode(); + if (this.Country != null) + hashCode = hashCode * 59 + this.Country.GetHashCode(); + if (this.Zone != null) + hashCode = hashCode * 59 + this.Zone.GetHashCode(); + if (this.FormattedAddress != null) + hashCode = hashCode * 59 + this.FormattedAddress.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobCancellation.cs b/src/Flipdish/Model/JobCancellation.cs new file mode 100644 index 00000000..177cea66 --- /dev/null +++ b/src/Flipdish/Model/JobCancellation.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Cancellation + /// + [DataContract] + public partial class JobCancellation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Canceled By. + /// Reason Key. + /// Comment. + public JobCancellation(string canceledBy = default(string), string reasonKey = default(string), string comment = default(string)) + { + this.CanceledBy = canceledBy; + this.ReasonKey = reasonKey; + this.Comment = comment; + } + + /// + /// Canceled By + /// + /// Canceled By + [DataMember(Name="CanceledBy", EmitDefaultValue=false)] + public string CanceledBy { get; set; } + + /// + /// Reason Key + /// + /// Reason Key + [DataMember(Name="ReasonKey", EmitDefaultValue=false)] + public string ReasonKey { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name="Comment", EmitDefaultValue=false)] + public string Comment { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobCancellation {\n"); + sb.Append(" CanceledBy: ").Append(CanceledBy).Append("\n"); + sb.Append(" ReasonKey: ").Append(ReasonKey).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobCancellation); + } + + /// + /// Returns true if JobCancellation instances are equal + /// + /// Instance of JobCancellation to be compared + /// Boolean + public bool Equals(JobCancellation input) + { + if (input == null) + return false; + + return + ( + this.CanceledBy == input.CanceledBy || + (this.CanceledBy != null && + this.CanceledBy.Equals(input.CanceledBy)) + ) && + ( + this.ReasonKey == input.ReasonKey || + (this.ReasonKey != null && + this.ReasonKey.Equals(input.ReasonKey)) + ) && + ( + this.Comment == input.Comment || + (this.Comment != null && + this.Comment.Equals(input.Comment)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CanceledBy != null) + hashCode = hashCode * 59 + this.CanceledBy.GetHashCode(); + if (this.ReasonKey != null) + hashCode = hashCode * 59 + this.ReasonKey.GetHashCode(); + if (this.Comment != null) + hashCode = hashCode * 59 + this.Comment.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobContact.cs b/src/Flipdish/Model/JobContact.cs new file mode 100644 index 00000000..144f9357 --- /dev/null +++ b/src/Flipdish/Model/JobContact.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Contact + /// + [DataContract] + public partial class JobContact : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Firstname. + /// Lastname. + /// Phone. + /// Email. + /// Company. + /// Company Name. + public JobContact(string firstname = default(string), string lastname = default(string), string phone = default(string), string email = default(string), string company = default(string), string companyName = default(string)) + { + this.Firstname = firstname; + this.Lastname = lastname; + this.Phone = phone; + this.Email = email; + this.Company = company; + this.CompanyName = companyName; + } + + /// + /// Firstname + /// + /// Firstname + [DataMember(Name="Firstname", EmitDefaultValue=false)] + public string Firstname { get; set; } + + /// + /// Lastname + /// + /// Lastname + [DataMember(Name="Lastname", EmitDefaultValue=false)] + public string Lastname { get; set; } + + /// + /// Phone + /// + /// Phone + [DataMember(Name="Phone", EmitDefaultValue=false)] + public string Phone { get; set; } + + /// + /// Email + /// + /// Email + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Company + /// + /// Company + [DataMember(Name="Company", EmitDefaultValue=false)] + public string Company { get; set; } + + /// + /// Company Name + /// + /// Company Name + [DataMember(Name="CompanyName", EmitDefaultValue=false)] + public string CompanyName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobContact {\n"); + sb.Append(" Firstname: ").Append(Firstname).Append("\n"); + sb.Append(" Lastname: ").Append(Lastname).Append("\n"); + sb.Append(" Phone: ").Append(Phone).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Company: ").Append(Company).Append("\n"); + sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobContact); + } + + /// + /// Returns true if JobContact instances are equal + /// + /// Instance of JobContact to be compared + /// Boolean + public bool Equals(JobContact input) + { + if (input == null) + return false; + + return + ( + this.Firstname == input.Firstname || + (this.Firstname != null && + this.Firstname.Equals(input.Firstname)) + ) && + ( + this.Lastname == input.Lastname || + (this.Lastname != null && + this.Lastname.Equals(input.Lastname)) + ) && + ( + this.Phone == input.Phone || + (this.Phone != null && + this.Phone.Equals(input.Phone)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.Company == input.Company || + (this.Company != null && + this.Company.Equals(input.Company)) + ) && + ( + this.CompanyName == input.CompanyName || + (this.CompanyName != null && + this.CompanyName.Equals(input.CompanyName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Firstname != null) + hashCode = hashCode * 59 + this.Firstname.GetHashCode(); + if (this.Lastname != null) + hashCode = hashCode * 59 + this.Lastname.GetHashCode(); + if (this.Phone != null) + hashCode = hashCode * 59 + this.Phone.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.Company != null) + hashCode = hashCode * 59 + this.Company.GetHashCode(); + if (this.CompanyName != null) + hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobDelivery.cs b/src/Flipdish/Model/JobDelivery.cs new file mode 100644 index 00000000..abdb5dec --- /dev/null +++ b/src/Flipdish/Model/JobDelivery.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Delivery + /// + [DataContract] + public partial class JobDelivery : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id. + /// Status. + /// Picked At. + /// Delivered At. + /// Tracking Url. + /// Client Reference. + /// Package Description. + /// Package Type. + /// Pickup. + /// Dropoff. + /// Eta. + /// Cancellation. + /// Proof. + public JobDelivery(int? id = default(int?), string status = default(string), string pickedAt = default(string), string deliveredAt = default(string), string trackingUrl = default(string), string clientReference = default(string), string packageDescription = default(string), string packageType = default(string), JobDeliveryDetail pickup = default(JobDeliveryDetail), JobDeliveryDetail dropoff = default(JobDeliveryDetail), JobEta eta = default(JobEta), JobCancellation cancellation = default(JobCancellation), JobProof proof = default(JobProof)) + { + this.Id = id; + this.Status = status; + this.PickedAt = pickedAt; + this.DeliveredAt = deliveredAt; + this.TrackingUrl = trackingUrl; + this.ClientReference = clientReference; + this.PackageDescription = packageDescription; + this.PackageType = packageType; + this.Pickup = pickup; + this.Dropoff = dropoff; + this.Eta = eta; + this.Cancellation = cancellation; + this.Proof = proof; + } + + /// + /// Id + /// + /// Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Picked At + /// + /// Picked At + [DataMember(Name="PickedAt", EmitDefaultValue=false)] + public string PickedAt { get; set; } + + /// + /// Delivered At + /// + /// Delivered At + [DataMember(Name="DeliveredAt", EmitDefaultValue=false)] + public string DeliveredAt { get; set; } + + /// + /// Tracking Url + /// + /// Tracking Url + [DataMember(Name="TrackingUrl", EmitDefaultValue=false)] + public string TrackingUrl { get; set; } + + /// + /// Client Reference + /// + /// Client Reference + [DataMember(Name="ClientReference", EmitDefaultValue=false)] + public string ClientReference { get; set; } + + /// + /// Package Description + /// + /// Package Description + [DataMember(Name="PackageDescription", EmitDefaultValue=false)] + public string PackageDescription { get; set; } + + /// + /// Package Type + /// + /// Package Type + [DataMember(Name="PackageType", EmitDefaultValue=false)] + public string PackageType { get; set; } + + /// + /// Pickup + /// + /// Pickup + [DataMember(Name="Pickup", EmitDefaultValue=false)] + public JobDeliveryDetail Pickup { get; set; } + + /// + /// Dropoff + /// + /// Dropoff + [DataMember(Name="Dropoff", EmitDefaultValue=false)] + public JobDeliveryDetail Dropoff { get; set; } + + /// + /// Eta + /// + /// Eta + [DataMember(Name="Eta", EmitDefaultValue=false)] + public JobEta Eta { get; set; } + + /// + /// Cancellation + /// + /// Cancellation + [DataMember(Name="Cancellation", EmitDefaultValue=false)] + public JobCancellation Cancellation { get; set; } + + /// + /// Proof + /// + /// Proof + [DataMember(Name="Proof", EmitDefaultValue=false)] + public JobProof Proof { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobDelivery {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" PickedAt: ").Append(PickedAt).Append("\n"); + sb.Append(" DeliveredAt: ").Append(DeliveredAt).Append("\n"); + sb.Append(" TrackingUrl: ").Append(TrackingUrl).Append("\n"); + sb.Append(" ClientReference: ").Append(ClientReference).Append("\n"); + sb.Append(" PackageDescription: ").Append(PackageDescription).Append("\n"); + sb.Append(" PackageType: ").Append(PackageType).Append("\n"); + sb.Append(" Pickup: ").Append(Pickup).Append("\n"); + sb.Append(" Dropoff: ").Append(Dropoff).Append("\n"); + sb.Append(" Eta: ").Append(Eta).Append("\n"); + sb.Append(" Cancellation: ").Append(Cancellation).Append("\n"); + sb.Append(" Proof: ").Append(Proof).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobDelivery); + } + + /// + /// Returns true if JobDelivery instances are equal + /// + /// Instance of JobDelivery to be compared + /// Boolean + public bool Equals(JobDelivery input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.PickedAt == input.PickedAt || + (this.PickedAt != null && + this.PickedAt.Equals(input.PickedAt)) + ) && + ( + this.DeliveredAt == input.DeliveredAt || + (this.DeliveredAt != null && + this.DeliveredAt.Equals(input.DeliveredAt)) + ) && + ( + this.TrackingUrl == input.TrackingUrl || + (this.TrackingUrl != null && + this.TrackingUrl.Equals(input.TrackingUrl)) + ) && + ( + this.ClientReference == input.ClientReference || + (this.ClientReference != null && + this.ClientReference.Equals(input.ClientReference)) + ) && + ( + this.PackageDescription == input.PackageDescription || + (this.PackageDescription != null && + this.PackageDescription.Equals(input.PackageDescription)) + ) && + ( + this.PackageType == input.PackageType || + (this.PackageType != null && + this.PackageType.Equals(input.PackageType)) + ) && + ( + this.Pickup == input.Pickup || + (this.Pickup != null && + this.Pickup.Equals(input.Pickup)) + ) && + ( + this.Dropoff == input.Dropoff || + (this.Dropoff != null && + this.Dropoff.Equals(input.Dropoff)) + ) && + ( + this.Eta == input.Eta || + (this.Eta != null && + this.Eta.Equals(input.Eta)) + ) && + ( + this.Cancellation == input.Cancellation || + (this.Cancellation != null && + this.Cancellation.Equals(input.Cancellation)) + ) && + ( + this.Proof == input.Proof || + (this.Proof != null && + this.Proof.Equals(input.Proof)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.PickedAt != null) + hashCode = hashCode * 59 + this.PickedAt.GetHashCode(); + if (this.DeliveredAt != null) + hashCode = hashCode * 59 + this.DeliveredAt.GetHashCode(); + if (this.TrackingUrl != null) + hashCode = hashCode * 59 + this.TrackingUrl.GetHashCode(); + if (this.ClientReference != null) + hashCode = hashCode * 59 + this.ClientReference.GetHashCode(); + if (this.PackageDescription != null) + hashCode = hashCode * 59 + this.PackageDescription.GetHashCode(); + if (this.PackageType != null) + hashCode = hashCode * 59 + this.PackageType.GetHashCode(); + if (this.Pickup != null) + hashCode = hashCode * 59 + this.Pickup.GetHashCode(); + if (this.Dropoff != null) + hashCode = hashCode * 59 + this.Dropoff.GetHashCode(); + if (this.Eta != null) + hashCode = hashCode * 59 + this.Eta.GetHashCode(); + if (this.Cancellation != null) + hashCode = hashCode * 59 + this.Cancellation.GetHashCode(); + if (this.Proof != null) + hashCode = hashCode * 59 + this.Proof.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobDeliveryDetail.cs b/src/Flipdish/Model/JobDeliveryDetail.cs new file mode 100644 index 00000000..f721081e --- /dev/null +++ b/src/Flipdish/Model/JobDeliveryDetail.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Delivery Detail + /// + [DataContract] + public partial class JobDeliveryDetail : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id. + /// Latitude. + /// Longitude. + /// Comment. + /// Address. + /// Contact. + public JobDeliveryDetail(int? id = default(int?), double? latitude = default(double?), double? longitude = default(double?), string comment = default(string), JobAddress address = default(JobAddress), JobContact contact = default(JobContact)) + { + this.Id = id; + this.Latitude = latitude; + this.Longitude = longitude; + this.Comment = comment; + this.Address = address; + this.Contact = contact; + } + + /// + /// Id + /// + /// Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Latitude + /// + /// Latitude + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude + /// + /// Longitude + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name="Comment", EmitDefaultValue=false)] + public string Comment { get; set; } + + /// + /// Address + /// + /// Address + [DataMember(Name="Address", EmitDefaultValue=false)] + public JobAddress Address { get; set; } + + /// + /// Contact + /// + /// Contact + [DataMember(Name="Contact", EmitDefaultValue=false)] + public JobContact Contact { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobDeliveryDetail {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Contact: ").Append(Contact).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobDeliveryDetail); + } + + /// + /// Returns true if JobDeliveryDetail instances are equal + /// + /// Instance of JobDeliveryDetail to be compared + /// Boolean + public bool Equals(JobDeliveryDetail input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ) && + ( + this.Comment == input.Comment || + (this.Comment != null && + this.Comment.Equals(input.Comment)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.Contact == input.Contact || + (this.Contact != null && + this.Contact.Equals(input.Contact)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + if (this.Comment != null) + hashCode = hashCode * 59 + this.Comment.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.Contact != null) + hashCode = hashCode * 59 + this.Contact.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobDriver.cs b/src/Flipdish/Model/JobDriver.cs new file mode 100644 index 00000000..4d842f97 --- /dev/null +++ b/src/Flipdish/Model/JobDriver.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Driver + /// + [DataContract] + public partial class JobDriver : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id. + /// Display Name. + /// Phone. + /// Picture Url. + /// Transport Type. + /// Latitude. + /// Longitude. + public JobDriver(int? id = default(int?), string displayName = default(string), string phone = default(string), string pictureUrl = default(string), string transportType = default(string), double? latitude = default(double?), double? longitude = default(double?)) + { + this.Id = id; + this.DisplayName = displayName; + this.Phone = phone; + this.PictureUrl = pictureUrl; + this.TransportType = transportType; + this.Latitude = latitude; + this.Longitude = longitude; + } + + /// + /// Id + /// + /// Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Display Name + /// + /// Display Name + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// Phone + /// + /// Phone + [DataMember(Name="Phone", EmitDefaultValue=false)] + public string Phone { get; set; } + + /// + /// Picture Url + /// + /// Picture Url + [DataMember(Name="PictureUrl", EmitDefaultValue=false)] + public string PictureUrl { get; set; } + + /// + /// Transport Type + /// + /// Transport Type + [DataMember(Name="TransportType", EmitDefaultValue=false)] + public string TransportType { get; set; } + + /// + /// Latitude + /// + /// Latitude + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude + /// + /// Longitude + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobDriver {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Phone: ").Append(Phone).Append("\n"); + sb.Append(" PictureUrl: ").Append(PictureUrl).Append("\n"); + sb.Append(" TransportType: ").Append(TransportType).Append("\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobDriver); + } + + /// + /// Returns true if JobDriver instances are equal + /// + /// Instance of JobDriver to be compared + /// Boolean + public bool Equals(JobDriver input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Phone == input.Phone || + (this.Phone != null && + this.Phone.Equals(input.Phone)) + ) && + ( + this.PictureUrl == input.PictureUrl || + (this.PictureUrl != null && + this.PictureUrl.Equals(input.PictureUrl)) + ) && + ( + this.TransportType == input.TransportType || + (this.TransportType != null && + this.TransportType.Equals(input.TransportType)) + ) && + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.Phone != null) + hashCode = hashCode * 59 + this.Phone.GetHashCode(); + if (this.PictureUrl != null) + hashCode = hashCode * 59 + this.PictureUrl.GetHashCode(); + if (this.TransportType != null) + hashCode = hashCode * 59 + this.TransportType.GetHashCode(); + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobEta.cs b/src/Flipdish/Model/JobEta.cs new file mode 100644 index 00000000..156b05a6 --- /dev/null +++ b/src/Flipdish/Model/JobEta.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Eta + /// + [DataContract] + public partial class JobEta : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Pickup. + /// Dropoff. + public JobEta(string pickup = default(string), string dropoff = default(string)) + { + this.Pickup = pickup; + this.Dropoff = dropoff; + } + + /// + /// Pickup + /// + /// Pickup + [DataMember(Name="Pickup", EmitDefaultValue=false)] + public string Pickup { get; set; } + + /// + /// Dropoff + /// + /// Dropoff + [DataMember(Name="Dropoff", EmitDefaultValue=false)] + public string Dropoff { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobEta {\n"); + sb.Append(" Pickup: ").Append(Pickup).Append("\n"); + sb.Append(" Dropoff: ").Append(Dropoff).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobEta); + } + + /// + /// Returns true if JobEta instances are equal + /// + /// Instance of JobEta to be compared + /// Boolean + public bool Equals(JobEta input) + { + if (input == null) + return false; + + return + ( + this.Pickup == input.Pickup || + (this.Pickup != null && + this.Pickup.Equals(input.Pickup)) + ) && + ( + this.Dropoff == input.Dropoff || + (this.Dropoff != null && + this.Dropoff.Equals(input.Dropoff)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Pickup != null) + hashCode = hashCode * 59 + this.Pickup.GetHashCode(); + if (this.Dropoff != null) + hashCode = hashCode * 59 + this.Dropoff.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobPricing.cs b/src/Flipdish/Model/JobPricing.cs new file mode 100644 index 00000000..ffbf6ca6 --- /dev/null +++ b/src/Flipdish/Model/JobPricing.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Pricing + /// + [DataContract] + public partial class JobPricing : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Currency. + /// Tax Percentage. + /// Price Tax Included. + /// Price Tax Excluded. + /// Tax Amount. + /// Invoice Url. + public JobPricing(string currency = default(string), double? taxPercentage = default(double?), double? priceTaxIncluded = default(double?), double? priceTaxExcluded = default(double?), double? taxAmount = default(double?), string invoiceUrl = default(string)) + { + this.Currency = currency; + this.TaxPercentage = taxPercentage; + this.PriceTaxIncluded = priceTaxIncluded; + this.PriceTaxExcluded = priceTaxExcluded; + this.TaxAmount = taxAmount; + this.InvoiceUrl = invoiceUrl; + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Tax Percentage + /// + /// Tax Percentage + [DataMember(Name="TaxPercentage", EmitDefaultValue=false)] + public double? TaxPercentage { get; set; } + + /// + /// Price Tax Included + /// + /// Price Tax Included + [DataMember(Name="PriceTaxIncluded", EmitDefaultValue=false)] + public double? PriceTaxIncluded { get; set; } + + /// + /// Price Tax Excluded + /// + /// Price Tax Excluded + [DataMember(Name="PriceTaxExcluded", EmitDefaultValue=false)] + public double? PriceTaxExcluded { get; set; } + + /// + /// Tax Amount + /// + /// Tax Amount + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public double? TaxAmount { get; set; } + + /// + /// Invoice Url + /// + /// Invoice Url + [DataMember(Name="InvoiceUrl", EmitDefaultValue=false)] + public string InvoiceUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobPricing {\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" TaxPercentage: ").Append(TaxPercentage).Append("\n"); + sb.Append(" PriceTaxIncluded: ").Append(PriceTaxIncluded).Append("\n"); + sb.Append(" PriceTaxExcluded: ").Append(PriceTaxExcluded).Append("\n"); + sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); + sb.Append(" InvoiceUrl: ").Append(InvoiceUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobPricing); + } + + /// + /// Returns true if JobPricing instances are equal + /// + /// Instance of JobPricing to be compared + /// Boolean + public bool Equals(JobPricing input) + { + if (input == null) + return false; + + return + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.TaxPercentage == input.TaxPercentage || + (this.TaxPercentage != null && + this.TaxPercentage.Equals(input.TaxPercentage)) + ) && + ( + this.PriceTaxIncluded == input.PriceTaxIncluded || + (this.PriceTaxIncluded != null && + this.PriceTaxIncluded.Equals(input.PriceTaxIncluded)) + ) && + ( + this.PriceTaxExcluded == input.PriceTaxExcluded || + (this.PriceTaxExcluded != null && + this.PriceTaxExcluded.Equals(input.PriceTaxExcluded)) + ) && + ( + this.TaxAmount == input.TaxAmount || + (this.TaxAmount != null && + this.TaxAmount.Equals(input.TaxAmount)) + ) && + ( + this.InvoiceUrl == input.InvoiceUrl || + (this.InvoiceUrl != null && + this.InvoiceUrl.Equals(input.InvoiceUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.TaxPercentage != null) + hashCode = hashCode * 59 + this.TaxPercentage.GetHashCode(); + if (this.PriceTaxIncluded != null) + hashCode = hashCode * 59 + this.PriceTaxIncluded.GetHashCode(); + if (this.PriceTaxExcluded != null) + hashCode = hashCode * 59 + this.PriceTaxExcluded.GetHashCode(); + if (this.TaxAmount != null) + hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); + if (this.InvoiceUrl != null) + hashCode = hashCode * 59 + this.InvoiceUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobProof.cs b/src/Flipdish/Model/JobProof.cs new file mode 100644 index 00000000..5aa4409c --- /dev/null +++ b/src/Flipdish/Model/JobProof.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Proof + /// + [DataContract] + public partial class JobProof : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Signature Url. + public JobProof(string signatureUrl = default(string)) + { + this.SignatureUrl = signatureUrl; + } + + /// + /// Signature Url + /// + /// Signature Url + [DataMember(Name="SignatureUrl", EmitDefaultValue=false)] + public string SignatureUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobProof {\n"); + sb.Append(" SignatureUrl: ").Append(SignatureUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobProof); + } + + /// + /// Returns true if JobProof instances are equal + /// + /// Instance of JobProof to be compared + /// Boolean + public bool Equals(JobProof input) + { + if (input == null) + return false; + + return + ( + this.SignatureUrl == input.SignatureUrl || + (this.SignatureUrl != null && + this.SignatureUrl.Equals(input.SignatureUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SignatureUrl != null) + hashCode = hashCode * 59 + this.SignatureUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/JobResponse.cs b/src/Flipdish/Model/JobResponse.cs new file mode 100644 index 00000000..c6eb7d53 --- /dev/null +++ b/src/Flipdish/Model/JobResponse.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Job Response + /// + [DataContract] + public partial class JobResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id. + /// Created At. + /// Status. + /// Package Type. + /// Transport Type. + /// Assignment Code. + /// Pickup At. + /// Dropoff At. + /// Comment. + /// Distance. + /// Duration. + /// Deliveries. + /// Pricing. + /// Driver. + public JobResponse(int? id = default(int?), DateTime? createdAt = default(DateTime?), string status = default(string), string packageType = default(string), string transportType = default(string), string assignmentCode = default(string), string pickupAt = default(string), string dropoffAt = default(string), string comment = default(string), double? distance = default(double?), int? duration = default(int?), List deliveries = default(List), JobPricing pricing = default(JobPricing), JobDriver driver = default(JobDriver)) + { + this.Id = id; + this.CreatedAt = createdAt; + this.Status = status; + this.PackageType = packageType; + this.TransportType = transportType; + this.AssignmentCode = assignmentCode; + this.PickupAt = pickupAt; + this.DropoffAt = dropoffAt; + this.Comment = comment; + this.Distance = distance; + this.Duration = duration; + this.Deliveries = deliveries; + this.Pricing = pricing; + this.Driver = driver; + } + + /// + /// Id + /// + /// Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Created At + /// + /// Created At + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTime? CreatedAt { get; set; } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Package Type + /// + /// Package Type + [DataMember(Name="PackageType", EmitDefaultValue=false)] + public string PackageType { get; set; } + + /// + /// Transport Type + /// + /// Transport Type + [DataMember(Name="TransportType", EmitDefaultValue=false)] + public string TransportType { get; set; } + + /// + /// Assignment Code + /// + /// Assignment Code + [DataMember(Name="AssignmentCode", EmitDefaultValue=false)] + public string AssignmentCode { get; set; } + + /// + /// Pickup At + /// + /// Pickup At + [DataMember(Name="PickupAt", EmitDefaultValue=false)] + public string PickupAt { get; set; } + + /// + /// Dropoff At + /// + /// Dropoff At + [DataMember(Name="DropoffAt", EmitDefaultValue=false)] + public string DropoffAt { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name="Comment", EmitDefaultValue=false)] + public string Comment { get; set; } + + /// + /// Distance + /// + /// Distance + [DataMember(Name="Distance", EmitDefaultValue=false)] + public double? Distance { get; set; } + + /// + /// Duration + /// + /// Duration + [DataMember(Name="Duration", EmitDefaultValue=false)] + public int? Duration { get; set; } + + /// + /// Deliveries + /// + /// Deliveries + [DataMember(Name="Deliveries", EmitDefaultValue=false)] + public List Deliveries { get; set; } + + /// + /// Pricing + /// + /// Pricing + [DataMember(Name="Pricing", EmitDefaultValue=false)] + public JobPricing Pricing { get; set; } + + /// + /// Driver + /// + /// Driver + [DataMember(Name="Driver", EmitDefaultValue=false)] + public JobDriver Driver { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobResponse {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" PackageType: ").Append(PackageType).Append("\n"); + sb.Append(" TransportType: ").Append(TransportType).Append("\n"); + sb.Append(" AssignmentCode: ").Append(AssignmentCode).Append("\n"); + sb.Append(" PickupAt: ").Append(PickupAt).Append("\n"); + sb.Append(" DropoffAt: ").Append(DropoffAt).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Distance: ").Append(Distance).Append("\n"); + sb.Append(" Duration: ").Append(Duration).Append("\n"); + sb.Append(" Deliveries: ").Append(Deliveries).Append("\n"); + sb.Append(" Pricing: ").Append(Pricing).Append("\n"); + sb.Append(" Driver: ").Append(Driver).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as JobResponse); + } + + /// + /// Returns true if JobResponse instances are equal + /// + /// Instance of JobResponse to be compared + /// Boolean + public bool Equals(JobResponse input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.PackageType == input.PackageType || + (this.PackageType != null && + this.PackageType.Equals(input.PackageType)) + ) && + ( + this.TransportType == input.TransportType || + (this.TransportType != null && + this.TransportType.Equals(input.TransportType)) + ) && + ( + this.AssignmentCode == input.AssignmentCode || + (this.AssignmentCode != null && + this.AssignmentCode.Equals(input.AssignmentCode)) + ) && + ( + this.PickupAt == input.PickupAt || + (this.PickupAt != null && + this.PickupAt.Equals(input.PickupAt)) + ) && + ( + this.DropoffAt == input.DropoffAt || + (this.DropoffAt != null && + this.DropoffAt.Equals(input.DropoffAt)) + ) && + ( + this.Comment == input.Comment || + (this.Comment != null && + this.Comment.Equals(input.Comment)) + ) && + ( + this.Distance == input.Distance || + (this.Distance != null && + this.Distance.Equals(input.Distance)) + ) && + ( + this.Duration == input.Duration || + (this.Duration != null && + this.Duration.Equals(input.Duration)) + ) && + ( + this.Deliveries == input.Deliveries || + this.Deliveries != null && + this.Deliveries.SequenceEqual(input.Deliveries) + ) && + ( + this.Pricing == input.Pricing || + (this.Pricing != null && + this.Pricing.Equals(input.Pricing)) + ) && + ( + this.Driver == input.Driver || + (this.Driver != null && + this.Driver.Equals(input.Driver)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.PackageType != null) + hashCode = hashCode * 59 + this.PackageType.GetHashCode(); + if (this.TransportType != null) + hashCode = hashCode * 59 + this.TransportType.GetHashCode(); + if (this.AssignmentCode != null) + hashCode = hashCode * 59 + this.AssignmentCode.GetHashCode(); + if (this.PickupAt != null) + hashCode = hashCode * 59 + this.PickupAt.GetHashCode(); + if (this.DropoffAt != null) + hashCode = hashCode * 59 + this.DropoffAt.GetHashCode(); + if (this.Comment != null) + hashCode = hashCode * 59 + this.Comment.GetHashCode(); + if (this.Distance != null) + hashCode = hashCode * 59 + this.Distance.GetHashCode(); + if (this.Duration != null) + hashCode = hashCode * 59 + this.Duration.GetHashCode(); + if (this.Deliveries != null) + hashCode = hashCode * 59 + this.Deliveries.GetHashCode(); + if (this.Pricing != null) + hashCode = hashCode * 59 + this.Pricing.GetHashCode(); + if (this.Driver != null) + hashCode = hashCode * 59 + this.Driver.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs b/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs new file mode 100644 index 00000000..6dcb99a1 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk bluetooth Initiate Install Update Event + /// + [DataContract] + public partial class KioskBluetoothInstallUpdateInitiateEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothInstallUpdateInitiateEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothInstallUpdateInitiateEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothInstallUpdateInitiateEvent); + } + + /// + /// Returns true if KioskBluetoothInstallUpdateInitiateEvent instances are equal + /// + /// Instance of KioskBluetoothInstallUpdateInitiateEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothInstallUpdateInitiateEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothPairingModeEvent.cs b/src/Flipdish/Model/KioskBluetoothPairingModeEvent.cs new file mode 100644 index 00000000..56782b59 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothPairingModeEvent.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk Bluetooth Pairing mode initiated + /// + [DataContract] + public partial class KioskBluetoothPairingModeEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothPairingModeEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothPairingModeEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothPairingModeEvent); + } + + /// + /// Returns true if KioskBluetoothPairingModeEvent instances are equal + /// + /// Instance of KioskBluetoothPairingModeEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothPairingModeEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalCancelUpdateEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalCancelUpdateEvent.cs new file mode 100644 index 00000000..998250db --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalCancelUpdateEvent.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk bluetooth Cancel Update Install Event + /// + [DataContract] + public partial class KioskBluetoothTerminalCancelUpdateEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalCancelUpdateEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalCancelUpdateEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalCancelUpdateEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalCancelUpdateEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalCancelUpdateEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalCancelUpdateEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalFirmwareVersionStatusEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalFirmwareVersionStatusEvent.cs new file mode 100644 index 00000000..5cf532cd --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalFirmwareVersionStatusEvent.cs @@ -0,0 +1,401 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk Stripe Terminal Update info received event + /// + [DataContract] + public partial class KioskBluetoothTerminalFirmwareVersionStatusEvent : IEquatable + { + /// + /// ETA to install the update + /// + /// ETA to install the update + [JsonConverter(typeof(StringEnumConverter))] + public enum UpdateTimeEstimateEnum + { + + /// + /// Enum LessThanOneMinute for value: LessThanOneMinute + /// + [EnumMember(Value = "LessThanOneMinute")] + LessThanOneMinute = 1, + + /// + /// Enum OneToTwoMinutes for value: OneToTwoMinutes + /// + [EnumMember(Value = "OneToTwoMinutes")] + OneToTwoMinutes = 2, + + /// + /// Enum TwoToFiveMinutes for value: TwoToFiveMinutes + /// + [EnumMember(Value = "TwoToFiveMinutes")] + TwoToFiveMinutes = 3, + + /// + /// Enum FiveToFifteenMinutes for value: FiveToFifteenMinutes + /// + [EnumMember(Value = "FiveToFifteenMinutes")] + FiveToFifteenMinutes = 4 + } + + /// + /// ETA to install the update + /// + /// ETA to install the update + [DataMember(Name="UpdateTimeEstimate", EmitDefaultValue=false)] + public UpdateTimeEstimateEnum? UpdateTimeEstimate { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Serial Number of the device. + /// Indicates if Payment Terminal has Firmware Update. + /// Indicates if Payment Terminal has Config Update. + /// Indicates if Payment Terminal has Key Update. + /// ETA to install the update. + /// User who made the changes. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalFirmwareVersionStatusEvent(string deviceId = default(string), string serialNumber = default(string), bool? hasFirmwareUpdate = default(bool?), bool? hasConfigUpdate = default(bool?), bool? hasKeyUpdate = default(bool?), UpdateTimeEstimateEnum? updateTimeEstimate = default(UpdateTimeEstimateEnum?), UserEventInfo userEventInfo = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.SerialNumber = serialNumber; + this.HasFirmwareUpdate = hasFirmwareUpdate; + this.HasConfigUpdate = hasConfigUpdate; + this.HasKeyUpdate = hasKeyUpdate; + this.UpdateTimeEstimate = updateTimeEstimate; + this.UserEventInfo = userEventInfo; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Serial Number of the device + /// + /// Serial Number of the device + [DataMember(Name="SerialNumber", EmitDefaultValue=false)] + public string SerialNumber { get; set; } + + /// + /// Indicates if Payment Terminal has Firmware Update + /// + /// Indicates if Payment Terminal has Firmware Update + [DataMember(Name="HasFirmwareUpdate", EmitDefaultValue=false)] + public bool? HasFirmwareUpdate { get; set; } + + /// + /// Indicates if Payment Terminal has Config Update + /// + /// Indicates if Payment Terminal has Config Update + [DataMember(Name="HasConfigUpdate", EmitDefaultValue=false)] + public bool? HasConfigUpdate { get; set; } + + /// + /// Indicates if Payment Terminal has Key Update + /// + /// Indicates if Payment Terminal has Key Update + [DataMember(Name="HasKeyUpdate", EmitDefaultValue=false)] + public bool? HasKeyUpdate { get; set; } + + + /// + /// User who made the changes + /// + /// User who made the changes + [DataMember(Name="UserEventInfo", EmitDefaultValue=false)] + public UserEventInfo UserEventInfo { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalFirmwareVersionStatusEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" HasFirmwareUpdate: ").Append(HasFirmwareUpdate).Append("\n"); + sb.Append(" HasConfigUpdate: ").Append(HasConfigUpdate).Append("\n"); + sb.Append(" HasKeyUpdate: ").Append(HasKeyUpdate).Append("\n"); + sb.Append(" UpdateTimeEstimate: ").Append(UpdateTimeEstimate).Append("\n"); + sb.Append(" UserEventInfo: ").Append(UserEventInfo).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalFirmwareVersionStatusEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalFirmwareVersionStatusEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalFirmwareVersionStatusEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalFirmwareVersionStatusEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.HasFirmwareUpdate == input.HasFirmwareUpdate || + (this.HasFirmwareUpdate != null && + this.HasFirmwareUpdate.Equals(input.HasFirmwareUpdate)) + ) && + ( + this.HasConfigUpdate == input.HasConfigUpdate || + (this.HasConfigUpdate != null && + this.HasConfigUpdate.Equals(input.HasConfigUpdate)) + ) && + ( + this.HasKeyUpdate == input.HasKeyUpdate || + (this.HasKeyUpdate != null && + this.HasKeyUpdate.Equals(input.HasKeyUpdate)) + ) && + ( + this.UpdateTimeEstimate == input.UpdateTimeEstimate || + (this.UpdateTimeEstimate != null && + this.UpdateTimeEstimate.Equals(input.UpdateTimeEstimate)) + ) && + ( + this.UserEventInfo == input.UserEventInfo || + (this.UserEventInfo != null && + this.UserEventInfo.Equals(input.UserEventInfo)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.HasFirmwareUpdate != null) + hashCode = hashCode * 59 + this.HasFirmwareUpdate.GetHashCode(); + if (this.HasConfigUpdate != null) + hashCode = hashCode * 59 + this.HasConfigUpdate.GetHashCode(); + if (this.HasKeyUpdate != null) + hashCode = hashCode * 59 + this.HasKeyUpdate.GetHashCode(); + if (this.UpdateTimeEstimate != null) + hashCode = hashCode * 59 + this.UpdateTimeEstimate.GetHashCode(); + if (this.UserEventInfo != null) + hashCode = hashCode * 59 + this.UserEventInfo.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalInitiateUpdateCheckEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalInitiateUpdateCheckEvent.cs new file mode 100644 index 00000000..a08f6837 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalInitiateUpdateCheckEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk bluetooth trigger update check event + /// + [DataContract] + public partial class KioskBluetoothTerminalInitiateUpdateCheckEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalInitiateUpdateCheckEvent(string deviceId = default(string), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalInitiateUpdateCheckEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalInitiateUpdateCheckEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalInitiateUpdateCheckEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalInitiateUpdateCheckEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalInitiateUpdateCheckEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalInstallationStatusEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalInstallationStatusEvent.cs new file mode 100644 index 00000000..bea84e25 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalInstallationStatusEvent.cs @@ -0,0 +1,373 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk bluetooth terminal Installation Status + /// + [DataContract] + public partial class KioskBluetoothTerminalInstallationStatusEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// Serial number of the terminal. + /// User who made the change. + /// Update Install Progress for Card Reader. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalInstallationStatusEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), string bluetoothTerminalSerialNumber = default(string), UserEventInfo user = default(UserEventInfo), int? progress = default(int?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.BluetoothTerminalSerialNumber = bluetoothTerminalSerialNumber; + this.User = user; + this.Progress = progress; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// Serial number of the terminal + /// + /// Serial number of the terminal + [DataMember(Name="BluetoothTerminalSerialNumber", EmitDefaultValue=false)] + public string BluetoothTerminalSerialNumber { get; set; } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Update Install Progress for Card Reader + /// + /// Update Install Progress for Card Reader + [DataMember(Name="Progress", EmitDefaultValue=false)] + public int? Progress { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalInstallationStatusEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" BluetoothTerminalSerialNumber: ").Append(BluetoothTerminalSerialNumber).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Progress: ").Append(Progress).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalInstallationStatusEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalInstallationStatusEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalInstallationStatusEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalInstallationStatusEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.BluetoothTerminalSerialNumber == input.BluetoothTerminalSerialNumber || + (this.BluetoothTerminalSerialNumber != null && + this.BluetoothTerminalSerialNumber.Equals(input.BluetoothTerminalSerialNumber)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Progress == input.Progress || + (this.Progress != null && + this.Progress.Equals(input.Progress)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.BluetoothTerminalSerialNumber != null) + hashCode = hashCode * 59 + this.BluetoothTerminalSerialNumber.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Progress != null) + hashCode = hashCode * 59 + this.Progress.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalUnpairedEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalUnpairedEvent.cs new file mode 100644 index 00000000..8b33f9e8 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalUnpairedEvent.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk Bluetooth Unpairing mode initiated + /// + [DataContract] + public partial class KioskBluetoothTerminalUnpairedEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalUnpairedEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalUnpairedEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalUnpairedEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalUnpairedEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalUnpairedEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalUnpairedEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothTerminalUpdatedEvent.cs b/src/Flipdish/Model/KioskBluetoothTerminalUpdatedEvent.cs new file mode 100644 index 00000000..ed00809d --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothTerminalUpdatedEvent.cs @@ -0,0 +1,373 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk bluetooth terminal unpaired + /// + [DataContract] + public partial class KioskBluetoothTerminalUpdatedEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// Serial number of the terminal. + /// Status of the connected terminal. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothTerminalUpdatedEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), string bluetoothTerminalSerialNumber = default(string), BluetoothTerminalStatus bluetoothTerminalStatus = default(BluetoothTerminalStatus), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.BluetoothTerminalSerialNumber = bluetoothTerminalSerialNumber; + this.BluetoothTerminalStatus = bluetoothTerminalStatus; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// Serial number of the terminal + /// + /// Serial number of the terminal + [DataMember(Name="BluetoothTerminalSerialNumber", EmitDefaultValue=false)] + public string BluetoothTerminalSerialNumber { get; set; } + + /// + /// Status of the connected terminal + /// + /// Status of the connected terminal + [DataMember(Name="BluetoothTerminalStatus", EmitDefaultValue=false)] + public BluetoothTerminalStatus BluetoothTerminalStatus { get; set; } + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothTerminalUpdatedEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" BluetoothTerminalSerialNumber: ").Append(BluetoothTerminalSerialNumber).Append("\n"); + sb.Append(" BluetoothTerminalStatus: ").Append(BluetoothTerminalStatus).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothTerminalUpdatedEvent); + } + + /// + /// Returns true if KioskBluetoothTerminalUpdatedEvent instances are equal + /// + /// Instance of KioskBluetoothTerminalUpdatedEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothTerminalUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.BluetoothTerminalSerialNumber == input.BluetoothTerminalSerialNumber || + (this.BluetoothTerminalSerialNumber != null && + this.BluetoothTerminalSerialNumber.Equals(input.BluetoothTerminalSerialNumber)) + ) && + ( + this.BluetoothTerminalStatus == input.BluetoothTerminalStatus || + (this.BluetoothTerminalStatus != null && + this.BluetoothTerminalStatus.Equals(input.BluetoothTerminalStatus)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.BluetoothTerminalSerialNumber != null) + hashCode = hashCode * 59 + this.BluetoothTerminalSerialNumber.GetHashCode(); + if (this.BluetoothTerminalStatus != null) + hashCode = hashCode * 59 + this.BluetoothTerminalStatus.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskBluetoothUnpairingModeEvent.cs b/src/Flipdish/Model/KioskBluetoothUnpairingModeEvent.cs new file mode 100644 index 00000000..1e034696 --- /dev/null +++ b/src/Flipdish/Model/KioskBluetoothUnpairingModeEvent.cs @@ -0,0 +1,339 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk Bluetooth Unpairing mode initiated + /// + [DataContract] + public partial class KioskBluetoothUnpairingModeEvent : IEquatable + { + /// + /// Terminal Type + /// + /// Terminal Type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal Type + /// + /// Terminal Type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Device Id of the Kiosk. + /// Terminal Type. + /// User who made the change. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskBluetoothUnpairingModeEvent(string deviceId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.DeviceId = deviceId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Device Id of the Kiosk + /// + /// Device Id of the Kiosk + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + + /// + /// User who made the change + /// + /// User who made the change + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskBluetoothUnpairingModeEvent {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskBluetoothUnpairingModeEvent); + } + + /// + /// Returns true if KioskBluetoothUnpairingModeEvent instances are equal + /// + /// Instance of KioskBluetoothUnpairingModeEvent to be compared + /// Boolean + public bool Equals(KioskBluetoothUnpairingModeEvent input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskCashPaymentSettings.cs b/src/Flipdish/Model/KioskCashPaymentSettings.cs new file mode 100644 index 00000000..813805da --- /dev/null +++ b/src/Flipdish/Model/KioskCashPaymentSettings.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Get Cash Payment Settings for a UserId + /// + [DataContract] + public partial class KioskCashPaymentSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// false :disable cash on kiosk true :enable cash on kiosk. + /// HydraUser ID of the Device. + public KioskCashPaymentSettings(bool? isCashVisibleToCustomer = default(bool?), int? userId = default(int?)) + { + this.IsCashVisibleToCustomer = isCashVisibleToCustomer; + this.UserId = userId; + } + + /// + /// false :disable cash on kiosk true :enable cash on kiosk + /// + /// false :disable cash on kiosk true :enable cash on kiosk + [DataMember(Name="IsCashVisibleToCustomer", EmitDefaultValue=false)] + public bool? IsCashVisibleToCustomer { get; set; } + + /// + /// HydraUser ID of the Device + /// + /// HydraUser ID of the Device + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskCashPaymentSettings {\n"); + sb.Append(" IsCashVisibleToCustomer: ").Append(IsCashVisibleToCustomer).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskCashPaymentSettings); + } + + /// + /// Returns true if KioskCashPaymentSettings instances are equal + /// + /// Instance of KioskCashPaymentSettings to be compared + /// Boolean + public bool Equals(KioskCashPaymentSettings input) + { + if (input == null) + return false; + + return + ( + this.IsCashVisibleToCustomer == input.IsCashVisibleToCustomer || + (this.IsCashVisibleToCustomer != null && + this.IsCashVisibleToCustomer.Equals(input.IsCashVisibleToCustomer)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsCashVisibleToCustomer != null) + hashCode = hashCode * 59 + this.IsCashVisibleToCustomer.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskEntitlementsResult.cs b/src/Flipdish/Model/KioskEntitlementsResult.cs new file mode 100644 index 00000000..5b696b0d --- /dev/null +++ b/src/Flipdish/Model/KioskEntitlementsResult.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk entitlements and usage + /// + [DataContract] + public partial class KioskEntitlementsResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Number of kiosk devices entitled. + /// The quantity of entitlements that have been used. + public KioskEntitlementsResult(int? entitledQuantity = default(int?), int? usedQuantity = default(int?)) + { + this.EntitledQuantity = entitledQuantity; + this.UsedQuantity = usedQuantity; + } + + /// + /// Number of kiosk devices entitled + /// + /// Number of kiosk devices entitled + [DataMember(Name="EntitledQuantity", EmitDefaultValue=false)] + public int? EntitledQuantity { get; set; } + + /// + /// The quantity of entitlements that have been used + /// + /// The quantity of entitlements that have been used + [DataMember(Name="UsedQuantity", EmitDefaultValue=false)] + public int? UsedQuantity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskEntitlementsResult {\n"); + sb.Append(" EntitledQuantity: ").Append(EntitledQuantity).Append("\n"); + sb.Append(" UsedQuantity: ").Append(UsedQuantity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskEntitlementsResult); + } + + /// + /// Returns true if KioskEntitlementsResult instances are equal + /// + /// Instance of KioskEntitlementsResult to be compared + /// Boolean + public bool Equals(KioskEntitlementsResult input) + { + if (input == null) + return false; + + return + ( + this.EntitledQuantity == input.EntitledQuantity || + (this.EntitledQuantity != null && + this.EntitledQuantity.Equals(input.EntitledQuantity)) + ) && + ( + this.UsedQuantity == input.UsedQuantity || + (this.UsedQuantity != null && + this.UsedQuantity.Equals(input.UsedQuantity)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EntitledQuantity != null) + hashCode = hashCode * 59 + this.EntitledQuantity.GetHashCode(); + if (this.UsedQuantity != null) + hashCode = hashCode * 59 + this.UsedQuantity.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskIotConnectionParameters.cs b/src/Flipdish/Model/KioskIotConnectionParameters.cs new file mode 100644 index 00000000..b3e97655 --- /dev/null +++ b/src/Flipdish/Model/KioskIotConnectionParameters.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Connection parameters to IoT + /// + [DataContract] + public partial class KioskIotConnectionParameters : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The device connection string to the IoT server. + public KioskIotConnectionParameters(string connectionString = default(string)) + { + this.ConnectionString = connectionString; + } + + /// + /// The device connection string to the IoT server + /// + /// The device connection string to the IoT server + [DataMember(Name="ConnectionString", EmitDefaultValue=false)] + public string ConnectionString { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskIotConnectionParameters {\n"); + sb.Append(" ConnectionString: ").Append(ConnectionString).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskIotConnectionParameters); + } + + /// + /// Returns true if KioskIotConnectionParameters instances are equal + /// + /// Instance of KioskIotConnectionParameters to be compared + /// Boolean + public bool Equals(KioskIotConnectionParameters input) + { + if (input == null) + return false; + + return + ( + this.ConnectionString == input.ConnectionString || + (this.ConnectionString != null && + this.ConnectionString.Equals(input.ConnectionString)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectionString != null) + hashCode = hashCode * 59 + this.ConnectionString.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskSettings.cs b/src/Flipdish/Model/KioskSettings.cs new file mode 100644 index 00000000..4d1dad8e --- /dev/null +++ b/src/Flipdish/Model/KioskSettings.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk level settings + /// + [DataContract] + public partial class KioskSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Hide logo from front page. + /// 2 Column Menu Layout. + public KioskSettings(bool? hideLogoFromFrontPage = default(bool?), bool? twoColumnMenuLayout = default(bool?)) + { + this.HideLogoFromFrontPage = hideLogoFromFrontPage; + this.TwoColumnMenuLayout = twoColumnMenuLayout; + } + + /// + /// Hide logo from front page + /// + /// Hide logo from front page + [DataMember(Name="HideLogoFromFrontPage", EmitDefaultValue=false)] + public bool? HideLogoFromFrontPage { get; set; } + + /// + /// 2 Column Menu Layout + /// + /// 2 Column Menu Layout + [DataMember(Name="TwoColumnMenuLayout", EmitDefaultValue=false)] + public bool? TwoColumnMenuLayout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskSettings {\n"); + sb.Append(" HideLogoFromFrontPage: ").Append(HideLogoFromFrontPage).Append("\n"); + sb.Append(" TwoColumnMenuLayout: ").Append(TwoColumnMenuLayout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskSettings); + } + + /// + /// Returns true if KioskSettings instances are equal + /// + /// Instance of KioskSettings to be compared + /// Boolean + public bool Equals(KioskSettings input) + { + if (input == null) + return false; + + return + ( + this.HideLogoFromFrontPage == input.HideLogoFromFrontPage || + (this.HideLogoFromFrontPage != null && + this.HideLogoFromFrontPage.Equals(input.HideLogoFromFrontPage)) + ) && + ( + this.TwoColumnMenuLayout == input.TwoColumnMenuLayout || + (this.TwoColumnMenuLayout != null && + this.TwoColumnMenuLayout.Equals(input.TwoColumnMenuLayout)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HideLogoFromFrontPage != null) + hashCode = hashCode * 59 + this.HideLogoFromFrontPage.GetHashCode(); + if (this.TwoColumnMenuLayout != null) + hashCode = hashCode * 59 + this.TwoColumnMenuLayout.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskStripeLocation.cs b/src/Flipdish/Model/KioskStripeLocation.cs new file mode 100644 index 00000000..60e0acf8 --- /dev/null +++ b/src/Flipdish/Model/KioskStripeLocation.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stripe Terminal location used by a kiosk's card readers + /// + [DataContract] + public partial class KioskStripeLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Kiosk device ID. + /// Stripe Terminal location ID. Null when card payments have not been set up on the kiosk.. + public KioskStripeLocation(string deviceId = default(string), string stripeLocationId = default(string)) + { + this.DeviceId = deviceId; + this.StripeLocationId = stripeLocationId; + } + + /// + /// Kiosk device ID + /// + /// Kiosk device ID + [DataMember(Name="DeviceId", EmitDefaultValue=false)] + public string DeviceId { get; set; } + + /// + /// Stripe Terminal location ID. Null when card payments have not been set up on the kiosk. + /// + /// Stripe Terminal location ID. Null when card payments have not been set up on the kiosk. + [DataMember(Name="StripeLocationId", EmitDefaultValue=false)] + public string StripeLocationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskStripeLocation {\n"); + sb.Append(" DeviceId: ").Append(DeviceId).Append("\n"); + sb.Append(" StripeLocationId: ").Append(StripeLocationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskStripeLocation); + } + + /// + /// Returns true if KioskStripeLocation instances are equal + /// + /// Instance of KioskStripeLocation to be compared + /// Boolean + public bool Equals(KioskStripeLocation input) + { + if (input == null) + return false; + + return + ( + this.DeviceId == input.DeviceId || + (this.DeviceId != null && + this.DeviceId.Equals(input.DeviceId)) + ) && + ( + this.StripeLocationId == input.StripeLocationId || + (this.StripeLocationId != null && + this.StripeLocationId.Equals(input.StripeLocationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeviceId != null) + hashCode = hashCode * 59 + this.DeviceId.GetHashCode(); + if (this.StripeLocationId != null) + hashCode = hashCode * 59 + this.StripeLocationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/KioskTerminalActionStateChangedEvent.cs b/src/Flipdish/Model/KioskTerminalActionStateChangedEvent.cs new file mode 100644 index 00000000..f311a024 --- /dev/null +++ b/src/Flipdish/Model/KioskTerminalActionStateChangedEvent.cs @@ -0,0 +1,356 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Kiosk Terminal action state changed + /// + [DataContract] + public partial class KioskTerminalActionStateChangedEvent : IEquatable + { + /// + /// Terminal type + /// + /// Terminal type + [JsonConverter(typeof(StringEnumConverter))] + public enum BluetoothTerminalTypeEnum + { + + /// + /// Enum CHIPPER2X for value: CHIPPER_2X + /// + [EnumMember(Value = "CHIPPER_2X")] + CHIPPER2X = 1, + + /// + /// Enum COTSDEVICE for value: COTS_DEVICE + /// + [EnumMember(Value = "COTS_DEVICE")] + COTSDEVICE = 2, + + /// + /// Enum VERIFONEP400 for value: VERIFONE_P400 + /// + [EnumMember(Value = "VERIFONE_P400")] + VERIFONEP400 = 3, + + /// + /// Enum WISEPAD3 for value: WISEPAD_3 + /// + [EnumMember(Value = "WISEPAD_3")] + WISEPAD3 = 4, + + /// + /// Enum WISEPOSE for value: WISEPOS_E + /// + [EnumMember(Value = "WISEPOS_E")] + WISEPOSE = 5 + } + + /// + /// Terminal type + /// + /// Terminal type + [DataMember(Name="BluetoothTerminalType", EmitDefaultValue=false)] + public BluetoothTerminalTypeEnum? BluetoothTerminalType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Card reader id. + /// Terminal type. + /// Action state. success or fail. + /// Failure code if processing is failed. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public KioskTerminalActionStateChangedEvent(string readerId = default(string), BluetoothTerminalTypeEnum? bluetoothTerminalType = default(BluetoothTerminalTypeEnum?), string actionState = default(string), string failureCode = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.ReaderId = readerId; + this.BluetoothTerminalType = bluetoothTerminalType; + this.ActionState = actionState; + this.FailureCode = failureCode; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Card reader id + /// + /// Card reader id + [DataMember(Name="ReaderId", EmitDefaultValue=false)] + public string ReaderId { get; set; } + + + /// + /// Action state. success or fail + /// + /// Action state. success or fail + [DataMember(Name="ActionState", EmitDefaultValue=false)] + public string ActionState { get; set; } + + /// + /// Failure code if processing is failed + /// + /// Failure code if processing is failed + [DataMember(Name="FailureCode", EmitDefaultValue=false)] + public string FailureCode { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class KioskTerminalActionStateChangedEvent {\n"); + sb.Append(" ReaderId: ").Append(ReaderId).Append("\n"); + sb.Append(" BluetoothTerminalType: ").Append(BluetoothTerminalType).Append("\n"); + sb.Append(" ActionState: ").Append(ActionState).Append("\n"); + sb.Append(" FailureCode: ").Append(FailureCode).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KioskTerminalActionStateChangedEvent); + } + + /// + /// Returns true if KioskTerminalActionStateChangedEvent instances are equal + /// + /// Instance of KioskTerminalActionStateChangedEvent to be compared + /// Boolean + public bool Equals(KioskTerminalActionStateChangedEvent input) + { + if (input == null) + return false; + + return + ( + this.ReaderId == input.ReaderId || + (this.ReaderId != null && + this.ReaderId.Equals(input.ReaderId)) + ) && + ( + this.BluetoothTerminalType == input.BluetoothTerminalType || + (this.BluetoothTerminalType != null && + this.BluetoothTerminalType.Equals(input.BluetoothTerminalType)) + ) && + ( + this.ActionState == input.ActionState || + (this.ActionState != null && + this.ActionState.Equals(input.ActionState)) + ) && + ( + this.FailureCode == input.FailureCode || + (this.FailureCode != null && + this.FailureCode.Equals(input.FailureCode)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReaderId != null) + hashCode = hashCode * 59 + this.ReaderId.GetHashCode(); + if (this.BluetoothTerminalType != null) + hashCode = hashCode * 59 + this.BluetoothTerminalType.GetHashCode(); + if (this.ActionState != null) + hashCode = hashCode * 59 + this.ActionState.GetHashCode(); + if (this.FailureCode != null) + hashCode = hashCode * 59 + this.FailureCode.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Language.cs b/src/Flipdish/Model/Language.cs new file mode 100644 index 00000000..7a6c3a89 --- /dev/null +++ b/src/Flipdish/Model/Language.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Sorted Language + /// + [DataContract] + public partial class Language : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// ISO 639-1 Language Code. + /// Display Order. + /// Language Name. + /// Is the language enabled for use.. + public Language(string languageId = default(string), int? displayOrder = default(int?), string name = default(string), bool? enabled = default(bool?)) + { + this.LanguageId = languageId; + this.DisplayOrder = displayOrder; + this.Name = name; + this.Enabled = enabled; + } + + /// + /// ISO 639-1 Language Code + /// + /// ISO 639-1 Language Code + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } + + /// + /// Display Order + /// + /// Display Order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Language Name + /// + /// Language Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Is the language enabled for use. + /// + /// Is the language enabled for use. + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Language {\n"); + sb.Append(" LanguageId: ").Append(LanguageId).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Language); + } + + /// + /// Returns true if Language instances are equal + /// + /// Instance of Language to be compared + /// Boolean + public bool Equals(Language input) + { + if (input == null) + return false; + + return + ( + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LastPaymentError.cs b/src/Flipdish/Model/LastPaymentError.cs new file mode 100644 index 00000000..13595a74 --- /dev/null +++ b/src/Flipdish/Model/LastPaymentError.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// List's the issues with the last failed payment intent + /// + [DataContract] + public partial class LastPaymentError : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// For some errors that could be handled programmatically, a short string indicating the error code reported.. + /// For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one.. + /// A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.. + public LastPaymentError(string code = default(string), string declineCode = default(string), string message = default(string)) + { + this.Code = code; + this.DeclineCode = declineCode; + this.Message = message; + } + + /// + /// For some errors that could be handled programmatically, a short string indicating the error code reported. + /// + /// For some errors that could be handled programmatically, a short string indicating the error code reported. + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one. + /// + /// For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one. + [DataMember(Name="DeclineCode", EmitDefaultValue=false)] + public string DeclineCode { get; set; } + + /// + /// A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + /// + /// A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LastPaymentError {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" DeclineCode: ").Append(DeclineCode).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LastPaymentError); + } + + /// + /// Returns true if LastPaymentError instances are equal + /// + /// Instance of LastPaymentError to be compared + /// Boolean + public bool Equals(LastPaymentError input) + { + if (input == null) + return false; + + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.DeclineCode == input.DeclineCode || + (this.DeclineCode != null && + this.DeclineCode.Equals(input.DeclineCode)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.DeclineCode != null) + hashCode = hashCode * 59 + this.DeclineCode.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LeadTime.cs b/src/Flipdish/Model/LeadTime.cs new file mode 100644 index 00000000..3675f4a5 --- /dev/null +++ b/src/Flipdish/Model/LeadTime.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// LeadTime + /// + [DataContract] + public partial class LeadTime : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LeadTime() { } + /// + /// Initializes a new instance of the class. + /// + /// There are two valid values for this field - `collection` and `delivery`. (required). + /// This must be a positive integer. (required). + public LeadTime(string dispatchType = default(string), int? leadTimeMinutes = default(int?)) + { + // to ensure "dispatchType" is required (not null) + if (dispatchType == null) + { + throw new InvalidDataException("dispatchType is a required property for LeadTime and cannot be null"); + } + else + { + this.DispatchType = dispatchType; + } + // to ensure "leadTimeMinutes" is required (not null) + if (leadTimeMinutes == null) + { + throw new InvalidDataException("leadTimeMinutes is a required property for LeadTime and cannot be null"); + } + else + { + this.LeadTimeMinutes = leadTimeMinutes; + } + } + + /// + /// There are two valid values for this field - `collection` and `delivery`. + /// + /// There are two valid values for this field - `collection` and `delivery`. + [DataMember(Name="DispatchType", EmitDefaultValue=false)] + public string DispatchType { get; set; } + + /// + /// This must be a positive integer. + /// + /// This must be a positive integer. + [DataMember(Name="LeadTimeMinutes", EmitDefaultValue=false)] + public int? LeadTimeMinutes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LeadTime {\n"); + sb.Append(" DispatchType: ").Append(DispatchType).Append("\n"); + sb.Append(" LeadTimeMinutes: ").Append(LeadTimeMinutes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LeadTime); + } + + /// + /// Returns true if LeadTime instances are equal + /// + /// Instance of LeadTime to be compared + /// Boolean + public bool Equals(LeadTime input) + { + if (input == null) + return false; + + return + ( + this.DispatchType == input.DispatchType || + (this.DispatchType != null && + this.DispatchType.Equals(input.DispatchType)) + ) && + ( + this.LeadTimeMinutes == input.LeadTimeMinutes || + (this.LeadTimeMinutes != null && + this.LeadTimeMinutes.Equals(input.LeadTimeMinutes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DispatchType != null) + hashCode = hashCode * 59 + this.DispatchType.GetHashCode(); + if (this.LeadTimeMinutes != null) + hashCode = hashCode * 59 + this.LeadTimeMinutes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LightspeedSettings.cs b/src/Flipdish/Model/LightspeedSettings.cs new file mode 100644 index 00000000..04902174 --- /dev/null +++ b/src/Flipdish/Model/LightspeedSettings.cs @@ -0,0 +1,514 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Ligthspeed store settings + /// + [DataContract] + public partial class LightspeedSettings : IEquatable + { + /// + /// Which price to choose from Lightspeed menu + /// + /// Which price to choose from Lightspeed menu + [JsonConverter(typeof(StringEnumConverter))] + public enum PriceTypeEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum Takeaway for value: Takeaway + /// + [EnumMember(Value = "Takeaway")] + Takeaway = 2, + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 3 + } + + /// + /// Which price to choose from Lightspeed menu + /// + /// Which price to choose from Lightspeed menu + [DataMember(Name="PriceType", EmitDefaultValue=false)] + public PriceTypeEnum? PriceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Company Id. + /// Use OAuth for authentication. + /// Enabled. + /// Estimated minutes for delivery. + /// Estimated minutes for collection. + /// Geographic location (euc1, nae1, euw2, ....)). + /// Is the CompanyId an establishment (kind of the store of a group of store). + /// The Lightspeed voucher identifier to map with our. + /// The Lightspeed delivery fee identifier to map with our. + /// The Lightspeed processing fee identifier to map with our. + /// Which price to choose from Lightspeed menu. + /// The menu id of the store. + /// Collection Table ID to send orders. + /// Delivery Table ID to send orders. + /// Collection Table IDs to send orders to. + /// Delivery Table IDs to send orders to. + /// Exclude tax. + /// WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud!. + /// Send Table Number to Table Id. + /// Add ChefNote To Product. + /// The Lightspeed Chef Note Item Id to map. + /// The Lightspeed Chef Note Modifier Id to map. + /// The Lightspeed Service Charge Id to map. + public LightspeedSettings(string companyId = default(string), bool? useOAuth = default(bool?), bool? enabled = default(bool?), int? estimatedMinutesForDelivery = default(int?), int? estimatedMinutesForCollection = default(int?), string geographicLocation = default(string), bool? establishment = default(bool?), string voucherId = default(string), string deliveryFeeId = default(string), string processingFeeId = default(string), PriceTypeEnum? priceType = default(PriceTypeEnum?), int? menuId = default(int?), int? collectionTableId = default(int?), int? deliveryTableId = default(int?), Dictionary collectionTableIds = default(Dictionary), Dictionary deliveryTableIds = default(Dictionary), bool? useTaxInclusivePrices = default(bool?), bool? skipStatusCheckAndAcceptOrderAfterSending = default(bool?), bool? sendTableNumberToTableId = default(bool?), bool? addChefNoteToProduct = default(bool?), string chefNoteItemId = default(string), string chefNoteModifierId = default(string), string serviceChargeId = default(string)) + { + this.CompanyId = companyId; + this.UseOAuth = useOAuth; + this.Enabled = enabled; + this.EstimatedMinutesForDelivery = estimatedMinutesForDelivery; + this.EstimatedMinutesForCollection = estimatedMinutesForCollection; + this.GeographicLocation = geographicLocation; + this.Establishment = establishment; + this.VoucherId = voucherId; + this.DeliveryFeeId = deliveryFeeId; + this.ProcessingFeeId = processingFeeId; + this.PriceType = priceType; + this.MenuId = menuId; + this.CollectionTableId = collectionTableId; + this.DeliveryTableId = deliveryTableId; + this.CollectionTableIds = collectionTableIds; + this.DeliveryTableIds = deliveryTableIds; + this.UseTaxInclusivePrices = useTaxInclusivePrices; + this.SkipStatusCheckAndAcceptOrderAfterSending = skipStatusCheckAndAcceptOrderAfterSending; + this.SendTableNumberToTableId = sendTableNumberToTableId; + this.AddChefNoteToProduct = addChefNoteToProduct; + this.ChefNoteItemId = chefNoteItemId; + this.ChefNoteModifierId = chefNoteModifierId; + this.ServiceChargeId = serviceChargeId; + } + + /// + /// Company Id + /// + /// Company Id + [DataMember(Name="CompanyId", EmitDefaultValue=false)] + public string CompanyId { get; set; } + + /// + /// Use OAuth for authentication + /// + /// Use OAuth for authentication + [DataMember(Name="UseOAuth", EmitDefaultValue=false)] + public bool? UseOAuth { get; set; } + + /// + /// Enabled + /// + /// Enabled + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Estimated minutes for delivery + /// + /// Estimated minutes for delivery + [DataMember(Name="EstimatedMinutesForDelivery", EmitDefaultValue=false)] + public int? EstimatedMinutesForDelivery { get; set; } + + /// + /// Estimated minutes for collection + /// + /// Estimated minutes for collection + [DataMember(Name="EstimatedMinutesForCollection", EmitDefaultValue=false)] + public int? EstimatedMinutesForCollection { get; set; } + + /// + /// Geographic location (euc1, nae1, euw2, ....)) + /// + /// Geographic location (euc1, nae1, euw2, ....)) + [DataMember(Name="GeographicLocation", EmitDefaultValue=false)] + public string GeographicLocation { get; set; } + + /// + /// Is the CompanyId an establishment (kind of the store of a group of store) + /// + /// Is the CompanyId an establishment (kind of the store of a group of store) + [DataMember(Name="Establishment", EmitDefaultValue=false)] + public bool? Establishment { get; set; } + + /// + /// The Lightspeed voucher identifier to map with our + /// + /// The Lightspeed voucher identifier to map with our + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public string VoucherId { get; set; } + + /// + /// The Lightspeed delivery fee identifier to map with our + /// + /// The Lightspeed delivery fee identifier to map with our + [DataMember(Name="DeliveryFeeId", EmitDefaultValue=false)] + public string DeliveryFeeId { get; set; } + + /// + /// The Lightspeed processing fee identifier to map with our + /// + /// The Lightspeed processing fee identifier to map with our + [DataMember(Name="ProcessingFeeId", EmitDefaultValue=false)] + public string ProcessingFeeId { get; set; } + + + /// + /// The menu id of the store + /// + /// The menu id of the store + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Collection Table ID to send orders + /// + /// Collection Table ID to send orders + [DataMember(Name="CollectionTableId", EmitDefaultValue=false)] + public int? CollectionTableId { get; set; } + + /// + /// Delivery Table ID to send orders + /// + /// Delivery Table ID to send orders + [DataMember(Name="DeliveryTableId", EmitDefaultValue=false)] + public int? DeliveryTableId { get; set; } + + /// + /// Collection Table IDs to send orders to + /// + /// Collection Table IDs to send orders to + [DataMember(Name="CollectionTableIds", EmitDefaultValue=false)] + public Dictionary CollectionTableIds { get; set; } + + /// + /// Delivery Table IDs to send orders to + /// + /// Delivery Table IDs to send orders to + [DataMember(Name="DeliveryTableIds", EmitDefaultValue=false)] + public Dictionary DeliveryTableIds { get; set; } + + /// + /// Exclude tax + /// + /// Exclude tax + [DataMember(Name="UseTaxInclusivePrices", EmitDefaultValue=false)] + public bool? UseTaxInclusivePrices { get; set; } + + /// + /// WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! + /// + /// WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! + [DataMember(Name="SkipStatusCheckAndAcceptOrderAfterSending", EmitDefaultValue=false)] + public bool? SkipStatusCheckAndAcceptOrderAfterSending { get; set; } + + /// + /// Send Table Number to Table Id + /// + /// Send Table Number to Table Id + [DataMember(Name="SendTableNumberToTableId", EmitDefaultValue=false)] + public bool? SendTableNumberToTableId { get; set; } + + /// + /// Add ChefNote To Product + /// + /// Add ChefNote To Product + [DataMember(Name="AddChefNoteToProduct", EmitDefaultValue=false)] + public bool? AddChefNoteToProduct { get; set; } + + /// + /// The Lightspeed Chef Note Item Id to map + /// + /// The Lightspeed Chef Note Item Id to map + [DataMember(Name="ChefNoteItemId", EmitDefaultValue=false)] + public string ChefNoteItemId { get; set; } + + /// + /// The Lightspeed Chef Note Modifier Id to map + /// + /// The Lightspeed Chef Note Modifier Id to map + [DataMember(Name="ChefNoteModifierId", EmitDefaultValue=false)] + public string ChefNoteModifierId { get; set; } + + /// + /// The Lightspeed Service Charge Id to map + /// + /// The Lightspeed Service Charge Id to map + [DataMember(Name="ServiceChargeId", EmitDefaultValue=false)] + public string ServiceChargeId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LightspeedSettings {\n"); + sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); + sb.Append(" UseOAuth: ").Append(UseOAuth).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" EstimatedMinutesForDelivery: ").Append(EstimatedMinutesForDelivery).Append("\n"); + sb.Append(" EstimatedMinutesForCollection: ").Append(EstimatedMinutesForCollection).Append("\n"); + sb.Append(" GeographicLocation: ").Append(GeographicLocation).Append("\n"); + sb.Append(" Establishment: ").Append(Establishment).Append("\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" DeliveryFeeId: ").Append(DeliveryFeeId).Append("\n"); + sb.Append(" ProcessingFeeId: ").Append(ProcessingFeeId).Append("\n"); + sb.Append(" PriceType: ").Append(PriceType).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" CollectionTableId: ").Append(CollectionTableId).Append("\n"); + sb.Append(" DeliveryTableId: ").Append(DeliveryTableId).Append("\n"); + sb.Append(" CollectionTableIds: ").Append(CollectionTableIds).Append("\n"); + sb.Append(" DeliveryTableIds: ").Append(DeliveryTableIds).Append("\n"); + sb.Append(" UseTaxInclusivePrices: ").Append(UseTaxInclusivePrices).Append("\n"); + sb.Append(" SkipStatusCheckAndAcceptOrderAfterSending: ").Append(SkipStatusCheckAndAcceptOrderAfterSending).Append("\n"); + sb.Append(" SendTableNumberToTableId: ").Append(SendTableNumberToTableId).Append("\n"); + sb.Append(" AddChefNoteToProduct: ").Append(AddChefNoteToProduct).Append("\n"); + sb.Append(" ChefNoteItemId: ").Append(ChefNoteItemId).Append("\n"); + sb.Append(" ChefNoteModifierId: ").Append(ChefNoteModifierId).Append("\n"); + sb.Append(" ServiceChargeId: ").Append(ServiceChargeId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LightspeedSettings); + } + + /// + /// Returns true if LightspeedSettings instances are equal + /// + /// Instance of LightspeedSettings to be compared + /// Boolean + public bool Equals(LightspeedSettings input) + { + if (input == null) + return false; + + return + ( + this.CompanyId == input.CompanyId || + (this.CompanyId != null && + this.CompanyId.Equals(input.CompanyId)) + ) && + ( + this.UseOAuth == input.UseOAuth || + (this.UseOAuth != null && + this.UseOAuth.Equals(input.UseOAuth)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.EstimatedMinutesForDelivery == input.EstimatedMinutesForDelivery || + (this.EstimatedMinutesForDelivery != null && + this.EstimatedMinutesForDelivery.Equals(input.EstimatedMinutesForDelivery)) + ) && + ( + this.EstimatedMinutesForCollection == input.EstimatedMinutesForCollection || + (this.EstimatedMinutesForCollection != null && + this.EstimatedMinutesForCollection.Equals(input.EstimatedMinutesForCollection)) + ) && + ( + this.GeographicLocation == input.GeographicLocation || + (this.GeographicLocation != null && + this.GeographicLocation.Equals(input.GeographicLocation)) + ) && + ( + this.Establishment == input.Establishment || + (this.Establishment != null && + this.Establishment.Equals(input.Establishment)) + ) && + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.DeliveryFeeId == input.DeliveryFeeId || + (this.DeliveryFeeId != null && + this.DeliveryFeeId.Equals(input.DeliveryFeeId)) + ) && + ( + this.ProcessingFeeId == input.ProcessingFeeId || + (this.ProcessingFeeId != null && + this.ProcessingFeeId.Equals(input.ProcessingFeeId)) + ) && + ( + this.PriceType == input.PriceType || + (this.PriceType != null && + this.PriceType.Equals(input.PriceType)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.CollectionTableId == input.CollectionTableId || + (this.CollectionTableId != null && + this.CollectionTableId.Equals(input.CollectionTableId)) + ) && + ( + this.DeliveryTableId == input.DeliveryTableId || + (this.DeliveryTableId != null && + this.DeliveryTableId.Equals(input.DeliveryTableId)) + ) && + ( + this.CollectionTableIds == input.CollectionTableIds || + this.CollectionTableIds != null && + this.CollectionTableIds.SequenceEqual(input.CollectionTableIds) + ) && + ( + this.DeliveryTableIds == input.DeliveryTableIds || + this.DeliveryTableIds != null && + this.DeliveryTableIds.SequenceEqual(input.DeliveryTableIds) + ) && + ( + this.UseTaxInclusivePrices == input.UseTaxInclusivePrices || + (this.UseTaxInclusivePrices != null && + this.UseTaxInclusivePrices.Equals(input.UseTaxInclusivePrices)) + ) && + ( + this.SkipStatusCheckAndAcceptOrderAfterSending == input.SkipStatusCheckAndAcceptOrderAfterSending || + (this.SkipStatusCheckAndAcceptOrderAfterSending != null && + this.SkipStatusCheckAndAcceptOrderAfterSending.Equals(input.SkipStatusCheckAndAcceptOrderAfterSending)) + ) && + ( + this.SendTableNumberToTableId == input.SendTableNumberToTableId || + (this.SendTableNumberToTableId != null && + this.SendTableNumberToTableId.Equals(input.SendTableNumberToTableId)) + ) && + ( + this.AddChefNoteToProduct == input.AddChefNoteToProduct || + (this.AddChefNoteToProduct != null && + this.AddChefNoteToProduct.Equals(input.AddChefNoteToProduct)) + ) && + ( + this.ChefNoteItemId == input.ChefNoteItemId || + (this.ChefNoteItemId != null && + this.ChefNoteItemId.Equals(input.ChefNoteItemId)) + ) && + ( + this.ChefNoteModifierId == input.ChefNoteModifierId || + (this.ChefNoteModifierId != null && + this.ChefNoteModifierId.Equals(input.ChefNoteModifierId)) + ) && + ( + this.ServiceChargeId == input.ServiceChargeId || + (this.ServiceChargeId != null && + this.ServiceChargeId.Equals(input.ServiceChargeId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CompanyId != null) + hashCode = hashCode * 59 + this.CompanyId.GetHashCode(); + if (this.UseOAuth != null) + hashCode = hashCode * 59 + this.UseOAuth.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.EstimatedMinutesForDelivery != null) + hashCode = hashCode * 59 + this.EstimatedMinutesForDelivery.GetHashCode(); + if (this.EstimatedMinutesForCollection != null) + hashCode = hashCode * 59 + this.EstimatedMinutesForCollection.GetHashCode(); + if (this.GeographicLocation != null) + hashCode = hashCode * 59 + this.GeographicLocation.GetHashCode(); + if (this.Establishment != null) + hashCode = hashCode * 59 + this.Establishment.GetHashCode(); + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.DeliveryFeeId != null) + hashCode = hashCode * 59 + this.DeliveryFeeId.GetHashCode(); + if (this.ProcessingFeeId != null) + hashCode = hashCode * 59 + this.ProcessingFeeId.GetHashCode(); + if (this.PriceType != null) + hashCode = hashCode * 59 + this.PriceType.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.CollectionTableId != null) + hashCode = hashCode * 59 + this.CollectionTableId.GetHashCode(); + if (this.DeliveryTableId != null) + hashCode = hashCode * 59 + this.DeliveryTableId.GetHashCode(); + if (this.CollectionTableIds != null) + hashCode = hashCode * 59 + this.CollectionTableIds.GetHashCode(); + if (this.DeliveryTableIds != null) + hashCode = hashCode * 59 + this.DeliveryTableIds.GetHashCode(); + if (this.UseTaxInclusivePrices != null) + hashCode = hashCode * 59 + this.UseTaxInclusivePrices.GetHashCode(); + if (this.SkipStatusCheckAndAcceptOrderAfterSending != null) + hashCode = hashCode * 59 + this.SkipStatusCheckAndAcceptOrderAfterSending.GetHashCode(); + if (this.SendTableNumberToTableId != null) + hashCode = hashCode * 59 + this.SendTableNumberToTableId.GetHashCode(); + if (this.AddChefNoteToProduct != null) + hashCode = hashCode * 59 + this.AddChefNoteToProduct.GetHashCode(); + if (this.ChefNoteItemId != null) + hashCode = hashCode * 59 + this.ChefNoteItemId.GetHashCode(); + if (this.ChefNoteModifierId != null) + hashCode = hashCode * 59 + this.ChefNoteModifierId.GetHashCode(); + if (this.ServiceChargeId != null) + hashCode = hashCode * 59 + this.ServiceChargeId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocalisedTimeZone.cs b/src/Flipdish/Model/LocalisedTimeZone.cs new file mode 100644 index 00000000..b3ad9c39 --- /dev/null +++ b/src/Flipdish/Model/LocalisedTimeZone.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a localised time zone + /// + [DataContract] + public partial class LocalisedTimeZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Microsoft Time Zone Id. + /// Iana Time Zone Id. + /// Display name in users language. + public LocalisedTimeZone(string timeZoneId = default(string), string ianaTimeZoneId = default(string), string displayName = default(string)) + { + this.TimeZoneId = timeZoneId; + this.IanaTimeZoneId = ianaTimeZoneId; + this.DisplayName = displayName; + } + + /// + /// Microsoft Time Zone Id + /// + /// Microsoft Time Zone Id + [DataMember(Name="TimeZoneId", EmitDefaultValue=false)] + public string TimeZoneId { get; set; } + + /// + /// Iana Time Zone Id + /// + /// Iana Time Zone Id + [DataMember(Name="IanaTimeZoneId", EmitDefaultValue=false)] + public string IanaTimeZoneId { get; set; } + + /// + /// Display name in users language + /// + /// Display name in users language + [DataMember(Name="DisplayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocalisedTimeZone {\n"); + sb.Append(" TimeZoneId: ").Append(TimeZoneId).Append("\n"); + sb.Append(" IanaTimeZoneId: ").Append(IanaTimeZoneId).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocalisedTimeZone); + } + + /// + /// Returns true if LocalisedTimeZone instances are equal + /// + /// Instance of LocalisedTimeZone to be compared + /// Boolean + public bool Equals(LocalisedTimeZone input) + { + if (input == null) + return false; + + return + ( + this.TimeZoneId == input.TimeZoneId || + (this.TimeZoneId != null && + this.TimeZoneId.Equals(input.TimeZoneId)) + ) && + ( + this.IanaTimeZoneId == input.IanaTimeZoneId || + (this.IanaTimeZoneId != null && + this.IanaTimeZoneId.Equals(input.IanaTimeZoneId)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TimeZoneId != null) + hashCode = hashCode * 59 + this.TimeZoneId.GetHashCode(); + if (this.IanaTimeZoneId != null) + hashCode = hashCode * 59 + this.IanaTimeZoneId.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationArea.cs b/src/Flipdish/Model/LocationArea.cs new file mode 100644 index 00000000..91854a3d --- /dev/null +++ b/src/Flipdish/Model/LocationArea.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a LocationArea + /// + [DataContract] + public partial class LocationArea : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of the LocationArea. + /// Id of the Store that this LocationArea belongs to. + /// Descriptive LocationArea name. + public LocationArea(int? locationAreaId = default(int?), int? storeId = default(int?), string locationAreaName = default(string)) + { + this.LocationAreaId = locationAreaId; + this.StoreId = storeId; + this.LocationAreaName = locationAreaName; + } + + /// + /// Id of the LocationArea + /// + /// Id of the LocationArea + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// Id of the Store that this LocationArea belongs to + /// + /// Id of the Store that this LocationArea belongs to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Descriptive LocationArea name + /// + /// Descriptive LocationArea name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationArea {\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationArea); + } + + /// + /// Returns true if LocationArea instances are equal + /// + /// Instance of LocationArea to be compared + /// Boolean + public bool Equals(LocationArea input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationAreaCreatedEvent.cs b/src/Flipdish/Model/LocationAreaCreatedEvent.cs new file mode 100644 index 00000000..9683a641 --- /dev/null +++ b/src/Flipdish/Model/LocationAreaCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Event for logging creating of LocationAreas + /// + [DataContract] + public partial class LocationAreaCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// LocationArea Id. + /// LocationArea name. + /// User who created the LocationArea. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LocationAreaCreatedEvent(string locationAreaId = default(string), string locationAreaName = default(string), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.LocationAreaId = locationAreaId; + this.LocationAreaName = locationAreaName; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// LocationArea Id + /// + /// LocationArea Id + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public string LocationAreaId { get; set; } + + /// + /// LocationArea name + /// + /// LocationArea name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// User who created the LocationArea + /// + /// User who created the LocationArea + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationAreaCreatedEvent {\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationAreaCreatedEvent); + } + + /// + /// Returns true if LocationAreaCreatedEvent instances are equal + /// + /// Instance of LocationAreaCreatedEvent to be compared + /// Boolean + public bool Equals(LocationAreaCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationAreaLocation.cs b/src/Flipdish/Model/LocationAreaLocation.cs new file mode 100644 index 00000000..61e09268 --- /dev/null +++ b/src/Flipdish/Model/LocationAreaLocation.cs @@ -0,0 +1,210 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Representation of a Location i.e: (Table, Hotel Room, Car Park, etc ) + /// + [DataContract] + public partial class LocationAreaLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LocationAreaLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Id of the Location (required). + /// Name of the Location (required). + /// The order that the Location should be displayed on the screen (required). + /// Id of the Location on an external system. + /// Shows if the Location is deleted or not. + public LocationAreaLocation(int? locationId = default(int?), string locationName = default(string), int? displayOrder = default(int?), string externalLocationId = default(string), bool? isDeleted = default(bool?)) + { + // to ensure "locationId" is required (not null) + if (locationId == null) + { + throw new InvalidDataException("locationId is a required property for LocationAreaLocation and cannot be null"); + } + else + { + this.LocationId = locationId; + } + // to ensure "locationName" is required (not null) + if (locationName == null) + { + throw new InvalidDataException("locationName is a required property for LocationAreaLocation and cannot be null"); + } + else + { + this.LocationName = locationName; + } + // to ensure "displayOrder" is required (not null) + if (displayOrder == null) + { + throw new InvalidDataException("displayOrder is a required property for LocationAreaLocation and cannot be null"); + } + else + { + this.DisplayOrder = displayOrder; + } + this.ExternalLocationId = externalLocationId; + this.IsDeleted = isDeleted; + } + + /// + /// Id of the Location + /// + /// Id of the Location + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// Name of the Location + /// + /// Name of the Location + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public string LocationName { get; set; } + + /// + /// The order that the Location should be displayed on the screen + /// + /// The order that the Location should be displayed on the screen + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Id of the Location on an external system + /// + /// Id of the Location on an external system + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// Shows if the Location is deleted or not + /// + /// Shows if the Location is deleted or not + [DataMember(Name="IsDeleted", EmitDefaultValue=false)] + public bool? IsDeleted { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationAreaLocation {\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" LocationName: ").Append(LocationName).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationAreaLocation); + } + + /// + /// Returns true if LocationAreaLocation instances are equal + /// + /// Instance of LocationAreaLocation to be compared + /// Boolean + public bool Equals(LocationAreaLocation input) + { + if (input == null) + return false; + + return + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.LocationName == input.LocationName || + (this.LocationName != null && + this.LocationName.Equals(input.LocationName)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ) && + ( + this.IsDeleted == input.IsDeleted || + (this.IsDeleted != null && + this.IsDeleted.Equals(input.IsDeleted)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.LocationName != null) + hashCode = hashCode * 59 + this.LocationName.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + if (this.IsDeleted != null) + hashCode = hashCode * 59 + this.IsDeleted.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationAreaUpdatedEvent.cs b/src/Flipdish/Model/LocationAreaUpdatedEvent.cs new file mode 100644 index 00000000..8d0f56b2 --- /dev/null +++ b/src/Flipdish/Model/LocationAreaUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Event for logging updates of LocationAreas + /// + [DataContract] + public partial class LocationAreaUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// LocationArea Id. + /// LocationArea Name. + /// User who updated the LocationArea. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LocationAreaUpdatedEvent(string locationAreaId = default(string), string locationAreaName = default(string), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.LocationAreaId = locationAreaId; + this.LocationAreaName = locationAreaName; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// LocationArea Id + /// + /// LocationArea Id + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public string LocationAreaId { get; set; } + + /// + /// LocationArea Name + /// + /// LocationArea Name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// User who updated the LocationArea + /// + /// User who updated the LocationArea + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationAreaUpdatedEvent {\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationAreaUpdatedEvent); + } + + /// + /// Returns true if LocationAreaUpdatedEvent instances are equal + /// + /// Instance of LocationAreaUpdatedEvent to be compared + /// Boolean + public bool Equals(LocationAreaUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationAreaWithLocations.cs b/src/Flipdish/Model/LocationAreaWithLocations.cs new file mode 100644 index 00000000..ad0b1989 --- /dev/null +++ b/src/Flipdish/Model/LocationAreaWithLocations.cs @@ -0,0 +1,210 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a LocationArea and its Location list + /// + [DataContract] + public partial class LocationAreaWithLocations : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LocationAreaWithLocations() { } + /// + /// Initializes a new instance of the class. + /// + /// Id of the LocationArea (required). + /// Id of the Store that this LocationArea belongs to (required). + /// Descriptive LocationArea name (required). + /// List of Locations that belongs to this Location Area. + /// Returns if the LocationArea is deleted or not. + public LocationAreaWithLocations(int? locationAreaId = default(int?), int? storeId = default(int?), string locationAreaName = default(string), List locations = default(List), bool? isDeleted = default(bool?)) + { + // to ensure "locationAreaId" is required (not null) + if (locationAreaId == null) + { + throw new InvalidDataException("locationAreaId is a required property for LocationAreaWithLocations and cannot be null"); + } + else + { + this.LocationAreaId = locationAreaId; + } + // to ensure "storeId" is required (not null) + if (storeId == null) + { + throw new InvalidDataException("storeId is a required property for LocationAreaWithLocations and cannot be null"); + } + else + { + this.StoreId = storeId; + } + // to ensure "locationAreaName" is required (not null) + if (locationAreaName == null) + { + throw new InvalidDataException("locationAreaName is a required property for LocationAreaWithLocations and cannot be null"); + } + else + { + this.LocationAreaName = locationAreaName; + } + this.Locations = locations; + this.IsDeleted = isDeleted; + } + + /// + /// Id of the LocationArea + /// + /// Id of the LocationArea + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// Id of the Store that this LocationArea belongs to + /// + /// Id of the Store that this LocationArea belongs to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Descriptive LocationArea name + /// + /// Descriptive LocationArea name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// List of Locations that belongs to this Location Area + /// + /// List of Locations that belongs to this Location Area + [DataMember(Name="Locations", EmitDefaultValue=false)] + public List Locations { get; set; } + + /// + /// Returns if the LocationArea is deleted or not + /// + /// Returns if the LocationArea is deleted or not + [DataMember(Name="IsDeleted", EmitDefaultValue=false)] + public bool? IsDeleted { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationAreaWithLocations {\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append(" Locations: ").Append(Locations).Append("\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationAreaWithLocations); + } + + /// + /// Returns true if LocationAreaWithLocations instances are equal + /// + /// Instance of LocationAreaWithLocations to be compared + /// Boolean + public bool Equals(LocationAreaWithLocations input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ) && + ( + this.Locations == input.Locations || + this.Locations != null && + this.Locations.SequenceEqual(input.Locations) + ) && + ( + this.IsDeleted == input.IsDeleted || + (this.IsDeleted != null && + this.IsDeleted.Equals(input.IsDeleted)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + if (this.Locations != null) + hashCode = hashCode * 59 + this.Locations.GetHashCode(); + if (this.IsDeleted != null) + hashCode = hashCode * 59 + this.IsDeleted.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationCreatedEvent.cs b/src/Flipdish/Model/LocationCreatedEvent.cs new file mode 100644 index 00000000..84ab5050 --- /dev/null +++ b/src/Flipdish/Model/LocationCreatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Event for logging the creating of Locations + /// + [DataContract] + public partial class LocationCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Location Location Id. + /// Location LocationName. + /// Location DisplayOrder. + /// Location ExternalLocationId. + /// Location LocationAreaId. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LocationCreatedEvent(int? locationId = default(int?), string locationName = default(string), int? displayOrder = default(int?), string externalLocationId = default(string), int? locationAreaId = default(int?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.LocationId = locationId; + this.LocationName = locationName; + this.DisplayOrder = displayOrder; + this.ExternalLocationId = externalLocationId; + this.LocationAreaId = locationAreaId; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Location Location Id + /// + /// Location Location Id + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// Location LocationName + /// + /// Location LocationName + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public string LocationName { get; set; } + + /// + /// Location DisplayOrder + /// + /// Location DisplayOrder + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Location ExternalLocationId + /// + /// Location ExternalLocationId + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// Location LocationAreaId + /// + /// Location LocationAreaId + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationCreatedEvent {\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" LocationName: ").Append(LocationName).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationCreatedEvent); + } + + /// + /// Returns true if LocationCreatedEvent instances are equal + /// + /// Instance of LocationCreatedEvent to be compared + /// Boolean + public bool Equals(LocationCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.LocationName == input.LocationName || + (this.LocationName != null && + this.LocationName.Equals(input.LocationName)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ) && + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.LocationName != null) + hashCode = hashCode * 59 + this.LocationName.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LocationDeletedEvent.cs b/src/Flipdish/Model/LocationDeletedEvent.cs new file mode 100644 index 00000000..ea55fa9a --- /dev/null +++ b/src/Flipdish/Model/LocationDeletedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Event for logging the deleting of Locations + /// + [DataContract] + public partial class LocationDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Location Id. + /// Location Name. + /// Location DisplayOrder. + /// Location ExternalLocationId. + /// LocationAreaId. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LocationDeletedEvent(int? locationId = default(int?), string locationName = default(string), int? displayOrder = default(int?), string externalLocationId = default(string), int? locationAreaId = default(int?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.LocationId = locationId; + this.LocationName = locationName; + this.DisplayOrder = displayOrder; + this.ExternalLocationId = externalLocationId; + this.LocationAreaId = locationAreaId; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Location Id + /// + /// Location Id + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// Location Name + /// + /// Location Name + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public string LocationName { get; set; } + + /// + /// Location DisplayOrder + /// + /// Location DisplayOrder + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Location ExternalLocationId + /// + /// Location ExternalLocationId + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// LocationAreaId + /// + /// LocationAreaId + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LocationDeletedEvent {\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" LocationName: ").Append(LocationName).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LocationDeletedEvent); + } + + /// + /// Returns true if LocationDeletedEvent instances are equal + /// + /// Instance of LocationDeletedEvent to be compared + /// Boolean + public bool Equals(LocationDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.LocationName == input.LocationName || + (this.LocationName != null && + this.LocationName.Equals(input.LocationName)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ) && + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.LocationName != null) + hashCode = hashCode * 59 + this.LocationName.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoginModel.cs b/src/Flipdish/Model/LoginModel.cs new file mode 100644 index 00000000..2f0bbdef --- /dev/null +++ b/src/Flipdish/Model/LoginModel.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Login model + /// + [DataContract] + public partial class LoginModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LoginModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Email address (required). + /// Password (required). + public LoginModel(string email = default(string), string password = default(string)) + { + // to ensure "email" is required (not null) + if (email == null) + { + throw new InvalidDataException("email is a required property for LoginModel and cannot be null"); + } + else + { + this.Email = email; + } + // to ensure "password" is required (not null) + if (password == null) + { + throw new InvalidDataException("password is a required property for LoginModel and cannot be null"); + } + else + { + this.Password = password; + } + } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Password + /// + /// Password + [DataMember(Name="Password", EmitDefaultValue=false)] + public string Password { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoginModel {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoginModel); + } + + /// + /// Returns true if LoginModel instances are equal + /// + /// Instance of LoginModel to be compared + /// Boolean + public bool Equals(LoginModel input) + { + if (input == null) + return false; + + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.Password != null) + hashCode = hashCode * 59 + this.Password.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoyaltyCampaign.cs b/src/Flipdish/Model/LoyaltyCampaign.cs new file mode 100644 index 00000000..2655a0b0 --- /dev/null +++ b/src/Flipdish/Model/LoyaltyCampaign.cs @@ -0,0 +1,385 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Loyalty campaign + /// + [DataContract] + public partial class LoyaltyCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of campaign. + /// Statistics of campaign. + /// Stores this campaign applies to with campaign start time in Utc. + /// Permanent reference to the item.. + /// Number of orders customer needs to make, before receiving voucher. + /// Discount amount in percents. + /// Maximum discount for percentage discounts. + /// Controls how the loyalty voucher's amount is rounded. + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation. + /// Number of days for which the voucher will be valid.. + /// Discount will include delivery fee. + /// Automatically apply resulting vouchers. + /// Campaign will apply to existing orders. + /// Is campaign enabled. + /// Ids of stores this campaign applies to. + /// The app that this campaign belongs to.. + /// Controls whether the voucher generated from this campaign will override discount exclusions. + public LoyaltyCampaign(int? campaignId = default(int?), CampaignStatistics statistics = default(CampaignStatistics), List stores = default(List), Guid? publicId = default(Guid?), int? ordersBeforeReceivingVoucher = default(int?), int? percentDiscountAmount = default(int?), double? maxDiscount = default(double?), int? roundingStrategy = default(int?), bool? shouldIncludeOrdersWithLoyaltyVoucher = default(bool?), int? voucherValidPeriodDays = default(int?), bool? includeDeliveryFee = default(bool?), bool? autoApplyResultingVouchers = default(bool?), bool? includeExistingOrders = default(bool?), bool? isEnabled = default(bool?), List storeIds = default(List), string appId = default(string), bool? forceDiscount = default(bool?)) + { + this.CampaignId = campaignId; + this.Statistics = statistics; + this.Stores = stores; + this.PublicId = publicId; + this.OrdersBeforeReceivingVoucher = ordersBeforeReceivingVoucher; + this.PercentDiscountAmount = percentDiscountAmount; + this.MaxDiscount = maxDiscount; + this.RoundingStrategy = roundingStrategy; + this.ShouldIncludeOrdersWithLoyaltyVoucher = shouldIncludeOrdersWithLoyaltyVoucher; + this.VoucherValidPeriodDays = voucherValidPeriodDays; + this.IncludeDeliveryFee = includeDeliveryFee; + this.AutoApplyResultingVouchers = autoApplyResultingVouchers; + this.IncludeExistingOrders = includeExistingOrders; + this.IsEnabled = isEnabled; + this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; + } + + /// + /// Id of campaign + /// + /// Id of campaign + [DataMember(Name="CampaignId", EmitDefaultValue=false)] + public int? CampaignId { get; set; } + + /// + /// Statistics of campaign + /// + /// Statistics of campaign + [DataMember(Name="Statistics", EmitDefaultValue=false)] + public CampaignStatistics Statistics { get; set; } + + /// + /// Stores this campaign applies to with campaign start time in Utc + /// + /// Stores this campaign applies to with campaign start time in Utc + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Number of orders customer needs to make, before receiving voucher + /// + /// Number of orders customer needs to make, before receiving voucher + [DataMember(Name="OrdersBeforeReceivingVoucher", EmitDefaultValue=false)] + public int? OrdersBeforeReceivingVoucher { get; set; } + + /// + /// Discount amount in percents + /// + /// Discount amount in percents + [DataMember(Name="PercentDiscountAmount", EmitDefaultValue=false)] + public int? PercentDiscountAmount { get; set; } + + /// + /// Maximum discount for percentage discounts + /// + /// Maximum discount for percentage discounts + [DataMember(Name="MaxDiscount", EmitDefaultValue=false)] + public double? MaxDiscount { get; set; } + + /// + /// Controls how the loyalty voucher's amount is rounded + /// + /// Controls how the loyalty voucher's amount is rounded + [DataMember(Name="RoundingStrategy", EmitDefaultValue=false)] + public int? RoundingStrategy { get; set; } + + /// + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation + /// + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation + [DataMember(Name="ShouldIncludeOrdersWithLoyaltyVoucher", EmitDefaultValue=false)] + public bool? ShouldIncludeOrdersWithLoyaltyVoucher { get; set; } + + /// + /// Number of days for which the voucher will be valid. + /// + /// Number of days for which the voucher will be valid. + [DataMember(Name="VoucherValidPeriodDays", EmitDefaultValue=false)] + public int? VoucherValidPeriodDays { get; set; } + + /// + /// Discount will include delivery fee + /// + /// Discount will include delivery fee + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Automatically apply resulting vouchers + /// + /// Automatically apply resulting vouchers + [DataMember(Name="AutoApplyResultingVouchers", EmitDefaultValue=false)] + public bool? AutoApplyResultingVouchers { get; set; } + + /// + /// Campaign will apply to existing orders + /// + /// Campaign will apply to existing orders + [DataMember(Name="IncludeExistingOrders", EmitDefaultValue=false)] + public bool? IncludeExistingOrders { get; set; } + + /// + /// Is campaign enabled + /// + /// Is campaign enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Ids of stores this campaign applies to + /// + /// Ids of stores this campaign applies to + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The app that this campaign belongs to. + /// + /// The app that this campaign belongs to. + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoyaltyCampaign {\n"); + sb.Append(" CampaignId: ").Append(CampaignId).Append("\n"); + sb.Append(" Statistics: ").Append(Statistics).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" OrdersBeforeReceivingVoucher: ").Append(OrdersBeforeReceivingVoucher).Append("\n"); + sb.Append(" PercentDiscountAmount: ").Append(PercentDiscountAmount).Append("\n"); + sb.Append(" MaxDiscount: ").Append(MaxDiscount).Append("\n"); + sb.Append(" RoundingStrategy: ").Append(RoundingStrategy).Append("\n"); + sb.Append(" ShouldIncludeOrdersWithLoyaltyVoucher: ").Append(ShouldIncludeOrdersWithLoyaltyVoucher).Append("\n"); + sb.Append(" VoucherValidPeriodDays: ").Append(VoucherValidPeriodDays).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" AutoApplyResultingVouchers: ").Append(AutoApplyResultingVouchers).Append("\n"); + sb.Append(" IncludeExistingOrders: ").Append(IncludeExistingOrders).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoyaltyCampaign); + } + + /// + /// Returns true if LoyaltyCampaign instances are equal + /// + /// Instance of LoyaltyCampaign to be compared + /// Boolean + public bool Equals(LoyaltyCampaign input) + { + if (input == null) + return false; + + return + ( + this.CampaignId == input.CampaignId || + (this.CampaignId != null && + this.CampaignId.Equals(input.CampaignId)) + ) && + ( + this.Statistics == input.Statistics || + (this.Statistics != null && + this.Statistics.Equals(input.Statistics)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.OrdersBeforeReceivingVoucher == input.OrdersBeforeReceivingVoucher || + (this.OrdersBeforeReceivingVoucher != null && + this.OrdersBeforeReceivingVoucher.Equals(input.OrdersBeforeReceivingVoucher)) + ) && + ( + this.PercentDiscountAmount == input.PercentDiscountAmount || + (this.PercentDiscountAmount != null && + this.PercentDiscountAmount.Equals(input.PercentDiscountAmount)) + ) && + ( + this.MaxDiscount == input.MaxDiscount || + (this.MaxDiscount != null && + this.MaxDiscount.Equals(input.MaxDiscount)) + ) && + ( + this.RoundingStrategy == input.RoundingStrategy || + (this.RoundingStrategy != null && + this.RoundingStrategy.Equals(input.RoundingStrategy)) + ) && + ( + this.ShouldIncludeOrdersWithLoyaltyVoucher == input.ShouldIncludeOrdersWithLoyaltyVoucher || + (this.ShouldIncludeOrdersWithLoyaltyVoucher != null && + this.ShouldIncludeOrdersWithLoyaltyVoucher.Equals(input.ShouldIncludeOrdersWithLoyaltyVoucher)) + ) && + ( + this.VoucherValidPeriodDays == input.VoucherValidPeriodDays || + (this.VoucherValidPeriodDays != null && + this.VoucherValidPeriodDays.Equals(input.VoucherValidPeriodDays)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.AutoApplyResultingVouchers == input.AutoApplyResultingVouchers || + (this.AutoApplyResultingVouchers != null && + this.AutoApplyResultingVouchers.Equals(input.AutoApplyResultingVouchers)) + ) && + ( + this.IncludeExistingOrders == input.IncludeExistingOrders || + (this.IncludeExistingOrders != null && + this.IncludeExistingOrders.Equals(input.IncludeExistingOrders)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CampaignId != null) + hashCode = hashCode * 59 + this.CampaignId.GetHashCode(); + if (this.Statistics != null) + hashCode = hashCode * 59 + this.Statistics.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.OrdersBeforeReceivingVoucher != null) + hashCode = hashCode * 59 + this.OrdersBeforeReceivingVoucher.GetHashCode(); + if (this.PercentDiscountAmount != null) + hashCode = hashCode * 59 + this.PercentDiscountAmount.GetHashCode(); + if (this.MaxDiscount != null) + hashCode = hashCode * 59 + this.MaxDiscount.GetHashCode(); + if (this.RoundingStrategy != null) + hashCode = hashCode * 59 + this.RoundingStrategy.GetHashCode(); + if (this.ShouldIncludeOrdersWithLoyaltyVoucher != null) + hashCode = hashCode * 59 + this.ShouldIncludeOrdersWithLoyaltyVoucher.GetHashCode(); + if (this.VoucherValidPeriodDays != null) + hashCode = hashCode * 59 + this.VoucherValidPeriodDays.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.AutoApplyResultingVouchers != null) + hashCode = hashCode * 59 + this.AutoApplyResultingVouchers.GetHashCode(); + if (this.IncludeExistingOrders != null) + hashCode = hashCode * 59 + this.IncludeExistingOrders.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoyaltyCampaignBase.cs b/src/Flipdish/Model/LoyaltyCampaignBase.cs new file mode 100644 index 00000000..4aadb768 --- /dev/null +++ b/src/Flipdish/Model/LoyaltyCampaignBase.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Loyalty campaign base + /// + [DataContract] + public partial class LoyaltyCampaignBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Number of orders customer needs to make, before receiving voucher. + /// Discount amount in percents. + /// Maximum discount for percentage discounts. + /// Controls how the loyalty voucher's amount is rounded. + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation. + /// Number of days for which the voucher will be valid.. + /// Discount will include delivery fee. + /// Automatically apply resulting vouchers. + /// Campaign will apply to existing orders. + /// Is campaign enabled. + /// Ids of stores this campaign applies to. + /// The app that this campaign belongs to.. + /// Controls whether the voucher generated from this campaign will override discount exclusions. + public LoyaltyCampaignBase(int? ordersBeforeReceivingVoucher = default(int?), int? percentDiscountAmount = default(int?), double? maxDiscount = default(double?), int? roundingStrategy = default(int?), bool? shouldIncludeOrdersWithLoyaltyVoucher = default(bool?), int? voucherValidPeriodDays = default(int?), bool? includeDeliveryFee = default(bool?), bool? autoApplyResultingVouchers = default(bool?), bool? includeExistingOrders = default(bool?), bool? isEnabled = default(bool?), List storeIds = default(List), string appId = default(string), bool? forceDiscount = default(bool?)) + { + this.OrdersBeforeReceivingVoucher = ordersBeforeReceivingVoucher; + this.PercentDiscountAmount = percentDiscountAmount; + this.MaxDiscount = maxDiscount; + this.RoundingStrategy = roundingStrategy; + this.ShouldIncludeOrdersWithLoyaltyVoucher = shouldIncludeOrdersWithLoyaltyVoucher; + this.VoucherValidPeriodDays = voucherValidPeriodDays; + this.IncludeDeliveryFee = includeDeliveryFee; + this.AutoApplyResultingVouchers = autoApplyResultingVouchers; + this.IncludeExistingOrders = includeExistingOrders; + this.IsEnabled = isEnabled; + this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; + } + + /// + /// Number of orders customer needs to make, before receiving voucher + /// + /// Number of orders customer needs to make, before receiving voucher + [DataMember(Name="OrdersBeforeReceivingVoucher", EmitDefaultValue=false)] + public int? OrdersBeforeReceivingVoucher { get; set; } + + /// + /// Discount amount in percents + /// + /// Discount amount in percents + [DataMember(Name="PercentDiscountAmount", EmitDefaultValue=false)] + public int? PercentDiscountAmount { get; set; } + + /// + /// Maximum discount for percentage discounts + /// + /// Maximum discount for percentage discounts + [DataMember(Name="MaxDiscount", EmitDefaultValue=false)] + public double? MaxDiscount { get; set; } + + /// + /// Controls how the loyalty voucher's amount is rounded + /// + /// Controls how the loyalty voucher's amount is rounded + [DataMember(Name="RoundingStrategy", EmitDefaultValue=false)] + public int? RoundingStrategy { get; set; } + + /// + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation + /// + /// Controls whether we should include orders with loyalty vouchers in the campaign calculation + [DataMember(Name="ShouldIncludeOrdersWithLoyaltyVoucher", EmitDefaultValue=false)] + public bool? ShouldIncludeOrdersWithLoyaltyVoucher { get; set; } + + /// + /// Number of days for which the voucher will be valid. + /// + /// Number of days for which the voucher will be valid. + [DataMember(Name="VoucherValidPeriodDays", EmitDefaultValue=false)] + public int? VoucherValidPeriodDays { get; set; } + + /// + /// Discount will include delivery fee + /// + /// Discount will include delivery fee + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Automatically apply resulting vouchers + /// + /// Automatically apply resulting vouchers + [DataMember(Name="AutoApplyResultingVouchers", EmitDefaultValue=false)] + public bool? AutoApplyResultingVouchers { get; set; } + + /// + /// Campaign will apply to existing orders + /// + /// Campaign will apply to existing orders + [DataMember(Name="IncludeExistingOrders", EmitDefaultValue=false)] + public bool? IncludeExistingOrders { get; set; } + + /// + /// Is campaign enabled + /// + /// Is campaign enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Ids of stores this campaign applies to + /// + /// Ids of stores this campaign applies to + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The app that this campaign belongs to. + /// + /// The app that this campaign belongs to. + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoyaltyCampaignBase {\n"); + sb.Append(" OrdersBeforeReceivingVoucher: ").Append(OrdersBeforeReceivingVoucher).Append("\n"); + sb.Append(" PercentDiscountAmount: ").Append(PercentDiscountAmount).Append("\n"); + sb.Append(" MaxDiscount: ").Append(MaxDiscount).Append("\n"); + sb.Append(" RoundingStrategy: ").Append(RoundingStrategy).Append("\n"); + sb.Append(" ShouldIncludeOrdersWithLoyaltyVoucher: ").Append(ShouldIncludeOrdersWithLoyaltyVoucher).Append("\n"); + sb.Append(" VoucherValidPeriodDays: ").Append(VoucherValidPeriodDays).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" AutoApplyResultingVouchers: ").Append(AutoApplyResultingVouchers).Append("\n"); + sb.Append(" IncludeExistingOrders: ").Append(IncludeExistingOrders).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoyaltyCampaignBase); + } + + /// + /// Returns true if LoyaltyCampaignBase instances are equal + /// + /// Instance of LoyaltyCampaignBase to be compared + /// Boolean + public bool Equals(LoyaltyCampaignBase input) + { + if (input == null) + return false; + + return + ( + this.OrdersBeforeReceivingVoucher == input.OrdersBeforeReceivingVoucher || + (this.OrdersBeforeReceivingVoucher != null && + this.OrdersBeforeReceivingVoucher.Equals(input.OrdersBeforeReceivingVoucher)) + ) && + ( + this.PercentDiscountAmount == input.PercentDiscountAmount || + (this.PercentDiscountAmount != null && + this.PercentDiscountAmount.Equals(input.PercentDiscountAmount)) + ) && + ( + this.MaxDiscount == input.MaxDiscount || + (this.MaxDiscount != null && + this.MaxDiscount.Equals(input.MaxDiscount)) + ) && + ( + this.RoundingStrategy == input.RoundingStrategy || + (this.RoundingStrategy != null && + this.RoundingStrategy.Equals(input.RoundingStrategy)) + ) && + ( + this.ShouldIncludeOrdersWithLoyaltyVoucher == input.ShouldIncludeOrdersWithLoyaltyVoucher || + (this.ShouldIncludeOrdersWithLoyaltyVoucher != null && + this.ShouldIncludeOrdersWithLoyaltyVoucher.Equals(input.ShouldIncludeOrdersWithLoyaltyVoucher)) + ) && + ( + this.VoucherValidPeriodDays == input.VoucherValidPeriodDays || + (this.VoucherValidPeriodDays != null && + this.VoucherValidPeriodDays.Equals(input.VoucherValidPeriodDays)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.AutoApplyResultingVouchers == input.AutoApplyResultingVouchers || + (this.AutoApplyResultingVouchers != null && + this.AutoApplyResultingVouchers.Equals(input.AutoApplyResultingVouchers)) + ) && + ( + this.IncludeExistingOrders == input.IncludeExistingOrders || + (this.IncludeExistingOrders != null && + this.IncludeExistingOrders.Equals(input.IncludeExistingOrders)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrdersBeforeReceivingVoucher != null) + hashCode = hashCode * 59 + this.OrdersBeforeReceivingVoucher.GetHashCode(); + if (this.PercentDiscountAmount != null) + hashCode = hashCode * 59 + this.PercentDiscountAmount.GetHashCode(); + if (this.MaxDiscount != null) + hashCode = hashCode * 59 + this.MaxDiscount.GetHashCode(); + if (this.RoundingStrategy != null) + hashCode = hashCode * 59 + this.RoundingStrategy.GetHashCode(); + if (this.ShouldIncludeOrdersWithLoyaltyVoucher != null) + hashCode = hashCode * 59 + this.ShouldIncludeOrdersWithLoyaltyVoucher.GetHashCode(); + if (this.VoucherValidPeriodDays != null) + hashCode = hashCode * 59 + this.VoucherValidPeriodDays.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.AutoApplyResultingVouchers != null) + hashCode = hashCode * 59 + this.AutoApplyResultingVouchers.GetHashCode(); + if (this.IncludeExistingOrders != null) + hashCode = hashCode * 59 + this.IncludeExistingOrders.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoyaltyCampaignCreatedEvent.cs b/src/Flipdish/Model/LoyaltyCampaignCreatedEvent.cs new file mode 100644 index 00000000..5d856ca8 --- /dev/null +++ b/src/Flipdish/Model/LoyaltyCampaignCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Loyalty campaign created event + /// + [DataContract] + public partial class LoyaltyCampaignCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The loyalty campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LoyaltyCampaignCreatedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), LoyaltyCampaign loyaltyCampaign = default(LoyaltyCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.LoyaltyCampaign = loyaltyCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The loyalty campaign + /// + /// The loyalty campaign + [DataMember(Name="LoyaltyCampaign", EmitDefaultValue=false)] + public LoyaltyCampaign LoyaltyCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoyaltyCampaignCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" LoyaltyCampaign: ").Append(LoyaltyCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoyaltyCampaignCreatedEvent); + } + + /// + /// Returns true if LoyaltyCampaignCreatedEvent instances are equal + /// + /// Instance of LoyaltyCampaignCreatedEvent to be compared + /// Boolean + public bool Equals(LoyaltyCampaignCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.LoyaltyCampaign == input.LoyaltyCampaign || + (this.LoyaltyCampaign != null && + this.LoyaltyCampaign.Equals(input.LoyaltyCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.LoyaltyCampaign != null) + hashCode = hashCode * 59 + this.LoyaltyCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoyaltyCampaignDeletedEvent.cs b/src/Flipdish/Model/LoyaltyCampaignDeletedEvent.cs new file mode 100644 index 00000000..8c089df1 --- /dev/null +++ b/src/Flipdish/Model/LoyaltyCampaignDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Loyalty campaign deleted event + /// + [DataContract] + public partial class LoyaltyCampaignDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The loyalty campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LoyaltyCampaignDeletedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), LoyaltyCampaign loyaltyCampaign = default(LoyaltyCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.LoyaltyCampaign = loyaltyCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The loyalty campaign + /// + /// The loyalty campaign + [DataMember(Name="LoyaltyCampaign", EmitDefaultValue=false)] + public LoyaltyCampaign LoyaltyCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoyaltyCampaignDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" LoyaltyCampaign: ").Append(LoyaltyCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoyaltyCampaignDeletedEvent); + } + + /// + /// Returns true if LoyaltyCampaignDeletedEvent instances are equal + /// + /// Instance of LoyaltyCampaignDeletedEvent to be compared + /// Boolean + public bool Equals(LoyaltyCampaignDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.LoyaltyCampaign == input.LoyaltyCampaign || + (this.LoyaltyCampaign != null && + this.LoyaltyCampaign.Equals(input.LoyaltyCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.LoyaltyCampaign != null) + hashCode = hashCode * 59 + this.LoyaltyCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LoyaltyCampaignUpdatedEvent.cs b/src/Flipdish/Model/LoyaltyCampaignUpdatedEvent.cs new file mode 100644 index 00000000..f2c029c1 --- /dev/null +++ b/src/Flipdish/Model/LoyaltyCampaignUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Loyalty campaign updated event + /// + [DataContract] + public partial class LoyaltyCampaignUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The loyalty campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public LoyaltyCampaignUpdatedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), LoyaltyCampaign loyaltyCampaign = default(LoyaltyCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.LoyaltyCampaign = loyaltyCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The loyalty campaign + /// + /// The loyalty campaign + [DataMember(Name="LoyaltyCampaign", EmitDefaultValue=false)] + public LoyaltyCampaign LoyaltyCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LoyaltyCampaignUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" LoyaltyCampaign: ").Append(LoyaltyCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LoyaltyCampaignUpdatedEvent); + } + + /// + /// Returns true if LoyaltyCampaignUpdatedEvent instances are equal + /// + /// Instance of LoyaltyCampaignUpdatedEvent to be compared + /// Boolean + public bool Equals(LoyaltyCampaignUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.LoyaltyCampaign == input.LoyaltyCampaign || + (this.LoyaltyCampaign != null && + this.LoyaltyCampaign.Equals(input.LoyaltyCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.LoyaltyCampaign != null) + hashCode = hashCode * 59 + this.LoyaltyCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/LumpDiscountDetails.cs b/src/Flipdish/Model/LumpDiscountDetails.cs new file mode 100644 index 00000000..0460b096 --- /dev/null +++ b/src/Flipdish/Model/LumpDiscountDetails.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Lump discount details + /// + [DataContract] + public partial class LumpDiscountDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Discount amount. + public LumpDiscountDetails(double? discountAmount = default(double?)) + { + this.DiscountAmount = discountAmount; + } + + /// + /// Discount amount + /// + /// Discount amount + [DataMember(Name="DiscountAmount", EmitDefaultValue=false)] + public double? DiscountAmount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LumpDiscountDetails {\n"); + sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LumpDiscountDetails); + } + + /// + /// Returns true if LumpDiscountDetails instances are equal + /// + /// Instance of LumpDiscountDetails to be compared + /// Boolean + public bool Equals(LumpDiscountDetails input) + { + if (input == null) + return false; + + return + ( + this.DiscountAmount == input.DiscountAmount || + (this.DiscountAmount != null && + this.DiscountAmount.Equals(input.DiscountAmount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DiscountAmount != null) + hashCode = hashCode * 59 + this.DiscountAmount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MappedLocation.cs b/src/Flipdish/Model/MappedLocation.cs new file mode 100644 index 00000000..52d1c8cf --- /dev/null +++ b/src/Flipdish/Model/MappedLocation.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Representation of a Location and its External Mapping + /// + [DataContract] + public partial class MappedLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MappedLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Id of the Location (required). + /// Id of the Location on an external system (required). + public MappedLocation(int? locationId = default(int?), string externalLocationId = default(string)) + { + // to ensure "locationId" is required (not null) + if (locationId == null) + { + throw new InvalidDataException("locationId is a required property for MappedLocation and cannot be null"); + } + else + { + this.LocationId = locationId; + } + // to ensure "externalLocationId" is required (not null) + if (externalLocationId == null) + { + throw new InvalidDataException("externalLocationId is a required property for MappedLocation and cannot be null"); + } + else + { + this.ExternalLocationId = externalLocationId; + } + } + + /// + /// Id of the Location + /// + /// Id of the Location + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// Id of the Location on an external system + /// + /// Id of the Location on an external system + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MappedLocation {\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MappedLocation); + } + + /// + /// Returns true if MappedLocation instances are equal + /// + /// Instance of MappedLocation to be compared + /// Boolean + public bool Equals(MappedLocation input) + { + if (input == null) + return false; + + return + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MaskedPhoneNumber.cs b/src/Flipdish/Model/MaskedPhoneNumber.cs new file mode 100644 index 00000000..80b10ca1 --- /dev/null +++ b/src/Flipdish/Model/MaskedPhoneNumber.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a masked phone number + /// + [DataContract] + public partial class MaskedPhoneNumber : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Defines if the feature is enabled. + /// Defines the phone number to call. + /// Defines the code to enter. + public MaskedPhoneNumber(bool? isEnabled = default(bool?), string phoneNumber = default(string), string code = default(string)) + { + this.IsEnabled = isEnabled; + this.PhoneNumber = phoneNumber; + this.Code = code; + } + + /// + /// Defines if the feature is enabled + /// + /// Defines if the feature is enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Defines the phone number to call + /// + /// Defines the phone number to call + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Defines the code to enter + /// + /// Defines the code to enter + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MaskedPhoneNumber {\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MaskedPhoneNumber); + } + + /// + /// Returns true if MaskedPhoneNumber instances are equal + /// + /// Instance of MaskedPhoneNumber to be compared + /// Boolean + public bool Equals(MaskedPhoneNumber input) + { + if (input == null) + return false; + + return + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Menu.cs b/src/Flipdish/Model/Menu.cs new file mode 100644 index 00000000..a423dd40 --- /dev/null +++ b/src/Flipdish/Model/Menu.cs @@ -0,0 +1,376 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu + /// + [DataContract] + public partial class Menu : IEquatable + { + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuSectionBehaviourEnum + { + + /// + /// Enum ExpandSingle for value: ExpandSingle + /// + [EnumMember(Value = "ExpandSingle")] + ExpandSingle = 1, + + /// + /// Enum ExpandMultiple for value: ExpandMultiple + /// + [EnumMember(Value = "ExpandMultiple")] + ExpandMultiple = 2 + } + + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [DataMember(Name="MenuSectionBehaviour", EmitDefaultValue=false)] + public MenuSectionBehaviourEnum? MenuSectionBehaviour { get; set; } + /// + /// Tax type + /// + /// Tax type + [JsonConverter(typeof(StringEnumConverter))] + public enum TaxTypeEnum + { + + /// + /// Enum IncludedInBasePrice for value: IncludedInBasePrice + /// + [EnumMember(Value = "IncludedInBasePrice")] + IncludedInBasePrice = 1, + + /// + /// Enum ExcludedFromBasePrice for value: ExcludedFromBasePrice + /// + [EnumMember(Value = "ExcludedFromBasePrice")] + ExcludedFromBasePrice = 2 + } + + /// + /// Tax type + /// + /// Tax type + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public TaxTypeEnum? TaxType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Last modified time. + /// Menu version. + /// Image Name. + /// Image url. + /// Name of Menu, only shown in portal. + /// Locked: is menu locked against modifcation. + /// Menu sections (startes, main etc). + /// Menu tax rates. + /// Identifier of App the menu is attached to. + /// Display menu section link on UI. + /// Menu section behaviour. + /// Tax type. + /// Flag to indicate if the menu is integrated (contains metadata). + public Menu(int? menuId = default(int?), DateTime? modifiedTime = default(DateTime?), int? versionNumber = default(int?), string imageName = default(string), string imageUrl = default(string), string name = default(string), bool? locked = default(bool?), List menuSections = default(List), List taxRates = default(List), string appId = default(string), bool? displaySectionLinks = default(bool?), MenuSectionBehaviourEnum? menuSectionBehaviour = default(MenuSectionBehaviourEnum?), TaxTypeEnum? taxType = default(TaxTypeEnum?), bool? isIntegrated = default(bool?)) + { + this.MenuId = menuId; + this.ModifiedTime = modifiedTime; + this.VersionNumber = versionNumber; + this.ImageName = imageName; + this.ImageUrl = imageUrl; + this.Name = name; + this.Locked = locked; + this.MenuSections = menuSections; + this.TaxRates = taxRates; + this.AppId = appId; + this.DisplaySectionLinks = displaySectionLinks; + this.MenuSectionBehaviour = menuSectionBehaviour; + this.TaxType = taxType; + this.IsIntegrated = isIntegrated; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Last modified time + /// + /// Last modified time + [DataMember(Name="ModifiedTime", EmitDefaultValue=false)] + public DateTime? ModifiedTime { get; set; } + + /// + /// Menu version + /// + /// Menu version + [DataMember(Name="VersionNumber", EmitDefaultValue=false)] + public int? VersionNumber { get; set; } + + /// + /// Image Name + /// + /// Image Name + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Name of Menu, only shown in portal + /// + /// Name of Menu, only shown in portal + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Locked: is menu locked against modifcation + /// + /// Locked: is menu locked against modifcation + [DataMember(Name="Locked", EmitDefaultValue=false)] + public bool? Locked { get; set; } + + /// + /// Menu sections (startes, main etc) + /// + /// Menu sections (startes, main etc) + [DataMember(Name="MenuSections", EmitDefaultValue=false)] + public List MenuSections { get; set; } + + /// + /// Menu tax rates + /// + /// Menu tax rates + [DataMember(Name="TaxRates", EmitDefaultValue=false)] + public List TaxRates { get; set; } + + /// + /// Identifier of App the menu is attached to + /// + /// Identifier of App the menu is attached to + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Display menu section link on UI + /// + /// Display menu section link on UI + [DataMember(Name="DisplaySectionLinks", EmitDefaultValue=false)] + public bool? DisplaySectionLinks { get; set; } + + + + /// + /// Flag to indicate if the menu is integrated (contains metadata) + /// + /// Flag to indicate if the menu is integrated (contains metadata) + [DataMember(Name="IsIntegrated", EmitDefaultValue=false)] + public bool? IsIntegrated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Menu {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" ModifiedTime: ").Append(ModifiedTime).Append("\n"); + sb.Append(" VersionNumber: ").Append(VersionNumber).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Locked: ").Append(Locked).Append("\n"); + sb.Append(" MenuSections: ").Append(MenuSections).Append("\n"); + sb.Append(" TaxRates: ").Append(TaxRates).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" DisplaySectionLinks: ").Append(DisplaySectionLinks).Append("\n"); + sb.Append(" MenuSectionBehaviour: ").Append(MenuSectionBehaviour).Append("\n"); + sb.Append(" TaxType: ").Append(TaxType).Append("\n"); + sb.Append(" IsIntegrated: ").Append(IsIntegrated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Menu); + } + + /// + /// Returns true if Menu instances are equal + /// + /// Instance of Menu to be compared + /// Boolean + public bool Equals(Menu input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.ModifiedTime == input.ModifiedTime || + (this.ModifiedTime != null && + this.ModifiedTime.Equals(input.ModifiedTime)) + ) && + ( + this.VersionNumber == input.VersionNumber || + (this.VersionNumber != null && + this.VersionNumber.Equals(input.VersionNumber)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Locked == input.Locked || + (this.Locked != null && + this.Locked.Equals(input.Locked)) + ) && + ( + this.MenuSections == input.MenuSections || + this.MenuSections != null && + this.MenuSections.SequenceEqual(input.MenuSections) + ) && + ( + this.TaxRates == input.TaxRates || + this.TaxRates != null && + this.TaxRates.SequenceEqual(input.TaxRates) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.DisplaySectionLinks == input.DisplaySectionLinks || + (this.DisplaySectionLinks != null && + this.DisplaySectionLinks.Equals(input.DisplaySectionLinks)) + ) && + ( + this.MenuSectionBehaviour == input.MenuSectionBehaviour || + (this.MenuSectionBehaviour != null && + this.MenuSectionBehaviour.Equals(input.MenuSectionBehaviour)) + ) && + ( + this.TaxType == input.TaxType || + (this.TaxType != null && + this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.ModifiedTime != null) + hashCode = hashCode * 59 + this.ModifiedTime.GetHashCode(); + if (this.VersionNumber != null) + hashCode = hashCode * 59 + this.VersionNumber.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Locked != null) + hashCode = hashCode * 59 + this.Locked.GetHashCode(); + if (this.MenuSections != null) + hashCode = hashCode * 59 + this.MenuSections.GetHashCode(); + if (this.TaxRates != null) + hashCode = hashCode * 59 + this.TaxRates.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.DisplaySectionLinks != null) + hashCode = hashCode * 59 + this.DisplaySectionLinks.GetHashCode(); + if (this.MenuSectionBehaviour != null) + hashCode = hashCode * 59 + this.MenuSectionBehaviour.GetHashCode(); + if (this.TaxType != null) + hashCode = hashCode * 59 + this.TaxType.GetHashCode(); + if (this.IsIntegrated != null) + hashCode = hashCode * 59 + this.IsIntegrated.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuAsyncCreationCompletedEvent.cs b/src/Flipdish/Model/MenuAsyncCreationCompletedEvent.cs new file mode 100644 index 00000000..dd719deb --- /dev/null +++ b/src/Flipdish/Model/MenuAsyncCreationCompletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu async creation completed event + /// + [DataContract] + public partial class MenuAsyncCreationCompletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the menu. + /// The menu. + /// Flag indicating if the menu creation was successful. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuAsyncCreationCompletedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Menu menu = default(Menu), bool? success = default(bool?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Menu = menu; + this.Success = success; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The menu + /// + /// The menu + [DataMember(Name="Menu", EmitDefaultValue=false)] + public Menu Menu { get; set; } + + /// + /// Flag indicating if the menu creation was successful + /// + /// Flag indicating if the menu creation was successful + [DataMember(Name="Success", EmitDefaultValue=false)] + public bool? Success { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuAsyncCreationCompletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Menu: ").Append(Menu).Append("\n"); + sb.Append(" Success: ").Append(Success).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuAsyncCreationCompletedEvent); + } + + /// + /// Returns true if MenuAsyncCreationCompletedEvent instances are equal + /// + /// Instance of MenuAsyncCreationCompletedEvent to be compared + /// Boolean + public bool Equals(MenuAsyncCreationCompletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Menu == input.Menu || + (this.Menu != null && + this.Menu.Equals(input.Menu)) + ) && + ( + this.Success == input.Success || + (this.Success != null && + this.Success.Equals(input.Success)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Menu != null) + hashCode = hashCode * 59 + this.Menu.GetHashCode(); + if (this.Success != null) + hashCode = hashCode * 59 + this.Success.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuBase.cs b/src/Flipdish/Model/MenuBase.cs new file mode 100644 index 00000000..e0b52b8d --- /dev/null +++ b/src/Flipdish/Model/MenuBase.cs @@ -0,0 +1,206 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu base + /// + [DataContract] + public partial class MenuBase : IEquatable + { + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuSectionBehaviourEnum + { + + /// + /// Enum ExpandSingle for value: ExpandSingle + /// + [EnumMember(Value = "ExpandSingle")] + ExpandSingle = 1, + + /// + /// Enum ExpandMultiple for value: ExpandMultiple + /// + [EnumMember(Value = "ExpandMultiple")] + ExpandMultiple = 2 + } + + /// + /// Menu section behaviour + /// + /// Menu section behaviour + [DataMember(Name="MenuSectionBehaviour", EmitDefaultValue=false)] + public MenuSectionBehaviourEnum? MenuSectionBehaviour { get; set; } + /// + /// Tax type + /// + /// Tax type + [JsonConverter(typeof(StringEnumConverter))] + public enum TaxTypeEnum + { + + /// + /// Enum IncludedInBasePrice for value: IncludedInBasePrice + /// + [EnumMember(Value = "IncludedInBasePrice")] + IncludedInBasePrice = 1, + + /// + /// Enum ExcludedFromBasePrice for value: ExcludedFromBasePrice + /// + [EnumMember(Value = "ExcludedFromBasePrice")] + ExcludedFromBasePrice = 2 + } + + /// + /// Tax type + /// + /// Tax type + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public TaxTypeEnum? TaxType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Display menu section link on UI. + /// Menu section behaviour. + /// Tax type. + /// Flag to indicate if the menu is integrated (contains metadata). + public MenuBase(bool? displaySectionLinks = default(bool?), MenuSectionBehaviourEnum? menuSectionBehaviour = default(MenuSectionBehaviourEnum?), TaxTypeEnum? taxType = default(TaxTypeEnum?), bool? isIntegrated = default(bool?)) + { + this.DisplaySectionLinks = displaySectionLinks; + this.MenuSectionBehaviour = menuSectionBehaviour; + this.TaxType = taxType; + this.IsIntegrated = isIntegrated; + } + + /// + /// Display menu section link on UI + /// + /// Display menu section link on UI + [DataMember(Name="DisplaySectionLinks", EmitDefaultValue=false)] + public bool? DisplaySectionLinks { get; set; } + + + + /// + /// Flag to indicate if the menu is integrated (contains metadata) + /// + /// Flag to indicate if the menu is integrated (contains metadata) + [DataMember(Name="IsIntegrated", EmitDefaultValue=false)] + public bool? IsIntegrated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuBase {\n"); + sb.Append(" DisplaySectionLinks: ").Append(DisplaySectionLinks).Append("\n"); + sb.Append(" MenuSectionBehaviour: ").Append(MenuSectionBehaviour).Append("\n"); + sb.Append(" TaxType: ").Append(TaxType).Append("\n"); + sb.Append(" IsIntegrated: ").Append(IsIntegrated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuBase); + } + + /// + /// Returns true if MenuBase instances are equal + /// + /// Instance of MenuBase to be compared + /// Boolean + public bool Equals(MenuBase input) + { + if (input == null) + return false; + + return + ( + this.DisplaySectionLinks == input.DisplaySectionLinks || + (this.DisplaySectionLinks != null && + this.DisplaySectionLinks.Equals(input.DisplaySectionLinks)) + ) && + ( + this.MenuSectionBehaviour == input.MenuSectionBehaviour || + (this.MenuSectionBehaviour != null && + this.MenuSectionBehaviour.Equals(input.MenuSectionBehaviour)) + ) && + ( + this.TaxType == input.TaxType || + (this.TaxType != null && + this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplaySectionLinks != null) + hashCode = hashCode * 59 + this.DisplaySectionLinks.GetHashCode(); + if (this.MenuSectionBehaviour != null) + hashCode = hashCode * 59 + this.MenuSectionBehaviour.GetHashCode(); + if (this.TaxType != null) + hashCode = hashCode * 59 + this.TaxType.GetHashCode(); + if (this.IsIntegrated != null) + hashCode = hashCode * 59 + this.IsIntegrated.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuBulkEditEvent.cs b/src/Flipdish/Model/MenuBulkEditEvent.cs new file mode 100644 index 00000000..72133908 --- /dev/null +++ b/src/Flipdish/Model/MenuBulkEditEvent.cs @@ -0,0 +1,368 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu bulk event + /// + [DataContract] + public partial class MenuBulkEditEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Menu Name. + /// Description. + /// Product. + /// Quantity of product. + /// Visibility of the item. + /// User who has uploaded the menu. + /// The menu Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuBulkEditEvent(string eventName = default(string), string menuName = default(string), string description = default(string), string item = default(string), int? instanceCount = default(int?), bool? isAvailable = default(bool?), UserEventInfo user = default(UserEventInfo), int? menuId = default(int?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.MenuName = menuName; + this.Description = description; + this.Item = item; + this.InstanceCount = instanceCount; + this.IsAvailable = isAvailable; + this.User = user; + this.MenuId = menuId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Menu Name + /// + /// Menu Name + [DataMember(Name="MenuName", EmitDefaultValue=false)] + public string MenuName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Product + /// + /// Product + [DataMember(Name="Item", EmitDefaultValue=false)] + public string Item { get; set; } + + /// + /// Quantity of product + /// + /// Quantity of product + [DataMember(Name="InstanceCount", EmitDefaultValue=false)] + public int? InstanceCount { get; set; } + + /// + /// Visibility of the item + /// + /// Visibility of the item + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// User who has uploaded the menu + /// + /// User who has uploaded the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The menu Id + /// + /// The menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuBulkEditEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" MenuName: ").Append(MenuName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Item: ").Append(Item).Append("\n"); + sb.Append(" InstanceCount: ").Append(InstanceCount).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuBulkEditEvent); + } + + /// + /// Returns true if MenuBulkEditEvent instances are equal + /// + /// Instance of MenuBulkEditEvent to be compared + /// Boolean + public bool Equals(MenuBulkEditEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.MenuName == input.MenuName || + (this.MenuName != null && + this.MenuName.Equals(input.MenuName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Item == input.Item || + (this.Item != null && + this.Item.Equals(input.Item)) + ) && + ( + this.InstanceCount == input.InstanceCount || + (this.InstanceCount != null && + this.InstanceCount.Equals(input.InstanceCount)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.MenuName != null) + hashCode = hashCode * 59 + this.MenuName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Item != null) + hashCode = hashCode * 59 + this.Item.GetHashCode(); + if (this.InstanceCount != null) + hashCode = hashCode * 59 + this.InstanceCount.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuCatalogItem.cs b/src/Flipdish/Model/MenuCatalogItem.cs new file mode 100644 index 00000000..6af29b21 --- /dev/null +++ b/src/Flipdish/Model/MenuCatalogItem.cs @@ -0,0 +1,176 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to add a CatalogItem to a Menu + /// + [DataContract] + public partial class MenuCatalogItem : IEquatable + { + /// + /// Small | Medium | Large | HiddenImage Affects the layout of the menu. + /// + /// Small | Medium | Large | HiddenImage Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large | HiddenImage Affects the layout of the menu. + /// + /// Small | Medium | Large | HiddenImage Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MenuCatalogItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Product Id to the product to add as Menu Item (required). + /// Small | Medium | Large | HiddenImage Affects the layout of the menu.. + public MenuCatalogItem(string catalogItemId = default(string), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for MenuCatalogItem and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + this.CellLayoutType = cellLayoutType; + } + + /// + /// Product Id to the product to add as Menu Item + /// + /// Product Id to the product to add as Menu Item + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuCatalogItem {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuCatalogItem); + } + + /// + /// Returns true if MenuCatalogItem instances are equal + /// + /// Instance of MenuCatalogItem to be compared + /// Boolean + public bool Equals(MenuCatalogItem input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuCheckpoint.cs b/src/Flipdish/Model/MenuCheckpoint.cs new file mode 100644 index 00000000..e6e6d02d --- /dev/null +++ b/src/Flipdish/Model/MenuCheckpoint.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Checkpoint + /// + [DataContract] + public partial class MenuCheckpoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Identifier of Menu Checkpoint. + /// Time of creation of checkpoint. + /// Name of checkpoint. + /// Url that points to Serialized Checkpoint. + public MenuCheckpoint(int? menuCheckpointId = default(int?), DateTime? time = default(DateTime?), string name = default(string), string url = default(string)) + { + this.MenuCheckpointId = menuCheckpointId; + this.Time = time; + this.Name = name; + this.Url = url; + } + + /// + /// Identifier of Menu Checkpoint + /// + /// Identifier of Menu Checkpoint + [DataMember(Name="MenuCheckpointId", EmitDefaultValue=false)] + public int? MenuCheckpointId { get; set; } + + /// + /// Time of creation of checkpoint + /// + /// Time of creation of checkpoint + [DataMember(Name="Time", EmitDefaultValue=false)] + public DateTime? Time { get; set; } + + /// + /// Name of checkpoint + /// + /// Name of checkpoint + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Url that points to Serialized Checkpoint + /// + /// Url that points to Serialized Checkpoint + [DataMember(Name="Url", EmitDefaultValue=false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuCheckpoint {\n"); + sb.Append(" MenuCheckpointId: ").Append(MenuCheckpointId).Append("\n"); + sb.Append(" Time: ").Append(Time).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuCheckpoint); + } + + /// + /// Returns true if MenuCheckpoint instances are equal + /// + /// Instance of MenuCheckpoint to be compared + /// Boolean + public bool Equals(MenuCheckpoint input) + { + if (input == null) + return false; + + return + ( + this.MenuCheckpointId == input.MenuCheckpointId || + (this.MenuCheckpointId != null && + this.MenuCheckpointId.Equals(input.MenuCheckpointId)) + ) && + ( + this.Time == input.Time || + (this.Time != null && + this.Time.Equals(input.Time)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuCheckpointId != null) + hashCode = hashCode * 59 + this.MenuCheckpointId.GetHashCode(); + if (this.Time != null) + hashCode = hashCode * 59 + this.Time.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Url != null) + hashCode = hashCode * 59 + this.Url.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs b/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs new file mode 100644 index 00000000..df7d2e38 --- /dev/null +++ b/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuCheckpointCreatedEvent + /// + [DataContract] + public partial class MenuCheckpointCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Description. + /// User who has created the menu. + /// Menu identifier. + /// Menu Id. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuCheckpointCreatedEvent(string description = default(string), UserEventInfo user = default(UserEventInfo), Menu menu = default(Menu), int? menuId = default(int?), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Description = description; + this.User = user; + this.Menu = menu; + this.MenuId = menuId; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="Menu", EmitDefaultValue=false)] + public Menu Menu { get; set; } + + /// + /// Menu Id + /// + /// Menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuCheckpointCreatedEvent {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Menu: ").Append(Menu).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuCheckpointCreatedEvent); + } + + /// + /// Returns true if MenuCheckpointCreatedEvent instances are equal + /// + /// Instance of MenuCheckpointCreatedEvent to be compared + /// Boolean + public bool Equals(MenuCheckpointCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Menu == input.Menu || + (this.Menu != null && + this.Menu.Equals(input.Menu)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Menu != null) + hashCode = hashCode * 59 + this.Menu.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuCreatedEvent.cs b/src/Flipdish/Model/MenuCreatedEvent.cs new file mode 100644 index 00000000..b5731cf3 --- /dev/null +++ b/src/Flipdish/Model/MenuCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu created event + /// + [DataContract] + public partial class MenuCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the menu. + /// The menu. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuCreatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Menu menu = default(Menu), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Menu = menu; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The menu + /// + /// The menu + [DataMember(Name="Menu", EmitDefaultValue=false)] + public Menu Menu { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Menu: ").Append(Menu).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuCreatedEvent); + } + + /// + /// Returns true if MenuCreatedEvent instances are equal + /// + /// Instance of MenuCreatedEvent to be compared + /// Boolean + public bool Equals(MenuCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Menu == input.Menu || + (this.Menu != null && + this.Menu.Equals(input.Menu)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Menu != null) + hashCode = hashCode * 59 + this.Menu.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuElementEditResponse.cs b/src/Flipdish/Model/MenuElementEditResponse.cs new file mode 100644 index 00000000..77178658 --- /dev/null +++ b/src/Flipdish/Model/MenuElementEditResponse.cs @@ -0,0 +1,275 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Response with any menu elements that had issues being hidden/shown + /// + [DataContract] + public partial class MenuElementEditResponse : IEquatable + { + /// + /// Type of menu element + /// + /// Type of menu element + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuElementTypeEnum + { + + /// + /// Enum Item for value: Item + /// + [EnumMember(Value = "Item")] + Item = 1, + + /// + /// Enum OptionSetItem for value: OptionSetItem + /// + [EnumMember(Value = "OptionSetItem")] + OptionSetItem = 2 + } + + /// + /// Type of menu element + /// + /// Type of menu element + [DataMember(Name="MenuElementType", EmitDefaultValue=false)] + public MenuElementTypeEnum? MenuElementType { get; set; } + /// + /// Validation message for menu element issue + /// + /// Validation message for menu element issue + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationCodeEnum + { + + /// + /// Enum Success for value: Success + /// + [EnumMember(Value = "Success")] + Success = 1, + + /// + /// Enum MinimumCountViolation for value: MinimumCountViolation + /// + [EnumMember(Value = "MinimumCountViolation")] + MinimumCountViolation = 2, + + /// + /// Enum MasterOptionSetViolation for value: MasterOptionSetViolation + /// + [EnumMember(Value = "MasterOptionSetViolation")] + MasterOptionSetViolation = 3, + + /// + /// Enum IncorrectElementTypeInMenu for value: IncorrectElementTypeInMenu + /// + [EnumMember(Value = "IncorrectElementTypeInMenu")] + IncorrectElementTypeInMenu = 4, + + /// + /// Enum DBFailed for value: DBFailed + /// + [EnumMember(Value = "DBFailed")] + DBFailed = 5 + } + + /// + /// Validation message for menu element issue + /// + /// Validation message for menu element issue + [DataMember(Name="ValidationCode", EmitDefaultValue=false)] + public ValidationCodeEnum? ValidationCode { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Section name. + /// Item name. + /// Option Set name. + /// Element name. + /// Holds the information for the A and CNAME Records of a domain.. + /// Type of menu element. + /// Validation message for menu element issue. + public MenuElementEditResponse(string sectionName = default(string), string itemName = default(string), string optionSetName = default(string), string optionSetItemName = default(string), int? menuElementId = default(int?), MenuElementTypeEnum? menuElementType = default(MenuElementTypeEnum?), ValidationCodeEnum? validationCode = default(ValidationCodeEnum?)) + { + this.SectionName = sectionName; + this.ItemName = itemName; + this.OptionSetName = optionSetName; + this.OptionSetItemName = optionSetItemName; + this.MenuElementId = menuElementId; + this.MenuElementType = menuElementType; + this.ValidationCode = validationCode; + } + + /// + /// Section name + /// + /// Section name + [DataMember(Name="SectionName", EmitDefaultValue=false)] + public string SectionName { get; set; } + + /// + /// Item name + /// + /// Item name + [DataMember(Name="ItemName", EmitDefaultValue=false)] + public string ItemName { get; set; } + + /// + /// Option Set name + /// + /// Option Set name + [DataMember(Name="OptionSetName", EmitDefaultValue=false)] + public string OptionSetName { get; set; } + + /// + /// Element name + /// + /// Element name + [DataMember(Name="OptionSetItemName", EmitDefaultValue=false)] + public string OptionSetItemName { get; set; } + + /// + /// Holds the information for the A and CNAME Records of a domain. + /// + /// Holds the information for the A and CNAME Records of a domain. + [DataMember(Name="MenuElementId", EmitDefaultValue=false)] + public int? MenuElementId { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuElementEditResponse {\n"); + sb.Append(" SectionName: ").Append(SectionName).Append("\n"); + sb.Append(" ItemName: ").Append(ItemName).Append("\n"); + sb.Append(" OptionSetName: ").Append(OptionSetName).Append("\n"); + sb.Append(" OptionSetItemName: ").Append(OptionSetItemName).Append("\n"); + sb.Append(" MenuElementId: ").Append(MenuElementId).Append("\n"); + sb.Append(" MenuElementType: ").Append(MenuElementType).Append("\n"); + sb.Append(" ValidationCode: ").Append(ValidationCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuElementEditResponse); + } + + /// + /// Returns true if MenuElementEditResponse instances are equal + /// + /// Instance of MenuElementEditResponse to be compared + /// Boolean + public bool Equals(MenuElementEditResponse input) + { + if (input == null) + return false; + + return + ( + this.SectionName == input.SectionName || + (this.SectionName != null && + this.SectionName.Equals(input.SectionName)) + ) && + ( + this.ItemName == input.ItemName || + (this.ItemName != null && + this.ItemName.Equals(input.ItemName)) + ) && + ( + this.OptionSetName == input.OptionSetName || + (this.OptionSetName != null && + this.OptionSetName.Equals(input.OptionSetName)) + ) && + ( + this.OptionSetItemName == input.OptionSetItemName || + (this.OptionSetItemName != null && + this.OptionSetItemName.Equals(input.OptionSetItemName)) + ) && + ( + this.MenuElementId == input.MenuElementId || + (this.MenuElementId != null && + this.MenuElementId.Equals(input.MenuElementId)) + ) && + ( + this.MenuElementType == input.MenuElementType || + (this.MenuElementType != null && + this.MenuElementType.Equals(input.MenuElementType)) + ) && + ( + this.ValidationCode == input.ValidationCode || + (this.ValidationCode != null && + this.ValidationCode.Equals(input.ValidationCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SectionName != null) + hashCode = hashCode * 59 + this.SectionName.GetHashCode(); + if (this.ItemName != null) + hashCode = hashCode * 59 + this.ItemName.GetHashCode(); + if (this.OptionSetName != null) + hashCode = hashCode * 59 + this.OptionSetName.GetHashCode(); + if (this.OptionSetItemName != null) + hashCode = hashCode * 59 + this.OptionSetItemName.GetHashCode(); + if (this.MenuElementId != null) + hashCode = hashCode * 59 + this.MenuElementId.GetHashCode(); + if (this.MenuElementType != null) + hashCode = hashCode * 59 + this.MenuElementType.GetHashCode(); + if (this.ValidationCode != null) + hashCode = hashCode * 59 + this.ValidationCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuElementHide.cs b/src/Flipdish/Model/MenuElementHide.cs new file mode 100644 index 00000000..3151f2d7 --- /dev/null +++ b/src/Flipdish/Model/MenuElementHide.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu element hide + /// + [DataContract] + public partial class MenuElementHide : IEquatable + { + /// + /// Type of menu element + /// + /// Type of menu element + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuElementTypeEnum + { + + /// + /// Enum Item for value: Item + /// + [EnumMember(Value = "Item")] + Item = 1, + + /// + /// Enum OptionSetItem for value: OptionSetItem + /// + [EnumMember(Value = "OptionSetItem")] + OptionSetItem = 2 + } + + /// + /// Type of menu element + /// + /// Type of menu element + [DataMember(Name="MenuElementType", EmitDefaultValue=false)] + public MenuElementTypeEnum? MenuElementType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// id of the menu item or menu option set item. + /// Type of menu element. + public MenuElementHide(int? menuElementId = default(int?), MenuElementTypeEnum? menuElementType = default(MenuElementTypeEnum?)) + { + this.MenuElementId = menuElementId; + this.MenuElementType = menuElementType; + } + + /// + /// id of the menu item or menu option set item + /// + /// id of the menu item or menu option set item + [DataMember(Name="MenuElementId", EmitDefaultValue=false)] + public int? MenuElementId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuElementHide {\n"); + sb.Append(" MenuElementId: ").Append(MenuElementId).Append("\n"); + sb.Append(" MenuElementType: ").Append(MenuElementType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuElementHide); + } + + /// + /// Returns true if MenuElementHide instances are equal + /// + /// Instance of MenuElementHide to be compared + /// Boolean + public bool Equals(MenuElementHide input) + { + if (input == null) + return false; + + return + ( + this.MenuElementId == input.MenuElementId || + (this.MenuElementId != null && + this.MenuElementId.Equals(input.MenuElementId)) + ) && + ( + this.MenuElementType == input.MenuElementType || + (this.MenuElementType != null && + this.MenuElementType.Equals(input.MenuElementType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuElementId != null) + hashCode = hashCode * 59 + this.MenuElementId.GetHashCode(); + if (this.MenuElementType != null) + hashCode = hashCode * 59 + this.MenuElementType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuElementListItemResponse.cs b/src/Flipdish/Model/MenuElementListItemResponse.cs new file mode 100644 index 00000000..ee0974f2 --- /dev/null +++ b/src/Flipdish/Model/MenuElementListItemResponse.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Response with any menu elements that had issues being hidden/shown + /// + [DataContract] + public partial class MenuElementListItemResponse : IEquatable + { + /// + /// Type of menu element + /// + /// Type of menu element + [JsonConverter(typeof(StringEnumConverter))] + public enum MenuElementTypeEnum + { + + /// + /// Enum Item for value: Item + /// + [EnumMember(Value = "Item")] + Item = 1, + + /// + /// Enum OptionSetItem for value: OptionSetItem + /// + [EnumMember(Value = "OptionSetItem")] + OptionSetItem = 2 + } + + /// + /// Type of menu element + /// + /// Type of menu element + [DataMember(Name="MenuElementType", EmitDefaultValue=false)] + public MenuElementTypeEnum? MenuElementType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Holds the information for the A and CNAME Records of a domain.. + /// Type of menu element. + public MenuElementListItemResponse(int? menuElementId = default(int?), MenuElementTypeEnum? menuElementType = default(MenuElementTypeEnum?)) + { + this.MenuElementId = menuElementId; + this.MenuElementType = menuElementType; + } + + /// + /// Holds the information for the A and CNAME Records of a domain. + /// + /// Holds the information for the A and CNAME Records of a domain. + [DataMember(Name="MenuElementId", EmitDefaultValue=false)] + public int? MenuElementId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuElementListItemResponse {\n"); + sb.Append(" MenuElementId: ").Append(MenuElementId).Append("\n"); + sb.Append(" MenuElementType: ").Append(MenuElementType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuElementListItemResponse); + } + + /// + /// Returns true if MenuElementListItemResponse instances are equal + /// + /// Instance of MenuElementListItemResponse to be compared + /// Boolean + public bool Equals(MenuElementListItemResponse input) + { + if (input == null) + return false; + + return + ( + this.MenuElementId == input.MenuElementId || + (this.MenuElementId != null && + this.MenuElementId.Equals(input.MenuElementId)) + ) && + ( + this.MenuElementType == input.MenuElementType || + (this.MenuElementType != null && + this.MenuElementType.Equals(input.MenuElementType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuElementId != null) + hashCode = hashCode * 59 + this.MenuElementId.GetHashCode(); + if (this.MenuElementType != null) + hashCode = hashCode * 59 + this.MenuElementType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuElementListResponse.cs b/src/Flipdish/Model/MenuElementListResponse.cs new file mode 100644 index 00000000..1761b199 --- /dev/null +++ b/src/Flipdish/Model/MenuElementListResponse.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Response with any menu elements that had issues being hidden/shown + /// + [DataContract] + public partial class MenuElementListResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu Name. + /// Menu Item Name. + /// Menu Item Count. + /// Menu Item is hide or unhide. + /// List of Items. + public MenuElementListResponse(string menuName = default(string), string menuElementName = default(string), int? instanceCount = default(int?), bool? isAvailable = default(bool?), List items = default(List)) + { + this.MenuName = menuName; + this.MenuElementName = menuElementName; + this.InstanceCount = instanceCount; + this.IsAvailable = isAvailable; + this.Items = items; + } + + /// + /// Menu Name + /// + /// Menu Name + [DataMember(Name="MenuName", EmitDefaultValue=false)] + public string MenuName { get; set; } + + /// + /// Menu Item Name + /// + /// Menu Item Name + [DataMember(Name="MenuElementName", EmitDefaultValue=false)] + public string MenuElementName { get; set; } + + /// + /// Menu Item Count + /// + /// Menu Item Count + [DataMember(Name="InstanceCount", EmitDefaultValue=false)] + public int? InstanceCount { get; set; } + + /// + /// Menu Item is hide or unhide + /// + /// Menu Item is hide or unhide + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// List of Items + /// + /// List of Items + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuElementListResponse {\n"); + sb.Append(" MenuName: ").Append(MenuName).Append("\n"); + sb.Append(" MenuElementName: ").Append(MenuElementName).Append("\n"); + sb.Append(" InstanceCount: ").Append(InstanceCount).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuElementListResponse); + } + + /// + /// Returns true if MenuElementListResponse instances are equal + /// + /// Instance of MenuElementListResponse to be compared + /// Boolean + public bool Equals(MenuElementListResponse input) + { + if (input == null) + return false; + + return + ( + this.MenuName == input.MenuName || + (this.MenuName != null && + this.MenuName.Equals(input.MenuName)) + ) && + ( + this.MenuElementName == input.MenuElementName || + (this.MenuElementName != null && + this.MenuElementName.Equals(input.MenuElementName)) + ) && + ( + this.InstanceCount == input.InstanceCount || + (this.InstanceCount != null && + this.InstanceCount.Equals(input.InstanceCount)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.Items == input.Items || + this.Items != null && + this.Items.SequenceEqual(input.Items) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuName != null) + hashCode = hashCode * 59 + this.MenuName.GetHashCode(); + if (this.MenuElementName != null) + hashCode = hashCode * 59 + this.MenuElementName.GetHashCode(); + if (this.InstanceCount != null) + hashCode = hashCode * 59 + this.InstanceCount.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.Items != null) + hashCode = hashCode * 59 + this.Items.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSet.cs b/src/Flipdish/Model/MenuItemOptionSet.cs new file mode 100644 index 00000000..67edb009 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSet.cs @@ -0,0 +1,333 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item option set + /// + [DataContract] + public partial class MenuItemOptionSet : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set identifier. + /// Image Name. + /// Image url. + /// Option set items. + /// Permanent reference to the item.. + /// Catalog item Id when the OptionSet is associated to a Product. + /// Menu item option set name. + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\").. + /// Display order. Displayed in ascending order.. + /// Minimum items must be selected. + /// Maximum number of items can be selected. + /// Small | Medium | Large Affects the layout of the menu.. + public MenuItemOptionSet(int? menuItemOptionSetId = default(int?), string imageName = default(string), string imageUrl = default(string), List menuItemOptionSetItems = default(List), Guid? publicId = default(Guid?), string catalogItemId = default(string), string name = default(string), bool? isMasterOptionSet = default(bool?), int? displayOrder = default(int?), int? minSelectCount = default(int?), int? maxSelectCount = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?)) + { + this.MenuItemOptionSetId = menuItemOptionSetId; + this.ImageName = imageName; + this.ImageUrl = imageUrl; + this.MenuItemOptionSetItems = menuItemOptionSetItems; + this.PublicId = publicId; + this.CatalogItemId = catalogItemId; + this.Name = name; + this.IsMasterOptionSet = isMasterOptionSet; + this.DisplayOrder = displayOrder; + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.CellLayoutType = cellLayoutType; + } + + /// + /// Menu item option set identifier + /// + /// Menu item option set identifier + [DataMember(Name="MenuItemOptionSetId", EmitDefaultValue=false)] + public int? MenuItemOptionSetId { get; set; } + + /// + /// Image Name + /// + /// Image Name + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Option set items + /// + /// Option set items + [DataMember(Name="MenuItemOptionSetItems", EmitDefaultValue=false)] + public List MenuItemOptionSetItems { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Catalog item Id when the OptionSet is associated to a Product + /// + /// Catalog item Id when the OptionSet is associated to a Product + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Menu item option set name + /// + /// Menu item option set name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + [DataMember(Name="IsMasterOptionSet", EmitDefaultValue=false)] + public bool? IsMasterOptionSet { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Minimum items must be selected + /// + /// Minimum items must be selected + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items can be selected + /// + /// Maximum number of items can be selected + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSet {\n"); + sb.Append(" MenuItemOptionSetId: ").Append(MenuItemOptionSetId).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuItemOptionSetItems: ").Append(MenuItemOptionSetItems).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsMasterOptionSet: ").Append(IsMasterOptionSet).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSet); + } + + /// + /// Returns true if MenuItemOptionSet instances are equal + /// + /// Instance of MenuItemOptionSet to be compared + /// Boolean + public bool Equals(MenuItemOptionSet input) + { + if (input == null) + return false; + + return + ( + this.MenuItemOptionSetId == input.MenuItemOptionSetId || + (this.MenuItemOptionSetId != null && + this.MenuItemOptionSetId.Equals(input.MenuItemOptionSetId)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuItemOptionSetItems == input.MenuItemOptionSetItems || + this.MenuItemOptionSetItems != null && + this.MenuItemOptionSetItems.SequenceEqual(input.MenuItemOptionSetItems) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsMasterOptionSet == input.IsMasterOptionSet || + (this.IsMasterOptionSet != null && + this.IsMasterOptionSet.Equals(input.IsMasterOptionSet)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemOptionSetId != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetId.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuItemOptionSetItems != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItems.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.IsMasterOptionSet != null) + hashCode = hashCode * 59 + this.IsMasterOptionSet.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetBase.cs b/src/Flipdish/Model/MenuItemOptionSetBase.cs new file mode 100644 index 00000000..05850ab0 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetBase.cs @@ -0,0 +1,248 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item option set + /// + [DataContract] + public partial class MenuItemOptionSetBase : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set name. + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\").. + /// Display order. Displayed in ascending order.. + /// Minimum items must be selected. + /// Maximum number of items can be selected. + /// Small | Medium | Large Affects the layout of the menu.. + /// Permanent reference to the item.. + public MenuItemOptionSetBase(string name = default(string), bool? isMasterOptionSet = default(bool?), int? displayOrder = default(int?), int? minSelectCount = default(int?), int? maxSelectCount = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), Guid? publicId = default(Guid?)) + { + this.Name = name; + this.IsMasterOptionSet = isMasterOptionSet; + this.DisplayOrder = displayOrder; + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.CellLayoutType = cellLayoutType; + this.PublicId = publicId; + } + + /// + /// Menu item option set name + /// + /// Menu item option set name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + /// + /// Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + [DataMember(Name="IsMasterOptionSet", EmitDefaultValue=false)] + public bool? IsMasterOptionSet { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Minimum items must be selected + /// + /// Minimum items must be selected + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items can be selected + /// + /// Maximum number of items can be selected + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsMasterOptionSet: ").Append(IsMasterOptionSet).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetBase); + } + + /// + /// Returns true if MenuItemOptionSetBase instances are equal + /// + /// Instance of MenuItemOptionSetBase to be compared + /// Boolean + public bool Equals(MenuItemOptionSetBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsMasterOptionSet == input.IsMasterOptionSet || + (this.IsMasterOptionSet != null && + this.IsMasterOptionSet.Equals(input.IsMasterOptionSet)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.IsMasterOptionSet != null) + hashCode = hashCode * 59 + this.IsMasterOptionSet.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetCreatedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetCreatedEvent.cs new file mode 100644 index 00000000..2a94f577 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetCreatedEvent + /// + [DataContract] + public partial class MenuItemOptionSetCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Created menu item optionset. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetCreatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSet menuItemOptionSet = default(MenuItemOptionSet), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSet = menuItemOptionSet; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Created menu item optionset + /// + /// Created menu item optionset + [DataMember(Name="MenuItemOptionSet", EmitDefaultValue=false)] + public MenuItemOptionSet MenuItemOptionSet { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetCreatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSet: ").Append(MenuItemOptionSet).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetCreatedEvent); + } + + /// + /// Returns true if MenuItemOptionSetCreatedEvent instances are equal + /// + /// Instance of MenuItemOptionSetCreatedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSet == input.MenuItemOptionSet || + (this.MenuItemOptionSet != null && + this.MenuItemOptionSet.Equals(input.MenuItemOptionSet)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSet != null) + hashCode = hashCode * 59 + this.MenuItemOptionSet.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetDeletedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetDeletedEvent.cs new file mode 100644 index 00000000..91d78ee1 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetDeletedEvent + /// + [DataContract] + public partial class MenuItemOptionSetDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Deleted menu item optionset. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetDeletedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSet menuItemOptionSet = default(MenuItemOptionSet), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSet = menuItemOptionSet; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Deleted menu item optionset + /// + /// Deleted menu item optionset + [DataMember(Name="MenuItemOptionSet", EmitDefaultValue=false)] + public MenuItemOptionSet MenuItemOptionSet { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetDeletedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSet: ").Append(MenuItemOptionSet).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetDeletedEvent); + } + + /// + /// Returns true if MenuItemOptionSetDeletedEvent instances are equal + /// + /// Instance of MenuItemOptionSetDeletedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSet == input.MenuItemOptionSet || + (this.MenuItemOptionSet != null && + this.MenuItemOptionSet.Equals(input.MenuItemOptionSet)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSet != null) + hashCode = hashCode * 59 + this.MenuItemOptionSet.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetItem.cs b/src/Flipdish/Model/MenuItemOptionSetItem.cs new file mode 100644 index 00000000..acf15fcb --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetItem.cs @@ -0,0 +1,384 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item option set item + /// + [DataContract] + public partial class MenuItemOptionSetItem : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set item identifier. + /// Permanent reference to the item.. + /// List of metadata. + /// if null, next option set is next. if -1, this is the final option set. + /// Catalog item Id when the OptionSet is associated to a Product. + /// Tax rate name. + /// TaxRateId.. + /// TaxValue.. + /// Name. + /// Price. + /// An optional fee that can be added to the price of the item.. + /// Is available. + /// Display order. Displayed in ascending order.. + /// Small | Medium | Large Affects the layout of the menu.. + /// Image url. + public MenuItemOptionSetItem(int? menuItemOptionSetItemId = default(int?), Guid? publicId = default(Guid?), List metadata = default(List), int? nextMenuItemOptionSetId = default(int?), string catalogItemId = default(string), string taxRateName = default(string), int? taxRateId = default(int?), double? taxValue = default(double?), string name = default(string), double? price = default(double?), double? depositReturnFee = default(double?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string)) + { + this.MenuItemOptionSetItemId = menuItemOptionSetItemId; + this.PublicId = publicId; + this.Metadata = metadata; + this.NextMenuItemOptionSetId = nextMenuItemOptionSetId; + this.CatalogItemId = catalogItemId; + this.TaxRateName = taxRateName; + this.TaxRateId = taxRateId; + this.TaxValue = taxValue; + this.Name = name; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.IsAvailable = isAvailable; + this.DisplayOrder = displayOrder; + this.CellLayoutType = cellLayoutType; + this.ImageUrl = imageUrl; + } + + /// + /// Menu item option set item identifier + /// + /// Menu item option set item identifier + [DataMember(Name="MenuItemOptionSetItemId", EmitDefaultValue=false)] + public int? MenuItemOptionSetItemId { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public List Metadata { get; set; } + + /// + /// if null, next option set is next. if -1, this is the final option set + /// + /// if null, next option set is next. if -1, this is the final option set + [DataMember(Name="NextMenuItemOptionSetId", EmitDefaultValue=false)] + public int? NextMenuItemOptionSetId { get; set; } + + /// + /// Catalog item Id when the OptionSet is associated to a Product + /// + /// Catalog item Id when the OptionSet is associated to a Product + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Tax rate name + /// + /// Tax rate name + [DataMember(Name="TaxRateName", EmitDefaultValue=false)] + public string TaxRateName { get; set; } + + /// + /// TaxRateId. + /// + /// TaxRateId. + [DataMember(Name="TaxRateId", EmitDefaultValue=false)] + public int? TaxRateId { get; set; } + + /// + /// TaxValue. + /// + /// TaxValue. + [DataMember(Name="TaxValue", EmitDefaultValue=false)] + public double? TaxValue { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Price + /// + /// Price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetItem {\n"); + sb.Append(" MenuItemOptionSetItemId: ").Append(MenuItemOptionSetItemId).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" NextMenuItemOptionSetId: ").Append(NextMenuItemOptionSetId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" TaxRateName: ").Append(TaxRateName).Append("\n"); + sb.Append(" TaxRateId: ").Append(TaxRateId).Append("\n"); + sb.Append(" TaxValue: ").Append(TaxValue).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetItem); + } + + /// + /// Returns true if MenuItemOptionSetItem instances are equal + /// + /// Instance of MenuItemOptionSetItem to be compared + /// Boolean + public bool Equals(MenuItemOptionSetItem input) + { + if (input == null) + return false; + + return + ( + this.MenuItemOptionSetItemId == input.MenuItemOptionSetItemId || + (this.MenuItemOptionSetItemId != null && + this.MenuItemOptionSetItemId.Equals(input.MenuItemOptionSetItemId)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.NextMenuItemOptionSetId == input.NextMenuItemOptionSetId || + (this.NextMenuItemOptionSetId != null && + this.NextMenuItemOptionSetId.Equals(input.NextMenuItemOptionSetId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.TaxRateName == input.TaxRateName || + (this.TaxRateName != null && + this.TaxRateName.Equals(input.TaxRateName)) + ) && + ( + this.TaxRateId == input.TaxRateId || + (this.TaxRateId != null && + this.TaxRateId.Equals(input.TaxRateId)) + ) && + ( + this.TaxValue == input.TaxValue || + (this.TaxValue != null && + this.TaxValue.Equals(input.TaxValue)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItemOptionSetItemId != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItemId.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.NextMenuItemOptionSetId != null) + hashCode = hashCode * 59 + this.NextMenuItemOptionSetId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.TaxRateName != null) + hashCode = hashCode * 59 + this.TaxRateName.GetHashCode(); + if (this.TaxRateId != null) + hashCode = hashCode * 59 + this.TaxRateId.GetHashCode(); + if (this.TaxValue != null) + hashCode = hashCode * 59 + this.TaxValue.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetItemBase.cs b/src/Flipdish/Model/MenuItemOptionSetItemBase.cs new file mode 100644 index 00000000..9fbc286c --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetItemBase.cs @@ -0,0 +1,265 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item option set item + /// + [DataContract] + public partial class MenuItemOptionSetItemBase : IEquatable + { + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Name. + /// Price. + /// An optional fee that can be added to the price of the item.. + /// Is available. + /// Display order. Displayed in ascending order.. + /// Small | Medium | Large Affects the layout of the menu.. + /// Image url. + /// Permanent reference to the item.. + public MenuItemOptionSetItemBase(string name = default(string), double? price = default(double?), double? depositReturnFee = default(double?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string), Guid? publicId = default(Guid?)) + { + this.Name = name; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.IsAvailable = isAvailable; + this.DisplayOrder = displayOrder; + this.CellLayoutType = cellLayoutType; + this.ImageUrl = imageUrl; + this.PublicId = publicId; + } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Price + /// + /// Price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Display order. Displayed in ascending order. + /// + /// Display order. Displayed in ascending order. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetItemBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetItemBase); + } + + /// + /// Returns true if MenuItemOptionSetItemBase instances are equal + /// + /// Instance of MenuItemOptionSetItemBase to be compared + /// Boolean + public bool Equals(MenuItemOptionSetItemBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetItemCreatedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetItemCreatedEvent.cs new file mode 100644 index 00000000..1fe0ba5b --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetItemCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetItemCreatedEvent + /// + [DataContract] + public partial class MenuItemOptionSetItemCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Created menu item optionset item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetItemCreatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSetItem menuItemOptionSetItem = default(MenuItemOptionSetItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSetItem = menuItemOptionSetItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Created menu item optionset item + /// + /// Created menu item optionset item + [DataMember(Name="MenuItemOptionSetItem", EmitDefaultValue=false)] + public MenuItemOptionSetItem MenuItemOptionSetItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetItemCreatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSetItem: ").Append(MenuItemOptionSetItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetItemCreatedEvent); + } + + /// + /// Returns true if MenuItemOptionSetItemCreatedEvent instances are equal + /// + /// Instance of MenuItemOptionSetItemCreatedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetItemCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSetItem == input.MenuItemOptionSetItem || + (this.MenuItemOptionSetItem != null && + this.MenuItemOptionSetItem.Equals(input.MenuItemOptionSetItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSetItem != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetItemDeletedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetItemDeletedEvent.cs new file mode 100644 index 00000000..de145524 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetItemDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetItemDeletedEvent + /// + [DataContract] + public partial class MenuItemOptionSetItemDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Deleted menu item optionset item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetItemDeletedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSetItem menuItemOptionSetItem = default(MenuItemOptionSetItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSetItem = menuItemOptionSetItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Deleted menu item optionset item + /// + /// Deleted menu item optionset item + [DataMember(Name="MenuItemOptionSetItem", EmitDefaultValue=false)] + public MenuItemOptionSetItem MenuItemOptionSetItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetItemDeletedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSetItem: ").Append(MenuItemOptionSetItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetItemDeletedEvent); + } + + /// + /// Returns true if MenuItemOptionSetItemDeletedEvent instances are equal + /// + /// Instance of MenuItemOptionSetItemDeletedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetItemDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSetItem == input.MenuItemOptionSetItem || + (this.MenuItemOptionSetItem != null && + this.MenuItemOptionSetItem.Equals(input.MenuItemOptionSetItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSetItem != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetItemUpdatedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetItemUpdatedEvent.cs new file mode 100644 index 00000000..408ce3d1 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetItemUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetItemUpdatedEvent + /// + [DataContract] + public partial class MenuItemOptionSetItemUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Updated menu item optionset item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetItemUpdatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSetItem menuItemOptionSetItem = default(MenuItemOptionSetItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSetItem = menuItemOptionSetItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Updated menu item optionset item + /// + /// Updated menu item optionset item + [DataMember(Name="MenuItemOptionSetItem", EmitDefaultValue=false)] + public MenuItemOptionSetItem MenuItemOptionSetItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetItemUpdatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSetItem: ").Append(MenuItemOptionSetItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetItemUpdatedEvent); + } + + /// + /// Returns true if MenuItemOptionSetItemUpdatedEvent instances are equal + /// + /// Instance of MenuItemOptionSetItemUpdatedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetItemUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSetItem == input.MenuItemOptionSetItem || + (this.MenuItemOptionSetItem != null && + this.MenuItemOptionSetItem.Equals(input.MenuItemOptionSetItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSetItem != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuItemOptionSetUpdatedEvent.cs b/src/Flipdish/Model/MenuItemOptionSetUpdatedEvent.cs new file mode 100644 index 00000000..7c355012 --- /dev/null +++ b/src/Flipdish/Model/MenuItemOptionSetUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuItemOptionSetUpdatedEvent + /// + [DataContract] + public partial class MenuItemOptionSetUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Updated menu item optionset. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuItemOptionSetUpdatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSet menuItemOptionSet = default(MenuItemOptionSet), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuItemOptionSet = menuItemOptionSet; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Updated menu item optionset + /// + /// Updated menu item optionset + [DataMember(Name="MenuItemOptionSet", EmitDefaultValue=false)] + public MenuItemOptionSet MenuItemOptionSet { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuItemOptionSetUpdatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuItemOptionSet: ").Append(MenuItemOptionSet).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuItemOptionSetUpdatedEvent); + } + + /// + /// Returns true if MenuItemOptionSetUpdatedEvent instances are equal + /// + /// Instance of MenuItemOptionSetUpdatedEvent to be compared + /// Boolean + public bool Equals(MenuItemOptionSetUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuItemOptionSet == input.MenuItemOptionSet || + (this.MenuItemOptionSet != null && + this.MenuItemOptionSet.Equals(input.MenuItemOptionSet)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuItemOptionSet != null) + hashCode = hashCode * 59 + this.MenuItemOptionSet.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuNutritionInfoHeader.cs b/src/Flipdish/Model/MenuNutritionInfoHeader.cs new file mode 100644 index 00000000..5f093645 --- /dev/null +++ b/src/Flipdish/Model/MenuNutritionInfoHeader.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuNutritionInfoHeader. + /// + [DataContract] + public partial class MenuNutritionInfoHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu Id. + /// Nutrition information version guid (generated every time the nutrition information is updated). + /// Absolute URL of the nutrition information json file. + public MenuNutritionInfoHeader(int? menuId = default(int?), Guid? nutritionInfoVersionGuid = default(Guid?), string absoluteUrl = default(string)) + { + this.MenuId = menuId; + this.NutritionInfoVersionGuid = nutritionInfoVersionGuid; + this.AbsoluteUrl = absoluteUrl; + } + + /// + /// Menu Id + /// + /// Menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Nutrition information version guid (generated every time the nutrition information is updated) + /// + /// Nutrition information version guid (generated every time the nutrition information is updated) + [DataMember(Name="NutritionInfoVersionGuid", EmitDefaultValue=false)] + public Guid? NutritionInfoVersionGuid { get; set; } + + /// + /// Absolute URL of the nutrition information json file + /// + /// Absolute URL of the nutrition information json file + [DataMember(Name="AbsoluteUrl", EmitDefaultValue=false)] + public string AbsoluteUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuNutritionInfoHeader {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" NutritionInfoVersionGuid: ").Append(NutritionInfoVersionGuid).Append("\n"); + sb.Append(" AbsoluteUrl: ").Append(AbsoluteUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuNutritionInfoHeader); + } + + /// + /// Returns true if MenuNutritionInfoHeader instances are equal + /// + /// Instance of MenuNutritionInfoHeader to be compared + /// Boolean + public bool Equals(MenuNutritionInfoHeader input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.NutritionInfoVersionGuid == input.NutritionInfoVersionGuid || + (this.NutritionInfoVersionGuid != null && + this.NutritionInfoVersionGuid.Equals(input.NutritionInfoVersionGuid)) + ) && + ( + this.AbsoluteUrl == input.AbsoluteUrl || + (this.AbsoluteUrl != null && + this.AbsoluteUrl.Equals(input.AbsoluteUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.NutritionInfoVersionGuid != null) + hashCode = hashCode * 59 + this.NutritionInfoVersionGuid.GetHashCode(); + if (this.AbsoluteUrl != null) + hashCode = hashCode * 59 + this.AbsoluteUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuObjectDisplayOrders.cs b/src/Flipdish/Model/MenuObjectDisplayOrders.cs new file mode 100644 index 00000000..fc4f81fe --- /dev/null +++ b/src/Flipdish/Model/MenuObjectDisplayOrders.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Collection of Display Orders for a Menu Object (Menu Section / Menu Items / Option Sets etc) + /// + [DataContract] + public partial class MenuObjectDisplayOrders : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// List of Objects and their new Display Orders. + public MenuObjectDisplayOrders(List displayOrders = default(List)) + { + this.DisplayOrders = displayOrders; + } + + /// + /// List of Objects and their new Display Orders + /// + /// List of Objects and their new Display Orders + [DataMember(Name="DisplayOrders", EmitDefaultValue=false)] + public List DisplayOrders { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuObjectDisplayOrders {\n"); + sb.Append(" DisplayOrders: ").Append(DisplayOrders).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuObjectDisplayOrders); + } + + /// + /// Returns true if MenuObjectDisplayOrders instances are equal + /// + /// Instance of MenuObjectDisplayOrders to be compared + /// Boolean + public bool Equals(MenuObjectDisplayOrders input) + { + if (input == null) + return false; + + return + ( + this.DisplayOrders == input.DisplayOrders || + this.DisplayOrders != null && + this.DisplayOrders.SequenceEqual(input.DisplayOrders) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayOrders != null) + hashCode = hashCode * 59 + this.DisplayOrders.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSection.cs b/src/Flipdish/Model/MenuSection.cs new file mode 100644 index 00000000..c9f259c8 --- /dev/null +++ b/src/Flipdish/Model/MenuSection.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu section + /// + [DataContract] + public partial class MenuSection : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu section identifier. + /// Menu items. + /// Menu section availability. + /// Permanent reference to the item.. + /// Image Name. + /// Name. + /// Description. + /// Display order. + /// Is available. + /// Is hidden from customer. Perhaps when the item is out of stock.. + /// Image url. + public MenuSection(int? menuSectionId = default(int?), List menuItems = default(List), MenuSectionAvailability menuSectionAvailability = default(MenuSectionAvailability), Guid? publicId = default(Guid?), string imageName = default(string), string name = default(string), string description = default(string), int? displayOrder = default(int?), bool? isAvailable = default(bool?), bool? isHiddenFromCustomers = default(bool?), string imageUrl = default(string)) + { + this.MenuSectionId = menuSectionId; + this.MenuItems = menuItems; + this.MenuSectionAvailability = menuSectionAvailability; + this.PublicId = publicId; + this.ImageName = imageName; + this.Name = name; + this.Description = description; + this.DisplayOrder = displayOrder; + this.IsAvailable = isAvailable; + this.IsHiddenFromCustomers = isHiddenFromCustomers; + this.ImageUrl = imageUrl; + } + + /// + /// Menu section identifier + /// + /// Menu section identifier + [DataMember(Name="MenuSectionId", EmitDefaultValue=false)] + public int? MenuSectionId { get; set; } + + /// + /// Menu items + /// + /// Menu items + [DataMember(Name="MenuItems", EmitDefaultValue=false)] + public List MenuItems { get; set; } + + /// + /// Menu section availability + /// + /// Menu section availability + [DataMember(Name="MenuSectionAvailability", EmitDefaultValue=false)] + public MenuSectionAvailability MenuSectionAvailability { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Image Name + /// + /// Image Name + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + [DataMember(Name="IsHiddenFromCustomers", EmitDefaultValue=false)] + public bool? IsHiddenFromCustomers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSection {\n"); + sb.Append(" MenuSectionId: ").Append(MenuSectionId).Append("\n"); + sb.Append(" MenuItems: ").Append(MenuItems).Append("\n"); + sb.Append(" MenuSectionAvailability: ").Append(MenuSectionAvailability).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" IsHiddenFromCustomers: ").Append(IsHiddenFromCustomers).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSection); + } + + /// + /// Returns true if MenuSection instances are equal + /// + /// Instance of MenuSection to be compared + /// Boolean + public bool Equals(MenuSection input) + { + if (input == null) + return false; + + return + ( + this.MenuSectionId == input.MenuSectionId || + (this.MenuSectionId != null && + this.MenuSectionId.Equals(input.MenuSectionId)) + ) && + ( + this.MenuItems == input.MenuItems || + this.MenuItems != null && + this.MenuItems.SequenceEqual(input.MenuItems) + ) && + ( + this.MenuSectionAvailability == input.MenuSectionAvailability || + (this.MenuSectionAvailability != null && + this.MenuSectionAvailability.Equals(input.MenuSectionAvailability)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.IsHiddenFromCustomers == input.IsHiddenFromCustomers || + (this.IsHiddenFromCustomers != null && + this.IsHiddenFromCustomers.Equals(input.IsHiddenFromCustomers)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuSectionId != null) + hashCode = hashCode * 59 + this.MenuSectionId.GetHashCode(); + if (this.MenuItems != null) + hashCode = hashCode * 59 + this.MenuItems.GetHashCode(); + if (this.MenuSectionAvailability != null) + hashCode = hashCode * 59 + this.MenuSectionAvailability.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.IsHiddenFromCustomers != null) + hashCode = hashCode * 59 + this.IsHiddenFromCustomers.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionAvailability.cs b/src/Flipdish/Model/MenuSectionAvailability.cs new file mode 100644 index 00000000..2e859f27 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionAvailability.cs @@ -0,0 +1,163 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu section availability + /// + [DataContract] + public partial class MenuSectionAvailability : IEquatable + { + /// + /// Availability mode + /// + /// Availability mode + [JsonConverter(typeof(StringEnumConverter))] + public enum AvailabilityModeEnum + { + + /// + /// Enum DisplayAlways for value: DisplayAlways + /// + [EnumMember(Value = "DisplayAlways")] + DisplayAlways = 1, + + /// + /// Enum DisplayBasedOnTimes for value: DisplayBasedOnTimes + /// + [EnumMember(Value = "DisplayBasedOnTimes")] + DisplayBasedOnTimes = 2, + + /// + /// Enum DisplayAlwaysStartCollapsed for value: DisplayAlwaysStartCollapsed + /// + [EnumMember(Value = "DisplayAlwaysStartCollapsed")] + DisplayAlwaysStartCollapsed = 3, + + /// + /// Enum DisplayAlwaysStartCollapsedBasedOnTimes for value: DisplayAlwaysStartCollapsedBasedOnTimes + /// + [EnumMember(Value = "DisplayAlwaysStartCollapsedBasedOnTimes")] + DisplayAlwaysStartCollapsedBasedOnTimes = 4 + } + + /// + /// Availability mode + /// + /// Availability mode + [DataMember(Name="AvailabilityMode", EmitDefaultValue=false)] + public AvailabilityModeEnum? AvailabilityMode { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Available times. + /// Availability mode. + public MenuSectionAvailability(List availableTimes = default(List), AvailabilityModeEnum? availabilityMode = default(AvailabilityModeEnum?)) + { + this.AvailableTimes = availableTimes; + this.AvailabilityMode = availabilityMode; + } + + /// + /// Available times + /// + /// Available times + [DataMember(Name="AvailableTimes", EmitDefaultValue=false)] + public List AvailableTimes { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionAvailability {\n"); + sb.Append(" AvailableTimes: ").Append(AvailableTimes).Append("\n"); + sb.Append(" AvailabilityMode: ").Append(AvailabilityMode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionAvailability); + } + + /// + /// Returns true if MenuSectionAvailability instances are equal + /// + /// Instance of MenuSectionAvailability to be compared + /// Boolean + public bool Equals(MenuSectionAvailability input) + { + if (input == null) + return false; + + return + ( + this.AvailableTimes == input.AvailableTimes || + this.AvailableTimes != null && + this.AvailableTimes.SequenceEqual(input.AvailableTimes) + ) && + ( + this.AvailabilityMode == input.AvailabilityMode || + (this.AvailabilityMode != null && + this.AvailabilityMode.Equals(input.AvailabilityMode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AvailableTimes != null) + hashCode = hashCode * 59 + this.AvailableTimes.GetHashCode(); + if (this.AvailabilityMode != null) + hashCode = hashCode * 59 + this.AvailabilityMode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionAvailabilityBase.cs b/src/Flipdish/Model/MenuSectionAvailabilityBase.cs new file mode 100644 index 00000000..ddc20e79 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionAvailabilityBase.cs @@ -0,0 +1,146 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu section availability + /// + [DataContract] + public partial class MenuSectionAvailabilityBase : IEquatable + { + /// + /// Availability mode + /// + /// Availability mode + [JsonConverter(typeof(StringEnumConverter))] + public enum AvailabilityModeEnum + { + + /// + /// Enum DisplayAlways for value: DisplayAlways + /// + [EnumMember(Value = "DisplayAlways")] + DisplayAlways = 1, + + /// + /// Enum DisplayBasedOnTimes for value: DisplayBasedOnTimes + /// + [EnumMember(Value = "DisplayBasedOnTimes")] + DisplayBasedOnTimes = 2, + + /// + /// Enum DisplayAlwaysStartCollapsed for value: DisplayAlwaysStartCollapsed + /// + [EnumMember(Value = "DisplayAlwaysStartCollapsed")] + DisplayAlwaysStartCollapsed = 3, + + /// + /// Enum DisplayAlwaysStartCollapsedBasedOnTimes for value: DisplayAlwaysStartCollapsedBasedOnTimes + /// + [EnumMember(Value = "DisplayAlwaysStartCollapsedBasedOnTimes")] + DisplayAlwaysStartCollapsedBasedOnTimes = 4 + } + + /// + /// Availability mode + /// + /// Availability mode + [DataMember(Name="AvailabilityMode", EmitDefaultValue=false)] + public AvailabilityModeEnum? AvailabilityMode { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Availability mode. + public MenuSectionAvailabilityBase(AvailabilityModeEnum? availabilityMode = default(AvailabilityModeEnum?)) + { + this.AvailabilityMode = availabilityMode; + } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionAvailabilityBase {\n"); + sb.Append(" AvailabilityMode: ").Append(AvailabilityMode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionAvailabilityBase); + } + + /// + /// Returns true if MenuSectionAvailabilityBase instances are equal + /// + /// Instance of MenuSectionAvailabilityBase to be compared + /// Boolean + public bool Equals(MenuSectionAvailabilityBase input) + { + if (input == null) + return false; + + return + ( + this.AvailabilityMode == input.AvailabilityMode || + (this.AvailabilityMode != null && + this.AvailabilityMode.Equals(input.AvailabilityMode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AvailabilityMode != null) + hashCode = hashCode * 59 + this.AvailabilityMode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionBase.cs b/src/Flipdish/Model/MenuSectionBase.cs new file mode 100644 index 00000000..acd2a6ee --- /dev/null +++ b/src/Flipdish/Model/MenuSectionBase.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu section + /// + [DataContract] + public partial class MenuSectionBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name. + /// Description. + /// Display order. + /// Is available. + /// Is hidden from customer. Perhaps when the item is out of stock.. + /// Image url. + /// Menu Section Id. + /// Permanent reference to the item.. + public MenuSectionBase(string name = default(string), string description = default(string), int? displayOrder = default(int?), bool? isAvailable = default(bool?), bool? isHiddenFromCustomers = default(bool?), string imageUrl = default(string), int? menuSectionId = default(int?), Guid? publicId = default(Guid?)) + { + this.Name = name; + this.Description = description; + this.DisplayOrder = displayOrder; + this.IsAvailable = isAvailable; + this.IsHiddenFromCustomers = isHiddenFromCustomers; + this.ImageUrl = imageUrl; + this.MenuSectionId = menuSectionId; + this.PublicId = publicId; + } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + /// + /// Is hidden from customer. Perhaps when the item is out of stock. + [DataMember(Name="IsHiddenFromCustomers", EmitDefaultValue=false)] + public bool? IsHiddenFromCustomers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu Section Id + /// + /// Menu Section Id + [DataMember(Name="MenuSectionId", EmitDefaultValue=false)] + public int? MenuSectionId { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" IsHiddenFromCustomers: ").Append(IsHiddenFromCustomers).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuSectionId: ").Append(MenuSectionId).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionBase); + } + + /// + /// Returns true if MenuSectionBase instances are equal + /// + /// Instance of MenuSectionBase to be compared + /// Boolean + public bool Equals(MenuSectionBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.IsHiddenFromCustomers == input.IsHiddenFromCustomers || + (this.IsHiddenFromCustomers != null && + this.IsHiddenFromCustomers.Equals(input.IsHiddenFromCustomers)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuSectionId == input.MenuSectionId || + (this.MenuSectionId != null && + this.MenuSectionId.Equals(input.MenuSectionId)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.IsHiddenFromCustomers != null) + hashCode = hashCode * 59 + this.IsHiddenFromCustomers.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuSectionId != null) + hashCode = hashCode * 59 + this.MenuSectionId.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionCreatedEvent.cs b/src/Flipdish/Model/MenuSectionCreatedEvent.cs new file mode 100644 index 00000000..39e98482 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionCreatedEvent + /// + [DataContract] + public partial class MenuSectionCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Created menu section. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionCreatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSection menuSection = default(MenuSection), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSection = menuSection; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Created menu section + /// + /// Created menu section + [DataMember(Name="MenuSection", EmitDefaultValue=false)] + public MenuSection MenuSection { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionCreatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSection: ").Append(MenuSection).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionCreatedEvent); + } + + /// + /// Returns true if MenuSectionCreatedEvent instances are equal + /// + /// Instance of MenuSectionCreatedEvent to be compared + /// Boolean + public bool Equals(MenuSectionCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSection == input.MenuSection || + (this.MenuSection != null && + this.MenuSection.Equals(input.MenuSection)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSection != null) + hashCode = hashCode * 59 + this.MenuSection.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionDeletedEvent.cs b/src/Flipdish/Model/MenuSectionDeletedEvent.cs new file mode 100644 index 00000000..7dbb1a4b --- /dev/null +++ b/src/Flipdish/Model/MenuSectionDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionDeletedEvent + /// + [DataContract] + public partial class MenuSectionDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Deleted menu section. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionDeletedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSection menuSection = default(MenuSection), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSection = menuSection; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Deleted menu section + /// + /// Deleted menu section + [DataMember(Name="MenuSection", EmitDefaultValue=false)] + public MenuSection MenuSection { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionDeletedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSection: ").Append(MenuSection).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionDeletedEvent); + } + + /// + /// Returns true if MenuSectionDeletedEvent instances are equal + /// + /// Instance of MenuSectionDeletedEvent to be compared + /// Boolean + public bool Equals(MenuSectionDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSection == input.MenuSection || + (this.MenuSection != null && + this.MenuSection.Equals(input.MenuSection)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSection != null) + hashCode = hashCode * 59 + this.MenuSection.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionItem.cs b/src/Flipdish/Model/MenuSectionItem.cs new file mode 100644 index 00000000..07a4af9c --- /dev/null +++ b/src/Flipdish/Model/MenuSectionItem.cs @@ -0,0 +1,553 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item + /// + [DataContract] + public partial class MenuSectionItem : IEquatable + { + /// + /// Spiciness rating + /// + /// Spiciness rating + [JsonConverter(typeof(StringEnumConverter))] + public enum SpicinessRatingEnum + { + + /// + /// Enum NotRated for value: NotRated + /// + [EnumMember(Value = "NotRated")] + NotRated = 1, + + /// + /// Enum Mild for value: Mild + /// + [EnumMember(Value = "Mild")] + Mild = 2, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 3, + + /// + /// Enum Hot for value: Hot + /// + [EnumMember(Value = "Hot")] + Hot = 4 + } + + /// + /// Spiciness rating + /// + /// Spiciness rating + [DataMember(Name="SpicinessRating", EmitDefaultValue=false)] + public SpicinessRatingEnum? SpicinessRating { get; set; } + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Actual price - the minimum price possible when all required option set items prices are included.. + /// Menu item option sets. + /// Daily special hours. + /// Permanent reference to the item.. + /// Tax rate name. + /// TaxRate. + /// TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision). + /// If true, the item is excluded from voucher discount calculations. + /// List of metadata. + /// Catalog item Id when the Item is associated to a Product. + /// Menu item name (like \"Korma\"). + /// Description (like \"A lovely dish from the east\"). + /// Spiciness rating. + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists.. + /// An optional fee that can be added to the price of the item.. + /// Display order. + /// To be set true if the item or an option of the item contains an alcoholic drink.. + /// True if we accept orders for this item still. + /// Small | Medium | Large Affects the layout of the menu.. + /// If true, then vouchers won't be applied for this item. + /// Image url. + /// Image url. + /// Menu Item Id. + public MenuSectionItem(double? actualPrice = default(double?), List menuItemOptionSets = default(List), List dailySpecialHours = default(List), Guid? publicId = default(Guid?), string taxRateName = default(string), int? taxRateId = default(int?), double? taxValue = default(double?), bool? excludeFromVoucherDiscounting = default(bool?), List metadata = default(List), string catalogItemId = default(string), string name = default(string), string description = default(string), SpicinessRatingEnum? spicinessRating = default(SpicinessRatingEnum?), double? price = default(double?), double? depositReturnFee = default(double?), int? displayOrder = default(int?), bool? alcohol = default(bool?), bool? isAvailable = default(bool?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), bool? disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string), int? menuItemId = default(int?)) + { + this.ActualPrice = actualPrice; + this.MenuItemOptionSets = menuItemOptionSets; + this.DailySpecialHours = dailySpecialHours; + this.PublicId = publicId; + this.TaxRateName = taxRateName; + this.TaxRateId = taxRateId; + this.TaxValue = taxValue; + this.ExcludeFromVoucherDiscounting = excludeFromVoucherDiscounting; + this.Metadata = metadata; + this.CatalogItemId = catalogItemId; + this.Name = name; + this.Description = description; + this.SpicinessRating = spicinessRating; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.DisplayOrder = displayOrder; + this.Alcohol = alcohol; + this.IsAvailable = isAvailable; + this.CellLayoutType = cellLayoutType; + this.DisableVouchers = disableVouchers; + this.ImageName = imageName; + this.ImageUrl = imageUrl; + this.MenuItemId = menuItemId; + } + + /// + /// Actual price - the minimum price possible when all required option set items prices are included. + /// + /// Actual price - the minimum price possible when all required option set items prices are included. + [DataMember(Name="ActualPrice", EmitDefaultValue=false)] + public double? ActualPrice { get; set; } + + /// + /// Menu item option sets + /// + /// Menu item option sets + [DataMember(Name="MenuItemOptionSets", EmitDefaultValue=false)] + public List MenuItemOptionSets { get; set; } + + /// + /// Daily special hours + /// + /// Daily special hours + [DataMember(Name="DailySpecialHours", EmitDefaultValue=false)] + public List DailySpecialHours { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Tax rate name + /// + /// Tax rate name + [DataMember(Name="TaxRateName", EmitDefaultValue=false)] + public string TaxRateName { get; set; } + + /// + /// TaxRate + /// + /// TaxRate + [DataMember(Name="TaxRateId", EmitDefaultValue=false)] + public int? TaxRateId { get; set; } + + /// + /// TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision) + /// + /// TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision) + [DataMember(Name="TaxValue", EmitDefaultValue=false)] + public double? TaxValue { get; set; } + + /// + /// If true, the item is excluded from voucher discount calculations + /// + /// If true, the item is excluded from voucher discount calculations + [DataMember(Name="ExcludeFromVoucherDiscounting", EmitDefaultValue=false)] + public bool? ExcludeFromVoucherDiscounting { get; set; } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public List Metadata { get; set; } + + /// + /// Catalog item Id when the Item is associated to a Product + /// + /// Catalog item Id when the Item is associated to a Product + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Menu item name (like \"Korma\") + /// + /// Menu item name (like \"Korma\") + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description (like \"A lovely dish from the east\") + /// + /// Description (like \"A lovely dish from the east\") + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// True if we accept orders for this item still + /// + /// True if we accept orders for this item still + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + + /// + /// If true, then vouchers won't be applied for this item + /// + /// If true, then vouchers won't be applied for this item + [DataMember(Name="DisableVouchers", EmitDefaultValue=false)] + public bool? DisableVouchers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu Item Id + /// + /// Menu Item Id + [DataMember(Name="MenuItemId", EmitDefaultValue=false)] + public int? MenuItemId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionItem {\n"); + sb.Append(" ActualPrice: ").Append(ActualPrice).Append("\n"); + sb.Append(" MenuItemOptionSets: ").Append(MenuItemOptionSets).Append("\n"); + sb.Append(" DailySpecialHours: ").Append(DailySpecialHours).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" TaxRateName: ").Append(TaxRateName).Append("\n"); + sb.Append(" TaxRateId: ").Append(TaxRateId).Append("\n"); + sb.Append(" TaxValue: ").Append(TaxValue).Append("\n"); + sb.Append(" ExcludeFromVoucherDiscounting: ").Append(ExcludeFromVoucherDiscounting).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" SpicinessRating: ").Append(SpicinessRating).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" DisableVouchers: ").Append(DisableVouchers).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuItemId: ").Append(MenuItemId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionItem); + } + + /// + /// Returns true if MenuSectionItem instances are equal + /// + /// Instance of MenuSectionItem to be compared + /// Boolean + public bool Equals(MenuSectionItem input) + { + if (input == null) + return false; + + return + ( + this.ActualPrice == input.ActualPrice || + (this.ActualPrice != null && + this.ActualPrice.Equals(input.ActualPrice)) + ) && + ( + this.MenuItemOptionSets == input.MenuItemOptionSets || + this.MenuItemOptionSets != null && + this.MenuItemOptionSets.SequenceEqual(input.MenuItemOptionSets) + ) && + ( + this.DailySpecialHours == input.DailySpecialHours || + this.DailySpecialHours != null && + this.DailySpecialHours.SequenceEqual(input.DailySpecialHours) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.TaxRateName == input.TaxRateName || + (this.TaxRateName != null && + this.TaxRateName.Equals(input.TaxRateName)) + ) && + ( + this.TaxRateId == input.TaxRateId || + (this.TaxRateId != null && + this.TaxRateId.Equals(input.TaxRateId)) + ) && + ( + this.TaxValue == input.TaxValue || + (this.TaxValue != null && + this.TaxValue.Equals(input.TaxValue)) + ) && + ( + this.ExcludeFromVoucherDiscounting == input.ExcludeFromVoucherDiscounting || + (this.ExcludeFromVoucherDiscounting != null && + this.ExcludeFromVoucherDiscounting.Equals(input.ExcludeFromVoucherDiscounting)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SpicinessRating == input.SpicinessRating || + (this.SpicinessRating != null && + this.SpicinessRating.Equals(input.SpicinessRating)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.DisableVouchers == input.DisableVouchers || + (this.DisableVouchers != null && + this.DisableVouchers.Equals(input.DisableVouchers)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuItemId == input.MenuItemId || + (this.MenuItemId != null && + this.MenuItemId.Equals(input.MenuItemId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActualPrice != null) + hashCode = hashCode * 59 + this.ActualPrice.GetHashCode(); + if (this.MenuItemOptionSets != null) + hashCode = hashCode * 59 + this.MenuItemOptionSets.GetHashCode(); + if (this.DailySpecialHours != null) + hashCode = hashCode * 59 + this.DailySpecialHours.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.TaxRateName != null) + hashCode = hashCode * 59 + this.TaxRateName.GetHashCode(); + if (this.TaxRateId != null) + hashCode = hashCode * 59 + this.TaxRateId.GetHashCode(); + if (this.TaxValue != null) + hashCode = hashCode * 59 + this.TaxValue.GetHashCode(); + if (this.ExcludeFromVoucherDiscounting != null) + hashCode = hashCode * 59 + this.ExcludeFromVoucherDiscounting.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SpicinessRating != null) + hashCode = hashCode * 59 + this.SpicinessRating.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.DisableVouchers != null) + hashCode = hashCode * 59 + this.DisableVouchers.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuItemId != null) + hashCode = hashCode * 59 + this.MenuItemId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionItemBase.cs b/src/Flipdish/Model/MenuSectionItemBase.cs new file mode 100644 index 00000000..52e6cb53 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionItemBase.cs @@ -0,0 +1,417 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu item + /// + [DataContract] + public partial class MenuSectionItemBase : IEquatable + { + /// + /// Spiciness rating + /// + /// Spiciness rating + [JsonConverter(typeof(StringEnumConverter))] + public enum SpicinessRatingEnum + { + + /// + /// Enum NotRated for value: NotRated + /// + [EnumMember(Value = "NotRated")] + NotRated = 1, + + /// + /// Enum Mild for value: Mild + /// + [EnumMember(Value = "Mild")] + Mild = 2, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 3, + + /// + /// Enum Hot for value: Hot + /// + [EnumMember(Value = "Hot")] + Hot = 4 + } + + /// + /// Spiciness rating + /// + /// Spiciness rating + [DataMember(Name="SpicinessRating", EmitDefaultValue=false)] + public SpicinessRatingEnum? SpicinessRating { get; set; } + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [JsonConverter(typeof(StringEnumConverter))] + public enum CellLayoutTypeEnum + { + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 1, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 2, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 3, + + /// + /// Enum HiddenImage for value: HiddenImage + /// + [EnumMember(Value = "HiddenImage")] + HiddenImage = 4 + } + + /// + /// Small | Medium | Large Affects the layout of the menu. + /// + /// Small | Medium | Large Affects the layout of the menu. + [DataMember(Name="CellLayoutType", EmitDefaultValue=false)] + public CellLayoutTypeEnum? CellLayoutType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Menu item name (like \"Korma\"). + /// Description (like \"A lovely dish from the east\"). + /// Spiciness rating. + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists.. + /// An optional fee that can be added to the price of the item.. + /// Display order. + /// To be set true if the item or an option of the item contains an alcoholic drink.. + /// True if we accept orders for this item still. + /// Small | Medium | Large Affects the layout of the menu.. + /// If true, then vouchers won't be applied for this item. + /// Image url. + /// Image url. + /// Menu Item Id. + /// If true, the item is excluded from voucher discount calculations. + /// Permanent reference to the item.. + public MenuSectionItemBase(string name = default(string), string description = default(string), SpicinessRatingEnum? spicinessRating = default(SpicinessRatingEnum?), double? price = default(double?), double? depositReturnFee = default(double?), int? displayOrder = default(int?), bool? alcohol = default(bool?), bool? isAvailable = default(bool?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), bool? disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string), int? menuItemId = default(int?), bool? excludeFromVoucherDiscounting = default(bool?), Guid? publicId = default(Guid?)) + { + this.Name = name; + this.Description = description; + this.SpicinessRating = spicinessRating; + this.Price = price; + this.DepositReturnFee = depositReturnFee; + this.DisplayOrder = displayOrder; + this.Alcohol = alcohol; + this.IsAvailable = isAvailable; + this.CellLayoutType = cellLayoutType; + this.DisableVouchers = disableVouchers; + this.ImageName = imageName; + this.ImageUrl = imageUrl; + this.MenuItemId = menuItemId; + this.ExcludeFromVoucherDiscounting = excludeFromVoucherDiscounting; + this.PublicId = publicId; + } + + /// + /// Menu item name (like \"Korma\") + /// + /// Menu item name (like \"Korma\") + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description (like \"A lovely dish from the east\") + /// + /// Description (like \"A lovely dish from the east\") + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + /// + /// Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// An optional fee that can be added to the price of the item. + /// + /// An optional fee that can be added to the price of the item. + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Display order + /// + /// Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + /// + /// To be set true if the item or an option of the item contains an alcoholic drink. + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// True if we accept orders for this item still + /// + /// True if we accept orders for this item still + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + + /// + /// If true, then vouchers won't be applied for this item + /// + /// If true, then vouchers won't be applied for this item + [DataMember(Name="DisableVouchers", EmitDefaultValue=false)] + public bool? DisableVouchers { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Image url + /// + /// Image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Menu Item Id + /// + /// Menu Item Id + [DataMember(Name="MenuItemId", EmitDefaultValue=false)] + public int? MenuItemId { get; set; } + + /// + /// If true, the item is excluded from voucher discount calculations + /// + /// If true, the item is excluded from voucher discount calculations + [DataMember(Name="ExcludeFromVoucherDiscounting", EmitDefaultValue=false)] + public bool? ExcludeFromVoucherDiscounting { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionItemBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" SpicinessRating: ").Append(SpicinessRating).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" CellLayoutType: ").Append(CellLayoutType).Append("\n"); + sb.Append(" DisableVouchers: ").Append(DisableVouchers).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" MenuItemId: ").Append(MenuItemId).Append("\n"); + sb.Append(" ExcludeFromVoucherDiscounting: ").Append(ExcludeFromVoucherDiscounting).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionItemBase); + } + + /// + /// Returns true if MenuSectionItemBase instances are equal + /// + /// Instance of MenuSectionItemBase to be compared + /// Boolean + public bool Equals(MenuSectionItemBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SpicinessRating == input.SpicinessRating || + (this.SpicinessRating != null && + this.SpicinessRating.Equals(input.SpicinessRating)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.CellLayoutType == input.CellLayoutType || + (this.CellLayoutType != null && + this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.DisableVouchers == input.DisableVouchers || + (this.DisableVouchers != null && + this.DisableVouchers.Equals(input.DisableVouchers)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuItemId == input.MenuItemId || + (this.MenuItemId != null && + this.MenuItemId.Equals(input.MenuItemId)) + ) && + ( + this.ExcludeFromVoucherDiscounting == input.ExcludeFromVoucherDiscounting || + (this.ExcludeFromVoucherDiscounting != null && + this.ExcludeFromVoucherDiscounting.Equals(input.ExcludeFromVoucherDiscounting)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SpicinessRating != null) + hashCode = hashCode * 59 + this.SpicinessRating.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.CellLayoutType != null) + hashCode = hashCode * 59 + this.CellLayoutType.GetHashCode(); + if (this.DisableVouchers != null) + hashCode = hashCode * 59 + this.DisableVouchers.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MenuItemId != null) + hashCode = hashCode * 59 + this.MenuItemId.GetHashCode(); + if (this.ExcludeFromVoucherDiscounting != null) + hashCode = hashCode * 59 + this.ExcludeFromVoucherDiscounting.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionItemCreatedEvent.cs b/src/Flipdish/Model/MenuSectionItemCreatedEvent.cs new file mode 100644 index 00000000..09522014 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionItemCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionItemCreatedEvent + /// + [DataContract] + public partial class MenuSectionItemCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Description. + /// User who has created the menu. + /// Created menu section item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionItemCreatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSectionItem menuSectionItem = default(MenuSectionItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSectionItem = menuSectionItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the menu + /// + /// User who has created the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Created menu section item + /// + /// Created menu section item + [DataMember(Name="MenuSectionItem", EmitDefaultValue=false)] + public MenuSectionItem MenuSectionItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionItemCreatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSectionItem: ").Append(MenuSectionItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionItemCreatedEvent); + } + + /// + /// Returns true if MenuSectionItemCreatedEvent instances are equal + /// + /// Instance of MenuSectionItemCreatedEvent to be compared + /// Boolean + public bool Equals(MenuSectionItemCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSectionItem == input.MenuSectionItem || + (this.MenuSectionItem != null && + this.MenuSectionItem.Equals(input.MenuSectionItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSectionItem != null) + hashCode = hashCode * 59 + this.MenuSectionItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionItemDeletedEvent.cs b/src/Flipdish/Model/MenuSectionItemDeletedEvent.cs new file mode 100644 index 00000000..d97f6214 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionItemDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionItemDeletedEvent + /// + [DataContract] + public partial class MenuSectionItemDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Event description. + /// Deleted by user. + /// Deleted menu section item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionItemDeletedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSectionItem menuSectionItem = default(MenuSectionItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSectionItem = menuSectionItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Event description + /// + /// Event description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Deleted by user + /// + /// Deleted by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Deleted menu section item + /// + /// Deleted menu section item + [DataMember(Name="MenuSectionItem", EmitDefaultValue=false)] + public MenuSectionItem MenuSectionItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionItemDeletedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSectionItem: ").Append(MenuSectionItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionItemDeletedEvent); + } + + /// + /// Returns true if MenuSectionItemDeletedEvent instances are equal + /// + /// Instance of MenuSectionItemDeletedEvent to be compared + /// Boolean + public bool Equals(MenuSectionItemDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSectionItem == input.MenuSectionItem || + (this.MenuSectionItem != null && + this.MenuSectionItem.Equals(input.MenuSectionItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSectionItem != null) + hashCode = hashCode * 59 + this.MenuSectionItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionItemUpdatedEvent.cs b/src/Flipdish/Model/MenuSectionItemUpdatedEvent.cs new file mode 100644 index 00000000..6efa9df4 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionItemUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionItemUpdatedEvent + /// + [DataContract] + public partial class MenuSectionItemUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Event description. + /// Updated by user. + /// Updated menu section item. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionItemUpdatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSectionItem menuSectionItem = default(MenuSectionItem), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSectionItem = menuSectionItem; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Event description + /// + /// Event description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Updated menu section item + /// + /// Updated menu section item + [DataMember(Name="MenuSectionItem", EmitDefaultValue=false)] + public MenuSectionItem MenuSectionItem { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionItemUpdatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSectionItem: ").Append(MenuSectionItem).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionItemUpdatedEvent); + } + + /// + /// Returns true if MenuSectionItemUpdatedEvent instances are equal + /// + /// Instance of MenuSectionItemUpdatedEvent to be compared + /// Boolean + public bool Equals(MenuSectionItemUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSectionItem == input.MenuSectionItem || + (this.MenuSectionItem != null && + this.MenuSectionItem.Equals(input.MenuSectionItem)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSectionItem != null) + hashCode = hashCode * 59 + this.MenuSectionItem.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSectionUpdatedEvent.cs b/src/Flipdish/Model/MenuSectionUpdatedEvent.cs new file mode 100644 index 00000000..ef49d623 --- /dev/null +++ b/src/Flipdish/Model/MenuSectionUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuSectionUpdatedEvent + /// + [DataContract] + public partial class MenuSectionUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Event description. + /// Updated by user. + /// Updated menu section. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuSectionUpdatedEvent(int? menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSection menuSection = default(MenuSection), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.MenuId = menuId; + this.Description = description; + this.User = user; + this.MenuSection = menuSection; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Event description + /// + /// Event description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Updated menu section + /// + /// Updated menu section + [DataMember(Name="MenuSection", EmitDefaultValue=false)] + public MenuSection MenuSection { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSectionUpdatedEvent {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MenuSection: ").Append(MenuSection).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSectionUpdatedEvent); + } + + /// + /// Returns true if MenuSectionUpdatedEvent instances are equal + /// + /// Instance of MenuSectionUpdatedEvent to be compared + /// Boolean + public bool Equals(MenuSectionUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MenuSection == input.MenuSection || + (this.MenuSection != null && + this.MenuSection.Equals(input.MenuSection)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MenuSection != null) + hashCode = hashCode * 59 + this.MenuSection.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuStoreNames.cs b/src/Flipdish/Model/MenuStoreNames.cs new file mode 100644 index 00000000..37453568 --- /dev/null +++ b/src/Flipdish/Model/MenuStoreNames.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Store Names + /// + [DataContract] + public partial class MenuStoreNames : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Names of stores associated with menu. + public MenuStoreNames(List storeNames = default(List)) + { + this.StoreNames = storeNames; + } + + /// + /// Names of stores associated with menu + /// + /// Names of stores associated with menu + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuStoreNames {\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuStoreNames); + } + + /// + /// Returns true if MenuStoreNames instances are equal + /// + /// Instance of MenuStoreNames to be compared + /// Boolean + public bool Equals(MenuStoreNames input) + { + if (input == null) + return false; + + return + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuSummary.cs b/src/Flipdish/Model/MenuSummary.cs new file mode 100644 index 00000000..5d7100f1 --- /dev/null +++ b/src/Flipdish/Model/MenuSummary.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Summary + /// + [DataContract] + public partial class MenuSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu identifier. + /// Last modified time. + /// Menu version. + /// Menu Url. + /// Name of Menu, only shown in portal. + /// Locked: is menu locked against modifcation. + /// List of stores names which are associated with this menu. + /// Flag to indicate if the menu is integrated (contains metadata). + public MenuSummary(int? menuId = default(int?), DateTime? modifiedTime = default(DateTime?), int? versionNumber = default(int?), string menuUrl = default(string), string name = default(string), bool? locked = default(bool?), List storeNames = default(List), bool? isIntegrated = default(bool?)) + { + this.MenuId = menuId; + this.ModifiedTime = modifiedTime; + this.VersionNumber = versionNumber; + this.MenuUrl = menuUrl; + this.Name = name; + this.Locked = locked; + this.StoreNames = storeNames; + this.IsIntegrated = isIntegrated; + } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Last modified time + /// + /// Last modified time + [DataMember(Name="ModifiedTime", EmitDefaultValue=false)] + public DateTime? ModifiedTime { get; set; } + + /// + /// Menu version + /// + /// Menu version + [DataMember(Name="VersionNumber", EmitDefaultValue=false)] + public int? VersionNumber { get; set; } + + /// + /// Menu Url + /// + /// Menu Url + [DataMember(Name="MenuUrl", EmitDefaultValue=false)] + public string MenuUrl { get; set; } + + /// + /// Name of Menu, only shown in portal + /// + /// Name of Menu, only shown in portal + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Locked: is menu locked against modifcation + /// + /// Locked: is menu locked against modifcation + [DataMember(Name="Locked", EmitDefaultValue=false)] + public bool? Locked { get; set; } + + /// + /// List of stores names which are associated with this menu + /// + /// List of stores names which are associated with this menu + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Flag to indicate if the menu is integrated (contains metadata) + /// + /// Flag to indicate if the menu is integrated (contains metadata) + [DataMember(Name="IsIntegrated", EmitDefaultValue=false)] + public bool? IsIntegrated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuSummary {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" ModifiedTime: ").Append(ModifiedTime).Append("\n"); + sb.Append(" VersionNumber: ").Append(VersionNumber).Append("\n"); + sb.Append(" MenuUrl: ").Append(MenuUrl).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Locked: ").Append(Locked).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" IsIntegrated: ").Append(IsIntegrated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuSummary); + } + + /// + /// Returns true if MenuSummary instances are equal + /// + /// Instance of MenuSummary to be compared + /// Boolean + public bool Equals(MenuSummary input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.ModifiedTime == input.ModifiedTime || + (this.ModifiedTime != null && + this.ModifiedTime.Equals(input.ModifiedTime)) + ) && + ( + this.VersionNumber == input.VersionNumber || + (this.VersionNumber != null && + this.VersionNumber.Equals(input.VersionNumber)) + ) && + ( + this.MenuUrl == input.MenuUrl || + (this.MenuUrl != null && + this.MenuUrl.Equals(input.MenuUrl)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Locked == input.Locked || + (this.Locked != null && + this.Locked.Equals(input.Locked)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.ModifiedTime != null) + hashCode = hashCode * 59 + this.ModifiedTime.GetHashCode(); + if (this.VersionNumber != null) + hashCode = hashCode * 59 + this.VersionNumber.GetHashCode(); + if (this.MenuUrl != null) + hashCode = hashCode * 59 + this.MenuUrl.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Locked != null) + hashCode = hashCode * 59 + this.Locked.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.IsIntegrated != null) + hashCode = hashCode * 59 + this.IsIntegrated.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuTaxDetails.cs b/src/Flipdish/Model/MenuTaxDetails.cs new file mode 100644 index 00000000..8d0ede53 --- /dev/null +++ b/src/Flipdish/Model/MenuTaxDetails.cs @@ -0,0 +1,202 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Tax information for Menu + /// + [DataContract] + public partial class MenuTaxDetails : IEquatable + { + /// + /// TaxType + /// + /// TaxType + [JsonConverter(typeof(StringEnumConverter))] + public enum TaxTypeEnum + { + + /// + /// Enum IncludedInBasePrice for value: IncludedInBasePrice + /// + [EnumMember(Value = "IncludedInBasePrice")] + IncludedInBasePrice = 1, + + /// + /// Enum ExcludedFromBasePrice for value: ExcludedFromBasePrice + /// + [EnumMember(Value = "ExcludedFromBasePrice")] + ExcludedFromBasePrice = 2 + } + + /// + /// TaxType + /// + /// TaxType + [DataMember(Name="TaxType", EmitDefaultValue=false)] + public TaxTypeEnum? TaxType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Tax Rates. + /// Display tax for Menu. + /// TaxType. + /// ItemIds and TaxIds. + /// SetItemIds and TaxIds. + public MenuTaxDetails(List taxRates = default(List), bool? displayTax = default(bool?), TaxTypeEnum? taxType = default(TaxTypeEnum?), Dictionary itemTaxes = default(Dictionary), Dictionary setItemTaxes = default(Dictionary)) + { + this.TaxRates = taxRates; + this.DisplayTax = displayTax; + this.TaxType = taxType; + this.ItemTaxes = itemTaxes; + this.SetItemTaxes = setItemTaxes; + } + + /// + /// Tax Rates + /// + /// Tax Rates + [DataMember(Name="TaxRates", EmitDefaultValue=false)] + public List TaxRates { get; set; } + + /// + /// Display tax for Menu + /// + /// Display tax for Menu + [DataMember(Name="DisplayTax", EmitDefaultValue=false)] + public bool? DisplayTax { get; set; } + + + /// + /// ItemIds and TaxIds + /// + /// ItemIds and TaxIds + [DataMember(Name="ItemTaxes", EmitDefaultValue=false)] + public Dictionary ItemTaxes { get; set; } + + /// + /// SetItemIds and TaxIds + /// + /// SetItemIds and TaxIds + [DataMember(Name="SetItemTaxes", EmitDefaultValue=false)] + public Dictionary SetItemTaxes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuTaxDetails {\n"); + sb.Append(" TaxRates: ").Append(TaxRates).Append("\n"); + sb.Append(" DisplayTax: ").Append(DisplayTax).Append("\n"); + sb.Append(" TaxType: ").Append(TaxType).Append("\n"); + sb.Append(" ItemTaxes: ").Append(ItemTaxes).Append("\n"); + sb.Append(" SetItemTaxes: ").Append(SetItemTaxes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuTaxDetails); + } + + /// + /// Returns true if MenuTaxDetails instances are equal + /// + /// Instance of MenuTaxDetails to be compared + /// Boolean + public bool Equals(MenuTaxDetails input) + { + if (input == null) + return false; + + return + ( + this.TaxRates == input.TaxRates || + this.TaxRates != null && + this.TaxRates.SequenceEqual(input.TaxRates) + ) && + ( + this.DisplayTax == input.DisplayTax || + (this.DisplayTax != null && + this.DisplayTax.Equals(input.DisplayTax)) + ) && + ( + this.TaxType == input.TaxType || + (this.TaxType != null && + this.TaxType.Equals(input.TaxType)) + ) && + ( + this.ItemTaxes == input.ItemTaxes || + this.ItemTaxes != null && + this.ItemTaxes.SequenceEqual(input.ItemTaxes) + ) && + ( + this.SetItemTaxes == input.SetItemTaxes || + this.SetItemTaxes != null && + this.SetItemTaxes.SequenceEqual(input.SetItemTaxes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TaxRates != null) + hashCode = hashCode * 59 + this.TaxRates.GetHashCode(); + if (this.DisplayTax != null) + hashCode = hashCode * 59 + this.DisplayTax.GetHashCode(); + if (this.TaxType != null) + hashCode = hashCode * 59 + this.TaxType.GetHashCode(); + if (this.ItemTaxes != null) + hashCode = hashCode * 59 + this.ItemTaxes.GetHashCode(); + if (this.SetItemTaxes != null) + hashCode = hashCode * 59 + this.SetItemTaxes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuTaxRate.cs b/src/Flipdish/Model/MenuTaxRate.cs new file mode 100644 index 00000000..27993bc4 --- /dev/null +++ b/src/Flipdish/Model/MenuTaxRate.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Tax Rates Associated with a Menu + /// + [DataContract] + public partial class MenuTaxRate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of Tax Rate. + /// Name of Tax Rate. + /// In Percentage. + public MenuTaxRate(int? taxRateId = default(int?), string name = default(string), double? rate = default(double?)) + { + this.TaxRateId = taxRateId; + this.Name = name; + this.Rate = rate; + } + + /// + /// Id of Tax Rate + /// + /// Id of Tax Rate + [DataMember(Name="TaxRateId", EmitDefaultValue=false)] + public int? TaxRateId { get; set; } + + /// + /// Name of Tax Rate + /// + /// Name of Tax Rate + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// In Percentage + /// + /// In Percentage + [DataMember(Name="Rate", EmitDefaultValue=false)] + public double? Rate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuTaxRate {\n"); + sb.Append(" TaxRateId: ").Append(TaxRateId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuTaxRate); + } + + /// + /// Returns true if MenuTaxRate instances are equal + /// + /// Instance of MenuTaxRate to be compared + /// Boolean + public bool Equals(MenuTaxRate input) + { + if (input == null) + return false; + + return + ( + this.TaxRateId == input.TaxRateId || + (this.TaxRateId != null && + this.TaxRateId.Equals(input.TaxRateId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Rate == input.Rate || + (this.Rate != null && + this.Rate.Equals(input.Rate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TaxRateId != null) + hashCode = hashCode * 59 + this.TaxRateId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Rate != null) + hashCode = hashCode * 59 + this.Rate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuUpdatedEvent.cs b/src/Flipdish/Model/MenuUpdatedEvent.cs new file mode 100644 index 00000000..cdaecec1 --- /dev/null +++ b/src/Flipdish/Model/MenuUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu updated event + /// + [DataContract] + public partial class MenuUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has updated the menu. + /// The menu. + /// Menu Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Menu menu = default(Menu), int? menuId = default(int?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Menu = menu; + this.MenuId = menuId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has updated the menu + /// + /// User who has updated the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The menu + /// + /// The menu + [DataMember(Name="Menu", EmitDefaultValue=false)] + public Menu Menu { get; set; } + + /// + /// Menu Id + /// + /// Menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Menu: ").Append(Menu).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuUpdatedEvent); + } + + /// + /// Returns true if MenuUpdatedEvent instances are equal + /// + /// Instance of MenuUpdatedEvent to be compared + /// Boolean + public bool Equals(MenuUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Menu == input.Menu || + (this.Menu != null && + this.Menu.Equals(input.Menu)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Menu != null) + hashCode = hashCode * 59 + this.Menu.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuUploadedEvent.cs b/src/Flipdish/Model/MenuUploadedEvent.cs new file mode 100644 index 00000000..557e647a --- /dev/null +++ b/src/Flipdish/Model/MenuUploadedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu uploaded event + /// + [DataContract] + public partial class MenuUploadedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has uploaded the menu. + /// The menu. + /// Quantity of events. + /// The menu Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MenuUploadedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Menu menu = default(Menu), string instanceEventCount = default(string), int? menuId = default(int?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.Menu = menu; + this.InstanceEventCount = instanceEventCount; + this.MenuId = menuId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has uploaded the menu + /// + /// User who has uploaded the menu + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The menu + /// + /// The menu + [DataMember(Name="Menu", EmitDefaultValue=false)] + public Menu Menu { get; set; } + + /// + /// Quantity of events + /// + /// Quantity of events + [DataMember(Name="InstanceEventCount", EmitDefaultValue=false)] + public string InstanceEventCount { get; set; } + + /// + /// The menu Id + /// + /// The menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuUploadedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Menu: ").Append(Menu).Append("\n"); + sb.Append(" InstanceEventCount: ").Append(InstanceEventCount).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuUploadedEvent); + } + + /// + /// Returns true if MenuUploadedEvent instances are equal + /// + /// Instance of MenuUploadedEvent to be compared + /// Boolean + public bool Equals(MenuUploadedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Menu == input.Menu || + (this.Menu != null && + this.Menu.Equals(input.Menu)) + ) && + ( + this.InstanceEventCount == input.InstanceEventCount || + (this.InstanceEventCount != null && + this.InstanceEventCount.Equals(input.InstanceEventCount)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Menu != null) + hashCode = hashCode * 59 + this.Menu.GetHashCode(); + if (this.InstanceEventCount != null) + hashCode = hashCode * 59 + this.InstanceEventCount.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MenuZone.cs b/src/Flipdish/Model/MenuZone.cs new file mode 100644 index 00000000..47c3044a --- /dev/null +++ b/src/Flipdish/Model/MenuZone.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// MenuZone. + /// + [DataContract] + public partial class MenuZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// MenuZoneId.. + /// MenuId.. + /// Name.. + /// Description.. + /// ImageName.. + /// DisplayOrder.. + /// ImageUrl.. + public MenuZone(int? menuZoneId = default(int?), int? menuId = default(int?), string name = default(string), string description = default(string), string imageName = default(string), int? displayOrder = default(int?), string imageUrl = default(string)) + { + this.MenuZoneId = menuZoneId; + this.MenuId = menuId; + this.Name = name; + this.Description = description; + this.ImageName = imageName; + this.DisplayOrder = displayOrder; + this.ImageUrl = imageUrl; + } + + /// + /// MenuZoneId. + /// + /// MenuZoneId. + [DataMember(Name="MenuZoneId", EmitDefaultValue=false)] + public int? MenuZoneId { get; set; } + + /// + /// MenuId. + /// + /// MenuId. + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description. + /// + /// Description. + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// ImageName. + /// + /// ImageName. + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// DisplayOrder. + /// + /// DisplayOrder. + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// ImageUrl. + /// + /// ImageUrl. + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MenuZone {\n"); + sb.Append(" MenuZoneId: ").Append(MenuZoneId).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MenuZone); + } + + /// + /// Returns true if MenuZone instances are equal + /// + /// Instance of MenuZone to be compared + /// Boolean + public bool Equals(MenuZone input) + { + if (input == null) + return false; + + return + ( + this.MenuZoneId == input.MenuZoneId || + (this.MenuZoneId != null && + this.MenuZoneId.Equals(input.MenuZoneId)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuZoneId != null) + hashCode = hashCode * 59 + this.MenuZoneId.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Metadata.cs b/src/Flipdish/Model/Metadata.cs new file mode 100644 index 00000000..f9fa41f3 --- /dev/null +++ b/src/Flipdish/Model/Metadata.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Metadata + /// + [DataContract] + public partial class Metadata : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId). + /// Metadata key (Unique identifier). + /// Metadata value. + public Metadata(int? menuEntityId = default(int?), string key = default(string), string value = default(string)) + { + this.MenuEntityId = menuEntityId; + this.Key = key; + this.Value = value; + } + + /// + /// Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId) + /// + /// Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId) + [DataMember(Name="MenuEntityId", EmitDefaultValue=false)] + public int? MenuEntityId { get; set; } + + /// + /// Metadata key (Unique identifier) + /// + /// Metadata key (Unique identifier) + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Metadata value + /// + /// Metadata value + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Metadata {\n"); + sb.Append(" MenuEntityId: ").Append(MenuEntityId).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Metadata); + } + + /// + /// Returns true if Metadata instances are equal + /// + /// Instance of Metadata to be compared + /// Boolean + public bool Equals(Metadata input) + { + if (input == null) + return false; + + return + ( + this.MenuEntityId == input.MenuEntityId || + (this.MenuEntityId != null && + this.MenuEntityId.Equals(input.MenuEntityId)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuEntityId != null) + hashCode = hashCode * 59 + this.MenuEntityId.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Metafield.cs b/src/Flipdish/Model/Metafield.cs new file mode 100644 index 00000000..c97dd270 --- /dev/null +++ b/src/Flipdish/Model/Metafield.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Metafield + /// + [DataContract] + public partial class Metafield : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Metafield() { } + /// + /// Initializes a new instance of the class. + /// + /// Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot (required). + /// Value of the metafield. (required). + public Metafield(string key = default(string), string value = default(string)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new InvalidDataException("key is a required property for Metafield and cannot be null"); + } + else + { + this.Key = key; + } + // to ensure "value" is required (not null) + if (value == null) + { + throw new InvalidDataException("value is a required property for Metafield and cannot be null"); + } + else + { + this.Value = value; + } + } + + /// + /// Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot + /// + /// Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Value of the metafield. + /// + /// Value of the metafield. + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Metafield {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Metafield); + } + + /// + /// Returns true if Metafield instances are equal + /// + /// Instance of Metafield to be compared + /// Boolean + public bool Equals(Metafield input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MetafieldDefinition.cs b/src/Flipdish/Model/MetafieldDefinition.cs new file mode 100644 index 00000000..b74fb72c --- /dev/null +++ b/src/Flipdish/Model/MetafieldDefinition.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Metafield Definition + /// + [DataContract] + public partial class MetafieldDefinition : IEquatable + { + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [JsonConverter(typeof(StringEnumConverter))] + public enum OwnerEntityEnum + { + + /// + /// Enum CatalogItem for value: CatalogItem + /// + [EnumMember(Value = "CatalogItem")] + CatalogItem = 1, + + /// + /// Enum CatalogGroup for value: CatalogGroup + /// + [EnumMember(Value = "CatalogGroup")] + CatalogGroup = 2, + + /// + /// Enum Menu for value: Menu + /// + [EnumMember(Value = "Menu")] + Menu = 3 + } + + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] + public OwnerEntityEnum? OwnerEntity { get; set; } + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueTypeEnum + { + + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + + /// + /// Enum Json for value: Json + /// + [EnumMember(Value = "Json")] + Json = 2, + + /// + /// Enum SingleLineString for value: SingleLineString + /// + [EnumMember(Value = "SingleLineString")] + SingleLineString = 3, + + /// + /// Enum MultiLineString for value: MultiLineString + /// + [EnumMember(Value = "MultiLineString")] + MultiLineString = 4 + } + + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [DataMember(Name="ValueType", EmitDefaultValue=false)] + public ValueTypeEnum? ValueType { get; set; } + /// + /// Defines Behaviors + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BehaviorsEnum + { + + /// + /// Enum SendToOrder for value: SendToOrder + /// + [EnumMember(Value = "SendToOrder")] + SendToOrder = 1, + + /// + /// Enum SendToMenu for value: SendToMenu + /// + [EnumMember(Value = "SendToMenu")] + SendToMenu = 2 + } + + + /// + /// Enable Metafield Behaviors + /// + /// Enable Metafield Behaviors + [DataMember(Name="Behaviors", EmitDefaultValue=false)] + public List Behaviors { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MetafieldDefinition() { } + /// + /// Initializes a new instance of the class. + /// + /// Indicates if a definition can be edited or not. + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity}. + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore (required). + /// The excepted type for the Value field. + /// Field Name (required). + /// Field Description. + /// Enable Metafield Behaviors. + /// Metafield Recommendation Id. + public MetafieldDefinition(bool? isReadOnly = default(bool?), OwnerEntityEnum? ownerEntity = default(OwnerEntityEnum?), string key = default(string), ValueTypeEnum? valueType = default(ValueTypeEnum?), string name = default(string), string description = default(string), List behaviors = default(List), int? metafieldDefinitionRecommendationId = default(int?)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new InvalidDataException("key is a required property for MetafieldDefinition and cannot be null"); + } + else + { + this.Key = key; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for MetafieldDefinition and cannot be null"); + } + else + { + this.Name = name; + } + this.IsReadOnly = isReadOnly; + this.OwnerEntity = ownerEntity; + this.ValueType = valueType; + this.Description = description; + this.Behaviors = behaviors; + this.MetafieldDefinitionRecommendationId = metafieldDefinitionRecommendationId; + } + + /// + /// Indicates if a definition can be edited or not + /// + /// Indicates if a definition can be edited or not + [DataMember(Name="IsReadOnly", EmitDefaultValue=false)] + public bool? IsReadOnly { get; set; } + + + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + + /// + /// Field Name + /// + /// Field Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Field Description + /// + /// Field Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Metafield Recommendation Id + /// + /// Metafield Recommendation Id + [DataMember(Name="MetafieldDefinitionRecommendationId", EmitDefaultValue=false)] + public int? MetafieldDefinitionRecommendationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MetafieldDefinition {\n"); + sb.Append(" IsReadOnly: ").Append(IsReadOnly).Append("\n"); + sb.Append(" OwnerEntity: ").Append(OwnerEntity).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" ValueType: ").Append(ValueType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Behaviors: ").Append(Behaviors).Append("\n"); + sb.Append(" MetafieldDefinitionRecommendationId: ").Append(MetafieldDefinitionRecommendationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MetafieldDefinition); + } + + /// + /// Returns true if MetafieldDefinition instances are equal + /// + /// Instance of MetafieldDefinition to be compared + /// Boolean + public bool Equals(MetafieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.IsReadOnly == input.IsReadOnly || + (this.IsReadOnly != null && + this.IsReadOnly.Equals(input.IsReadOnly)) + ) && + ( + this.OwnerEntity == input.OwnerEntity || + (this.OwnerEntity != null && + this.OwnerEntity.Equals(input.OwnerEntity)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.ValueType == input.ValueType || + (this.ValueType != null && + this.ValueType.Equals(input.ValueType)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Behaviors == input.Behaviors || + this.Behaviors != null && + this.Behaviors.SequenceEqual(input.Behaviors) + ) && + ( + this.MetafieldDefinitionRecommendationId == input.MetafieldDefinitionRecommendationId || + (this.MetafieldDefinitionRecommendationId != null && + this.MetafieldDefinitionRecommendationId.Equals(input.MetafieldDefinitionRecommendationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsReadOnly != null) + hashCode = hashCode * 59 + this.IsReadOnly.GetHashCode(); + if (this.OwnerEntity != null) + hashCode = hashCode * 59 + this.OwnerEntity.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.ValueType != null) + hashCode = hashCode * 59 + this.ValueType.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Behaviors != null) + hashCode = hashCode * 59 + this.Behaviors.GetHashCode(); + if (this.MetafieldDefinitionRecommendationId != null) + hashCode = hashCode * 59 + this.MetafieldDefinitionRecommendationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs b/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs new file mode 100644 index 00000000..fb737703 --- /dev/null +++ b/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OwnerEntity Metafield Definition Recommendation + /// + [DataContract] + public partial class MetafieldDefinitionRecommendation : IEquatable + { + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [JsonConverter(typeof(StringEnumConverter))] + public enum OwnerEntityEnum + { + + /// + /// Enum CatalogItem for value: CatalogItem + /// + [EnumMember(Value = "CatalogItem")] + CatalogItem = 1, + + /// + /// Enum CatalogGroup for value: CatalogGroup + /// + [EnumMember(Value = "CatalogGroup")] + CatalogGroup = 2, + + /// + /// Enum Menu for value: Menu + /// + [EnumMember(Value = "Menu")] + Menu = 3 + } + + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] + public OwnerEntityEnum? OwnerEntity { get; set; } + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueTypeEnum + { + + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + + /// + /// Enum Json for value: Json + /// + [EnumMember(Value = "Json")] + Json = 2, + + /// + /// Enum SingleLineString for value: SingleLineString + /// + [EnumMember(Value = "SingleLineString")] + SingleLineString = 3, + + /// + /// Enum MultiLineString for value: MultiLineString + /// + [EnumMember(Value = "MultiLineString")] + MultiLineString = 4 + } + + /// + /// The excepted type for the Value field + /// + /// The excepted type for the Value field + [DataMember(Name="ValueType", EmitDefaultValue=false)] + public ValueTypeEnum? ValueType { get; set; } + /// + /// Defines Behaviors + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BehaviorsEnum + { + + /// + /// Enum SendToOrder for value: SendToOrder + /// + [EnumMember(Value = "SendToOrder")] + SendToOrder = 1, + + /// + /// Enum SendToMenu for value: SendToMenu + /// + [EnumMember(Value = "SendToMenu")] + SendToMenu = 2 + } + + + /// + /// Enable Metafield Behaviors + /// + /// Enable Metafield Behaviors + [DataMember(Name="Behaviors", EmitDefaultValue=false)] + public List Behaviors { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MetafieldDefinitionRecommendation() { } + /// + /// Initializes a new instance of the class. + /// + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity}. + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore (required). + /// The excepted type for the Value field. + /// Field Name (required). + /// Field Description. + /// Enable Metafield Behaviors. + /// Metafield Recommendation Id. + public MetafieldDefinitionRecommendation(OwnerEntityEnum? ownerEntity = default(OwnerEntityEnum?), string key = default(string), ValueTypeEnum? valueType = default(ValueTypeEnum?), string name = default(string), string description = default(string), List behaviors = default(List), int? metafieldDefinitionRecommendationId = default(int?)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new InvalidDataException("key is a required property for MetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.Key = key; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for MetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.Name = name; + } + this.OwnerEntity = ownerEntity; + this.ValueType = valueType; + this.Description = description; + this.Behaviors = behaviors; + this.MetafieldDefinitionRecommendationId = metafieldDefinitionRecommendationId; + } + + + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + /// + /// Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + + /// + /// Field Name + /// + /// Field Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Field Description + /// + /// Field Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Metafield Recommendation Id + /// + /// Metafield Recommendation Id + [DataMember(Name="MetafieldDefinitionRecommendationId", EmitDefaultValue=false)] + public int? MetafieldDefinitionRecommendationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MetafieldDefinitionRecommendation {\n"); + sb.Append(" OwnerEntity: ").Append(OwnerEntity).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" ValueType: ").Append(ValueType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Behaviors: ").Append(Behaviors).Append("\n"); + sb.Append(" MetafieldDefinitionRecommendationId: ").Append(MetafieldDefinitionRecommendationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MetafieldDefinitionRecommendation); + } + + /// + /// Returns true if MetafieldDefinitionRecommendation instances are equal + /// + /// Instance of MetafieldDefinitionRecommendation to be compared + /// Boolean + public bool Equals(MetafieldDefinitionRecommendation input) + { + if (input == null) + return false; + + return + ( + this.OwnerEntity == input.OwnerEntity || + (this.OwnerEntity != null && + this.OwnerEntity.Equals(input.OwnerEntity)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.ValueType == input.ValueType || + (this.ValueType != null && + this.ValueType.Equals(input.ValueType)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Behaviors == input.Behaviors || + this.Behaviors != null && + this.Behaviors.SequenceEqual(input.Behaviors) + ) && + ( + this.MetafieldDefinitionRecommendationId == input.MetafieldDefinitionRecommendationId || + (this.MetafieldDefinitionRecommendationId != null && + this.MetafieldDefinitionRecommendationId.Equals(input.MetafieldDefinitionRecommendationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OwnerEntity != null) + hashCode = hashCode * 59 + this.OwnerEntity.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.ValueType != null) + hashCode = hashCode * 59 + this.ValueType.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Behaviors != null) + hashCode = hashCode * 59 + this.Behaviors.GetHashCode(); + if (this.MetafieldDefinitionRecommendationId != null) + hashCode = hashCode * 59 + this.MetafieldDefinitionRecommendationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsImage.cs b/src/Flipdish/Model/MobileAppsImage.cs new file mode 100644 index 00000000..40247c7f --- /dev/null +++ b/src/Flipdish/Model/MobileAppsImage.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps Image + /// + [DataContract] + public partial class MobileAppsImage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog Item id. + public MobileAppsImage(string imageUri = default(string)) + { + this.ImageUri = imageUri; + } + + /// + /// Unique catalog Item id + /// + /// Unique catalog Item id + [DataMember(Name="ImageUri", EmitDefaultValue=false)] + public string ImageUri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsImage {\n"); + sb.Append(" ImageUri: ").Append(ImageUri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsImage); + } + + /// + /// Returns true if MobileAppsImage instances are equal + /// + /// Instance of MobileAppsImage to be compared + /// Boolean + public bool Equals(MobileAppsImage input) + { + if (input == null) + return false; + + return + ( + this.ImageUri == input.ImageUri || + (this.ImageUri != null && + this.ImageUri.Equals(input.ImageUri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageUri != null) + hashCode = hashCode * 59 + this.ImageUri.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsStatistics.cs b/src/Flipdish/Model/MobileAppsStatistics.cs new file mode 100644 index 00000000..72534e51 --- /dev/null +++ b/src/Flipdish/Model/MobileAppsStatistics.cs @@ -0,0 +1,276 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps Statistics + /// + [DataContract] + public partial class MobileAppsStatistics : IEquatable + { + /// + /// Platform Type + /// + /// Platform Type + [JsonConverter(typeof(StringEnumConverter))] + public enum PlatformTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum IOS for value: IOS + /// + [EnumMember(Value = "IOS")] + IOS = 3 + } + + /// + /// Platform Type + /// + /// Platform Type + [DataMember(Name="PlatformType", EmitDefaultValue=false)] + public PlatformTypeEnum? PlatformType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Number Download. + /// Current Rate. + /// Current Version. + /// Play Store Link. + /// App Bundle Id. + /// Last Updated. + /// Last Updated. + /// Published. + /// Platform Type. + public MobileAppsStatistics(int? numberDownload = default(int?), int? currentRate = default(int?), string currentVersion = default(string), string playStoreLink = default(string), string appBundleId = default(string), DateTime? lastUpdated = default(DateTime?), string notes = default(string), bool? published = default(bool?), PlatformTypeEnum? platformType = default(PlatformTypeEnum?)) + { + this.NumberDownload = numberDownload; + this.CurrentRate = currentRate; + this.CurrentVersion = currentVersion; + this.PlayStoreLink = playStoreLink; + this.AppBundleId = appBundleId; + this.LastUpdated = lastUpdated; + this.Notes = notes; + this.Published = published; + this.PlatformType = platformType; + } + + /// + /// Number Download + /// + /// Number Download + [DataMember(Name="NumberDownload", EmitDefaultValue=false)] + public int? NumberDownload { get; set; } + + /// + /// Current Rate + /// + /// Current Rate + [DataMember(Name="CurrentRate", EmitDefaultValue=false)] + public int? CurrentRate { get; set; } + + /// + /// Current Version + /// + /// Current Version + [DataMember(Name="CurrentVersion", EmitDefaultValue=false)] + public string CurrentVersion { get; set; } + + /// + /// Play Store Link + /// + /// Play Store Link + [DataMember(Name="PlayStoreLink", EmitDefaultValue=false)] + public string PlayStoreLink { get; set; } + + /// + /// App Bundle Id + /// + /// App Bundle Id + [DataMember(Name="AppBundleId", EmitDefaultValue=false)] + public string AppBundleId { get; set; } + + /// + /// Last Updated + /// + /// Last Updated + [DataMember(Name="LastUpdated", EmitDefaultValue=false)] + public DateTime? LastUpdated { get; set; } + + /// + /// Last Updated + /// + /// Last Updated + [DataMember(Name="Notes", EmitDefaultValue=false)] + public string Notes { get; set; } + + /// + /// Published + /// + /// Published + [DataMember(Name="Published", EmitDefaultValue=false)] + public bool? Published { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsStatistics {\n"); + sb.Append(" NumberDownload: ").Append(NumberDownload).Append("\n"); + sb.Append(" CurrentRate: ").Append(CurrentRate).Append("\n"); + sb.Append(" CurrentVersion: ").Append(CurrentVersion).Append("\n"); + sb.Append(" PlayStoreLink: ").Append(PlayStoreLink).Append("\n"); + sb.Append(" AppBundleId: ").Append(AppBundleId).Append("\n"); + sb.Append(" LastUpdated: ").Append(LastUpdated).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" Published: ").Append(Published).Append("\n"); + sb.Append(" PlatformType: ").Append(PlatformType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsStatistics); + } + + /// + /// Returns true if MobileAppsStatistics instances are equal + /// + /// Instance of MobileAppsStatistics to be compared + /// Boolean + public bool Equals(MobileAppsStatistics input) + { + if (input == null) + return false; + + return + ( + this.NumberDownload == input.NumberDownload || + (this.NumberDownload != null && + this.NumberDownload.Equals(input.NumberDownload)) + ) && + ( + this.CurrentRate == input.CurrentRate || + (this.CurrentRate != null && + this.CurrentRate.Equals(input.CurrentRate)) + ) && + ( + this.CurrentVersion == input.CurrentVersion || + (this.CurrentVersion != null && + this.CurrentVersion.Equals(input.CurrentVersion)) + ) && + ( + this.PlayStoreLink == input.PlayStoreLink || + (this.PlayStoreLink != null && + this.PlayStoreLink.Equals(input.PlayStoreLink)) + ) && + ( + this.AppBundleId == input.AppBundleId || + (this.AppBundleId != null && + this.AppBundleId.Equals(input.AppBundleId)) + ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && + ( + this.Notes == input.Notes || + (this.Notes != null && + this.Notes.Equals(input.Notes)) + ) && + ( + this.Published == input.Published || + (this.Published != null && + this.Published.Equals(input.Published)) + ) && + ( + this.PlatformType == input.PlatformType || + (this.PlatformType != null && + this.PlatformType.Equals(input.PlatformType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NumberDownload != null) + hashCode = hashCode * 59 + this.NumberDownload.GetHashCode(); + if (this.CurrentRate != null) + hashCode = hashCode * 59 + this.CurrentRate.GetHashCode(); + if (this.CurrentVersion != null) + hashCode = hashCode * 59 + this.CurrentVersion.GetHashCode(); + if (this.PlayStoreLink != null) + hashCode = hashCode * 59 + this.PlayStoreLink.GetHashCode(); + if (this.AppBundleId != null) + hashCode = hashCode * 59 + this.AppBundleId.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); + if (this.Notes != null) + hashCode = hashCode * 59 + this.Notes.GetHashCode(); + if (this.Published != null) + hashCode = hashCode * 59 + this.Published.GetHashCode(); + if (this.PlatformType != null) + hashCode = hashCode * 59 + this.PlatformType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsSubmission.cs b/src/Flipdish/Model/MobileAppsSubmission.cs new file mode 100644 index 00000000..81c4b7e8 --- /dev/null +++ b/src/Flipdish/Model/MobileAppsSubmission.cs @@ -0,0 +1,227 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps form submission + /// + [DataContract] + public partial class MobileAppsSubmission : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MobileAppsSubmission() { } + /// + /// Initializes a new instance of the class. + /// + /// Mobile Apps Submission Id. + /// App Name (required). + /// App Description (required). + /// App Description (required). + /// Keywords. + /// Publish automatically. + public MobileAppsSubmission(int? submissionId = default(int?), string appName = default(string), string appDescription = default(string), string appShortDescription = default(string), List keywords = default(List), bool? autoPublish = default(bool?)) + { + // to ensure "appName" is required (not null) + if (appName == null) + { + throw new InvalidDataException("appName is a required property for MobileAppsSubmission and cannot be null"); + } + else + { + this.AppName = appName; + } + // to ensure "appDescription" is required (not null) + if (appDescription == null) + { + throw new InvalidDataException("appDescription is a required property for MobileAppsSubmission and cannot be null"); + } + else + { + this.AppDescription = appDescription; + } + // to ensure "appShortDescription" is required (not null) + if (appShortDescription == null) + { + throw new InvalidDataException("appShortDescription is a required property for MobileAppsSubmission and cannot be null"); + } + else + { + this.AppShortDescription = appShortDescription; + } + this.SubmissionId = submissionId; + this.Keywords = keywords; + this.AutoPublish = autoPublish; + } + + /// + /// Mobile Apps Submission Id + /// + /// Mobile Apps Submission Id + [DataMember(Name="SubmissionId", EmitDefaultValue=false)] + public int? SubmissionId { get; set; } + + /// + /// App Name + /// + /// App Name + [DataMember(Name="AppName", EmitDefaultValue=false)] + public string AppName { get; set; } + + /// + /// App Description + /// + /// App Description + [DataMember(Name="AppDescription", EmitDefaultValue=false)] + public string AppDescription { get; set; } + + /// + /// App Description + /// + /// App Description + [DataMember(Name="AppShortDescription", EmitDefaultValue=false)] + public string AppShortDescription { get; set; } + + /// + /// Keywords + /// + /// Keywords + [DataMember(Name="Keywords", EmitDefaultValue=false)] + public List Keywords { get; set; } + + /// + /// Publish automatically + /// + /// Publish automatically + [DataMember(Name="AutoPublish", EmitDefaultValue=false)] + public bool? AutoPublish { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsSubmission {\n"); + sb.Append(" SubmissionId: ").Append(SubmissionId).Append("\n"); + sb.Append(" AppName: ").Append(AppName).Append("\n"); + sb.Append(" AppDescription: ").Append(AppDescription).Append("\n"); + sb.Append(" AppShortDescription: ").Append(AppShortDescription).Append("\n"); + sb.Append(" Keywords: ").Append(Keywords).Append("\n"); + sb.Append(" AutoPublish: ").Append(AutoPublish).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsSubmission); + } + + /// + /// Returns true if MobileAppsSubmission instances are equal + /// + /// Instance of MobileAppsSubmission to be compared + /// Boolean + public bool Equals(MobileAppsSubmission input) + { + if (input == null) + return false; + + return + ( + this.SubmissionId == input.SubmissionId || + (this.SubmissionId != null && + this.SubmissionId.Equals(input.SubmissionId)) + ) && + ( + this.AppName == input.AppName || + (this.AppName != null && + this.AppName.Equals(input.AppName)) + ) && + ( + this.AppDescription == input.AppDescription || + (this.AppDescription != null && + this.AppDescription.Equals(input.AppDescription)) + ) && + ( + this.AppShortDescription == input.AppShortDescription || + (this.AppShortDescription != null && + this.AppShortDescription.Equals(input.AppShortDescription)) + ) && + ( + this.Keywords == input.Keywords || + this.Keywords != null && + this.Keywords.SequenceEqual(input.Keywords) + ) && + ( + this.AutoPublish == input.AutoPublish || + (this.AutoPublish != null && + this.AutoPublish.Equals(input.AutoPublish)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SubmissionId != null) + hashCode = hashCode * 59 + this.SubmissionId.GetHashCode(); + if (this.AppName != null) + hashCode = hashCode * 59 + this.AppName.GetHashCode(); + if (this.AppDescription != null) + hashCode = hashCode * 59 + this.AppDescription.GetHashCode(); + if (this.AppShortDescription != null) + hashCode = hashCode * 59 + this.AppShortDescription.GetHashCode(); + if (this.Keywords != null) + hashCode = hashCode * 59 + this.Keywords.GetHashCode(); + if (this.AutoPublish != null) + hashCode = hashCode * 59 + this.AutoPublish.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsSubmissionDetails.cs b/src/Flipdish/Model/MobileAppsSubmissionDetails.cs new file mode 100644 index 00000000..baa8da6f --- /dev/null +++ b/src/Flipdish/Model/MobileAppsSubmissionDetails.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps form submission + /// + [DataContract] + public partial class MobileAppsSubmissionDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Mobile Apps Submission Id. + /// App Name. + /// App Description. + /// App Description. + /// Keywords. + /// Logo URL. + /// Publish automatically. + /// Mobile App Status. + public MobileAppsSubmissionDetails(int? mobileAppsSubmissionId = default(int?), string appName = default(string), string appDescription = default(string), string appShortDescription = default(string), List keywords = default(List), string appLogoUrl = default(string), bool? autoPublish = default(bool?), List status = default(List)) + { + this.MobileAppsSubmissionId = mobileAppsSubmissionId; + this.AppName = appName; + this.AppDescription = appDescription; + this.AppShortDescription = appShortDescription; + this.Keywords = keywords; + this.AppLogoUrl = appLogoUrl; + this.AutoPublish = autoPublish; + this.Status = status; + } + + /// + /// Mobile Apps Submission Id + /// + /// Mobile Apps Submission Id + [DataMember(Name="MobileAppsSubmissionId", EmitDefaultValue=false)] + public int? MobileAppsSubmissionId { get; set; } + + /// + /// App Name + /// + /// App Name + [DataMember(Name="AppName", EmitDefaultValue=false)] + public string AppName { get; set; } + + /// + /// App Description + /// + /// App Description + [DataMember(Name="AppDescription", EmitDefaultValue=false)] + public string AppDescription { get; set; } + + /// + /// App Description + /// + /// App Description + [DataMember(Name="AppShortDescription", EmitDefaultValue=false)] + public string AppShortDescription { get; set; } + + /// + /// Keywords + /// + /// Keywords + [DataMember(Name="Keywords", EmitDefaultValue=false)] + public List Keywords { get; set; } + + /// + /// Logo URL + /// + /// Logo URL + [DataMember(Name="AppLogoUrl", EmitDefaultValue=false)] + public string AppLogoUrl { get; set; } + + /// + /// Publish automatically + /// + /// Publish automatically + [DataMember(Name="AutoPublish", EmitDefaultValue=false)] + public bool? AutoPublish { get; set; } + + /// + /// Mobile App Status + /// + /// Mobile App Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public List Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsSubmissionDetails {\n"); + sb.Append(" MobileAppsSubmissionId: ").Append(MobileAppsSubmissionId).Append("\n"); + sb.Append(" AppName: ").Append(AppName).Append("\n"); + sb.Append(" AppDescription: ").Append(AppDescription).Append("\n"); + sb.Append(" AppShortDescription: ").Append(AppShortDescription).Append("\n"); + sb.Append(" Keywords: ").Append(Keywords).Append("\n"); + sb.Append(" AppLogoUrl: ").Append(AppLogoUrl).Append("\n"); + sb.Append(" AutoPublish: ").Append(AutoPublish).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsSubmissionDetails); + } + + /// + /// Returns true if MobileAppsSubmissionDetails instances are equal + /// + /// Instance of MobileAppsSubmissionDetails to be compared + /// Boolean + public bool Equals(MobileAppsSubmissionDetails input) + { + if (input == null) + return false; + + return + ( + this.MobileAppsSubmissionId == input.MobileAppsSubmissionId || + (this.MobileAppsSubmissionId != null && + this.MobileAppsSubmissionId.Equals(input.MobileAppsSubmissionId)) + ) && + ( + this.AppName == input.AppName || + (this.AppName != null && + this.AppName.Equals(input.AppName)) + ) && + ( + this.AppDescription == input.AppDescription || + (this.AppDescription != null && + this.AppDescription.Equals(input.AppDescription)) + ) && + ( + this.AppShortDescription == input.AppShortDescription || + (this.AppShortDescription != null && + this.AppShortDescription.Equals(input.AppShortDescription)) + ) && + ( + this.Keywords == input.Keywords || + this.Keywords != null && + this.Keywords.SequenceEqual(input.Keywords) + ) && + ( + this.AppLogoUrl == input.AppLogoUrl || + (this.AppLogoUrl != null && + this.AppLogoUrl.Equals(input.AppLogoUrl)) + ) && + ( + this.AutoPublish == input.AutoPublish || + (this.AutoPublish != null && + this.AutoPublish.Equals(input.AutoPublish)) + ) && + ( + this.Status == input.Status || + this.Status != null && + this.Status.SequenceEqual(input.Status) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MobileAppsSubmissionId != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionId.GetHashCode(); + if (this.AppName != null) + hashCode = hashCode * 59 + this.AppName.GetHashCode(); + if (this.AppDescription != null) + hashCode = hashCode * 59 + this.AppDescription.GetHashCode(); + if (this.AppShortDescription != null) + hashCode = hashCode * 59 + this.AppShortDescription.GetHashCode(); + if (this.Keywords != null) + hashCode = hashCode * 59 + this.Keywords.GetHashCode(); + if (this.AppLogoUrl != null) + hashCode = hashCode * 59 + this.AppLogoUrl.GetHashCode(); + if (this.AutoPublish != null) + hashCode = hashCode * 59 + this.AutoPublish.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsSubmissionStatus.cs b/src/Flipdish/Model/MobileAppsSubmissionStatus.cs new file mode 100644 index 00000000..c6eafbfd --- /dev/null +++ b/src/Flipdish/Model/MobileAppsSubmissionStatus.cs @@ -0,0 +1,348 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps Status + /// + [DataContract] + public partial class MobileAppsSubmissionStatus : IEquatable + { + /// + /// Mobile Type + /// + /// Mobile Type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum IOS for value: IOS + /// + [EnumMember(Value = "IOS")] + IOS = 3 + } + + /// + /// Mobile Type + /// + /// Mobile Type + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Mobile App Status + /// + /// Mobile App Status + [JsonConverter(typeof(StringEnumConverter))] + public enum AppStatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Published for value: Published + /// + [EnumMember(Value = "Published")] + Published = 2, + + /// + /// Enum Unpublished for value: Unpublished + /// + [EnumMember(Value = "Unpublished")] + Unpublished = 3 + } + + /// + /// Mobile App Status + /// + /// Mobile App Status + [DataMember(Name="AppStatus", EmitDefaultValue=false)] + public AppStatusEnum? AppStatus { get; set; } + /// + /// Mobile App Status + /// + /// Mobile App Status + [JsonConverter(typeof(StringEnumConverter))] + public enum UpdateStatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Submitted for value: Submitted + /// + [EnumMember(Value = "Submitted")] + Submitted = 2, + + /// + /// Enum InReview for value: InReview + /// + [EnumMember(Value = "InReview")] + InReview = 3, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 4, + + /// + /// Enum Approved for value: Approved + /// + [EnumMember(Value = "Approved")] + Approved = 5, + + /// + /// Enum Published for value: Published + /// + [EnumMember(Value = "Published")] + Published = 6 + } + + /// + /// Mobile App Status + /// + /// Mobile App Status + [DataMember(Name="UpdateStatus", EmitDefaultValue=false)] + public UpdateStatusEnum? UpdateStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Mobile Apps Submission Status Id. + /// Mobile Apps Submission Id. + /// Mobile Type. + /// Mobile App Status. + /// Mobile App Status. + /// Mobile LastUpdateStatusTime. + /// Mobile CreateTime. + /// Mobile UpdateTime. + /// Mobile Notes. + public MobileAppsSubmissionStatus(int? mobileAppsSubmissionStatusId = default(int?), int? mobileAppsSubmissionId = default(int?), TypeEnum? type = default(TypeEnum?), AppStatusEnum? appStatus = default(AppStatusEnum?), UpdateStatusEnum? updateStatus = default(UpdateStatusEnum?), DateTime? lastUpdateStatusTime = default(DateTime?), DateTime? createTime = default(DateTime?), DateTime? updateTime = default(DateTime?), string notes = default(string)) + { + this.MobileAppsSubmissionStatusId = mobileAppsSubmissionStatusId; + this.MobileAppsSubmissionId = mobileAppsSubmissionId; + this.Type = type; + this.AppStatus = appStatus; + this.UpdateStatus = updateStatus; + this.LastUpdateStatusTime = lastUpdateStatusTime; + this.CreateTime = createTime; + this.UpdateTime = updateTime; + this.Notes = notes; + } + + /// + /// Mobile Apps Submission Status Id + /// + /// Mobile Apps Submission Status Id + [DataMember(Name="MobileAppsSubmissionStatusId", EmitDefaultValue=false)] + public int? MobileAppsSubmissionStatusId { get; set; } + + /// + /// Mobile Apps Submission Id + /// + /// Mobile Apps Submission Id + [DataMember(Name="MobileAppsSubmissionId", EmitDefaultValue=false)] + public int? MobileAppsSubmissionId { get; set; } + + + + + /// + /// Mobile LastUpdateStatusTime + /// + /// Mobile LastUpdateStatusTime + [DataMember(Name="LastUpdateStatusTime", EmitDefaultValue=false)] + public DateTime? LastUpdateStatusTime { get; set; } + + /// + /// Mobile CreateTime + /// + /// Mobile CreateTime + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Mobile UpdateTime + /// + /// Mobile UpdateTime + [DataMember(Name="UpdateTime", EmitDefaultValue=false)] + public DateTime? UpdateTime { get; set; } + + /// + /// Mobile Notes + /// + /// Mobile Notes + [DataMember(Name="Notes", EmitDefaultValue=false)] + public string Notes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsSubmissionStatus {\n"); + sb.Append(" MobileAppsSubmissionStatusId: ").Append(MobileAppsSubmissionStatusId).Append("\n"); + sb.Append(" MobileAppsSubmissionId: ").Append(MobileAppsSubmissionId).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" AppStatus: ").Append(AppStatus).Append("\n"); + sb.Append(" UpdateStatus: ").Append(UpdateStatus).Append("\n"); + sb.Append(" LastUpdateStatusTime: ").Append(LastUpdateStatusTime).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" UpdateTime: ").Append(UpdateTime).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsSubmissionStatus); + } + + /// + /// Returns true if MobileAppsSubmissionStatus instances are equal + /// + /// Instance of MobileAppsSubmissionStatus to be compared + /// Boolean + public bool Equals(MobileAppsSubmissionStatus input) + { + if (input == null) + return false; + + return + ( + this.MobileAppsSubmissionStatusId == input.MobileAppsSubmissionStatusId || + (this.MobileAppsSubmissionStatusId != null && + this.MobileAppsSubmissionStatusId.Equals(input.MobileAppsSubmissionStatusId)) + ) && + ( + this.MobileAppsSubmissionId == input.MobileAppsSubmissionId || + (this.MobileAppsSubmissionId != null && + this.MobileAppsSubmissionId.Equals(input.MobileAppsSubmissionId)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.AppStatus == input.AppStatus || + (this.AppStatus != null && + this.AppStatus.Equals(input.AppStatus)) + ) && + ( + this.UpdateStatus == input.UpdateStatus || + (this.UpdateStatus != null && + this.UpdateStatus.Equals(input.UpdateStatus)) + ) && + ( + this.LastUpdateStatusTime == input.LastUpdateStatusTime || + (this.LastUpdateStatusTime != null && + this.LastUpdateStatusTime.Equals(input.LastUpdateStatusTime)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.UpdateTime == input.UpdateTime || + (this.UpdateTime != null && + this.UpdateTime.Equals(input.UpdateTime)) + ) && + ( + this.Notes == input.Notes || + (this.Notes != null && + this.Notes.Equals(input.Notes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MobileAppsSubmissionStatusId != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionStatusId.GetHashCode(); + if (this.MobileAppsSubmissionId != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionId.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.AppStatus != null) + hashCode = hashCode * 59 + this.AppStatus.GetHashCode(); + if (this.UpdateStatus != null) + hashCode = hashCode * 59 + this.UpdateStatus.GetHashCode(); + if (this.LastUpdateStatusTime != null) + hashCode = hashCode * 59 + this.LastUpdateStatusTime.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.UpdateTime != null) + hashCode = hashCode * 59 + this.UpdateTime.GetHashCode(); + if (this.Notes != null) + hashCode = hashCode * 59 + this.Notes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsSubmissionStatusUpdatedEvent.cs b/src/Flipdish/Model/MobileAppsSubmissionStatusUpdatedEvent.cs new file mode 100644 index 00000000..b6644ab5 --- /dev/null +++ b/src/Flipdish/Model/MobileAppsSubmissionStatusUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps event + /// + [DataContract] + public partial class MobileAppsSubmissionStatusUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the item. + /// Mobile Apps Submission Status. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MobileAppsSubmissionStatusUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), MobileAppsSubmissionStatus mobileAppsSubmissionStatus = default(MobileAppsSubmissionStatus), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.MobileAppsSubmissionStatus = mobileAppsSubmissionStatus; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the item + /// + /// User who has created the item + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Mobile Apps Submission Status + /// + /// Mobile Apps Submission Status + [DataMember(Name="MobileAppsSubmissionStatus", EmitDefaultValue=false)] + public MobileAppsSubmissionStatus MobileAppsSubmissionStatus { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsSubmissionStatusUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" MobileAppsSubmissionStatus: ").Append(MobileAppsSubmissionStatus).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsSubmissionStatusUpdatedEvent); + } + + /// + /// Returns true if MobileAppsSubmissionStatusUpdatedEvent instances are equal + /// + /// Instance of MobileAppsSubmissionStatusUpdatedEvent to be compared + /// Boolean + public bool Equals(MobileAppsSubmissionStatusUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.MobileAppsSubmissionStatus == input.MobileAppsSubmissionStatus || + (this.MobileAppsSubmissionStatus != null && + this.MobileAppsSubmissionStatus.Equals(input.MobileAppsSubmissionStatus)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.MobileAppsSubmissionStatus != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionStatus.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/MobileAppsSubmissionUpdatedEvent.cs b/src/Flipdish/Model/MobileAppsSubmissionUpdatedEvent.cs new file mode 100644 index 00000000..10a3c6cd --- /dev/null +++ b/src/Flipdish/Model/MobileAppsSubmissionUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Mobile Apps event + /// + [DataContract] + public partial class MobileAppsSubmissionUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has created the item. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public MobileAppsSubmissionUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has created the item + /// + /// User who has created the item + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MobileAppsSubmissionUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MobileAppsSubmissionUpdatedEvent); + } + + /// + /// Returns true if MobileAppsSubmissionUpdatedEvent instances are equal + /// + /// Instance of MobileAppsSubmissionUpdatedEvent to be compared + /// Boolean + public bool Equals(MobileAppsSubmissionUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ModelBase.cs b/src/Flipdish/Model/ModelBase.cs new file mode 100644 index 00000000..70350917 --- /dev/null +++ b/src/Flipdish/Model/ModelBase.cs @@ -0,0 +1,97 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Model base + /// + [DataContract] + public partial class ModelBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public ModelBase() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ModelBase {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ModelBase); + } + + /// + /// Returns true if ModelBase instances are equal + /// + /// Instance of ModelBase to be compared + /// Boolean + public bool Equals(ModelBase input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NextStatusWithOrderType.cs b/src/Flipdish/Model/NextStatusWithOrderType.cs new file mode 100644 index 00000000..489f68f9 --- /dev/null +++ b/src/Flipdish/Model/NextStatusWithOrderType.cs @@ -0,0 +1,163 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Next status by order type + /// + [DataContract] + public partial class NextStatusWithOrderType : IEquatable + { + /// + /// Order type + /// + /// Order type + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + + /// + /// Enum All for value: All + /// + [EnumMember(Value = "All")] + All = 1, + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 2, + + /// + /// Enum Collection for value: Collection + /// + [EnumMember(Value = "Collection")] + Collection = 3, + + /// + /// Enum DineIn for value: DineIn + /// + [EnumMember(Value = "DineIn")] + DineIn = 4 + } + + /// + /// Order type + /// + /// Order type + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public OrderTypeEnum? OrderType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Order type. + /// Next status id. + public NextStatusWithOrderType(OrderTypeEnum? orderType = default(OrderTypeEnum?), string nextStatus = default(string)) + { + this.OrderType = orderType; + this.NextStatus = nextStatus; + } + + + /// + /// Next status id + /// + /// Next status id + [DataMember(Name="NextStatus", EmitDefaultValue=false)] + public string NextStatus { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NextStatusWithOrderType {\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" NextStatus: ").Append(NextStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NextStatusWithOrderType); + } + + /// + /// Returns true if NextStatusWithOrderType instances are equal + /// + /// Instance of NextStatusWithOrderType to be compared + /// Boolean + public bool Equals(NextStatusWithOrderType input) + { + if (input == null) + return false; + + return + ( + this.OrderType == input.OrderType || + (this.OrderType != null && + this.OrderType.Equals(input.OrderType)) + ) && + ( + this.NextStatus == input.NextStatus || + (this.NextStatus != null && + this.NextStatus.Equals(input.NextStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderType != null) + hashCode = hashCode * 59 + this.OrderType.GetHashCode(); + if (this.NextStatus != null) + hashCode = hashCode * 59 + this.NextStatus.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfo.cs b/src/Flipdish/Model/NutritionInfo.cs new file mode 100644 index 00000000..a67c5a48 --- /dev/null +++ b/src/Flipdish/Model/NutritionInfo.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Nutrition Information + /// + [DataContract] + public partial class NutritionInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Version of the nutrition information model. + /// List of menu item nutrition infos. + /// List of menu item option set nutrition infos. + public NutritionInfo(string version = default(string), List menuItems = default(List), List menuItemOptionSetItems = default(List)) + { + this.Version = version; + this.MenuItems = menuItems; + this.MenuItemOptionSetItems = menuItemOptionSetItems; + } + + /// + /// Version of the nutrition information model + /// + /// Version of the nutrition information model + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// List of menu item nutrition infos + /// + /// List of menu item nutrition infos + [DataMember(Name="MenuItems", EmitDefaultValue=false)] + public List MenuItems { get; set; } + + /// + /// List of menu item option set nutrition infos + /// + /// List of menu item option set nutrition infos + [DataMember(Name="MenuItemOptionSetItems", EmitDefaultValue=false)] + public List MenuItemOptionSetItems { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfo {\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" MenuItems: ").Append(MenuItems).Append("\n"); + sb.Append(" MenuItemOptionSetItems: ").Append(MenuItemOptionSetItems).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfo); + } + + /// + /// Returns true if NutritionInfo instances are equal + /// + /// Instance of NutritionInfo to be compared + /// Boolean + public bool Equals(NutritionInfo input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.MenuItems == input.MenuItems || + this.MenuItems != null && + this.MenuItems.SequenceEqual(input.MenuItems) + ) && + ( + this.MenuItemOptionSetItems == input.MenuItemOptionSetItems || + this.MenuItemOptionSetItems != null && + this.MenuItemOptionSetItems.SequenceEqual(input.MenuItemOptionSetItems) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.MenuItems != null) + hashCode = hashCode * 59 + this.MenuItems.GetHashCode(); + if (this.MenuItemOptionSetItems != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItems.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoItemAddUpdateLabelModel.cs b/src/Flipdish/Model/NutritionInfoItemAddUpdateLabelModel.cs new file mode 100644 index 00000000..8b5157b5 --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoItemAddUpdateLabelModel.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoItemAddUpdateLabelModel. + /// + [DataContract] + public partial class NutritionInfoItemAddUpdateLabelModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// Values.. + /// IconUrl.. + public NutritionInfoItemAddUpdateLabelModel(string name = default(string), List values = default(List), string iconUrl = default(string)) + { + this.Name = name; + this.Values = values; + this.IconUrl = iconUrl; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Values. + /// + /// Values. + [DataMember(Name="Values", EmitDefaultValue=false)] + public List Values { get; set; } + + /// + /// IconUrl. + /// + /// IconUrl. + [DataMember(Name="IconUrl", EmitDefaultValue=false)] + public string IconUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoItemAddUpdateLabelModel {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Values: ").Append(Values).Append("\n"); + sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoItemAddUpdateLabelModel); + } + + /// + /// Returns true if NutritionInfoItemAddUpdateLabelModel instances are equal + /// + /// Instance of NutritionInfoItemAddUpdateLabelModel to be compared + /// Boolean + public bool Equals(NutritionInfoItemAddUpdateLabelModel input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Values == input.Values || + this.Values != null && + this.Values.SequenceEqual(input.Values) + ) && + ( + this.IconUrl == input.IconUrl || + (this.IconUrl != null && + this.IconUrl.Equals(input.IconUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Values != null) + hashCode = hashCode * 59 + this.Values.GetHashCode(); + if (this.IconUrl != null) + hashCode = hashCode * 59 + this.IconUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoLabel.cs b/src/Flipdish/Model/NutritionInfoLabel.cs new file mode 100644 index 00000000..7be09e73 --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoLabel.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoLabel. + /// + [DataContract] + public partial class NutritionInfoLabel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the allergen / ingredient. + /// Optional list of values for the allergen / ingredient. + /// Url to the icon for the allergen / ingredient. + public NutritionInfoLabel(string name = default(string), List values = default(List), string iconUrl = default(string)) + { + this.Name = name; + this.Values = values; + this.IconUrl = iconUrl; + } + + /// + /// Name of the allergen / ingredient + /// + /// Name of the allergen / ingredient + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Optional list of values for the allergen / ingredient + /// + /// Optional list of values for the allergen / ingredient + [DataMember(Name="Values", EmitDefaultValue=false)] + public List Values { get; set; } + + /// + /// Url to the icon for the allergen / ingredient + /// + /// Url to the icon for the allergen / ingredient + [DataMember(Name="IconUrl", EmitDefaultValue=false)] + public string IconUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoLabel {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Values: ").Append(Values).Append("\n"); + sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoLabel); + } + + /// + /// Returns true if NutritionInfoLabel instances are equal + /// + /// Instance of NutritionInfoLabel to be compared + /// Boolean + public bool Equals(NutritionInfoLabel input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Values == input.Values || + this.Values != null && + this.Values.SequenceEqual(input.Values) + ) && + ( + this.IconUrl == input.IconUrl || + (this.IconUrl != null && + this.IconUrl.Equals(input.IconUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Values != null) + hashCode = hashCode * 59 + this.Values.GetHashCode(); + if (this.IconUrl != null) + hashCode = hashCode * 59 + this.IconUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoMenuItem.cs b/src/Flipdish/Model/NutritionInfoMenuItem.cs new file mode 100644 index 00000000..742c444f --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoMenuItem.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoMenuItem. + /// + [DataContract] + public partial class NutritionInfoMenuItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu item public id. + /// List of Nutrition Info Labels for this menu item. + public NutritionInfoMenuItem(Guid? publicId = default(Guid?), List labels = default(List)) + { + this.PublicId = publicId; + this.Labels = labels; + } + + /// + /// Menu item public id + /// + /// Menu item public id + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// List of Nutrition Info Labels for this menu item + /// + /// List of Nutrition Info Labels for this menu item + [DataMember(Name="Labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoMenuItem {\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" Labels: ").Append(Labels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoMenuItem); + } + + /// + /// Returns true if NutritionInfoMenuItem instances are equal + /// + /// Instance of NutritionInfoMenuItem to be compared + /// Boolean + public bool Equals(NutritionInfoMenuItem input) + { + if (input == null) + return false; + + return + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoMenuOptionSetItem.cs b/src/Flipdish/Model/NutritionInfoMenuOptionSetItem.cs new file mode 100644 index 00000000..26f5e2b2 --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoMenuOptionSetItem.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoMenuOptionSetItem. + /// + [DataContract] + public partial class NutritionInfoMenuOptionSetItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu item option set item public id. + /// List of Nutrition Info Labels for this menu item option set item. + public NutritionInfoMenuOptionSetItem(Guid? publicId = default(Guid?), List labels = default(List)) + { + this.PublicId = publicId; + this.Labels = labels; + } + + /// + /// Menu item option set item public id + /// + /// Menu item option set item public id + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// List of Nutrition Info Labels for this menu item option set item + /// + /// List of Nutrition Info Labels for this menu item option set item + [DataMember(Name="Labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoMenuOptionSetItem {\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" Labels: ").Append(Labels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoMenuOptionSetItem); + } + + /// + /// Returns true if NutritionInfoMenuOptionSetItem instances are equal + /// + /// Instance of NutritionInfoMenuOptionSetItem to be compared + /// Boolean + public bool Equals(NutritionInfoMenuOptionSetItem input) + { + if (input == null) + return false; + + return + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoV2.cs b/src/Flipdish/Model/NutritionInfoV2.cs new file mode 100644 index 00000000..012dd2bc --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoV2.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Nutrition Information. Version 2 (localized). + /// + [DataContract] + public partial class NutritionInfoV2 : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// List of menu item nutrition infos. + /// List of menu item option set nutrition infos. + /// Base url for allergen images. + public NutritionInfoV2(List menuItems = default(List), List menuItemOptionSetItems = default(List), string imageBaseUrl = default(string)) + { + this.MenuItems = menuItems; + this.MenuItemOptionSetItems = menuItemOptionSetItems; + this.ImageBaseUrl = imageBaseUrl; + } + + /// + /// List of menu item nutrition infos + /// + /// List of menu item nutrition infos + [DataMember(Name="MenuItems", EmitDefaultValue=false)] + public List MenuItems { get; set; } + + /// + /// List of menu item option set nutrition infos + /// + /// List of menu item option set nutrition infos + [DataMember(Name="MenuItemOptionSetItems", EmitDefaultValue=false)] + public List MenuItemOptionSetItems { get; set; } + + /// + /// Base url for allergen images + /// + /// Base url for allergen images + [DataMember(Name="ImageBaseUrl", EmitDefaultValue=false)] + public string ImageBaseUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoV2 {\n"); + sb.Append(" MenuItems: ").Append(MenuItems).Append("\n"); + sb.Append(" MenuItemOptionSetItems: ").Append(MenuItemOptionSetItems).Append("\n"); + sb.Append(" ImageBaseUrl: ").Append(ImageBaseUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoV2); + } + + /// + /// Returns true if NutritionInfoV2 instances are equal + /// + /// Instance of NutritionInfoV2 to be compared + /// Boolean + public bool Equals(NutritionInfoV2 input) + { + if (input == null) + return false; + + return + ( + this.MenuItems == input.MenuItems || + this.MenuItems != null && + this.MenuItems.SequenceEqual(input.MenuItems) + ) && + ( + this.MenuItemOptionSetItems == input.MenuItemOptionSetItems || + this.MenuItemOptionSetItems != null && + this.MenuItemOptionSetItems.SequenceEqual(input.MenuItemOptionSetItems) + ) && + ( + this.ImageBaseUrl == input.ImageBaseUrl || + (this.ImageBaseUrl != null && + this.ImageBaseUrl.Equals(input.ImageBaseUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuItems != null) + hashCode = hashCode * 59 + this.MenuItems.GetHashCode(); + if (this.MenuItemOptionSetItems != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetItems.GetHashCode(); + if (this.ImageBaseUrl != null) + hashCode = hashCode * 59 + this.ImageBaseUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoV2Allergen.cs b/src/Flipdish/Model/NutritionInfoV2Allergen.cs new file mode 100644 index 00000000..52585510 --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoV2Allergen.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoV2Allergen. + /// + [DataContract] + public partial class NutritionInfoV2Allergen : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// AllergenId (unique string identifier). + /// Localized allergen name. + /// Name of the image file. Append it to ImageBaseUrl to get the full URL. + public NutritionInfoV2Allergen(string allergenId = default(string), string localizedName = default(string), string imageName = default(string)) + { + this.AllergenId = allergenId; + this.LocalizedName = localizedName; + this.ImageName = imageName; + } + + /// + /// AllergenId (unique string identifier) + /// + /// AllergenId (unique string identifier) + [DataMember(Name="AllergenId", EmitDefaultValue=false)] + public string AllergenId { get; set; } + + /// + /// Localized allergen name + /// + /// Localized allergen name + [DataMember(Name="LocalizedName", EmitDefaultValue=false)] + public string LocalizedName { get; set; } + + /// + /// Name of the image file. Append it to ImageBaseUrl to get the full URL + /// + /// Name of the image file. Append it to ImageBaseUrl to get the full URL + [DataMember(Name="ImageName", EmitDefaultValue=false)] + public string ImageName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoV2Allergen {\n"); + sb.Append(" AllergenId: ").Append(AllergenId).Append("\n"); + sb.Append(" LocalizedName: ").Append(LocalizedName).Append("\n"); + sb.Append(" ImageName: ").Append(ImageName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoV2Allergen); + } + + /// + /// Returns true if NutritionInfoV2Allergen instances are equal + /// + /// Instance of NutritionInfoV2Allergen to be compared + /// Boolean + public bool Equals(NutritionInfoV2Allergen input) + { + if (input == null) + return false; + + return + ( + this.AllergenId == input.AllergenId || + (this.AllergenId != null && + this.AllergenId.Equals(input.AllergenId)) + ) && + ( + this.LocalizedName == input.LocalizedName || + (this.LocalizedName != null && + this.LocalizedName.Equals(input.LocalizedName)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AllergenId != null) + hashCode = hashCode * 59 + this.AllergenId.GetHashCode(); + if (this.LocalizedName != null) + hashCode = hashCode * 59 + this.LocalizedName.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/NutritionInfoV2Item.cs b/src/Flipdish/Model/NutritionInfoV2Item.cs new file mode 100644 index 00000000..eb0536af --- /dev/null +++ b/src/Flipdish/Model/NutritionInfoV2Item.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// NutritionInfoV2Item. + /// + [DataContract] + public partial class NutritionInfoV2Item : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu item or menu item option set item public id. + /// List of allergens for this item. + public NutritionInfoV2Item(Guid? publicId = default(Guid?), List allergens = default(List)) + { + this.PublicId = publicId; + this.Allergens = allergens; + } + + /// + /// Menu item or menu item option set item public id + /// + /// Menu item or menu item option set item public id + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// List of allergens for this item + /// + /// List of allergens for this item + [DataMember(Name="Allergens", EmitDefaultValue=false)] + public List Allergens { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NutritionInfoV2Item {\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" Allergens: ").Append(Allergens).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NutritionInfoV2Item); + } + + /// + /// Returns true if NutritionInfoV2Item instances are equal + /// + /// Instance of NutritionInfoV2Item to be compared + /// Boolean + public bool Equals(NutritionInfoV2Item input) + { + if (input == null) + return false; + + return + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.Allergens == input.Allergens || + this.Allergens != null && + this.Allergens.SequenceEqual(input.Allergens) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.Allergens != null) + hashCode = hashCode * 59 + this.Allergens.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OAuthApp.cs b/src/Flipdish/Model/OAuthApp.cs new file mode 100644 index 00000000..058bdb33 --- /dev/null +++ b/src/Flipdish/Model/OAuthApp.cs @@ -0,0 +1,286 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Oauth client (also knowns as 'app') + /// + [DataContract] + public partial class OAuthApp : IEquatable + { + /// + /// Supported OpenID Connect flows + /// + /// Supported OpenID Connect flows + [JsonConverter(typeof(StringEnumConverter))] + public enum FlowEnum + { + + /// + /// Enum AuthorizationCode for value: AuthorizationCode + /// + [EnumMember(Value = "AuthorizationCode")] + AuthorizationCode = 1, + + /// + /// Enum Implicit for value: Implicit + /// + [EnumMember(Value = "Implicit")] + Implicit = 2, + + /// + /// Enum Hybrid for value: Hybrid + /// + [EnumMember(Value = "Hybrid")] + Hybrid = 3, + + /// + /// Enum ClientCredentials for value: ClientCredentials + /// + [EnumMember(Value = "ClientCredentials")] + ClientCredentials = 4 + } + + /// + /// Supported OpenID Connect flows + /// + /// Supported OpenID Connect flows + [DataMember(Name="Flow", EmitDefaultValue=false)] + public FlowEnum? Flow { get; set; } + /// + /// ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens + /// + /// ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens + [JsonConverter(typeof(StringEnumConverter))] + public enum RefreshTokenUsageEnum + { + + /// + /// Enum ReUse for value: ReUse + /// + [EnumMember(Value = "ReUse")] + ReUse = 1, + + /// + /// Enum OneTimeOnly for value: OneTimeOnly + /// + [EnumMember(Value = "OneTimeOnly")] + OneTimeOnly = 2 + } + + /// + /// ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens + /// + /// ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens + [DataMember(Name="RefreshTokenUsage", EmitDefaultValue=false)] + public RefreshTokenUsageEnum? RefreshTokenUsage { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// OAuth App Identifier. + /// OAuth App Name. + /// OAuth App owner user identifier. + /// OAuth App logo uri. + /// Supported OpenID Connect flows. + /// ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens. + /// Timem it takes for the IdentityToken to expire in seconds. + /// Maximum lifetime of a refresh token in seconds. + public OAuthApp(string oauthAppId = default(string), string oauthAppName = default(string), int? ownerUserId = default(int?), string logoUri = default(string), FlowEnum? flow = default(FlowEnum?), RefreshTokenUsageEnum? refreshTokenUsage = default(RefreshTokenUsageEnum?), int? accessTokenLifetime = default(int?), int? absoluteRefreshTokenLifetime = default(int?)) + { + this.OauthAppId = oauthAppId; + this.OauthAppName = oauthAppName; + this.OwnerUserId = ownerUserId; + this.LogoUri = logoUri; + this.Flow = flow; + this.RefreshTokenUsage = refreshTokenUsage; + this.AccessTokenLifetime = accessTokenLifetime; + this.AbsoluteRefreshTokenLifetime = absoluteRefreshTokenLifetime; + } + + /// + /// OAuth App Identifier + /// + /// OAuth App Identifier + [DataMember(Name="OauthAppId", EmitDefaultValue=false)] + public string OauthAppId { get; set; } + + /// + /// OAuth App Name + /// + /// OAuth App Name + [DataMember(Name="OauthAppName", EmitDefaultValue=false)] + public string OauthAppName { get; set; } + + /// + /// OAuth App owner user identifier + /// + /// OAuth App owner user identifier + [DataMember(Name="OwnerUserId", EmitDefaultValue=false)] + public int? OwnerUserId { get; set; } + + /// + /// OAuth App logo uri + /// + /// OAuth App logo uri + [DataMember(Name="LogoUri", EmitDefaultValue=false)] + public string LogoUri { get; set; } + + + + /// + /// Timem it takes for the IdentityToken to expire in seconds + /// + /// Timem it takes for the IdentityToken to expire in seconds + [DataMember(Name="AccessTokenLifetime", EmitDefaultValue=false)] + public int? AccessTokenLifetime { get; set; } + + /// + /// Maximum lifetime of a refresh token in seconds + /// + /// Maximum lifetime of a refresh token in seconds + [DataMember(Name="AbsoluteRefreshTokenLifetime", EmitDefaultValue=false)] + public int? AbsoluteRefreshTokenLifetime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OAuthApp {\n"); + sb.Append(" OauthAppId: ").Append(OauthAppId).Append("\n"); + sb.Append(" OauthAppName: ").Append(OauthAppName).Append("\n"); + sb.Append(" OwnerUserId: ").Append(OwnerUserId).Append("\n"); + sb.Append(" LogoUri: ").Append(LogoUri).Append("\n"); + sb.Append(" Flow: ").Append(Flow).Append("\n"); + sb.Append(" RefreshTokenUsage: ").Append(RefreshTokenUsage).Append("\n"); + sb.Append(" AccessTokenLifetime: ").Append(AccessTokenLifetime).Append("\n"); + sb.Append(" AbsoluteRefreshTokenLifetime: ").Append(AbsoluteRefreshTokenLifetime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OAuthApp); + } + + /// + /// Returns true if OAuthApp instances are equal + /// + /// Instance of OAuthApp to be compared + /// Boolean + public bool Equals(OAuthApp input) + { + if (input == null) + return false; + + return + ( + this.OauthAppId == input.OauthAppId || + (this.OauthAppId != null && + this.OauthAppId.Equals(input.OauthAppId)) + ) && + ( + this.OauthAppName == input.OauthAppName || + (this.OauthAppName != null && + this.OauthAppName.Equals(input.OauthAppName)) + ) && + ( + this.OwnerUserId == input.OwnerUserId || + (this.OwnerUserId != null && + this.OwnerUserId.Equals(input.OwnerUserId)) + ) && + ( + this.LogoUri == input.LogoUri || + (this.LogoUri != null && + this.LogoUri.Equals(input.LogoUri)) + ) && + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ) && + ( + this.RefreshTokenUsage == input.RefreshTokenUsage || + (this.RefreshTokenUsage != null && + this.RefreshTokenUsage.Equals(input.RefreshTokenUsage)) + ) && + ( + this.AccessTokenLifetime == input.AccessTokenLifetime || + (this.AccessTokenLifetime != null && + this.AccessTokenLifetime.Equals(input.AccessTokenLifetime)) + ) && + ( + this.AbsoluteRefreshTokenLifetime == input.AbsoluteRefreshTokenLifetime || + (this.AbsoluteRefreshTokenLifetime != null && + this.AbsoluteRefreshTokenLifetime.Equals(input.AbsoluteRefreshTokenLifetime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OauthAppId != null) + hashCode = hashCode * 59 + this.OauthAppId.GetHashCode(); + if (this.OauthAppName != null) + hashCode = hashCode * 59 + this.OauthAppName.GetHashCode(); + if (this.OwnerUserId != null) + hashCode = hashCode * 59 + this.OwnerUserId.GetHashCode(); + if (this.LogoUri != null) + hashCode = hashCode * 59 + this.LogoUri.GetHashCode(); + if (this.Flow != null) + hashCode = hashCode * 59 + this.Flow.GetHashCode(); + if (this.RefreshTokenUsage != null) + hashCode = hashCode * 59 + this.RefreshTokenUsage.GetHashCode(); + if (this.AccessTokenLifetime != null) + hashCode = hashCode * 59 + this.AccessTokenLifetime.GetHashCode(); + if (this.AbsoluteRefreshTokenLifetime != null) + hashCode = hashCode * 59 + this.AbsoluteRefreshTokenLifetime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OAuthTokenModel.cs b/src/Flipdish/Model/OAuthTokenModel.cs new file mode 100644 index 00000000..32b61be9 --- /dev/null +++ b/src/Flipdish/Model/OAuthTokenModel.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OAuth token model + /// + [DataContract] + public partial class OAuthTokenModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Identitifier key. + /// Token type. + /// Oauth subject identifier. + /// Oauth client identifier. + /// Token expiry. + public OAuthTokenModel(string key = default(string), string tokenType = default(string), string subjectId = default(string), string clientId = default(string), DateTime? expiry = default(DateTime?)) + { + this.Key = key; + this.TokenType = tokenType; + this.SubjectId = subjectId; + this.ClientId = clientId; + this.Expiry = expiry; + } + + /// + /// Identitifier key + /// + /// Identitifier key + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Token type + /// + /// Token type + [DataMember(Name="TokenType", EmitDefaultValue=false)] + public string TokenType { get; set; } + + /// + /// Oauth subject identifier + /// + /// Oauth subject identifier + [DataMember(Name="SubjectId", EmitDefaultValue=false)] + public string SubjectId { get; set; } + + /// + /// Oauth client identifier + /// + /// Oauth client identifier + [DataMember(Name="ClientId", EmitDefaultValue=false)] + public string ClientId { get; set; } + + /// + /// Token expiry + /// + /// Token expiry + [DataMember(Name="Expiry", EmitDefaultValue=false)] + public DateTime? Expiry { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OAuthTokenModel {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" TokenType: ").Append(TokenType).Append("\n"); + sb.Append(" SubjectId: ").Append(SubjectId).Append("\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" Expiry: ").Append(Expiry).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OAuthTokenModel); + } + + /// + /// Returns true if OAuthTokenModel instances are equal + /// + /// Instance of OAuthTokenModel to be compared + /// Boolean + public bool Equals(OAuthTokenModel input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.TokenType == input.TokenType || + (this.TokenType != null && + this.TokenType.Equals(input.TokenType)) + ) && + ( + this.SubjectId == input.SubjectId || + (this.SubjectId != null && + this.SubjectId.Equals(input.SubjectId)) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Expiry == input.Expiry || + (this.Expiry != null && + this.Expiry.Equals(input.Expiry)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.TokenType != null) + hashCode = hashCode * 59 + this.TokenType.GetHashCode(); + if (this.SubjectId != null) + hashCode = hashCode * 59 + this.SubjectId.GetHashCode(); + if (this.ClientId != null) + hashCode = hashCode * 59 + this.ClientId.GetHashCode(); + if (this.Expiry != null) + hashCode = hashCode * 59 + this.Expiry.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OauthClientRedirectUri.cs b/src/Flipdish/Model/OauthClientRedirectUri.cs new file mode 100644 index 00000000..454e0724 --- /dev/null +++ b/src/Flipdish/Model/OauthClientRedirectUri.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OAuth client redirect uri + /// + [DataContract] + public partial class OauthClientRedirectUri : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Redirect uri identifier. + /// Redirect uri. + public OauthClientRedirectUri(int? id = default(int?), string uri = default(string)) + { + this.Id = id; + this.Uri = uri; + } + + /// + /// Redirect uri identifier + /// + /// Redirect uri identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Redirect uri + /// + /// Redirect uri + [DataMember(Name="Uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OauthClientRedirectUri {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Uri: ").Append(Uri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OauthClientRedirectUri); + } + + /// + /// Returns true if OauthClientRedirectUri instances are equal + /// + /// Instance of OauthClientRedirectUri to be compared + /// Boolean + public bool Equals(OauthClientRedirectUri input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ObjectDisplayOrder.cs b/src/Flipdish/Model/ObjectDisplayOrder.cs new file mode 100644 index 00000000..c691ad90 --- /dev/null +++ b/src/Flipdish/Model/ObjectDisplayOrder.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ObjectDisplayOrder + /// + [DataContract] + public partial class ObjectDisplayOrder : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// ID of object to be ordered. + /// New Display order. + public ObjectDisplayOrder(int? id = default(int?), int? displayOrder = default(int?)) + { + this.Id = id; + this.DisplayOrder = displayOrder; + } + + /// + /// ID of object to be ordered + /// + /// ID of object to be ordered + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// New Display order + /// + /// New Display order + [DataMember(Name="DisplayOrder", EmitDefaultValue=false)] + public int? DisplayOrder { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ObjectDisplayOrder {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DisplayOrder: ").Append(DisplayOrder).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ObjectDisplayOrder); + } + + /// + /// Returns true if ObjectDisplayOrder instances are equal + /// + /// Instance of ObjectDisplayOrder to be compared + /// Boolean + public bool Equals(ObjectDisplayOrder input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DisplayOrder == input.DisplayOrder || + (this.DisplayOrder != null && + this.DisplayOrder.Equals(input.DisplayOrder)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.DisplayOrder != null) + hashCode = hashCode * 59 + this.DisplayOrder.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OktaPortalFeatureFlag.cs b/src/Flipdish/Model/OktaPortalFeatureFlag.cs new file mode 100644 index 00000000..fb1b24b6 --- /dev/null +++ b/src/Flipdish/Model/OktaPortalFeatureFlag.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Okta Portal Feature Flag Value + /// + [DataContract] + public partial class OktaPortalFeatureFlag : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Feature flag backend_portal_enableOktaWebApi value. + public OktaPortalFeatureFlag(bool? oktaPortalEnabled = default(bool?)) + { + this.OktaPortalEnabled = oktaPortalEnabled; + } + + /// + /// Feature flag backend_portal_enableOktaWebApi value + /// + /// Feature flag backend_portal_enableOktaWebApi value + [DataMember(Name="OktaPortalEnabled", EmitDefaultValue=false)] + public bool? OktaPortalEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OktaPortalFeatureFlag {\n"); + sb.Append(" OktaPortalEnabled: ").Append(OktaPortalEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OktaPortalFeatureFlag); + } + + /// + /// Returns true if OktaPortalFeatureFlag instances are equal + /// + /// Instance of OktaPortalFeatureFlag to be compared + /// Boolean + public bool Equals(OktaPortalFeatureFlag input) + { + if (input == null) + return false; + + return + ( + this.OktaPortalEnabled == input.OktaPortalEnabled || + (this.OktaPortalEnabled != null && + this.OktaPortalEnabled.Equals(input.OktaPortalEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OktaPortalEnabled != null) + hashCode = hashCode * 59 + this.OktaPortalEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OnboardingConfigUpdate.cs b/src/Flipdish/Model/OnboardingConfigUpdate.cs new file mode 100644 index 00000000..eeca13ee --- /dev/null +++ b/src/Flipdish/Model/OnboardingConfigUpdate.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Model for updating the onboarding config + /// + [DataContract] + public partial class OnboardingConfigUpdate : IEquatable + { + /// + /// Onboarding config type + /// + /// Onboarding config type + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigTypeEnum + { + + /// + /// Enum Tutorial for value: Tutorial + /// + [EnumMember(Value = "Tutorial")] + Tutorial = 1, + + /// + /// Enum OnboardingWizard for value: OnboardingWizard + /// + [EnumMember(Value = "OnboardingWizard")] + OnboardingWizard = 2 + } + + /// + /// Onboarding config type + /// + /// Onboarding config type + [DataMember(Name="ConfigType", EmitDefaultValue=false)] + public ConfigTypeEnum? ConfigType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Gets or sets whether onboarding is enabled. + /// Gets or sets whether welcome screen is enabled. + /// Onboarding config type. + public OnboardingConfigUpdate(bool? isEnabled = default(bool?), bool? isWelcomeScreenEnabled = default(bool?), ConfigTypeEnum? configType = default(ConfigTypeEnum?)) + { + this.IsEnabled = isEnabled; + this.IsWelcomeScreenEnabled = isWelcomeScreenEnabled; + this.ConfigType = configType; + } + + /// + /// Gets or sets whether onboarding is enabled + /// + /// Gets or sets whether onboarding is enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets whether welcome screen is enabled + /// + /// Gets or sets whether welcome screen is enabled + [DataMember(Name="IsWelcomeScreenEnabled", EmitDefaultValue=false)] + public bool? IsWelcomeScreenEnabled { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OnboardingConfigUpdate {\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsWelcomeScreenEnabled: ").Append(IsWelcomeScreenEnabled).Append("\n"); + sb.Append(" ConfigType: ").Append(ConfigType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OnboardingConfigUpdate); + } + + /// + /// Returns true if OnboardingConfigUpdate instances are equal + /// + /// Instance of OnboardingConfigUpdate to be compared + /// Boolean + public bool Equals(OnboardingConfigUpdate input) + { + if (input == null) + return false; + + return + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsWelcomeScreenEnabled == input.IsWelcomeScreenEnabled || + (this.IsWelcomeScreenEnabled != null && + this.IsWelcomeScreenEnabled.Equals(input.IsWelcomeScreenEnabled)) + ) && + ( + this.ConfigType == input.ConfigType || + (this.ConfigType != null && + this.ConfigType.Equals(input.ConfigType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsWelcomeScreenEnabled != null) + hashCode = hashCode * 59 + this.IsWelcomeScreenEnabled.GetHashCode(); + if (this.ConfigType != null) + hashCode = hashCode * 59 + this.ConfigType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OnboardingItemUpdate.cs b/src/Flipdish/Model/OnboardingItemUpdate.cs new file mode 100644 index 00000000..b8f78904 --- /dev/null +++ b/src/Flipdish/Model/OnboardingItemUpdate.cs @@ -0,0 +1,140 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OnboardingItemUpdate + /// + [DataContract] + public partial class OnboardingItemUpdate : IEquatable + { + /// + /// Completion Status for Onboarding Item + /// + /// Completion Status for Onboarding Item + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum InProgress for value: InProgress + /// + [EnumMember(Value = "InProgress")] + InProgress = 2, + + /// + /// Enum Completed for value: Completed + /// + [EnumMember(Value = "Completed")] + Completed = 3 + } + + /// + /// Completion Status for Onboarding Item + /// + /// Completion Status for Onboarding Item + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Completion Status for Onboarding Item. + public OnboardingItemUpdate(StatusEnum? status = default(StatusEnum?)) + { + this.Status = status; + } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OnboardingItemUpdate {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OnboardingItemUpdate); + } + + /// + /// Returns true if OnboardingItemUpdate instances are equal + /// + /// Instance of OnboardingItemUpdate to be compared + /// Boolean + public bool Equals(OnboardingItemUpdate input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Order.cs b/src/Flipdish/Model/Order.cs new file mode 100644 index 00000000..2781b5d8 --- /dev/null +++ b/src/Flipdish/Model/Order.cs @@ -0,0 +1,1510 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order + /// + [DataContract] + public partial class Order : IEquatable + { + /// + /// Delivery type + /// + /// Delivery type + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Delivery type + /// + /// Delivery type + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Pickup location type + /// + /// Pickup location type + [JsonConverter(typeof(StringEnumConverter))] + public enum PickupLocationTypeEnum + { + + /// + /// Enum TakeOut for value: TakeOut + /// + [EnumMember(Value = "TakeOut")] + TakeOut = 1, + + /// + /// Enum TableService for value: TableService + /// + [EnumMember(Value = "TableService")] + TableService = 2, + + /// + /// Enum DineIn for value: DineIn + /// + [EnumMember(Value = "DineIn")] + DineIn = 3 + } + + /// + /// Pickup location type + /// + /// Pickup location type + [DataMember(Name="PickupLocationType", EmitDefaultValue=false)] + public PickupLocationTypeEnum? PickupLocationType { get; set; } + /// + /// Pickup location type + /// + /// Pickup location type + [JsonConverter(typeof(StringEnumConverter))] + public enum TableServiceCatagoryEnum + { + + /// + /// Enum Generic for value: Generic + /// + [EnumMember(Value = "Generic")] + Generic = 1, + + /// + /// Enum Villa for value: Villa + /// + [EnumMember(Value = "Villa")] + Villa = 2, + + /// + /// Enum House for value: House + /// + [EnumMember(Value = "House")] + House = 3, + + /// + /// Enum Room for value: Room + /// + [EnumMember(Value = "Room")] + Room = 4, + + /// + /// Enum Area for value: Area + /// + [EnumMember(Value = "Area")] + Area = 5, + + /// + /// Enum Table for value: Table + /// + [EnumMember(Value = "Table")] + Table = 6, + + /// + /// Enum ParkingBay for value: ParkingBay + /// + [EnumMember(Value = "ParkingBay")] + ParkingBay = 7, + + /// + /// Enum Gate for value: Gate + /// + [EnumMember(Value = "Gate")] + Gate = 8, + + /// + /// Enum DriveThrough for value: DriveThrough + /// + [EnumMember(Value = "DriveThrough")] + DriveThrough = 9, + + /// + /// Enum Team for value: Team + /// + [EnumMember(Value = "Team")] + Team = 10 + } + + /// + /// Pickup location type + /// + /// Pickup location type + [DataMember(Name="TableServiceCatagory", EmitDefaultValue=false)] + public TableServiceCatagoryEnum? TableServiceCatagory { get; set; } + /// + /// Payment account type + /// + /// Payment account type + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentAccountTypeEnum + { + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 1, + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 2, + + /// + /// Enum Ideal for value: Ideal + /// + [EnumMember(Value = "Ideal")] + Ideal = 3, + + /// + /// Enum Bancontact for value: Bancontact + /// + [EnumMember(Value = "Bancontact")] + Bancontact = 4, + + /// + /// Enum Giropay for value: Giropay + /// + [EnumMember(Value = "Giropay")] + Giropay = 5, + + /// + /// Enum Eps for value: Eps + /// + [EnumMember(Value = "Eps")] + Eps = 6, + + /// + /// Enum Emv for value: Emv + /// + [EnumMember(Value = "Emv")] + Emv = 7, + + /// + /// Enum PayPal for value: PayPal + /// + [EnumMember(Value = "PayPal")] + PayPal = 8, + + /// + /// Enum PayGreen for value: PayGreen + /// + [EnumMember(Value = "PayGreen")] + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 + } + + /// + /// Payment account type + /// + /// Payment account type + [DataMember(Name="PaymentAccountType", EmitDefaultValue=false)] + public PaymentAccountTypeEnum? PaymentAccountType { get; set; } + /// + /// Order state + /// + /// Order state + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderStateEnum + { + + /// + /// Enum Created for value: Created + /// + [EnumMember(Value = "Created")] + Created = 1, + + /// + /// Enum PlacedCanBeCancelled for value: PlacedCanBeCancelled + /// + [EnumMember(Value = "PlacedCanBeCancelled")] + PlacedCanBeCancelled = 2, + + /// + /// Enum ReadyToProcess for value: ReadyToProcess + /// + [EnumMember(Value = "ReadyToProcess")] + ReadyToProcess = 3, + + /// + /// Enum AcceptedByRestaurant for value: AcceptedByRestaurant + /// + [EnumMember(Value = "AcceptedByRestaurant")] + AcceptedByRestaurant = 4, + + /// + /// Enum Dispatched for value: Dispatched + /// + [EnumMember(Value = "Dispatched")] + Dispatched = 5, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 6, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 7, + + /// + /// Enum ManualReview for value: ManualReview + /// + [EnumMember(Value = "ManualReview")] + ManualReview = 8, + + /// + /// Enum RejectedByStore for value: RejectedByStore + /// + [EnumMember(Value = "RejectedByStore")] + RejectedByStore = 9, + + /// + /// Enum RejectedByFlipdish for value: RejectedByFlipdish + /// + [EnumMember(Value = "RejectedByFlipdish")] + RejectedByFlipdish = 10, + + /// + /// Enum RejectedAutomatically for value: RejectedAutomatically + /// + [EnumMember(Value = "RejectedAutomatically")] + RejectedAutomatically = 11, + + /// + /// Enum RejectedAfterBeingAccepted for value: RejectedAfterBeingAccepted + /// + [EnumMember(Value = "RejectedAfterBeingAccepted")] + RejectedAfterBeingAccepted = 12, + + /// + /// Enum AcceptedAndRefunded for value: AcceptedAndRefunded + /// + [EnumMember(Value = "AcceptedAndRefunded")] + AcceptedAndRefunded = 13, + + /// + /// Enum PendingPayment for value: PendingPayment + /// + [EnumMember(Value = "PendingPayment")] + PendingPayment = 14 + } + + /// + /// Order state + /// + /// Order state + [DataMember(Name="OrderState", EmitDefaultValue=false)] + public OrderStateEnum? OrderState { get; set; } + /// + /// Used app type + /// + /// Used app type + [JsonConverter(typeof(StringEnumConverter))] + public enum AppTypeEnum + { + + /// + /// Enum Unknown for value: Unknown + /// + [EnumMember(Value = "Unknown")] + Unknown = 1, + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 2, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 3, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 4, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 5, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 6, + + /// + /// Enum TelephoneCall for value: TelephoneCall + /// + [EnumMember(Value = "TelephoneCall")] + TelephoneCall = 7, + + /// + /// Enum Sms for value: Sms + /// + [EnumMember(Value = "Sms")] + Sms = 8, + + /// + /// Enum PwaAndroid for value: PwaAndroid + /// + [EnumMember(Value = "PwaAndroid")] + PwaAndroid = 9, + + /// + /// Enum PwaIos for value: PwaIos + /// + [EnumMember(Value = "PwaIos")] + PwaIos = 10, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 11 + } + + /// + /// Used app type + /// + /// Used app type + [DataMember(Name="AppType", EmitDefaultValue=false)] + public AppTypeEnum? AppType { get; set; } + /// + /// Status of the payment + /// + /// Status of the payment + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentStatusEnum + { + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 1, + + /// + /// Enum Unpaid for value: Unpaid + /// + [EnumMember(Value = "Unpaid")] + Unpaid = 2, + + /// + /// Enum Refunded for value: Refunded + /// + [EnumMember(Value = "Refunded")] + Refunded = 3, + + /// + /// Enum PartiallyRefunded for value: PartiallyRefunded + /// + [EnumMember(Value = "PartiallyRefunded")] + PartiallyRefunded = 4, + + /// + /// Enum Disputed for value: Disputed + /// + [EnumMember(Value = "Disputed")] + Disputed = 5 + } + + /// + /// Status of the payment + /// + /// Status of the payment + [DataMember(Name="PaymentStatus", EmitDefaultValue=false)] + public PaymentStatusEnum? PaymentStatus { get; set; } + /// + /// Rejection reason. Can have value if the order is rejected. + /// + /// Rejection reason. Can have value if the order is rejected. + [JsonConverter(typeof(StringEnumConverter))] + public enum RejectionReasonEnum + { + + /// + /// Enum TooBusy for value: TooBusy + /// + [EnumMember(Value = "TooBusy")] + TooBusy = 1, + + /// + /// Enum FoodUnavailable for value: FoodUnavailable + /// + [EnumMember(Value = "FoodUnavailable")] + FoodUnavailable = 2, + + /// + /// Enum UnableToDeliver for value: UnableToDeliver + /// + [EnumMember(Value = "UnableToDeliver")] + UnableToDeliver = 3, + + /// + /// Enum UnknownAddress for value: UnknownAddress + /// + [EnumMember(Value = "UnknownAddress")] + UnknownAddress = 4, + + /// + /// Enum UnknownReason for value: UnknownReason + /// + [EnumMember(Value = "UnknownReason")] + UnknownReason = 5, + + /// + /// Enum TooSoon for value: TooSoon + /// + [EnumMember(Value = "TooSoon")] + TooSoon = 6, + + /// + /// Enum TimeUnavailable for value: TimeUnavailable + /// + [EnumMember(Value = "TimeUnavailable")] + TimeUnavailable = 7, + + /// + /// Enum DontDeliverToArea for value: DontDeliverToArea + /// + [EnumMember(Value = "DontDeliverToArea")] + DontDeliverToArea = 8, + + /// + /// Enum StoreUncontactable for value: StoreUncontactable + /// + [EnumMember(Value = "StoreUncontactable")] + StoreUncontactable = 9 + } + + /// + /// Rejection reason. Can have value if the order is rejected. + /// + /// Rejection reason. Can have value if the order is rejected. + [DataMember(Name="RejectionReason", EmitDefaultValue=false)] + public RejectionReasonEnum? RejectionReason { get; set; } + /// + /// Delivery tracking status + /// + /// Delivery tracking status + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTrackingStatusEnum + { + + /// + /// Enum Unassigned for value: Unassigned + /// + [EnumMember(Value = "Unassigned")] + Unassigned = 1, + + /// + /// Enum Unaccepted for value: Unaccepted + /// + [EnumMember(Value = "Unaccepted")] + Unaccepted = 2, + + /// + /// Enum Accepted for value: Accepted + /// + [EnumMember(Value = "Accepted")] + Accepted = 3, + + /// + /// Enum Carrying for value: Carrying + /// + [EnumMember(Value = "Carrying")] + Carrying = 4, + + /// + /// Enum OnTheWay for value: OnTheWay + /// + [EnumMember(Value = "OnTheWay")] + OnTheWay = 5, + + /// + /// Enum ArrivedAtLocation for value: ArrivedAtLocation + /// + [EnumMember(Value = "ArrivedAtLocation")] + ArrivedAtLocation = 6, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 7, + + /// + /// Enum CannotDeliver for value: CannotDeliver + /// + [EnumMember(Value = "CannotDeliver")] + CannotDeliver = 8 + } + + /// + /// Delivery tracking status + /// + /// Delivery tracking status + [DataMember(Name="DeliveryTrackingStatus", EmitDefaultValue=false)] + public DeliveryTrackingStatusEnum? DeliveryTrackingStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store summary. + /// Customer summary. + /// Voucher summary. + /// Fee summary. + /// Ordered items. + /// Delivery location for delivery orders. + /// Customer location. + /// Represents customers masked phone number. + /// Represents table service drop off location. + /// Represents table service drop off location. + /// Time store has accepted the order for. + /// Was order made within a fraud zone. + /// Is order of unusually high value. + /// Id of user who rejected order, if available. + /// ChannelOrderId from external channel. + /// ChannelOrderDisplayId from external channel. + /// Channel where the Order comes from. + /// DropOffLocation selected for this order. + /// [BETA - this is a new field in development] Fulfillment status for this order. + /// OrderBatch information. + /// A collection of tax items on the order.. + /// The id of the campaign voucher that was created from this order. + /// Order identifier. + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders). + /// Delivery type. + /// Pickup location type. + /// Pickup location type. + /// Tip amount. + /// Delivery amount. + /// Ordered items amount. + /// Service Charge Amount. + /// Service Charge Percentage. + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer.. + /// This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive.. + /// Payment account type. + /// Payment account description (like Visa ****2371 or Apple Pay. or Cash). + /// Order state. + /// Is pre-order. + /// Order placed time. + /// Order requested for. + /// Chef note. + /// Used app type. + /// User rating. + /// Status of the payment. + /// Rejection reason. Can have value if the order is rejected.. + /// Amount refunded to customer.. + /// Delivery tracking status. + /// Assigned driver identifier. + /// Total tax applied to order. + /// Unique, 6 character long alpha numeric code for tracking.. + /// Delivery area identifier. + /// Code used to view the order's receipt. + /// This contains the total deposit return fee amount for the order.. + public Order(StoreSummary store = default(StoreSummary), CustomerSummary customer = default(CustomerSummary), OrderVoucherSummary voucher = default(OrderVoucherSummary), FeeSummary fees = default(FeeSummary), List orderItems = default(List), DeliveryLocation deliveryLocation = default(DeliveryLocation), Coordinates customerLocation = default(Coordinates), MaskedPhoneNumber maskedPhoneNumber = default(MaskedPhoneNumber), int? dropOffLocationId = default(int?), string dropOffLocation = default(string), DateTime? acceptedFor = default(DateTime?), bool? inFraudZone = default(bool?), bool? unusualHighValueOrder = default(bool?), int? rejectedByUserId = default(int?), string channelOrderId = default(string), string channelOrderDisplayId = default(string), Channel channel = default(Channel), OrderDropOffLocation orderDropOffLocation = default(OrderDropOffLocation), OrderFulfillmentStatusBase fulfillmentStatus = default(OrderFulfillmentStatusBase), OrderBatchSummary orderBatchInfo = default(OrderBatchSummary), List taxItems = default(List), int? createdCampaignVoucherId = default(int?), int? orderId = default(int?), string localOrderId = default(string), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), PickupLocationTypeEnum? pickupLocationType = default(PickupLocationTypeEnum?), TableServiceCatagoryEnum? tableServiceCatagory = default(TableServiceCatagoryEnum?), double? tipAmount = default(double?), double? deliveryAmount = default(double?), double? orderItemsAmount = default(double?), double? serviceChargeAmount = default(double?), double? serviceChargePercentage = default(double?), double? amount = default(double?), double? processingFee = default(double?), PaymentAccountTypeEnum? paymentAccountType = default(PaymentAccountTypeEnum?), string paymentAccountDescription = default(string), OrderStateEnum? orderState = default(OrderStateEnum?), bool? isPreOrder = default(bool?), DateTime? placedTime = default(DateTime?), DateTime? requestedForTime = default(DateTime?), string chefNote = default(string), AppTypeEnum? appType = default(AppTypeEnum?), int? userRating = default(int?), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), RejectionReasonEnum? rejectionReason = default(RejectionReasonEnum?), double? refundedAmount = default(double?), DeliveryTrackingStatusEnum? deliveryTrackingStatus = default(DeliveryTrackingStatusEnum?), int? driverId = default(int?), double? totalTax = default(double?), string orderTrackingCode = default(string), int? deliveryFeeAreaId = default(int?), string receiptCode = default(string), double? totalDepositReturnFeeAmount = default(double?)) + { + this.Store = store; + this.Customer = customer; + this.Voucher = voucher; + this.Fees = fees; + this.OrderItems = orderItems; + this.DeliveryLocation = deliveryLocation; + this.CustomerLocation = customerLocation; + this.MaskedPhoneNumber = maskedPhoneNumber; + this.DropOffLocationId = dropOffLocationId; + this.DropOffLocation = dropOffLocation; + this.AcceptedFor = acceptedFor; + this.InFraudZone = inFraudZone; + this.UnusualHighValueOrder = unusualHighValueOrder; + this.RejectedByUserId = rejectedByUserId; + this.ChannelOrderId = channelOrderId; + this.ChannelOrderDisplayId = channelOrderDisplayId; + this.Channel = channel; + this.OrderDropOffLocation = orderDropOffLocation; + this.FulfillmentStatus = fulfillmentStatus; + this.OrderBatchInfo = orderBatchInfo; + this.TaxItems = taxItems; + this.CreatedCampaignVoucherId = createdCampaignVoucherId; + this.OrderId = orderId; + this.LocalOrderId = localOrderId; + this.DeliveryType = deliveryType; + this.PickupLocationType = pickupLocationType; + this.TableServiceCatagory = tableServiceCatagory; + this.TipAmount = tipAmount; + this.DeliveryAmount = deliveryAmount; + this.OrderItemsAmount = orderItemsAmount; + this.ServiceChargeAmount = serviceChargeAmount; + this.ServiceChargePercentage = serviceChargePercentage; + this.Amount = amount; + this.ProcessingFee = processingFee; + this.PaymentAccountType = paymentAccountType; + this.PaymentAccountDescription = paymentAccountDescription; + this.OrderState = orderState; + this.IsPreOrder = isPreOrder; + this.PlacedTime = placedTime; + this.RequestedForTime = requestedForTime; + this.ChefNote = chefNote; + this.AppType = appType; + this.UserRating = userRating; + this.PaymentStatus = paymentStatus; + this.RejectionReason = rejectionReason; + this.RefundedAmount = refundedAmount; + this.DeliveryTrackingStatus = deliveryTrackingStatus; + this.DriverId = driverId; + this.TotalTax = totalTax; + this.OrderTrackingCode = orderTrackingCode; + this.DeliveryFeeAreaId = deliveryFeeAreaId; + this.ReceiptCode = receiptCode; + this.TotalDepositReturnFeeAmount = totalDepositReturnFeeAmount; + } + + /// + /// Store summary + /// + /// Store summary + [DataMember(Name="Store", EmitDefaultValue=false)] + public StoreSummary Store { get; set; } + + /// + /// Customer summary + /// + /// Customer summary + [DataMember(Name="Customer", EmitDefaultValue=false)] + public CustomerSummary Customer { get; set; } + + /// + /// Voucher summary + /// + /// Voucher summary + [DataMember(Name="Voucher", EmitDefaultValue=false)] + public OrderVoucherSummary Voucher { get; set; } + + /// + /// Fee summary + /// + /// Fee summary + [DataMember(Name="Fees", EmitDefaultValue=false)] + public FeeSummary Fees { get; set; } + + /// + /// Ordered items + /// + /// Ordered items + [DataMember(Name="OrderItems", EmitDefaultValue=false)] + public List OrderItems { get; set; } + + /// + /// Delivery location for delivery orders + /// + /// Delivery location for delivery orders + [DataMember(Name="DeliveryLocation", EmitDefaultValue=false)] + public DeliveryLocation DeliveryLocation { get; set; } + + /// + /// Customer location + /// + /// Customer location + [DataMember(Name="CustomerLocation", EmitDefaultValue=false)] + public Coordinates CustomerLocation { get; set; } + + /// + /// Represents customers masked phone number + /// + /// Represents customers masked phone number + [DataMember(Name="MaskedPhoneNumber", EmitDefaultValue=false)] + public MaskedPhoneNumber MaskedPhoneNumber { get; set; } + + /// + /// Represents table service drop off location + /// + /// Represents table service drop off location + [DataMember(Name="DropOffLocationId", EmitDefaultValue=false)] + public int? DropOffLocationId { get; set; } + + /// + /// Represents table service drop off location + /// + /// Represents table service drop off location + [DataMember(Name="DropOffLocation", EmitDefaultValue=false)] + public string DropOffLocation { get; set; } + + /// + /// Time store has accepted the order for + /// + /// Time store has accepted the order for + [DataMember(Name="AcceptedFor", EmitDefaultValue=false)] + public DateTime? AcceptedFor { get; set; } + + /// + /// Was order made within a fraud zone + /// + /// Was order made within a fraud zone + [DataMember(Name="InFraudZone", EmitDefaultValue=false)] + public bool? InFraudZone { get; set; } + + /// + /// Is order of unusually high value + /// + /// Is order of unusually high value + [DataMember(Name="UnusualHighValueOrder", EmitDefaultValue=false)] + public bool? UnusualHighValueOrder { get; set; } + + /// + /// Id of user who rejected order, if available + /// + /// Id of user who rejected order, if available + [DataMember(Name="RejectedByUserId", EmitDefaultValue=false)] + public int? RejectedByUserId { get; set; } + + /// + /// ChannelOrderId from external channel + /// + /// ChannelOrderId from external channel + [DataMember(Name="ChannelOrderId", EmitDefaultValue=false)] + public string ChannelOrderId { get; set; } + + /// + /// ChannelOrderDisplayId from external channel + /// + /// ChannelOrderDisplayId from external channel + [DataMember(Name="ChannelOrderDisplayId", EmitDefaultValue=false)] + public string ChannelOrderDisplayId { get; set; } + + /// + /// Channel where the Order comes from + /// + /// Channel where the Order comes from + [DataMember(Name="Channel", EmitDefaultValue=false)] + public Channel Channel { get; set; } + + /// + /// DropOffLocation selected for this order + /// + /// DropOffLocation selected for this order + [DataMember(Name="OrderDropOffLocation", EmitDefaultValue=false)] + public OrderDropOffLocation OrderDropOffLocation { get; set; } + + /// + /// [BETA - this is a new field in development] Fulfillment status for this order + /// + /// [BETA - this is a new field in development] Fulfillment status for this order + [DataMember(Name="FulfillmentStatus", EmitDefaultValue=false)] + public OrderFulfillmentStatusBase FulfillmentStatus { get; set; } + + /// + /// OrderBatch information + /// + /// OrderBatch information + [DataMember(Name="OrderBatchInfo", EmitDefaultValue=false)] + public OrderBatchSummary OrderBatchInfo { get; set; } + + /// + /// A collection of tax items on the order. + /// + /// A collection of tax items on the order. + [DataMember(Name="TaxItems", EmitDefaultValue=false)] + public List TaxItems { get; set; } + + /// + /// The id of the campaign voucher that was created from this order + /// + /// The id of the campaign voucher that was created from this order + [DataMember(Name="CreatedCampaignVoucherId", EmitDefaultValue=false)] + public int? CreatedCampaignVoucherId { get; set; } + + /// + /// Order identifier + /// + /// Order identifier + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + /// + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + [DataMember(Name="LocalOrderId", EmitDefaultValue=false)] + public string LocalOrderId { get; set; } + + + + + /// + /// Tip amount + /// + /// Tip amount + [DataMember(Name="TipAmount", EmitDefaultValue=false)] + public double? TipAmount { get; set; } + + /// + /// Delivery amount + /// + /// Delivery amount + [DataMember(Name="DeliveryAmount", EmitDefaultValue=false)] + public double? DeliveryAmount { get; set; } + + /// + /// Ordered items amount + /// + /// Ordered items amount + [DataMember(Name="OrderItemsAmount", EmitDefaultValue=false)] + public double? OrderItemsAmount { get; set; } + + /// + /// Service Charge Amount + /// + /// Service Charge Amount + [DataMember(Name="ServiceChargeAmount", EmitDefaultValue=false)] + public double? ServiceChargeAmount { get; set; } + + /// + /// Service Charge Percentage + /// + /// Service Charge Percentage + [DataMember(Name="ServiceChargePercentage", EmitDefaultValue=false)] + public double? ServiceChargePercentage { get; set; } + + /// + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer. + /// + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer. + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive. + /// + /// This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive. + [DataMember(Name="ProcessingFee", EmitDefaultValue=false)] + public double? ProcessingFee { get; set; } + + + /// + /// Payment account description (like Visa ****2371 or Apple Pay. or Cash) + /// + /// Payment account description (like Visa ****2371 or Apple Pay. or Cash) + [DataMember(Name="PaymentAccountDescription", EmitDefaultValue=false)] + public string PaymentAccountDescription { get; set; } + + + /// + /// Is pre-order + /// + /// Is pre-order + [DataMember(Name="IsPreOrder", EmitDefaultValue=false)] + public bool? IsPreOrder { get; set; } + + /// + /// Order placed time + /// + /// Order placed time + [DataMember(Name="PlacedTime", EmitDefaultValue=false)] + public DateTime? PlacedTime { get; set; } + + /// + /// Order requested for + /// + /// Order requested for + [DataMember(Name="RequestedForTime", EmitDefaultValue=false)] + public DateTime? RequestedForTime { get; set; } + + /// + /// Chef note + /// + /// Chef note + [DataMember(Name="ChefNote", EmitDefaultValue=false)] + public string ChefNote { get; set; } + + + /// + /// User rating + /// + /// User rating + [DataMember(Name="UserRating", EmitDefaultValue=false)] + public int? UserRating { get; set; } + + + + /// + /// Amount refunded to customer. + /// + /// Amount refunded to customer. + [DataMember(Name="RefundedAmount", EmitDefaultValue=false)] + public double? RefundedAmount { get; set; } + + + /// + /// Assigned driver identifier + /// + /// Assigned driver identifier + [DataMember(Name="DriverId", EmitDefaultValue=false)] + public int? DriverId { get; set; } + + /// + /// Total tax applied to order + /// + /// Total tax applied to order + [DataMember(Name="TotalTax", EmitDefaultValue=false)] + public double? TotalTax { get; set; } + + /// + /// Unique, 6 character long alpha numeric code for tracking. + /// + /// Unique, 6 character long alpha numeric code for tracking. + [DataMember(Name="OrderTrackingCode", EmitDefaultValue=false)] + public string OrderTrackingCode { get; set; } + + /// + /// Delivery area identifier + /// + /// Delivery area identifier + [DataMember(Name="DeliveryFeeAreaId", EmitDefaultValue=false)] + public int? DeliveryFeeAreaId { get; set; } + + /// + /// Code used to view the order's receipt + /// + /// Code used to view the order's receipt + [DataMember(Name="ReceiptCode", EmitDefaultValue=false)] + public string ReceiptCode { get; set; } + + /// + /// This contains the total deposit return fee amount for the order. + /// + /// This contains the total deposit return fee amount for the order. + [DataMember(Name="TotalDepositReturnFeeAmount", EmitDefaultValue=false)] + public double? TotalDepositReturnFeeAmount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Order {\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" Customer: ").Append(Customer).Append("\n"); + sb.Append(" Voucher: ").Append(Voucher).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" OrderItems: ").Append(OrderItems).Append("\n"); + sb.Append(" DeliveryLocation: ").Append(DeliveryLocation).Append("\n"); + sb.Append(" CustomerLocation: ").Append(CustomerLocation).Append("\n"); + sb.Append(" MaskedPhoneNumber: ").Append(MaskedPhoneNumber).Append("\n"); + sb.Append(" DropOffLocationId: ").Append(DropOffLocationId).Append("\n"); + sb.Append(" DropOffLocation: ").Append(DropOffLocation).Append("\n"); + sb.Append(" AcceptedFor: ").Append(AcceptedFor).Append("\n"); + sb.Append(" InFraudZone: ").Append(InFraudZone).Append("\n"); + sb.Append(" UnusualHighValueOrder: ").Append(UnusualHighValueOrder).Append("\n"); + sb.Append(" RejectedByUserId: ").Append(RejectedByUserId).Append("\n"); + sb.Append(" ChannelOrderId: ").Append(ChannelOrderId).Append("\n"); + sb.Append(" ChannelOrderDisplayId: ").Append(ChannelOrderDisplayId).Append("\n"); + sb.Append(" Channel: ").Append(Channel).Append("\n"); + sb.Append(" OrderDropOffLocation: ").Append(OrderDropOffLocation).Append("\n"); + sb.Append(" FulfillmentStatus: ").Append(FulfillmentStatus).Append("\n"); + sb.Append(" OrderBatchInfo: ").Append(OrderBatchInfo).Append("\n"); + sb.Append(" TaxItems: ").Append(TaxItems).Append("\n"); + sb.Append(" CreatedCampaignVoucherId: ").Append(CreatedCampaignVoucherId).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" LocalOrderId: ").Append(LocalOrderId).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" PickupLocationType: ").Append(PickupLocationType).Append("\n"); + sb.Append(" TableServiceCatagory: ").Append(TableServiceCatagory).Append("\n"); + sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); + sb.Append(" DeliveryAmount: ").Append(DeliveryAmount).Append("\n"); + sb.Append(" OrderItemsAmount: ").Append(OrderItemsAmount).Append("\n"); + sb.Append(" ServiceChargeAmount: ").Append(ServiceChargeAmount).Append("\n"); + sb.Append(" ServiceChargePercentage: ").Append(ServiceChargePercentage).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ProcessingFee: ").Append(ProcessingFee).Append("\n"); + sb.Append(" PaymentAccountType: ").Append(PaymentAccountType).Append("\n"); + sb.Append(" PaymentAccountDescription: ").Append(PaymentAccountDescription).Append("\n"); + sb.Append(" OrderState: ").Append(OrderState).Append("\n"); + sb.Append(" IsPreOrder: ").Append(IsPreOrder).Append("\n"); + sb.Append(" PlacedTime: ").Append(PlacedTime).Append("\n"); + sb.Append(" RequestedForTime: ").Append(RequestedForTime).Append("\n"); + sb.Append(" ChefNote: ").Append(ChefNote).Append("\n"); + sb.Append(" AppType: ").Append(AppType).Append("\n"); + sb.Append(" UserRating: ").Append(UserRating).Append("\n"); + sb.Append(" PaymentStatus: ").Append(PaymentStatus).Append("\n"); + sb.Append(" RejectionReason: ").Append(RejectionReason).Append("\n"); + sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n"); + sb.Append(" DeliveryTrackingStatus: ").Append(DeliveryTrackingStatus).Append("\n"); + sb.Append(" DriverId: ").Append(DriverId).Append("\n"); + sb.Append(" TotalTax: ").Append(TotalTax).Append("\n"); + sb.Append(" OrderTrackingCode: ").Append(OrderTrackingCode).Append("\n"); + sb.Append(" DeliveryFeeAreaId: ").Append(DeliveryFeeAreaId).Append("\n"); + sb.Append(" ReceiptCode: ").Append(ReceiptCode).Append("\n"); + sb.Append(" TotalDepositReturnFeeAmount: ").Append(TotalDepositReturnFeeAmount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Order); + } + + /// + /// Returns true if Order instances are equal + /// + /// Instance of Order to be compared + /// Boolean + public bool Equals(Order input) + { + if (input == null) + return false; + + return + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.Customer == input.Customer || + (this.Customer != null && + this.Customer.Equals(input.Customer)) + ) && + ( + this.Voucher == input.Voucher || + (this.Voucher != null && + this.Voucher.Equals(input.Voucher)) + ) && + ( + this.Fees == input.Fees || + (this.Fees != null && + this.Fees.Equals(input.Fees)) + ) && + ( + this.OrderItems == input.OrderItems || + this.OrderItems != null && + this.OrderItems.SequenceEqual(input.OrderItems) + ) && + ( + this.DeliveryLocation == input.DeliveryLocation || + (this.DeliveryLocation != null && + this.DeliveryLocation.Equals(input.DeliveryLocation)) + ) && + ( + this.CustomerLocation == input.CustomerLocation || + (this.CustomerLocation != null && + this.CustomerLocation.Equals(input.CustomerLocation)) + ) && + ( + this.MaskedPhoneNumber == input.MaskedPhoneNumber || + (this.MaskedPhoneNumber != null && + this.MaskedPhoneNumber.Equals(input.MaskedPhoneNumber)) + ) && + ( + this.DropOffLocationId == input.DropOffLocationId || + (this.DropOffLocationId != null && + this.DropOffLocationId.Equals(input.DropOffLocationId)) + ) && + ( + this.DropOffLocation == input.DropOffLocation || + (this.DropOffLocation != null && + this.DropOffLocation.Equals(input.DropOffLocation)) + ) && + ( + this.AcceptedFor == input.AcceptedFor || + (this.AcceptedFor != null && + this.AcceptedFor.Equals(input.AcceptedFor)) + ) && + ( + this.InFraudZone == input.InFraudZone || + (this.InFraudZone != null && + this.InFraudZone.Equals(input.InFraudZone)) + ) && + ( + this.UnusualHighValueOrder == input.UnusualHighValueOrder || + (this.UnusualHighValueOrder != null && + this.UnusualHighValueOrder.Equals(input.UnusualHighValueOrder)) + ) && + ( + this.RejectedByUserId == input.RejectedByUserId || + (this.RejectedByUserId != null && + this.RejectedByUserId.Equals(input.RejectedByUserId)) + ) && + ( + this.ChannelOrderId == input.ChannelOrderId || + (this.ChannelOrderId != null && + this.ChannelOrderId.Equals(input.ChannelOrderId)) + ) && + ( + this.ChannelOrderDisplayId == input.ChannelOrderDisplayId || + (this.ChannelOrderDisplayId != null && + this.ChannelOrderDisplayId.Equals(input.ChannelOrderDisplayId)) + ) && + ( + this.Channel == input.Channel || + (this.Channel != null && + this.Channel.Equals(input.Channel)) + ) && + ( + this.OrderDropOffLocation == input.OrderDropOffLocation || + (this.OrderDropOffLocation != null && + this.OrderDropOffLocation.Equals(input.OrderDropOffLocation)) + ) && + ( + this.FulfillmentStatus == input.FulfillmentStatus || + (this.FulfillmentStatus != null && + this.FulfillmentStatus.Equals(input.FulfillmentStatus)) + ) && + ( + this.OrderBatchInfo == input.OrderBatchInfo || + (this.OrderBatchInfo != null && + this.OrderBatchInfo.Equals(input.OrderBatchInfo)) + ) && + ( + this.TaxItems == input.TaxItems || + this.TaxItems != null && + this.TaxItems.SequenceEqual(input.TaxItems) + ) && + ( + this.CreatedCampaignVoucherId == input.CreatedCampaignVoucherId || + (this.CreatedCampaignVoucherId != null && + this.CreatedCampaignVoucherId.Equals(input.CreatedCampaignVoucherId)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.LocalOrderId == input.LocalOrderId || + (this.LocalOrderId != null && + this.LocalOrderId.Equals(input.LocalOrderId)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.PickupLocationType == input.PickupLocationType || + (this.PickupLocationType != null && + this.PickupLocationType.Equals(input.PickupLocationType)) + ) && + ( + this.TableServiceCatagory == input.TableServiceCatagory || + (this.TableServiceCatagory != null && + this.TableServiceCatagory.Equals(input.TableServiceCatagory)) + ) && + ( + this.TipAmount == input.TipAmount || + (this.TipAmount != null && + this.TipAmount.Equals(input.TipAmount)) + ) && + ( + this.DeliveryAmount == input.DeliveryAmount || + (this.DeliveryAmount != null && + this.DeliveryAmount.Equals(input.DeliveryAmount)) + ) && + ( + this.OrderItemsAmount == input.OrderItemsAmount || + (this.OrderItemsAmount != null && + this.OrderItemsAmount.Equals(input.OrderItemsAmount)) + ) && + ( + this.ServiceChargeAmount == input.ServiceChargeAmount || + (this.ServiceChargeAmount != null && + this.ServiceChargeAmount.Equals(input.ServiceChargeAmount)) + ) && + ( + this.ServiceChargePercentage == input.ServiceChargePercentage || + (this.ServiceChargePercentage != null && + this.ServiceChargePercentage.Equals(input.ServiceChargePercentage)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.ProcessingFee == input.ProcessingFee || + (this.ProcessingFee != null && + this.ProcessingFee.Equals(input.ProcessingFee)) + ) && + ( + this.PaymentAccountType == input.PaymentAccountType || + (this.PaymentAccountType != null && + this.PaymentAccountType.Equals(input.PaymentAccountType)) + ) && + ( + this.PaymentAccountDescription == input.PaymentAccountDescription || + (this.PaymentAccountDescription != null && + this.PaymentAccountDescription.Equals(input.PaymentAccountDescription)) + ) && + ( + this.OrderState == input.OrderState || + (this.OrderState != null && + this.OrderState.Equals(input.OrderState)) + ) && + ( + this.IsPreOrder == input.IsPreOrder || + (this.IsPreOrder != null && + this.IsPreOrder.Equals(input.IsPreOrder)) + ) && + ( + this.PlacedTime == input.PlacedTime || + (this.PlacedTime != null && + this.PlacedTime.Equals(input.PlacedTime)) + ) && + ( + this.RequestedForTime == input.RequestedForTime || + (this.RequestedForTime != null && + this.RequestedForTime.Equals(input.RequestedForTime)) + ) && + ( + this.ChefNote == input.ChefNote || + (this.ChefNote != null && + this.ChefNote.Equals(input.ChefNote)) + ) && + ( + this.AppType == input.AppType || + (this.AppType != null && + this.AppType.Equals(input.AppType)) + ) && + ( + this.UserRating == input.UserRating || + (this.UserRating != null && + this.UserRating.Equals(input.UserRating)) + ) && + ( + this.PaymentStatus == input.PaymentStatus || + (this.PaymentStatus != null && + this.PaymentStatus.Equals(input.PaymentStatus)) + ) && + ( + this.RejectionReason == input.RejectionReason || + (this.RejectionReason != null && + this.RejectionReason.Equals(input.RejectionReason)) + ) && + ( + this.RefundedAmount == input.RefundedAmount || + (this.RefundedAmount != null && + this.RefundedAmount.Equals(input.RefundedAmount)) + ) && + ( + this.DeliveryTrackingStatus == input.DeliveryTrackingStatus || + (this.DeliveryTrackingStatus != null && + this.DeliveryTrackingStatus.Equals(input.DeliveryTrackingStatus)) + ) && + ( + this.DriverId == input.DriverId || + (this.DriverId != null && + this.DriverId.Equals(input.DriverId)) + ) && + ( + this.TotalTax == input.TotalTax || + (this.TotalTax != null && + this.TotalTax.Equals(input.TotalTax)) + ) && + ( + this.OrderTrackingCode == input.OrderTrackingCode || + (this.OrderTrackingCode != null && + this.OrderTrackingCode.Equals(input.OrderTrackingCode)) + ) && + ( + this.DeliveryFeeAreaId == input.DeliveryFeeAreaId || + (this.DeliveryFeeAreaId != null && + this.DeliveryFeeAreaId.Equals(input.DeliveryFeeAreaId)) + ) && + ( + this.ReceiptCode == input.ReceiptCode || + (this.ReceiptCode != null && + this.ReceiptCode.Equals(input.ReceiptCode)) + ) && + ( + this.TotalDepositReturnFeeAmount == input.TotalDepositReturnFeeAmount || + (this.TotalDepositReturnFeeAmount != null && + this.TotalDepositReturnFeeAmount.Equals(input.TotalDepositReturnFeeAmount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.Customer != null) + hashCode = hashCode * 59 + this.Customer.GetHashCode(); + if (this.Voucher != null) + hashCode = hashCode * 59 + this.Voucher.GetHashCode(); + if (this.Fees != null) + hashCode = hashCode * 59 + this.Fees.GetHashCode(); + if (this.OrderItems != null) + hashCode = hashCode * 59 + this.OrderItems.GetHashCode(); + if (this.DeliveryLocation != null) + hashCode = hashCode * 59 + this.DeliveryLocation.GetHashCode(); + if (this.CustomerLocation != null) + hashCode = hashCode * 59 + this.CustomerLocation.GetHashCode(); + if (this.MaskedPhoneNumber != null) + hashCode = hashCode * 59 + this.MaskedPhoneNumber.GetHashCode(); + if (this.DropOffLocationId != null) + hashCode = hashCode * 59 + this.DropOffLocationId.GetHashCode(); + if (this.DropOffLocation != null) + hashCode = hashCode * 59 + this.DropOffLocation.GetHashCode(); + if (this.AcceptedFor != null) + hashCode = hashCode * 59 + this.AcceptedFor.GetHashCode(); + if (this.InFraudZone != null) + hashCode = hashCode * 59 + this.InFraudZone.GetHashCode(); + if (this.UnusualHighValueOrder != null) + hashCode = hashCode * 59 + this.UnusualHighValueOrder.GetHashCode(); + if (this.RejectedByUserId != null) + hashCode = hashCode * 59 + this.RejectedByUserId.GetHashCode(); + if (this.ChannelOrderId != null) + hashCode = hashCode * 59 + this.ChannelOrderId.GetHashCode(); + if (this.ChannelOrderDisplayId != null) + hashCode = hashCode * 59 + this.ChannelOrderDisplayId.GetHashCode(); + if (this.Channel != null) + hashCode = hashCode * 59 + this.Channel.GetHashCode(); + if (this.OrderDropOffLocation != null) + hashCode = hashCode * 59 + this.OrderDropOffLocation.GetHashCode(); + if (this.FulfillmentStatus != null) + hashCode = hashCode * 59 + this.FulfillmentStatus.GetHashCode(); + if (this.OrderBatchInfo != null) + hashCode = hashCode * 59 + this.OrderBatchInfo.GetHashCode(); + if (this.TaxItems != null) + hashCode = hashCode * 59 + this.TaxItems.GetHashCode(); + if (this.CreatedCampaignVoucherId != null) + hashCode = hashCode * 59 + this.CreatedCampaignVoucherId.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.LocalOrderId != null) + hashCode = hashCode * 59 + this.LocalOrderId.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.PickupLocationType != null) + hashCode = hashCode * 59 + this.PickupLocationType.GetHashCode(); + if (this.TableServiceCatagory != null) + hashCode = hashCode * 59 + this.TableServiceCatagory.GetHashCode(); + if (this.TipAmount != null) + hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); + if (this.DeliveryAmount != null) + hashCode = hashCode * 59 + this.DeliveryAmount.GetHashCode(); + if (this.OrderItemsAmount != null) + hashCode = hashCode * 59 + this.OrderItemsAmount.GetHashCode(); + if (this.ServiceChargeAmount != null) + hashCode = hashCode * 59 + this.ServiceChargeAmount.GetHashCode(); + if (this.ServiceChargePercentage != null) + hashCode = hashCode * 59 + this.ServiceChargePercentage.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.ProcessingFee != null) + hashCode = hashCode * 59 + this.ProcessingFee.GetHashCode(); + if (this.PaymentAccountType != null) + hashCode = hashCode * 59 + this.PaymentAccountType.GetHashCode(); + if (this.PaymentAccountDescription != null) + hashCode = hashCode * 59 + this.PaymentAccountDescription.GetHashCode(); + if (this.OrderState != null) + hashCode = hashCode * 59 + this.OrderState.GetHashCode(); + if (this.IsPreOrder != null) + hashCode = hashCode * 59 + this.IsPreOrder.GetHashCode(); + if (this.PlacedTime != null) + hashCode = hashCode * 59 + this.PlacedTime.GetHashCode(); + if (this.RequestedForTime != null) + hashCode = hashCode * 59 + this.RequestedForTime.GetHashCode(); + if (this.ChefNote != null) + hashCode = hashCode * 59 + this.ChefNote.GetHashCode(); + if (this.AppType != null) + hashCode = hashCode * 59 + this.AppType.GetHashCode(); + if (this.UserRating != null) + hashCode = hashCode * 59 + this.UserRating.GetHashCode(); + if (this.PaymentStatus != null) + hashCode = hashCode * 59 + this.PaymentStatus.GetHashCode(); + if (this.RejectionReason != null) + hashCode = hashCode * 59 + this.RejectionReason.GetHashCode(); + if (this.RefundedAmount != null) + hashCode = hashCode * 59 + this.RefundedAmount.GetHashCode(); + if (this.DeliveryTrackingStatus != null) + hashCode = hashCode * 59 + this.DeliveryTrackingStatus.GetHashCode(); + if (this.DriverId != null) + hashCode = hashCode * 59 + this.DriverId.GetHashCode(); + if (this.TotalTax != null) + hashCode = hashCode * 59 + this.TotalTax.GetHashCode(); + if (this.OrderTrackingCode != null) + hashCode = hashCode * 59 + this.OrderTrackingCode.GetHashCode(); + if (this.DeliveryFeeAreaId != null) + hashCode = hashCode * 59 + this.DeliveryFeeAreaId.GetHashCode(); + if (this.ReceiptCode != null) + hashCode = hashCode * 59 + this.ReceiptCode.GetHashCode(); + if (this.TotalDepositReturnFeeAmount != null) + hashCode = hashCode * 59 + this.TotalDepositReturnFeeAmount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderAcceptedEvent.cs b/src/Flipdish/Model/OrderAcceptedEvent.cs new file mode 100644 index 00000000..16c8cea1 --- /dev/null +++ b/src/Flipdish/Model/OrderAcceptedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Accepted Event + /// + [DataContract] + public partial class OrderAcceptedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Description. + /// Order Accepted Time. + /// User who has accepted the order. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderAcceptedEvent(string eventName = default(string), string orgId = default(string), string description = default(string), DateTime? orderAcceptedTime = default(DateTime?), UserEventInfo user = default(UserEventInfo), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.Description = description; + this.OrderAcceptedTime = orderAcceptedTime; + this.User = user; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order Accepted Time + /// + /// Order Accepted Time + [DataMember(Name="OrderAcceptedTime", EmitDefaultValue=false)] + public DateTime? OrderAcceptedTime { get; set; } + + /// + /// User who has accepted the order + /// + /// User who has accepted the order + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderAcceptedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderAcceptedTime: ").Append(OrderAcceptedTime).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderAcceptedEvent); + } + + /// + /// Returns true if OrderAcceptedEvent instances are equal + /// + /// Instance of OrderAcceptedEvent to be compared + /// Boolean + public bool Equals(OrderAcceptedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderAcceptedTime == input.OrderAcceptedTime || + (this.OrderAcceptedTime != null && + this.OrderAcceptedTime.Equals(input.OrderAcceptedTime)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderAcceptedTime != null) + hashCode = hashCode * 59 + this.OrderAcceptedTime.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderBatch.cs b/src/Flipdish/Model/OrderBatch.cs new file mode 100644 index 00000000..80bc9e8f --- /dev/null +++ b/src/Flipdish/Model/OrderBatch.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order batch detailed information + /// + [DataContract] + public partial class OrderBatch : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Orders' ids on the batch. + /// Order batch id. + /// Order batch 6-sign human readable code. + /// Batch creation date and time. + /// If the batch is already published. + public OrderBatch(List orderIds = default(List), int? id = default(int?), string displayCode = default(string), DateTime? createTime = default(DateTime?), bool? isPublished = default(bool?)) + { + this.OrderIds = orderIds; + this.Id = id; + this.DisplayCode = displayCode; + this.CreateTime = createTime; + this.IsPublished = isPublished; + } + + /// + /// Orders' ids on the batch + /// + /// Orders' ids on the batch + [DataMember(Name="OrderIds", EmitDefaultValue=false)] + public List OrderIds { get; set; } + + /// + /// Order batch id + /// + /// Order batch id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Order batch 6-sign human readable code + /// + /// Order batch 6-sign human readable code + [DataMember(Name="DisplayCode", EmitDefaultValue=false)] + public string DisplayCode { get; set; } + + /// + /// Batch creation date and time + /// + /// Batch creation date and time + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// If the batch is already published + /// + /// If the batch is already published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderBatch {\n"); + sb.Append(" OrderIds: ").Append(OrderIds).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DisplayCode: ").Append(DisplayCode).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderBatch); + } + + /// + /// Returns true if OrderBatch instances are equal + /// + /// Instance of OrderBatch to be compared + /// Boolean + public bool Equals(OrderBatch input) + { + if (input == null) + return false; + + return + ( + this.OrderIds == input.OrderIds || + this.OrderIds != null && + this.OrderIds.SequenceEqual(input.OrderIds) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DisplayCode == input.DisplayCode || + (this.DisplayCode != null && + this.DisplayCode.Equals(input.DisplayCode)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderIds != null) + hashCode = hashCode * 59 + this.OrderIds.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.DisplayCode != null) + hashCode = hashCode * 59 + this.DisplayCode.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderBatchPublishedEvent.cs b/src/Flipdish/Model/OrderBatchPublishedEvent.cs new file mode 100644 index 00000000..7c350915 --- /dev/null +++ b/src/Flipdish/Model/OrderBatchPublishedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Batch Published Event + /// + [DataContract] + public partial class OrderBatchPublishedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Order Batch Id. + /// Store id the order batch belogs to. + /// Orders' ids on the batch. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderBatchPublishedEvent(string eventName = default(string), int? orderBatchId = default(int?), int? storeId = default(int?), List orderIds = default(List), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrderBatchId = orderBatchId; + this.StoreId = storeId; + this.OrderIds = orderIds; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Order Batch Id + /// + /// Order Batch Id + [DataMember(Name="OrderBatchId", EmitDefaultValue=false)] + public int? OrderBatchId { get; set; } + + /// + /// Store id the order batch belogs to + /// + /// Store id the order batch belogs to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Orders' ids on the batch + /// + /// Orders' ids on the batch + [DataMember(Name="OrderIds", EmitDefaultValue=false)] + public List OrderIds { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderBatchPublishedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrderBatchId: ").Append(OrderBatchId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" OrderIds: ").Append(OrderIds).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderBatchPublishedEvent); + } + + /// + /// Returns true if OrderBatchPublishedEvent instances are equal + /// + /// Instance of OrderBatchPublishedEvent to be compared + /// Boolean + public bool Equals(OrderBatchPublishedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrderBatchId == input.OrderBatchId || + (this.OrderBatchId != null && + this.OrderBatchId.Equals(input.OrderBatchId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.OrderIds == input.OrderIds || + this.OrderIds != null && + this.OrderIds.SequenceEqual(input.OrderIds) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrderBatchId != null) + hashCode = hashCode * 59 + this.OrderBatchId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.OrderIds != null) + hashCode = hashCode * 59 + this.OrderIds.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderBatchSummary.cs b/src/Flipdish/Model/OrderBatchSummary.cs new file mode 100644 index 00000000..a52112b6 --- /dev/null +++ b/src/Flipdish/Model/OrderBatchSummary.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order batch info + /// + [DataContract] + public partial class OrderBatchSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Order batch id. + /// Order batch 6-sign human readable code. + /// Batch creation date and time. + /// If the batch is already published. + public OrderBatchSummary(int? id = default(int?), string displayCode = default(string), DateTime? createTime = default(DateTime?), bool? isPublished = default(bool?)) + { + this.Id = id; + this.DisplayCode = displayCode; + this.CreateTime = createTime; + this.IsPublished = isPublished; + } + + /// + /// Order batch id + /// + /// Order batch id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Order batch 6-sign human readable code + /// + /// Order batch 6-sign human readable code + [DataMember(Name="DisplayCode", EmitDefaultValue=false)] + public string DisplayCode { get; set; } + + /// + /// Batch creation date and time + /// + /// Batch creation date and time + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// If the batch is already published + /// + /// If the batch is already published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderBatchSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DisplayCode: ").Append(DisplayCode).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderBatchSummary); + } + + /// + /// Returns true if OrderBatchSummary instances are equal + /// + /// Instance of OrderBatchSummary to be compared + /// Boolean + public bool Equals(OrderBatchSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.DisplayCode == input.DisplayCode || + (this.DisplayCode != null && + this.DisplayCode.Equals(input.DisplayCode)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.DisplayCode != null) + hashCode = hashCode * 59 + this.DisplayCode.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderBatchingConfiguration.cs b/src/Flipdish/Model/OrderBatchingConfiguration.cs new file mode 100644 index 00000000..f7a792c8 --- /dev/null +++ b/src/Flipdish/Model/OrderBatchingConfiguration.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes the configuration of OrderBatching + /// + [DataContract] + public partial class OrderBatchingConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Batch sending interval in seconds. + /// OrderBatching is enabled or not. + public OrderBatchingConfiguration(int? batchIntervalInSeconds = default(int?), bool? isEnabled = default(bool?)) + { + this.BatchIntervalInSeconds = batchIntervalInSeconds; + this.IsEnabled = isEnabled; + } + + /// + /// Batch sending interval in seconds + /// + /// Batch sending interval in seconds + [DataMember(Name="BatchIntervalInSeconds", EmitDefaultValue=false)] + public int? BatchIntervalInSeconds { get; set; } + + /// + /// OrderBatching is enabled or not + /// + /// OrderBatching is enabled or not + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderBatchingConfiguration {\n"); + sb.Append(" BatchIntervalInSeconds: ").Append(BatchIntervalInSeconds).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderBatchingConfiguration); + } + + /// + /// Returns true if OrderBatchingConfiguration instances are equal + /// + /// Instance of OrderBatchingConfiguration to be compared + /// Boolean + public bool Equals(OrderBatchingConfiguration input) + { + if (input == null) + return false; + + return + ( + this.BatchIntervalInSeconds == input.BatchIntervalInSeconds || + (this.BatchIntervalInSeconds != null && + this.BatchIntervalInSeconds.Equals(input.BatchIntervalInSeconds)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BatchIntervalInSeconds != null) + hashCode = hashCode * 59 + this.BatchIntervalInSeconds.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderCapacityConfigUpdatedEvent.cs b/src/Flipdish/Model/OrderCapacityConfigUpdatedEvent.cs new file mode 100644 index 00000000..7168df44 --- /dev/null +++ b/src/Flipdish/Model/OrderCapacityConfigUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store's Order Capacity Configuration Updated + /// + [DataContract] + public partial class OrderCapacityConfigUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Id of the store whose order capacity configuration has been updated. + /// User which updated order capacity configuration for this store. + /// Description. + /// Updated order capacity configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderCapacityConfigUpdatedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreOrderCapacityConfigEditModel orderCapacityConfig = default(StoreOrderCapacityConfigEditModel), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.OrderCapacityConfig = orderCapacityConfig; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Id of the store whose order capacity configuration has been updated + /// + /// Id of the store whose order capacity configuration has been updated + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which updated order capacity configuration for this store + /// + /// User which updated order capacity configuration for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated order capacity configuration + /// + /// Updated order capacity configuration + [DataMember(Name="OrderCapacityConfig", EmitDefaultValue=false)] + public StoreOrderCapacityConfigEditModel OrderCapacityConfig { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderCapacityConfigUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderCapacityConfig: ").Append(OrderCapacityConfig).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderCapacityConfigUpdatedEvent); + } + + /// + /// Returns true if OrderCapacityConfigUpdatedEvent instances are equal + /// + /// Instance of OrderCapacityConfigUpdatedEvent to be compared + /// Boolean + public bool Equals(OrderCapacityConfigUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderCapacityConfig == input.OrderCapacityConfig || + (this.OrderCapacityConfig != null && + this.OrderCapacityConfig.Equals(input.OrderCapacityConfig)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderCapacityConfig != null) + hashCode = hashCode * 59 + this.OrderCapacityConfig.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderCreatedEvent.cs b/src/Flipdish/Model/OrderCreatedEvent.cs new file mode 100644 index 00000000..c8144c32 --- /dev/null +++ b/src/Flipdish/Model/OrderCreatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Created Event + /// + [DataContract] + public partial class OrderCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Order Created Time. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderCreatedEvent(string eventName = default(string), string description = default(string), DateTime? orderCreatedTime = default(DateTime?), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.OrderCreatedTime = orderCreatedTime; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order Created Time + /// + /// Order Created Time + [DataMember(Name="OrderCreatedTime", EmitDefaultValue=false)] + public DateTime? OrderCreatedTime { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderCreatedTime: ").Append(OrderCreatedTime).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderCreatedEvent); + } + + /// + /// Returns true if OrderCreatedEvent instances are equal + /// + /// Instance of OrderCreatedEvent to be compared + /// Boolean + public bool Equals(OrderCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderCreatedTime == input.OrderCreatedTime || + (this.OrderCreatedTime != null && + this.OrderCreatedTime.Equals(input.OrderCreatedTime)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderCreatedTime != null) + hashCode = hashCode * 59 + this.OrderCreatedTime.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderCustomerTrackingCreatedEvent.cs b/src/Flipdish/Model/OrderCustomerTrackingCreatedEvent.cs new file mode 100644 index 00000000..a361872b --- /dev/null +++ b/src/Flipdish/Model/OrderCustomerTrackingCreatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OrderCustomerTrackingCreatedEvent + /// + [DataContract] + public partial class OrderCustomerTrackingCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderCustomerTrackingCreatedEvent(string eventName = default(string), string description = default(string), CustomerDeliveryTrackingOrder order = default(CustomerDeliveryTrackingOrder), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public CustomerDeliveryTrackingOrder Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderCustomerTrackingCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderCustomerTrackingCreatedEvent); + } + + /// + /// Returns true if OrderCustomerTrackingCreatedEvent instances are equal + /// + /// Instance of OrderCustomerTrackingCreatedEvent to be compared + /// Boolean + public bool Equals(OrderCustomerTrackingCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderDeliveryInformation.cs b/src/Flipdish/Model/OrderDeliveryInformation.cs new file mode 100644 index 00000000..0b570717 --- /dev/null +++ b/src/Flipdish/Model/OrderDeliveryInformation.cs @@ -0,0 +1,295 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Delivery Status Information + /// + [DataContract] + public partial class OrderDeliveryInformation : IEquatable + { + /// + /// Delivery Status + /// + /// Delivery Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Unassigned for value: Unassigned + /// + [EnumMember(Value = "Unassigned")] + Unassigned = 2, + + /// + /// Enum Unaccepted for value: Unaccepted + /// + [EnumMember(Value = "Unaccepted")] + Unaccepted = 3, + + /// + /// Enum Accepted for value: Accepted + /// + [EnumMember(Value = "Accepted")] + Accepted = 4, + + /// + /// Enum Carrying for value: Carrying + /// + [EnumMember(Value = "Carrying")] + Carrying = 5, + + /// + /// Enum OnTheWay for value: OnTheWay + /// + [EnumMember(Value = "OnTheWay")] + OnTheWay = 6, + + /// + /// Enum ArrivedAtLocation for value: ArrivedAtLocation + /// + [EnumMember(Value = "ArrivedAtLocation")] + ArrivedAtLocation = 7, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 8, + + /// + /// Enum CannotDeliver for value: CannotDeliver + /// + [EnumMember(Value = "CannotDeliver")] + CannotDeliver = 9 + } + + /// + /// Delivery Status + /// + /// Delivery Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Order Id. + /// External Reference Id. + /// Tracking Url. + /// Delivery Status. + /// Delivery Status Notes. + /// Error Message. + /// Integration Code. + /// Integration Name. + public OrderDeliveryInformation(int? orderId = default(int?), string externalReferenceId = default(string), string trackUrl = default(string), StatusEnum? status = default(StatusEnum?), string deliveryStatusNotes = default(string), string errorMessage = default(string), string integrationCode = default(string), string integrationName = default(string)) + { + this.OrderId = orderId; + this.ExternalReferenceId = externalReferenceId; + this.TrackUrl = trackUrl; + this.Status = status; + this.DeliveryStatusNotes = deliveryStatusNotes; + this.ErrorMessage = errorMessage; + this.IntegrationCode = integrationCode; + this.IntegrationName = integrationName; + } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// External Reference Id + /// + /// External Reference Id + [DataMember(Name="ExternalReferenceId", EmitDefaultValue=false)] + public string ExternalReferenceId { get; set; } + + /// + /// Tracking Url + /// + /// Tracking Url + [DataMember(Name="TrackUrl", EmitDefaultValue=false)] + public string TrackUrl { get; set; } + + + /// + /// Delivery Status Notes + /// + /// Delivery Status Notes + [DataMember(Name="DeliveryStatusNotes", EmitDefaultValue=false)] + public string DeliveryStatusNotes { get; set; } + + /// + /// Error Message + /// + /// Error Message + [DataMember(Name="ErrorMessage", EmitDefaultValue=false)] + public string ErrorMessage { get; set; } + + /// + /// Integration Code + /// + /// Integration Code + [DataMember(Name="IntegrationCode", EmitDefaultValue=false)] + public string IntegrationCode { get; set; } + + /// + /// Integration Name + /// + /// Integration Name + [DataMember(Name="IntegrationName", EmitDefaultValue=false)] + public string IntegrationName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderDeliveryInformation {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" ExternalReferenceId: ").Append(ExternalReferenceId).Append("\n"); + sb.Append(" TrackUrl: ").Append(TrackUrl).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" DeliveryStatusNotes: ").Append(DeliveryStatusNotes).Append("\n"); + sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); + sb.Append(" IntegrationCode: ").Append(IntegrationCode).Append("\n"); + sb.Append(" IntegrationName: ").Append(IntegrationName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderDeliveryInformation); + } + + /// + /// Returns true if OrderDeliveryInformation instances are equal + /// + /// Instance of OrderDeliveryInformation to be compared + /// Boolean + public bool Equals(OrderDeliveryInformation input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.ExternalReferenceId == input.ExternalReferenceId || + (this.ExternalReferenceId != null && + this.ExternalReferenceId.Equals(input.ExternalReferenceId)) + ) && + ( + this.TrackUrl == input.TrackUrl || + (this.TrackUrl != null && + this.TrackUrl.Equals(input.TrackUrl)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.DeliveryStatusNotes == input.DeliveryStatusNotes || + (this.DeliveryStatusNotes != null && + this.DeliveryStatusNotes.Equals(input.DeliveryStatusNotes)) + ) && + ( + this.ErrorMessage == input.ErrorMessage || + (this.ErrorMessage != null && + this.ErrorMessage.Equals(input.ErrorMessage)) + ) && + ( + this.IntegrationCode == input.IntegrationCode || + (this.IntegrationCode != null && + this.IntegrationCode.Equals(input.IntegrationCode)) + ) && + ( + this.IntegrationName == input.IntegrationName || + (this.IntegrationName != null && + this.IntegrationName.Equals(input.IntegrationName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.ExternalReferenceId != null) + hashCode = hashCode * 59 + this.ExternalReferenceId.GetHashCode(); + if (this.TrackUrl != null) + hashCode = hashCode * 59 + this.TrackUrl.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.DeliveryStatusNotes != null) + hashCode = hashCode * 59 + this.DeliveryStatusNotes.GetHashCode(); + if (this.ErrorMessage != null) + hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); + if (this.IntegrationCode != null) + hashCode = hashCode * 59 + this.IntegrationCode.GetHashCode(); + if (this.IntegrationName != null) + hashCode = hashCode * 59 + this.IntegrationName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderDeliveryInformationBase.cs b/src/Flipdish/Model/OrderDeliveryInformationBase.cs new file mode 100644 index 00000000..927fdd1b --- /dev/null +++ b/src/Flipdish/Model/OrderDeliveryInformationBase.cs @@ -0,0 +1,278 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Delivery Status Information + /// + [DataContract] + public partial class OrderDeliveryInformationBase : IEquatable + { + /// + /// Delivery Status + /// + /// Delivery Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Unassigned for value: Unassigned + /// + [EnumMember(Value = "Unassigned")] + Unassigned = 2, + + /// + /// Enum Unaccepted for value: Unaccepted + /// + [EnumMember(Value = "Unaccepted")] + Unaccepted = 3, + + /// + /// Enum Accepted for value: Accepted + /// + [EnumMember(Value = "Accepted")] + Accepted = 4, + + /// + /// Enum Carrying for value: Carrying + /// + [EnumMember(Value = "Carrying")] + Carrying = 5, + + /// + /// Enum OnTheWay for value: OnTheWay + /// + [EnumMember(Value = "OnTheWay")] + OnTheWay = 6, + + /// + /// Enum ArrivedAtLocation for value: ArrivedAtLocation + /// + [EnumMember(Value = "ArrivedAtLocation")] + ArrivedAtLocation = 7, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 8, + + /// + /// Enum CannotDeliver for value: CannotDeliver + /// + [EnumMember(Value = "CannotDeliver")] + CannotDeliver = 9 + } + + /// + /// Delivery Status + /// + /// Delivery Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// External Reference Id. + /// Tracking Url. + /// Delivery Status. + /// Delivery Status Notes. + /// Error Message. + /// Integration Code. + /// Integration Name. + public OrderDeliveryInformationBase(string externalReferenceId = default(string), string trackUrl = default(string), StatusEnum? status = default(StatusEnum?), string deliveryStatusNotes = default(string), string errorMessage = default(string), string integrationCode = default(string), string integrationName = default(string)) + { + this.ExternalReferenceId = externalReferenceId; + this.TrackUrl = trackUrl; + this.Status = status; + this.DeliveryStatusNotes = deliveryStatusNotes; + this.ErrorMessage = errorMessage; + this.IntegrationCode = integrationCode; + this.IntegrationName = integrationName; + } + + /// + /// External Reference Id + /// + /// External Reference Id + [DataMember(Name="ExternalReferenceId", EmitDefaultValue=false)] + public string ExternalReferenceId { get; set; } + + /// + /// Tracking Url + /// + /// Tracking Url + [DataMember(Name="TrackUrl", EmitDefaultValue=false)] + public string TrackUrl { get; set; } + + + /// + /// Delivery Status Notes + /// + /// Delivery Status Notes + [DataMember(Name="DeliveryStatusNotes", EmitDefaultValue=false)] + public string DeliveryStatusNotes { get; set; } + + /// + /// Error Message + /// + /// Error Message + [DataMember(Name="ErrorMessage", EmitDefaultValue=false)] + public string ErrorMessage { get; set; } + + /// + /// Integration Code + /// + /// Integration Code + [DataMember(Name="IntegrationCode", EmitDefaultValue=false)] + public string IntegrationCode { get; set; } + + /// + /// Integration Name + /// + /// Integration Name + [DataMember(Name="IntegrationName", EmitDefaultValue=false)] + public string IntegrationName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderDeliveryInformationBase {\n"); + sb.Append(" ExternalReferenceId: ").Append(ExternalReferenceId).Append("\n"); + sb.Append(" TrackUrl: ").Append(TrackUrl).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" DeliveryStatusNotes: ").Append(DeliveryStatusNotes).Append("\n"); + sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); + sb.Append(" IntegrationCode: ").Append(IntegrationCode).Append("\n"); + sb.Append(" IntegrationName: ").Append(IntegrationName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderDeliveryInformationBase); + } + + /// + /// Returns true if OrderDeliveryInformationBase instances are equal + /// + /// Instance of OrderDeliveryInformationBase to be compared + /// Boolean + public bool Equals(OrderDeliveryInformationBase input) + { + if (input == null) + return false; + + return + ( + this.ExternalReferenceId == input.ExternalReferenceId || + (this.ExternalReferenceId != null && + this.ExternalReferenceId.Equals(input.ExternalReferenceId)) + ) && + ( + this.TrackUrl == input.TrackUrl || + (this.TrackUrl != null && + this.TrackUrl.Equals(input.TrackUrl)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.DeliveryStatusNotes == input.DeliveryStatusNotes || + (this.DeliveryStatusNotes != null && + this.DeliveryStatusNotes.Equals(input.DeliveryStatusNotes)) + ) && + ( + this.ErrorMessage == input.ErrorMessage || + (this.ErrorMessage != null && + this.ErrorMessage.Equals(input.ErrorMessage)) + ) && + ( + this.IntegrationCode == input.IntegrationCode || + (this.IntegrationCode != null && + this.IntegrationCode.Equals(input.IntegrationCode)) + ) && + ( + this.IntegrationName == input.IntegrationName || + (this.IntegrationName != null && + this.IntegrationName.Equals(input.IntegrationName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ExternalReferenceId != null) + hashCode = hashCode * 59 + this.ExternalReferenceId.GetHashCode(); + if (this.TrackUrl != null) + hashCode = hashCode * 59 + this.TrackUrl.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.DeliveryStatusNotes != null) + hashCode = hashCode * 59 + this.DeliveryStatusNotes.GetHashCode(); + if (this.ErrorMessage != null) + hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode(); + if (this.IntegrationCode != null) + hashCode = hashCode * 59 + this.IntegrationCode.GetHashCode(); + if (this.IntegrationName != null) + hashCode = hashCode * 59 + this.IntegrationName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs b/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs new file mode 100644 index 00000000..f7925968 --- /dev/null +++ b/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OrderDeliveryTrackingStatusUpdatedEvent + /// + [DataContract] + public partial class OrderDeliveryTrackingStatusUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Order. + /// Delivery integration name. + /// Delivery error message (optional). + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderDeliveryTrackingStatusUpdatedEvent(string eventName = default(string), string description = default(string), Order order = default(Order), string deliveryIntegrationName = default(string), string deliveryErrorMessage = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.Order = order; + this.DeliveryIntegrationName = deliveryIntegrationName; + this.DeliveryErrorMessage = deliveryErrorMessage; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// Delivery integration name + /// + /// Delivery integration name + [DataMember(Name="DeliveryIntegrationName", EmitDefaultValue=false)] + public string DeliveryIntegrationName { get; set; } + + /// + /// Delivery error message (optional) + /// + /// Delivery error message (optional) + [DataMember(Name="DeliveryErrorMessage", EmitDefaultValue=false)] + public string DeliveryErrorMessage { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderDeliveryTrackingStatusUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" DeliveryIntegrationName: ").Append(DeliveryIntegrationName).Append("\n"); + sb.Append(" DeliveryErrorMessage: ").Append(DeliveryErrorMessage).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderDeliveryTrackingStatusUpdatedEvent); + } + + /// + /// Returns true if OrderDeliveryTrackingStatusUpdatedEvent instances are equal + /// + /// Instance of OrderDeliveryTrackingStatusUpdatedEvent to be compared + /// Boolean + public bool Equals(OrderDeliveryTrackingStatusUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.DeliveryIntegrationName == input.DeliveryIntegrationName || + (this.DeliveryIntegrationName != null && + this.DeliveryIntegrationName.Equals(input.DeliveryIntegrationName)) + ) && + ( + this.DeliveryErrorMessage == input.DeliveryErrorMessage || + (this.DeliveryErrorMessage != null && + this.DeliveryErrorMessage.Equals(input.DeliveryErrorMessage)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.DeliveryIntegrationName != null) + hashCode = hashCode * 59 + this.DeliveryIntegrationName.GetHashCode(); + if (this.DeliveryErrorMessage != null) + hashCode = hashCode * 59 + this.DeliveryErrorMessage.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderDispatchedEvent.cs b/src/Flipdish/Model/OrderDispatchedEvent.cs new file mode 100644 index 00000000..6b55f715 --- /dev/null +++ b/src/Flipdish/Model/OrderDispatchedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Dispatched Event + /// + [DataContract] + public partial class OrderDispatchedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Order Rejected Time. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderDispatchedEvent(string eventName = default(string), string description = default(string), DateTime? orderDispatchedTime = default(DateTime?), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.OrderDispatchedTime = orderDispatchedTime; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order Rejected Time + /// + /// Order Rejected Time + [DataMember(Name="OrderDispatchedTime", EmitDefaultValue=false)] + public DateTime? OrderDispatchedTime { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderDispatchedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderDispatchedTime: ").Append(OrderDispatchedTime).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderDispatchedEvent); + } + + /// + /// Returns true if OrderDispatchedEvent instances are equal + /// + /// Instance of OrderDispatchedEvent to be compared + /// Boolean + public bool Equals(OrderDispatchedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderDispatchedTime == input.OrderDispatchedTime || + (this.OrderDispatchedTime != null && + this.OrderDispatchedTime.Equals(input.OrderDispatchedTime)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderDispatchedTime != null) + hashCode = hashCode * 59 + this.OrderDispatchedTime.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderDropOffLocation.cs b/src/Flipdish/Model/OrderDropOffLocation.cs new file mode 100644 index 00000000..4e273db6 --- /dev/null +++ b/src/Flipdish/Model/OrderDropOffLocation.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OrderDropOffLocation. + /// + [DataContract] + public partial class OrderDropOffLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// OrderId.. + /// LocationName.. + /// LocationAreaName.. + /// LocationId.. + /// LocationAreaId.. + /// ExternalLocationId.. + public OrderDropOffLocation(int? orderId = default(int?), string locationName = default(string), string locationAreaName = default(string), int? locationId = default(int?), int? locationAreaId = default(int?), string externalLocationId = default(string)) + { + this.OrderId = orderId; + this.LocationName = locationName; + this.LocationAreaName = locationAreaName; + this.LocationId = locationId; + this.LocationAreaId = locationAreaId; + this.ExternalLocationId = externalLocationId; + } + + /// + /// OrderId. + /// + /// OrderId. + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// LocationName. + /// + /// LocationName. + [DataMember(Name="LocationName", EmitDefaultValue=false)] + public string LocationName { get; set; } + + /// + /// LocationAreaName. + /// + /// LocationAreaName. + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// LocationId. + /// + /// LocationId. + [DataMember(Name="LocationId", EmitDefaultValue=false)] + public int? LocationId { get; set; } + + /// + /// LocationAreaId. + /// + /// LocationAreaId. + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// ExternalLocationId. + /// + /// ExternalLocationId. + [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] + public string ExternalLocationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderDropOffLocation {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" LocationName: ").Append(LocationName).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append(" LocationId: ").Append(LocationId).Append("\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" ExternalLocationId: ").Append(ExternalLocationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderDropOffLocation); + } + + /// + /// Returns true if OrderDropOffLocation instances are equal + /// + /// Instance of OrderDropOffLocation to be compared + /// Boolean + public bool Equals(OrderDropOffLocation input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.LocationName == input.LocationName || + (this.LocationName != null && + this.LocationName.Equals(input.LocationName)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ) && + ( + this.LocationId == input.LocationId || + (this.LocationId != null && + this.LocationId.Equals(input.LocationId)) + ) && + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.ExternalLocationId == input.ExternalLocationId || + (this.ExternalLocationId != null && + this.ExternalLocationId.Equals(input.ExternalLocationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.LocationName != null) + hashCode = hashCode * 59 + this.LocationName.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + if (this.LocationId != null) + hashCode = hashCode * 59 + this.LocationId.GetHashCode(); + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.ExternalLocationId != null) + hashCode = hashCode * 59 + this.ExternalLocationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderFulfillmentStatus.cs b/src/Flipdish/Model/OrderFulfillmentStatus.cs new file mode 100644 index 00000000..be85d4f6 --- /dev/null +++ b/src/Flipdish/Model/OrderFulfillmentStatus.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Fulfillment Status Information + /// + [DataContract] + public partial class OrderFulfillmentStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Order Id. + /// Fulfillment Status Id. + /// Fulfillment Status Name. + /// Status Icon. + public OrderFulfillmentStatus(int? orderId = default(int?), string statusId = default(string), string statusName = default(string), string icon = default(string)) + { + this.OrderId = orderId; + this.StatusId = statusId; + this.StatusName = statusName; + this.Icon = icon; + } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Fulfillment Status Id + /// + /// Fulfillment Status Id + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// Fulfillment Status Name + /// + /// Fulfillment Status Name + [DataMember(Name="StatusName", EmitDefaultValue=false)] + public string StatusName { get; set; } + + /// + /// Status Icon + /// + /// Status Icon + [DataMember(Name="Icon", EmitDefaultValue=false)] + public string Icon { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderFulfillmentStatus {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append(" StatusName: ").Append(StatusName).Append("\n"); + sb.Append(" Icon: ").Append(Icon).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderFulfillmentStatus); + } + + /// + /// Returns true if OrderFulfillmentStatus instances are equal + /// + /// Instance of OrderFulfillmentStatus to be compared + /// Boolean + public bool Equals(OrderFulfillmentStatus input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ) && + ( + this.StatusName == input.StatusName || + (this.StatusName != null && + this.StatusName.Equals(input.StatusName)) + ) && + ( + this.Icon == input.Icon || + (this.Icon != null && + this.Icon.Equals(input.Icon)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + if (this.StatusName != null) + hashCode = hashCode * 59 + this.StatusName.GetHashCode(); + if (this.Icon != null) + hashCode = hashCode * 59 + this.Icon.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderFulfillmentStatusBase.cs b/src/Flipdish/Model/OrderFulfillmentStatusBase.cs new file mode 100644 index 00000000..d4dc640d --- /dev/null +++ b/src/Flipdish/Model/OrderFulfillmentStatusBase.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fulfillment Status Information + /// + [DataContract] + public partial class OrderFulfillmentStatusBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Fulfillment Status Id. + /// Fulfillment Status Name. + /// Status Icon. + public OrderFulfillmentStatusBase(string statusId = default(string), string statusName = default(string), string icon = default(string)) + { + this.StatusId = statusId; + this.StatusName = statusName; + this.Icon = icon; + } + + /// + /// Fulfillment Status Id + /// + /// Fulfillment Status Id + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// Fulfillment Status Name + /// + /// Fulfillment Status Name + [DataMember(Name="StatusName", EmitDefaultValue=false)] + public string StatusName { get; set; } + + /// + /// Status Icon + /// + /// Status Icon + [DataMember(Name="Icon", EmitDefaultValue=false)] + public string Icon { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderFulfillmentStatusBase {\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append(" StatusName: ").Append(StatusName).Append("\n"); + sb.Append(" Icon: ").Append(Icon).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderFulfillmentStatusBase); + } + + /// + /// Returns true if OrderFulfillmentStatusBase instances are equal + /// + /// Instance of OrderFulfillmentStatusBase to be compared + /// Boolean + public bool Equals(OrderFulfillmentStatusBase input) + { + if (input == null) + return false; + + return + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ) && + ( + this.StatusName == input.StatusName || + (this.StatusName != null && + this.StatusName.Equals(input.StatusName)) + ) && + ( + this.Icon == input.Icon || + (this.Icon != null && + this.Icon.Equals(input.Icon)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + if (this.StatusName != null) + hashCode = hashCode * 59 + this.StatusName.GetHashCode(); + if (this.Icon != null) + hashCode = hashCode * 59 + this.Icon.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs b/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs new file mode 100644 index 00000000..9244043f --- /dev/null +++ b/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OrderFulfillmentStatusUpdate. + /// + [DataContract] + public partial class OrderFulfillmentStatusUpdate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Fulfillment Status Id. + public OrderFulfillmentStatusUpdate(string statusId = default(string)) + { + this.StatusId = statusId; + } + + /// + /// Fulfillment Status Id + /// + /// Fulfillment Status Id + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderFulfillmentStatusUpdate {\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderFulfillmentStatusUpdate); + } + + /// + /// Returns true if OrderFulfillmentStatusUpdate instances are equal + /// + /// Instance of OrderFulfillmentStatusUpdate to be compared + /// Boolean + public bool Equals(OrderFulfillmentStatusUpdate input) + { + if (input == null) + return false; + + return + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs b/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs new file mode 100644 index 00000000..2eb81d4b --- /dev/null +++ b/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fulfillment status updated event + /// + [DataContract] + public partial class OrderFulfillmentStatusUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Description. + /// Order Id. + /// Fulfillment status name. + /// Fulfillment status ID. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderFulfillmentStatusUpdatedEvent(string eventName = default(string), int? storeId = default(int?), string description = default(string), int? orderId = default(int?), string statusName = default(string), string statusId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.Description = description; + this.OrderId = orderId; + this.StatusName = statusName; + this.StatusId = statusId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Fulfillment status name + /// + /// Fulfillment status name + [DataMember(Name="StatusName", EmitDefaultValue=false)] + public string StatusName { get; set; } + + /// + /// Fulfillment status ID + /// + /// Fulfillment status ID + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderFulfillmentStatusUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" StatusName: ").Append(StatusName).Append("\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderFulfillmentStatusUpdatedEvent); + } + + /// + /// Returns true if OrderFulfillmentStatusUpdatedEvent instances are equal + /// + /// Instance of OrderFulfillmentStatusUpdatedEvent to be compared + /// Boolean + public bool Equals(OrderFulfillmentStatusUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.StatusName == input.StatusName || + (this.StatusName != null && + this.StatusName.Equals(input.StatusName)) + ) && + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.StatusName != null) + hashCode = hashCode * 59 + this.StatusName.GetHashCode(); + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderFulfillmentStatusWithConfigurationActions.cs b/src/Flipdish/Model/OrderFulfillmentStatusWithConfigurationActions.cs new file mode 100644 index 00000000..9c5d2ae2 --- /dev/null +++ b/src/Flipdish/Model/OrderFulfillmentStatusWithConfigurationActions.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Fulfillment status with configured next actions + /// + [DataContract] + public partial class OrderFulfillmentStatusWithConfigurationActions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Default next status (id). + /// Possible next statuses. + /// Order Id. + /// Fulfillment Status Id. + /// Fulfillment Status Name. + /// Status Icon. + public OrderFulfillmentStatusWithConfigurationActions(string defaultNextStatus = default(string), List nextStatuses = default(List), int? orderId = default(int?), string statusId = default(string), string statusName = default(string), string icon = default(string)) + { + this.DefaultNextStatus = defaultNextStatus; + this.NextStatuses = nextStatuses; + this.OrderId = orderId; + this.StatusId = statusId; + this.StatusName = statusName; + this.Icon = icon; + } + + /// + /// Default next status (id) + /// + /// Default next status (id) + [DataMember(Name="DefaultNextStatus", EmitDefaultValue=false)] + public string DefaultNextStatus { get; set; } + + /// + /// Possible next statuses + /// + /// Possible next statuses + [DataMember(Name="NextStatuses", EmitDefaultValue=false)] + public List NextStatuses { get; set; } + + /// + /// Order Id + /// + /// Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Fulfillment Status Id + /// + /// Fulfillment Status Id + [DataMember(Name="StatusId", EmitDefaultValue=false)] + public string StatusId { get; set; } + + /// + /// Fulfillment Status Name + /// + /// Fulfillment Status Name + [DataMember(Name="StatusName", EmitDefaultValue=false)] + public string StatusName { get; set; } + + /// + /// Status Icon + /// + /// Status Icon + [DataMember(Name="Icon", EmitDefaultValue=false)] + public string Icon { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderFulfillmentStatusWithConfigurationActions {\n"); + sb.Append(" DefaultNextStatus: ").Append(DefaultNextStatus).Append("\n"); + sb.Append(" NextStatuses: ").Append(NextStatuses).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" StatusId: ").Append(StatusId).Append("\n"); + sb.Append(" StatusName: ").Append(StatusName).Append("\n"); + sb.Append(" Icon: ").Append(Icon).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderFulfillmentStatusWithConfigurationActions); + } + + /// + /// Returns true if OrderFulfillmentStatusWithConfigurationActions instances are equal + /// + /// Instance of OrderFulfillmentStatusWithConfigurationActions to be compared + /// Boolean + public bool Equals(OrderFulfillmentStatusWithConfigurationActions input) + { + if (input == null) + return false; + + return + ( + this.DefaultNextStatus == input.DefaultNextStatus || + (this.DefaultNextStatus != null && + this.DefaultNextStatus.Equals(input.DefaultNextStatus)) + ) && + ( + this.NextStatuses == input.NextStatuses || + this.NextStatuses != null && + this.NextStatuses.SequenceEqual(input.NextStatuses) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.StatusId == input.StatusId || + (this.StatusId != null && + this.StatusId.Equals(input.StatusId)) + ) && + ( + this.StatusName == input.StatusName || + (this.StatusName != null && + this.StatusName.Equals(input.StatusName)) + ) && + ( + this.Icon == input.Icon || + (this.Icon != null && + this.Icon.Equals(input.Icon)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DefaultNextStatus != null) + hashCode = hashCode * 59 + this.DefaultNextStatus.GetHashCode(); + if (this.NextStatuses != null) + hashCode = hashCode * 59 + this.NextStatuses.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.StatusId != null) + hashCode = hashCode * 59 + this.StatusId.GetHashCode(); + if (this.StatusName != null) + hashCode = hashCode * 59 + this.StatusName.GetHashCode(); + if (this.Icon != null) + hashCode = hashCode * 59 + this.Icon.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderItem.cs b/src/Flipdish/Model/OrderItem.cs new file mode 100644 index 00000000..624d2820 --- /dev/null +++ b/src/Flipdish/Model/OrderItem.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order item + /// + [DataContract] + public partial class OrderItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Option list. + /// Metadata. + /// Public id of the Menu Item. + /// Menu section name. + /// Menu section display order. + /// Name. + /// Description. + /// Price. + /// Tax currency amount. + /// Price including option set items. + /// Menu item identifier. + /// Menu item display order. + /// Is available. + /// Deposit return fee. + public OrderItem(List orderItemOptions = default(List), Dictionary metadata = default(Dictionary), Guid? menuItemPublicId = default(Guid?), string menuSectionName = default(string), int? menuSectionDisplayOrder = default(int?), string name = default(string), string description = default(string), double? price = default(double?), double? taxAmount = default(double?), double? priceIncludingOptionSetItems = default(double?), int? menuItemId = default(int?), int? menuItemDisplayOrder = default(int?), bool? isAvailable = default(bool?), double? depositReturnFee = default(double?)) + { + this.OrderItemOptions = orderItemOptions; + this.Metadata = metadata; + this.MenuItemPublicId = menuItemPublicId; + this.MenuSectionName = menuSectionName; + this.MenuSectionDisplayOrder = menuSectionDisplayOrder; + this.Name = name; + this.Description = description; + this.Price = price; + this.TaxAmount = taxAmount; + this.PriceIncludingOptionSetItems = priceIncludingOptionSetItems; + this.MenuItemId = menuItemId; + this.MenuItemDisplayOrder = menuItemDisplayOrder; + this.IsAvailable = isAvailable; + this.DepositReturnFee = depositReturnFee; + } + + /// + /// Option list + /// + /// Option list + [DataMember(Name="OrderItemOptions", EmitDefaultValue=false)] + public List OrderItemOptions { get; set; } + + /// + /// Metadata + /// + /// Metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public Dictionary Metadata { get; set; } + + /// + /// Public id of the Menu Item + /// + /// Public id of the Menu Item + [DataMember(Name="MenuItemPublicId", EmitDefaultValue=false)] + public Guid? MenuItemPublicId { get; set; } + + /// + /// Menu section name + /// + /// Menu section name + [DataMember(Name="MenuSectionName", EmitDefaultValue=false)] + public string MenuSectionName { get; set; } + + /// + /// Menu section display order + /// + /// Menu section display order + [DataMember(Name="MenuSectionDisplayOrder", EmitDefaultValue=false)] + public int? MenuSectionDisplayOrder { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Price + /// + /// Price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Tax currency amount + /// + /// Tax currency amount + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public double? TaxAmount { get; set; } + + /// + /// Price including option set items + /// + /// Price including option set items + [DataMember(Name="PriceIncludingOptionSetItems", EmitDefaultValue=false)] + public double? PriceIncludingOptionSetItems { get; set; } + + /// + /// Menu item identifier + /// + /// Menu item identifier + [DataMember(Name="MenuItemId", EmitDefaultValue=false)] + public int? MenuItemId { get; set; } + + /// + /// Menu item display order + /// + /// Menu item display order + [DataMember(Name="MenuItemDisplayOrder", EmitDefaultValue=false)] + public int? MenuItemDisplayOrder { get; set; } + + /// + /// Is available + /// + /// Is available + [DataMember(Name="IsAvailable", EmitDefaultValue=false)] + public bool? IsAvailable { get; set; } + + /// + /// Deposit return fee + /// + /// Deposit return fee + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderItem {\n"); + sb.Append(" OrderItemOptions: ").Append(OrderItemOptions).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" MenuItemPublicId: ").Append(MenuItemPublicId).Append("\n"); + sb.Append(" MenuSectionName: ").Append(MenuSectionName).Append("\n"); + sb.Append(" MenuSectionDisplayOrder: ").Append(MenuSectionDisplayOrder).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); + sb.Append(" PriceIncludingOptionSetItems: ").Append(PriceIncludingOptionSetItems).Append("\n"); + sb.Append(" MenuItemId: ").Append(MenuItemId).Append("\n"); + sb.Append(" MenuItemDisplayOrder: ").Append(MenuItemDisplayOrder).Append("\n"); + sb.Append(" IsAvailable: ").Append(IsAvailable).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderItem); + } + + /// + /// Returns true if OrderItem instances are equal + /// + /// Instance of OrderItem to be compared + /// Boolean + public bool Equals(OrderItem input) + { + if (input == null) + return false; + + return + ( + this.OrderItemOptions == input.OrderItemOptions || + this.OrderItemOptions != null && + this.OrderItemOptions.SequenceEqual(input.OrderItemOptions) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.MenuItemPublicId == input.MenuItemPublicId || + (this.MenuItemPublicId != null && + this.MenuItemPublicId.Equals(input.MenuItemPublicId)) + ) && + ( + this.MenuSectionName == input.MenuSectionName || + (this.MenuSectionName != null && + this.MenuSectionName.Equals(input.MenuSectionName)) + ) && + ( + this.MenuSectionDisplayOrder == input.MenuSectionDisplayOrder || + (this.MenuSectionDisplayOrder != null && + this.MenuSectionDisplayOrder.Equals(input.MenuSectionDisplayOrder)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.TaxAmount == input.TaxAmount || + (this.TaxAmount != null && + this.TaxAmount.Equals(input.TaxAmount)) + ) && + ( + this.PriceIncludingOptionSetItems == input.PriceIncludingOptionSetItems || + (this.PriceIncludingOptionSetItems != null && + this.PriceIncludingOptionSetItems.Equals(input.PriceIncludingOptionSetItems)) + ) && + ( + this.MenuItemId == input.MenuItemId || + (this.MenuItemId != null && + this.MenuItemId.Equals(input.MenuItemId)) + ) && + ( + this.MenuItemDisplayOrder == input.MenuItemDisplayOrder || + (this.MenuItemDisplayOrder != null && + this.MenuItemDisplayOrder.Equals(input.MenuItemDisplayOrder)) + ) && + ( + this.IsAvailable == input.IsAvailable || + (this.IsAvailable != null && + this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderItemOptions != null) + hashCode = hashCode * 59 + this.OrderItemOptions.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.MenuItemPublicId != null) + hashCode = hashCode * 59 + this.MenuItemPublicId.GetHashCode(); + if (this.MenuSectionName != null) + hashCode = hashCode * 59 + this.MenuSectionName.GetHashCode(); + if (this.MenuSectionDisplayOrder != null) + hashCode = hashCode * 59 + this.MenuSectionDisplayOrder.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.TaxAmount != null) + hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); + if (this.PriceIncludingOptionSetItems != null) + hashCode = hashCode * 59 + this.PriceIncludingOptionSetItems.GetHashCode(); + if (this.MenuItemId != null) + hashCode = hashCode * 59 + this.MenuItemId.GetHashCode(); + if (this.MenuItemDisplayOrder != null) + hashCode = hashCode * 59 + this.MenuItemDisplayOrder.GetHashCode(); + if (this.IsAvailable != null) + hashCode = hashCode * 59 + this.IsAvailable.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderItemOption.cs b/src/Flipdish/Model/OrderItemOption.cs new file mode 100644 index 00000000..8f163911 --- /dev/null +++ b/src/Flipdish/Model/OrderItemOption.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order item option + /// + [DataContract] + public partial class OrderItemOption : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Metadata. + /// Public id of the Menu Item Option. + /// Menu item option identifier. + /// Is master option set item. + /// Name. + /// Price. + /// Tax currency amount. + /// Menu item option display order. + /// Menu item option set display order. + /// Deposit return fee. + public OrderItemOption(Dictionary metadata = default(Dictionary), Guid? menuItemOptionPublicId = default(Guid?), int? menuItemOptionId = default(int?), bool? isMasterOptionSetItem = default(bool?), string name = default(string), double? price = default(double?), double? taxAmount = default(double?), int? menuItemOptionDisplayOrder = default(int?), int? menuItemOptionSetDisplayOrder = default(int?), double? depositReturnFee = default(double?)) + { + this.Metadata = metadata; + this.MenuItemOptionPublicId = menuItemOptionPublicId; + this.MenuItemOptionId = menuItemOptionId; + this.IsMasterOptionSetItem = isMasterOptionSetItem; + this.Name = name; + this.Price = price; + this.TaxAmount = taxAmount; + this.MenuItemOptionDisplayOrder = menuItemOptionDisplayOrder; + this.MenuItemOptionSetDisplayOrder = menuItemOptionSetDisplayOrder; + this.DepositReturnFee = depositReturnFee; + } + + /// + /// Metadata + /// + /// Metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public Dictionary Metadata { get; set; } + + /// + /// Public id of the Menu Item Option + /// + /// Public id of the Menu Item Option + [DataMember(Name="MenuItemOptionPublicId", EmitDefaultValue=false)] + public Guid? MenuItemOptionPublicId { get; set; } + + /// + /// Menu item option identifier + /// + /// Menu item option identifier + [DataMember(Name="MenuItemOptionId", EmitDefaultValue=false)] + public int? MenuItemOptionId { get; set; } + + /// + /// Is master option set item + /// + /// Is master option set item + [DataMember(Name="IsMasterOptionSetItem", EmitDefaultValue=false)] + public bool? IsMasterOptionSetItem { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Price + /// + /// Price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Tax currency amount + /// + /// Tax currency amount + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public double? TaxAmount { get; set; } + + /// + /// Menu item option display order + /// + /// Menu item option display order + [DataMember(Name="MenuItemOptionDisplayOrder", EmitDefaultValue=false)] + public int? MenuItemOptionDisplayOrder { get; set; } + + /// + /// Menu item option set display order + /// + /// Menu item option set display order + [DataMember(Name="MenuItemOptionSetDisplayOrder", EmitDefaultValue=false)] + public int? MenuItemOptionSetDisplayOrder { get; set; } + + /// + /// Deposit return fee + /// + /// Deposit return fee + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderItemOption {\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" MenuItemOptionPublicId: ").Append(MenuItemOptionPublicId).Append("\n"); + sb.Append(" MenuItemOptionId: ").Append(MenuItemOptionId).Append("\n"); + sb.Append(" IsMasterOptionSetItem: ").Append(IsMasterOptionSetItem).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); + sb.Append(" MenuItemOptionDisplayOrder: ").Append(MenuItemOptionDisplayOrder).Append("\n"); + sb.Append(" MenuItemOptionSetDisplayOrder: ").Append(MenuItemOptionSetDisplayOrder).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderItemOption); + } + + /// + /// Returns true if OrderItemOption instances are equal + /// + /// Instance of OrderItemOption to be compared + /// Boolean + public bool Equals(OrderItemOption input) + { + if (input == null) + return false; + + return + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.MenuItemOptionPublicId == input.MenuItemOptionPublicId || + (this.MenuItemOptionPublicId != null && + this.MenuItemOptionPublicId.Equals(input.MenuItemOptionPublicId)) + ) && + ( + this.MenuItemOptionId == input.MenuItemOptionId || + (this.MenuItemOptionId != null && + this.MenuItemOptionId.Equals(input.MenuItemOptionId)) + ) && + ( + this.IsMasterOptionSetItem == input.IsMasterOptionSetItem || + (this.IsMasterOptionSetItem != null && + this.IsMasterOptionSetItem.Equals(input.IsMasterOptionSetItem)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.TaxAmount == input.TaxAmount || + (this.TaxAmount != null && + this.TaxAmount.Equals(input.TaxAmount)) + ) && + ( + this.MenuItemOptionDisplayOrder == input.MenuItemOptionDisplayOrder || + (this.MenuItemOptionDisplayOrder != null && + this.MenuItemOptionDisplayOrder.Equals(input.MenuItemOptionDisplayOrder)) + ) && + ( + this.MenuItemOptionSetDisplayOrder == input.MenuItemOptionSetDisplayOrder || + (this.MenuItemOptionSetDisplayOrder != null && + this.MenuItemOptionSetDisplayOrder.Equals(input.MenuItemOptionSetDisplayOrder)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.MenuItemOptionPublicId != null) + hashCode = hashCode * 59 + this.MenuItemOptionPublicId.GetHashCode(); + if (this.MenuItemOptionId != null) + hashCode = hashCode * 59 + this.MenuItemOptionId.GetHashCode(); + if (this.IsMasterOptionSetItem != null) + hashCode = hashCode * 59 + this.IsMasterOptionSetItem.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.TaxAmount != null) + hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); + if (this.MenuItemOptionDisplayOrder != null) + hashCode = hashCode * 59 + this.MenuItemOptionDisplayOrder.GetHashCode(); + if (this.MenuItemOptionSetDisplayOrder != null) + hashCode = hashCode * 59 + this.MenuItemOptionSetDisplayOrder.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderLeadTimes.cs b/src/Flipdish/Model/OrderLeadTimes.cs new file mode 100644 index 00000000..e3e7e93c --- /dev/null +++ b/src/Flipdish/Model/OrderLeadTimes.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// When orders are accepted, and no lead time is specified by the operator, this is the lead time that will be applied to the order. + /// + [DataContract] + public partial class OrderLeadTimes : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Mapping from the type of order to, to the default lead time that will be applied to those orders. The lead time is an integer number of minutes.. + public OrderLeadTimes(Dictionary leadTimeMinutes = default(Dictionary)) + { + this.LeadTimeMinutes = leadTimeMinutes; + } + + /// + /// Mapping from the type of order to, to the default lead time that will be applied to those orders. The lead time is an integer number of minutes. + /// + /// Mapping from the type of order to, to the default lead time that will be applied to those orders. The lead time is an integer number of minutes. + [DataMember(Name="LeadTimeMinutes", EmitDefaultValue=false)] + public Dictionary LeadTimeMinutes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderLeadTimes {\n"); + sb.Append(" LeadTimeMinutes: ").Append(LeadTimeMinutes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderLeadTimes); + } + + /// + /// Returns true if OrderLeadTimes instances are equal + /// + /// Instance of OrderLeadTimes to be compared + /// Boolean + public bool Equals(OrderLeadTimes input) + { + if (input == null) + return false; + + return + ( + this.LeadTimeMinutes == input.LeadTimeMinutes || + this.LeadTimeMinutes != null && + this.LeadTimeMinutes.SequenceEqual(input.LeadTimeMinutes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LeadTimeMinutes != null) + hashCode = hashCode * 59 + this.LeadTimeMinutes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderList.cs b/src/Flipdish/Model/OrderList.cs new file mode 100644 index 00000000..e0f93a97 --- /dev/null +++ b/src/Flipdish/Model/OrderList.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A list of orders. + /// + [DataContract] + public partial class OrderList : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// A list of orders.. + public OrderList(List orders = default(List)) + { + this.Orders = orders; + } + + /// + /// A list of orders. + /// + /// A list of orders. + [DataMember(Name="Orders", EmitDefaultValue=false)] + public List Orders { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderList {\n"); + sb.Append(" Orders: ").Append(Orders).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderList); + } + + /// + /// Returns true if OrderList instances are equal + /// + /// Instance of OrderList to be compared + /// Boolean + public bool Equals(OrderList input) + { + if (input == null) + return false; + + return + ( + this.Orders == input.Orders || + this.Orders != null && + this.Orders.SequenceEqual(input.Orders) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Orders != null) + hashCode = hashCode * 59 + this.Orders.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderPaymentInformation.cs b/src/Flipdish/Model/OrderPaymentInformation.cs new file mode 100644 index 00000000..3f8c123d --- /dev/null +++ b/src/Flipdish/Model/OrderPaymentInformation.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Payment Information + /// + [DataContract] + public partial class OrderPaymentInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// ID of the Order. + /// Signifies if the payment is refundable. + public OrderPaymentInformation(int? orderId = default(int?), bool? paymentRefundable = default(bool?)) + { + this.OrderId = orderId; + this.PaymentRefundable = paymentRefundable; + } + + /// + /// ID of the Order + /// + /// ID of the Order + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Signifies if the payment is refundable + /// + /// Signifies if the payment is refundable + [DataMember(Name="PaymentRefundable", EmitDefaultValue=false)] + public bool? PaymentRefundable { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderPaymentInformation {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" PaymentRefundable: ").Append(PaymentRefundable).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderPaymentInformation); + } + + /// + /// Returns true if OrderPaymentInformation instances are equal + /// + /// Instance of OrderPaymentInformation to be compared + /// Boolean + public bool Equals(OrderPaymentInformation input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.PaymentRefundable == input.PaymentRefundable || + (this.PaymentRefundable != null && + this.PaymentRefundable.Equals(input.PaymentRefundable)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.PaymentRefundable != null) + hashCode = hashCode * 59 + this.PaymentRefundable.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderRatingUpdatedEvent.cs b/src/Flipdish/Model/OrderRatingUpdatedEvent.cs new file mode 100644 index 00000000..ca5ee8a7 --- /dev/null +++ b/src/Flipdish/Model/OrderRatingUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Rating Update Event + /// + [DataContract] + public partial class OrderRatingUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// New User Rating. + /// Description. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderRatingUpdatedEvent(string eventName = default(string), int? rating = default(int?), string description = default(string), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Rating = rating; + this.Description = description; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// New User Rating + /// + /// New User Rating + [DataMember(Name="Rating", EmitDefaultValue=false)] + public int? Rating { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderRatingUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Rating: ").Append(Rating).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderRatingUpdatedEvent); + } + + /// + /// Returns true if OrderRatingUpdatedEvent instances are equal + /// + /// Instance of OrderRatingUpdatedEvent to be compared + /// Boolean + public bool Equals(OrderRatingUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Rating == input.Rating || + (this.Rating != null && + this.Rating.Equals(input.Rating)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Rating != null) + hashCode = hashCode * 59 + this.Rating.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderReference.cs b/src/Flipdish/Model/OrderReference.cs new file mode 100644 index 00000000..a9891c8a --- /dev/null +++ b/src/Flipdish/Model/OrderReference.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A reference to an order. + /// + [DataContract] + public partial class OrderReference : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The ID of the order.. + public OrderReference(int? orderId = default(int?)) + { + this.OrderId = orderId; + } + + /// + /// The ID of the order. + /// + /// The ID of the order. + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderReference {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderReference); + } + + /// + /// Returns true if OrderReference instances are equal + /// + /// Instance of OrderReference to be compared + /// Boolean + public bool Equals(OrderReference input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderRefundedEvent.cs b/src/Flipdish/Model/OrderRefundedEvent.cs new file mode 100644 index 00000000..57f67075 --- /dev/null +++ b/src/Flipdish/Model/OrderRefundedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Refunded Event + /// + [DataContract] + public partial class OrderRefundedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// The amount refunded. + /// Description. + /// User who has refunded the order. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderRefundedEvent(string eventName = default(string), double? refundedAmount = default(double?), string description = default(string), UserEventInfo user = default(UserEventInfo), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.RefundedAmount = refundedAmount; + this.Description = description; + this.User = user; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The amount refunded + /// + /// The amount refunded + [DataMember(Name="RefundedAmount", EmitDefaultValue=false)] + public double? RefundedAmount { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has refunded the order + /// + /// User who has refunded the order + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderRefundedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderRefundedEvent); + } + + /// + /// Returns true if OrderRefundedEvent instances are equal + /// + /// Instance of OrderRefundedEvent to be compared + /// Boolean + public bool Equals(OrderRefundedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.RefundedAmount == input.RefundedAmount || + (this.RefundedAmount != null && + this.RefundedAmount.Equals(input.RefundedAmount)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.RefundedAmount != null) + hashCode = hashCode * 59 + this.RefundedAmount.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderRejectedEvent.cs b/src/Flipdish/Model/OrderRejectedEvent.cs new file mode 100644 index 00000000..eb3018cc --- /dev/null +++ b/src/Flipdish/Model/OrderRejectedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Rejected Event + /// + [DataContract] + public partial class OrderRejectedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Order Rejected Time. + /// Reason for Rejection. + /// User who has rejected the order. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderRejectedEvent(string eventName = default(string), string description = default(string), DateTime? orderRejectedTime = default(DateTime?), string reason = default(string), UserEventInfo user = default(UserEventInfo), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.OrderRejectedTime = orderRejectedTime; + this.Reason = reason; + this.User = user; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order Rejected Time + /// + /// Order Rejected Time + [DataMember(Name="OrderRejectedTime", EmitDefaultValue=false)] + public DateTime? OrderRejectedTime { get; set; } + + /// + /// Reason for Rejection + /// + /// Reason for Rejection + [DataMember(Name="Reason", EmitDefaultValue=false)] + public string Reason { get; set; } + + /// + /// User who has rejected the order + /// + /// User who has rejected the order + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderRejectedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrderRejectedTime: ").Append(OrderRejectedTime).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderRejectedEvent); + } + + /// + /// Returns true if OrderRejectedEvent instances are equal + /// + /// Instance of OrderRejectedEvent to be compared + /// Boolean + public bool Equals(OrderRejectedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OrderRejectedTime == input.OrderRejectedTime || + (this.OrderRejectedTime != null && + this.OrderRejectedTime.Equals(input.OrderRejectedTime)) + ) && + ( + this.Reason == input.Reason || + (this.Reason != null && + this.Reason.Equals(input.Reason)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OrderRejectedTime != null) + hashCode = hashCode * 59 + this.OrderRejectedTime.GetHashCode(); + if (this.Reason != null) + hashCode = hashCode * 59 + this.Reason.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderSummary.cs b/src/Flipdish/Model/OrderSummary.cs new file mode 100644 index 00000000..fda43084 --- /dev/null +++ b/src/Flipdish/Model/OrderSummary.cs @@ -0,0 +1,1652 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order summary + /// + [DataContract] + public partial class OrderSummary : IEquatable + { + /// + /// Delivery type + /// + /// Delivery type + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Delivery type + /// + /// Delivery type + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Pickup location type + /// + /// Pickup location type + [JsonConverter(typeof(StringEnumConverter))] + public enum PickupLocationTypeEnum + { + + /// + /// Enum TakeOut for value: TakeOut + /// + [EnumMember(Value = "TakeOut")] + TakeOut = 1, + + /// + /// Enum TableService for value: TableService + /// + [EnumMember(Value = "TableService")] + TableService = 2, + + /// + /// Enum DineIn for value: DineIn + /// + [EnumMember(Value = "DineIn")] + DineIn = 3 + } + + /// + /// Pickup location type + /// + /// Pickup location type + [DataMember(Name="PickupLocationType", EmitDefaultValue=false)] + public PickupLocationTypeEnum? PickupLocationType { get; set; } + /// + /// Table service category + /// + /// Table service category + [JsonConverter(typeof(StringEnumConverter))] + public enum TableServiceCatagoryEnum + { + + /// + /// Enum Generic for value: Generic + /// + [EnumMember(Value = "Generic")] + Generic = 1, + + /// + /// Enum Villa for value: Villa + /// + [EnumMember(Value = "Villa")] + Villa = 2, + + /// + /// Enum House for value: House + /// + [EnumMember(Value = "House")] + House = 3, + + /// + /// Enum Room for value: Room + /// + [EnumMember(Value = "Room")] + Room = 4, + + /// + /// Enum Area for value: Area + /// + [EnumMember(Value = "Area")] + Area = 5, + + /// + /// Enum Table for value: Table + /// + [EnumMember(Value = "Table")] + Table = 6, + + /// + /// Enum ParkingBay for value: ParkingBay + /// + [EnumMember(Value = "ParkingBay")] + ParkingBay = 7, + + /// + /// Enum Gate for value: Gate + /// + [EnumMember(Value = "Gate")] + Gate = 8, + + /// + /// Enum DriveThrough for value: DriveThrough + /// + [EnumMember(Value = "DriveThrough")] + DriveThrough = 9, + + /// + /// Enum Team for value: Team + /// + [EnumMember(Value = "Team")] + Team = 10 + } + + /// + /// Table service category + /// + /// Table service category + [DataMember(Name="TableServiceCatagory", EmitDefaultValue=false)] + public TableServiceCatagoryEnum? TableServiceCatagory { get; set; } + /// + /// Order state + /// + /// Order state + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderStateEnum + { + + /// + /// Enum Created for value: Created + /// + [EnumMember(Value = "Created")] + Created = 1, + + /// + /// Enum PlacedCanBeCancelled for value: PlacedCanBeCancelled + /// + [EnumMember(Value = "PlacedCanBeCancelled")] + PlacedCanBeCancelled = 2, + + /// + /// Enum ReadyToProcess for value: ReadyToProcess + /// + [EnumMember(Value = "ReadyToProcess")] + ReadyToProcess = 3, + + /// + /// Enum AcceptedByRestaurant for value: AcceptedByRestaurant + /// + [EnumMember(Value = "AcceptedByRestaurant")] + AcceptedByRestaurant = 4, + + /// + /// Enum Dispatched for value: Dispatched + /// + [EnumMember(Value = "Dispatched")] + Dispatched = 5, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 6, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 7, + + /// + /// Enum ManualReview for value: ManualReview + /// + [EnumMember(Value = "ManualReview")] + ManualReview = 8, + + /// + /// Enum RejectedByStore for value: RejectedByStore + /// + [EnumMember(Value = "RejectedByStore")] + RejectedByStore = 9, + + /// + /// Enum RejectedByFlipdish for value: RejectedByFlipdish + /// + [EnumMember(Value = "RejectedByFlipdish")] + RejectedByFlipdish = 10, + + /// + /// Enum RejectedAutomatically for value: RejectedAutomatically + /// + [EnumMember(Value = "RejectedAutomatically")] + RejectedAutomatically = 11, + + /// + /// Enum RejectedAfterBeingAccepted for value: RejectedAfterBeingAccepted + /// + [EnumMember(Value = "RejectedAfterBeingAccepted")] + RejectedAfterBeingAccepted = 12, + + /// + /// Enum AcceptedAndRefunded for value: AcceptedAndRefunded + /// + [EnumMember(Value = "AcceptedAndRefunded")] + AcceptedAndRefunded = 13, + + /// + /// Enum PendingPayment for value: PendingPayment + /// + [EnumMember(Value = "PendingPayment")] + PendingPayment = 14 + } + + /// + /// Order state + /// + /// Order state + [DataMember(Name="OrderState", EmitDefaultValue=false)] + public OrderStateEnum? OrderState { get; set; } + /// + /// Payment Account + /// + /// Payment Account + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentAccountTypeEnum + { + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 1, + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 2, + + /// + /// Enum Ideal for value: Ideal + /// + [EnumMember(Value = "Ideal")] + Ideal = 3, + + /// + /// Enum Bancontact for value: Bancontact + /// + [EnumMember(Value = "Bancontact")] + Bancontact = 4, + + /// + /// Enum Giropay for value: Giropay + /// + [EnumMember(Value = "Giropay")] + Giropay = 5, + + /// + /// Enum Eps for value: Eps + /// + [EnumMember(Value = "Eps")] + Eps = 6, + + /// + /// Enum Emv for value: Emv + /// + [EnumMember(Value = "Emv")] + Emv = 7, + + /// + /// Enum PayPal for value: PayPal + /// + [EnumMember(Value = "PayPal")] + PayPal = 8, + + /// + /// Enum PayGreen for value: PayGreen + /// + [EnumMember(Value = "PayGreen")] + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 + } + + /// + /// Payment Account + /// + /// Payment Account + [DataMember(Name="PaymentAccountType", EmitDefaultValue=false)] + public PaymentAccountTypeEnum? PaymentAccountType { get; set; } + /// + /// Status of the payment + /// + /// Status of the payment + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentStatusEnum + { + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 1, + + /// + /// Enum Unpaid for value: Unpaid + /// + [EnumMember(Value = "Unpaid")] + Unpaid = 2, + + /// + /// Enum Refunded for value: Refunded + /// + [EnumMember(Value = "Refunded")] + Refunded = 3, + + /// + /// Enum PartiallyRefunded for value: PartiallyRefunded + /// + [EnumMember(Value = "PartiallyRefunded")] + PartiallyRefunded = 4, + + /// + /// Enum Disputed for value: Disputed + /// + [EnumMember(Value = "Disputed")] + Disputed = 5 + } + + /// + /// Status of the payment + /// + /// Status of the payment + [DataMember(Name="PaymentStatus", EmitDefaultValue=false)] + public PaymentStatusEnum? PaymentStatus { get; set; } + /// + /// Currency of payment + /// + /// Currency of payment + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of payment + /// + /// Currency of payment + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Type of app end user is on + /// + /// Type of app end user is on + [JsonConverter(typeof(StringEnumConverter))] + public enum AppTypeEnum + { + + /// + /// Enum Unknown for value: Unknown + /// + [EnumMember(Value = "Unknown")] + Unknown = 1, + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 2, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 3, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 4, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 5, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 6, + + /// + /// Enum TelephoneCall for value: TelephoneCall + /// + [EnumMember(Value = "TelephoneCall")] + TelephoneCall = 7, + + /// + /// Enum Sms for value: Sms + /// + [EnumMember(Value = "Sms")] + Sms = 8, + + /// + /// Enum PwaAndroid for value: PwaAndroid + /// + [EnumMember(Value = "PwaAndroid")] + PwaAndroid = 9, + + /// + /// Enum PwaIos for value: PwaIos + /// + [EnumMember(Value = "PwaIos")] + PwaIos = 10, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 11 + } + + /// + /// Type of app end user is on + /// + /// Type of app end user is on + [DataMember(Name="AppType", EmitDefaultValue=false)] + public AppTypeEnum? AppType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Order identifier. + /// Delivery type. + /// Pickup location type. + /// Table service category. + /// Order state. + /// Order requested for. + /// Name of the store. + /// Store IANA time zone. + /// Name of the customer. + /// Phone number of customer. + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee. + /// Refunded amount. + /// Payment Account. + /// Status of the payment. + /// Currency of payment. + /// Type of app end user is on. + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders). + /// id of the collection/drop off location. + /// Represents table service drop off location. + /// Time store has accepted the order for. + /// Channel where the Order comes from. + /// Was order made within a fraud zone. + /// Is order of unusually high value. + /// ChannelOrderId from external channel. + /// ChannelOrderDisplayId from external channel. + /// DropOffLocation selected for this order. + /// OrderBatch information. + /// Delivery location details. + public OrderSummary(int? orderId = default(int?), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), PickupLocationTypeEnum? pickupLocationType = default(PickupLocationTypeEnum?), TableServiceCatagoryEnum? tableServiceCatagory = default(TableServiceCatagoryEnum?), OrderStateEnum? orderState = default(OrderStateEnum?), DateTime? requestedForTime = default(DateTime?), string storeName = default(string), string storeIanaTimeZone = default(string), string customerName = default(string), string customerPhoneNumber = default(string), double? amount = default(double?), double? refundedAmount = default(double?), PaymentAccountTypeEnum? paymentAccountType = default(PaymentAccountTypeEnum?), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), CurrencyEnum? currency = default(CurrencyEnum?), AppTypeEnum? appType = default(AppTypeEnum?), string localOrderId = default(string), int? dropOffLocationId = default(int?), string dropOffLocation = default(string), DateTime? acceptedFor = default(DateTime?), Channel channel = default(Channel), bool? inFraudZone = default(bool?), bool? unusualHighValueOrder = default(bool?), string channelOrderId = default(string), string channelOrderDisplayId = default(string), OrderDropOffLocation orderDropOffLocation = default(OrderDropOffLocation), OrderBatchSummary orderBatchInfo = default(OrderBatchSummary), DeliveryLocation deliveryLocation = default(DeliveryLocation)) + { + this.OrderId = orderId; + this.DeliveryType = deliveryType; + this.PickupLocationType = pickupLocationType; + this.TableServiceCatagory = tableServiceCatagory; + this.OrderState = orderState; + this.RequestedForTime = requestedForTime; + this.StoreName = storeName; + this.StoreIanaTimeZone = storeIanaTimeZone; + this.CustomerName = customerName; + this.CustomerPhoneNumber = customerPhoneNumber; + this.Amount = amount; + this.RefundedAmount = refundedAmount; + this.PaymentAccountType = paymentAccountType; + this.PaymentStatus = paymentStatus; + this.Currency = currency; + this.AppType = appType; + this.LocalOrderId = localOrderId; + this.DropOffLocationId = dropOffLocationId; + this.DropOffLocation = dropOffLocation; + this.AcceptedFor = acceptedFor; + this.Channel = channel; + this.InFraudZone = inFraudZone; + this.UnusualHighValueOrder = unusualHighValueOrder; + this.ChannelOrderId = channelOrderId; + this.ChannelOrderDisplayId = channelOrderDisplayId; + this.OrderDropOffLocation = orderDropOffLocation; + this.OrderBatchInfo = orderBatchInfo; + this.DeliveryLocation = deliveryLocation; + } + + /// + /// Order identifier + /// + /// Order identifier + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + + + + + /// + /// Order requested for + /// + /// Order requested for + [DataMember(Name="RequestedForTime", EmitDefaultValue=false)] + public DateTime? RequestedForTime { get; set; } + + /// + /// Name of the store + /// + /// Name of the store + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Store IANA time zone + /// + /// Store IANA time zone + [DataMember(Name="StoreIanaTimeZone", EmitDefaultValue=false)] + public string StoreIanaTimeZone { get; set; } + + /// + /// Name of the customer + /// + /// Name of the customer + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public string CustomerName { get; set; } + + /// + /// Phone number of customer + /// + /// Phone number of customer + [DataMember(Name="CustomerPhoneNumber", EmitDefaultValue=false)] + public string CustomerPhoneNumber { get; set; } + + /// + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee + /// + /// This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Refunded amount + /// + /// Refunded amount + [DataMember(Name="RefundedAmount", EmitDefaultValue=false)] + public double? RefundedAmount { get; set; } + + + + + + /// + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + /// + /// Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + [DataMember(Name="LocalOrderId", EmitDefaultValue=false)] + public string LocalOrderId { get; set; } + + /// + /// id of the collection/drop off location + /// + /// id of the collection/drop off location + [DataMember(Name="DropOffLocationId", EmitDefaultValue=false)] + public int? DropOffLocationId { get; set; } + + /// + /// Represents table service drop off location + /// + /// Represents table service drop off location + [DataMember(Name="DropOffLocation", EmitDefaultValue=false)] + public string DropOffLocation { get; set; } + + /// + /// Time store has accepted the order for + /// + /// Time store has accepted the order for + [DataMember(Name="AcceptedFor", EmitDefaultValue=false)] + public DateTime? AcceptedFor { get; set; } + + /// + /// Channel where the Order comes from + /// + /// Channel where the Order comes from + [DataMember(Name="Channel", EmitDefaultValue=false)] + public Channel Channel { get; set; } + + /// + /// Was order made within a fraud zone + /// + /// Was order made within a fraud zone + [DataMember(Name="InFraudZone", EmitDefaultValue=false)] + public bool? InFraudZone { get; set; } + + /// + /// Is order of unusually high value + /// + /// Is order of unusually high value + [DataMember(Name="UnusualHighValueOrder", EmitDefaultValue=false)] + public bool? UnusualHighValueOrder { get; set; } + + /// + /// ChannelOrderId from external channel + /// + /// ChannelOrderId from external channel + [DataMember(Name="ChannelOrderId", EmitDefaultValue=false)] + public string ChannelOrderId { get; set; } + + /// + /// ChannelOrderDisplayId from external channel + /// + /// ChannelOrderDisplayId from external channel + [DataMember(Name="ChannelOrderDisplayId", EmitDefaultValue=false)] + public string ChannelOrderDisplayId { get; set; } + + /// + /// DropOffLocation selected for this order + /// + /// DropOffLocation selected for this order + [DataMember(Name="OrderDropOffLocation", EmitDefaultValue=false)] + public OrderDropOffLocation OrderDropOffLocation { get; set; } + + /// + /// OrderBatch information + /// + /// OrderBatch information + [DataMember(Name="OrderBatchInfo", EmitDefaultValue=false)] + public OrderBatchSummary OrderBatchInfo { get; set; } + + /// + /// Delivery location details + /// + /// Delivery location details + [DataMember(Name="DeliveryLocation", EmitDefaultValue=false)] + public DeliveryLocation DeliveryLocation { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderSummary {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" PickupLocationType: ").Append(PickupLocationType).Append("\n"); + sb.Append(" TableServiceCatagory: ").Append(TableServiceCatagory).Append("\n"); + sb.Append(" OrderState: ").Append(OrderState).Append("\n"); + sb.Append(" RequestedForTime: ").Append(RequestedForTime).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" StoreIanaTimeZone: ").Append(StoreIanaTimeZone).Append("\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" CustomerPhoneNumber: ").Append(CustomerPhoneNumber).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n"); + sb.Append(" PaymentAccountType: ").Append(PaymentAccountType).Append("\n"); + sb.Append(" PaymentStatus: ").Append(PaymentStatus).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" AppType: ").Append(AppType).Append("\n"); + sb.Append(" LocalOrderId: ").Append(LocalOrderId).Append("\n"); + sb.Append(" DropOffLocationId: ").Append(DropOffLocationId).Append("\n"); + sb.Append(" DropOffLocation: ").Append(DropOffLocation).Append("\n"); + sb.Append(" AcceptedFor: ").Append(AcceptedFor).Append("\n"); + sb.Append(" Channel: ").Append(Channel).Append("\n"); + sb.Append(" InFraudZone: ").Append(InFraudZone).Append("\n"); + sb.Append(" UnusualHighValueOrder: ").Append(UnusualHighValueOrder).Append("\n"); + sb.Append(" ChannelOrderId: ").Append(ChannelOrderId).Append("\n"); + sb.Append(" ChannelOrderDisplayId: ").Append(ChannelOrderDisplayId).Append("\n"); + sb.Append(" OrderDropOffLocation: ").Append(OrderDropOffLocation).Append("\n"); + sb.Append(" OrderBatchInfo: ").Append(OrderBatchInfo).Append("\n"); + sb.Append(" DeliveryLocation: ").Append(DeliveryLocation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderSummary); + } + + /// + /// Returns true if OrderSummary instances are equal + /// + /// Instance of OrderSummary to be compared + /// Boolean + public bool Equals(OrderSummary input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.PickupLocationType == input.PickupLocationType || + (this.PickupLocationType != null && + this.PickupLocationType.Equals(input.PickupLocationType)) + ) && + ( + this.TableServiceCatagory == input.TableServiceCatagory || + (this.TableServiceCatagory != null && + this.TableServiceCatagory.Equals(input.TableServiceCatagory)) + ) && + ( + this.OrderState == input.OrderState || + (this.OrderState != null && + this.OrderState.Equals(input.OrderState)) + ) && + ( + this.RequestedForTime == input.RequestedForTime || + (this.RequestedForTime != null && + this.RequestedForTime.Equals(input.RequestedForTime)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.StoreIanaTimeZone == input.StoreIanaTimeZone || + (this.StoreIanaTimeZone != null && + this.StoreIanaTimeZone.Equals(input.StoreIanaTimeZone)) + ) && + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.CustomerPhoneNumber == input.CustomerPhoneNumber || + (this.CustomerPhoneNumber != null && + this.CustomerPhoneNumber.Equals(input.CustomerPhoneNumber)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.RefundedAmount == input.RefundedAmount || + (this.RefundedAmount != null && + this.RefundedAmount.Equals(input.RefundedAmount)) + ) && + ( + this.PaymentAccountType == input.PaymentAccountType || + (this.PaymentAccountType != null && + this.PaymentAccountType.Equals(input.PaymentAccountType)) + ) && + ( + this.PaymentStatus == input.PaymentStatus || + (this.PaymentStatus != null && + this.PaymentStatus.Equals(input.PaymentStatus)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.AppType == input.AppType || + (this.AppType != null && + this.AppType.Equals(input.AppType)) + ) && + ( + this.LocalOrderId == input.LocalOrderId || + (this.LocalOrderId != null && + this.LocalOrderId.Equals(input.LocalOrderId)) + ) && + ( + this.DropOffLocationId == input.DropOffLocationId || + (this.DropOffLocationId != null && + this.DropOffLocationId.Equals(input.DropOffLocationId)) + ) && + ( + this.DropOffLocation == input.DropOffLocation || + (this.DropOffLocation != null && + this.DropOffLocation.Equals(input.DropOffLocation)) + ) && + ( + this.AcceptedFor == input.AcceptedFor || + (this.AcceptedFor != null && + this.AcceptedFor.Equals(input.AcceptedFor)) + ) && + ( + this.Channel == input.Channel || + (this.Channel != null && + this.Channel.Equals(input.Channel)) + ) && + ( + this.InFraudZone == input.InFraudZone || + (this.InFraudZone != null && + this.InFraudZone.Equals(input.InFraudZone)) + ) && + ( + this.UnusualHighValueOrder == input.UnusualHighValueOrder || + (this.UnusualHighValueOrder != null && + this.UnusualHighValueOrder.Equals(input.UnusualHighValueOrder)) + ) && + ( + this.ChannelOrderId == input.ChannelOrderId || + (this.ChannelOrderId != null && + this.ChannelOrderId.Equals(input.ChannelOrderId)) + ) && + ( + this.ChannelOrderDisplayId == input.ChannelOrderDisplayId || + (this.ChannelOrderDisplayId != null && + this.ChannelOrderDisplayId.Equals(input.ChannelOrderDisplayId)) + ) && + ( + this.OrderDropOffLocation == input.OrderDropOffLocation || + (this.OrderDropOffLocation != null && + this.OrderDropOffLocation.Equals(input.OrderDropOffLocation)) + ) && + ( + this.OrderBatchInfo == input.OrderBatchInfo || + (this.OrderBatchInfo != null && + this.OrderBatchInfo.Equals(input.OrderBatchInfo)) + ) && + ( + this.DeliveryLocation == input.DeliveryLocation || + (this.DeliveryLocation != null && + this.DeliveryLocation.Equals(input.DeliveryLocation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.PickupLocationType != null) + hashCode = hashCode * 59 + this.PickupLocationType.GetHashCode(); + if (this.TableServiceCatagory != null) + hashCode = hashCode * 59 + this.TableServiceCatagory.GetHashCode(); + if (this.OrderState != null) + hashCode = hashCode * 59 + this.OrderState.GetHashCode(); + if (this.RequestedForTime != null) + hashCode = hashCode * 59 + this.RequestedForTime.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.StoreIanaTimeZone != null) + hashCode = hashCode * 59 + this.StoreIanaTimeZone.GetHashCode(); + if (this.CustomerName != null) + hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); + if (this.CustomerPhoneNumber != null) + hashCode = hashCode * 59 + this.CustomerPhoneNumber.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.RefundedAmount != null) + hashCode = hashCode * 59 + this.RefundedAmount.GetHashCode(); + if (this.PaymentAccountType != null) + hashCode = hashCode * 59 + this.PaymentAccountType.GetHashCode(); + if (this.PaymentStatus != null) + hashCode = hashCode * 59 + this.PaymentStatus.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.AppType != null) + hashCode = hashCode * 59 + this.AppType.GetHashCode(); + if (this.LocalOrderId != null) + hashCode = hashCode * 59 + this.LocalOrderId.GetHashCode(); + if (this.DropOffLocationId != null) + hashCode = hashCode * 59 + this.DropOffLocationId.GetHashCode(); + if (this.DropOffLocation != null) + hashCode = hashCode * 59 + this.DropOffLocation.GetHashCode(); + if (this.AcceptedFor != null) + hashCode = hashCode * 59 + this.AcceptedFor.GetHashCode(); + if (this.Channel != null) + hashCode = hashCode * 59 + this.Channel.GetHashCode(); + if (this.InFraudZone != null) + hashCode = hashCode * 59 + this.InFraudZone.GetHashCode(); + if (this.UnusualHighValueOrder != null) + hashCode = hashCode * 59 + this.UnusualHighValueOrder.GetHashCode(); + if (this.ChannelOrderId != null) + hashCode = hashCode * 59 + this.ChannelOrderId.GetHashCode(); + if (this.ChannelOrderDisplayId != null) + hashCode = hashCode * 59 + this.ChannelOrderDisplayId.GetHashCode(); + if (this.OrderDropOffLocation != null) + hashCode = hashCode * 59 + this.OrderDropOffLocation.GetHashCode(); + if (this.OrderBatchInfo != null) + hashCode = hashCode * 59 + this.OrderBatchInfo.GetHashCode(); + if (this.DeliveryLocation != null) + hashCode = hashCode * 59 + this.DeliveryLocation.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderTipUpdatedEvent.cs b/src/Flipdish/Model/OrderTipUpdatedEvent.cs new file mode 100644 index 00000000..e69195b1 --- /dev/null +++ b/src/Flipdish/Model/OrderTipUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Order Tip Update Event + /// + [DataContract] + public partial class OrderTipUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Tip Amount. + /// Description. + /// Order. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public OrderTipUpdatedEvent(string eventName = default(string), double? tipAmount = default(double?), string description = default(string), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.TipAmount = tipAmount; + this.Description = description; + this.Order = order; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Tip Amount + /// + /// Tip Amount + [DataMember(Name="TipAmount", EmitDefaultValue=false)] + public double? TipAmount { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Order + /// + /// Order + [DataMember(Name="Order", EmitDefaultValue=false)] + public Order Order { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderTipUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderTipUpdatedEvent); + } + + /// + /// Returns true if OrderTipUpdatedEvent instances are equal + /// + /// Instance of OrderTipUpdatedEvent to be compared + /// Boolean + public bool Equals(OrderTipUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.TipAmount == input.TipAmount || + (this.TipAmount != null && + this.TipAmount.Equals(input.TipAmount)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Order == input.Order || + (this.Order != null && + this.Order.Equals(input.Order)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.TipAmount != null) + hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Order != null) + hashCode = hashCode * 59 + this.Order.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OrderVoucherSummary.cs b/src/Flipdish/Model/OrderVoucherSummary.cs new file mode 100644 index 00000000..2f5b3c7e --- /dev/null +++ b/src/Flipdish/Model/OrderVoucherSummary.cs @@ -0,0 +1,305 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher summary + /// + [DataContract] + public partial class OrderVoucherSummary : IEquatable + { + /// + /// Voucher type + /// + /// Voucher type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum PercentageDiscount for value: PercentageDiscount + /// + [EnumMember(Value = "PercentageDiscount")] + PercentageDiscount = 1, + + /// + /// Enum LumpDiscount for value: LumpDiscount + /// + [EnumMember(Value = "LumpDiscount")] + LumpDiscount = 2, + + /// + /// Enum AddItem for value: AddItem + /// + [EnumMember(Value = "AddItem")] + AddItem = 3, + + /// + /// Enum CreditNote for value: CreditNote + /// + [EnumMember(Value = "CreditNote")] + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 + } + + /// + /// Voucher type + /// + /// Voucher type + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Voucher sub type + /// + /// Voucher sub type + [JsonConverter(typeof(StringEnumConverter))] + public enum SubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher sub type + /// + /// Voucher sub type + [DataMember(Name="SubType", EmitDefaultValue=false)] + public SubTypeEnum? SubType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Voucher ID. + /// Voucher name. + /// Voucher description. + /// Voucher code. + /// Voucher amount. + /// Voucher type. + /// Voucher sub type. + public OrderVoucherSummary(int? voucherId = default(int?), string name = default(string), string description = default(string), string code = default(string), double? amount = default(double?), TypeEnum? type = default(TypeEnum?), SubTypeEnum? subType = default(SubTypeEnum?)) + { + this.VoucherId = voucherId; + this.Name = name; + this.Description = description; + this.Code = code; + this.Amount = amount; + this.Type = type; + this.SubType = subType; + } + + /// + /// Voucher ID + /// + /// Voucher ID + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// Voucher name + /// + /// Voucher name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Voucher description + /// + /// Voucher description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Voucher code + /// + /// Voucher code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Voucher amount + /// + /// Voucher amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderVoucherSummary {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" SubType: ").Append(SubType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OrderVoucherSummary); + } + + /// + /// Returns true if OrderVoucherSummary instances are equal + /// + /// Instance of OrderVoucherSummary to be compared + /// Boolean + public bool Equals(OrderVoucherSummary input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.SubType == input.SubType || + (this.SubType != null && + this.SubType.Equals(input.SubType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.SubType != null) + hashCode = hashCode * 59 + this.SubType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OtherChargesDetails.cs b/src/Flipdish/Model/OtherChargesDetails.cs new file mode 100644 index 00000000..d01e0e5c --- /dev/null +++ b/src/Flipdish/Model/OtherChargesDetails.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Breakdown of other charges + /// + [DataContract] + public partial class OtherChargesDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Total amount of other charges. + /// Number of other charges. + public OtherChargesDetails(double? totalOtherCharges = default(double?), int? chargesCount = default(int?)) + { + this.TotalOtherCharges = totalOtherCharges; + this.ChargesCount = chargesCount; + } + + /// + /// Total amount of other charges + /// + /// Total amount of other charges + [DataMember(Name="TotalOtherCharges", EmitDefaultValue=false)] + public double? TotalOtherCharges { get; set; } + + /// + /// Number of other charges + /// + /// Number of other charges + [DataMember(Name="ChargesCount", EmitDefaultValue=false)] + public int? ChargesCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OtherChargesDetails {\n"); + sb.Append(" TotalOtherCharges: ").Append(TotalOtherCharges).Append("\n"); + sb.Append(" ChargesCount: ").Append(ChargesCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OtherChargesDetails); + } + + /// + /// Returns true if OtherChargesDetails instances are equal + /// + /// Instance of OtherChargesDetails to be compared + /// Boolean + public bool Equals(OtherChargesDetails input) + { + if (input == null) + return false; + + return + ( + this.TotalOtherCharges == input.TotalOtherCharges || + (this.TotalOtherCharges != null && + this.TotalOtherCharges.Equals(input.TotalOtherCharges)) + ) && + ( + this.ChargesCount == input.ChargesCount || + (this.ChargesCount != null && + this.ChargesCount.Equals(input.ChargesCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TotalOtherCharges != null) + hashCode = hashCode * 59 + this.TotalOtherCharges.GetHashCode(); + if (this.ChargesCount != null) + hashCode = hashCode * 59 + this.ChargesCount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OwnerEntityConfiguration.cs b/src/Flipdish/Model/OwnerEntityConfiguration.cs new file mode 100644 index 00000000..e2c6bfab --- /dev/null +++ b/src/Flipdish/Model/OwnerEntityConfiguration.cs @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// OwnerEntity information to configure its {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition}s + /// + [DataContract] + public partial class OwnerEntityConfiguration : IEquatable + { + /// + /// Owner Entity + /// + /// Owner Entity + [JsonConverter(typeof(StringEnumConverter))] + public enum OwnerEntityEnum + { + + /// + /// Enum CatalogItem for value: CatalogItem + /// + [EnumMember(Value = "CatalogItem")] + CatalogItem = 1, + + /// + /// Enum CatalogGroup for value: CatalogGroup + /// + [EnumMember(Value = "CatalogGroup")] + CatalogGroup = 2, + + /// + /// Enum Menu for value: Menu + /// + [EnumMember(Value = "Menu")] + Menu = 3 + } + + /// + /// Owner Entity + /// + /// Owner Entity + [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] + public OwnerEntityEnum? OwnerEntity { get; set; } + /// + /// Defines AllowedBehaviors + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AllowedBehaviorsEnum + { + + /// + /// Enum SendToOrder for value: SendToOrder + /// + [EnumMember(Value = "SendToOrder")] + SendToOrder = 1, + + /// + /// Enum SendToMenu for value: SendToMenu + /// + [EnumMember(Value = "SendToMenu")] + SendToMenu = 2 + } + + + /// + /// Gets or Sets AllowedBehaviors + /// + [DataMember(Name="AllowedBehaviors", EmitDefaultValue=false)] + public List AllowedBehaviors { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Owner Entity. + /// allowedBehaviors. + public OwnerEntityConfiguration(OwnerEntityEnum? ownerEntity = default(OwnerEntityEnum?), List allowedBehaviors = default(List)) + { + this.OwnerEntity = ownerEntity; + this.AllowedBehaviors = allowedBehaviors; + } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OwnerEntityConfiguration {\n"); + sb.Append(" OwnerEntity: ").Append(OwnerEntity).Append("\n"); + sb.Append(" AllowedBehaviors: ").Append(AllowedBehaviors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OwnerEntityConfiguration); + } + + /// + /// Returns true if OwnerEntityConfiguration instances are equal + /// + /// Instance of OwnerEntityConfiguration to be compared + /// Boolean + public bool Equals(OwnerEntityConfiguration input) + { + if (input == null) + return false; + + return + ( + this.OwnerEntity == input.OwnerEntity || + (this.OwnerEntity != null && + this.OwnerEntity.Equals(input.OwnerEntity)) + ) && + ( + this.AllowedBehaviors == input.AllowedBehaviors || + this.AllowedBehaviors != null && + this.AllowedBehaviors.SequenceEqual(input.AllowedBehaviors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OwnerEntity != null) + hashCode = hashCode * 59 + this.OwnerEntity.GetHashCode(); + if (this.AllowedBehaviors != null) + hashCode = hashCode * 59 + this.AllowedBehaviors.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/OwnerEntityConfigurations.cs b/src/Flipdish/Model/OwnerEntityConfigurations.cs new file mode 100644 index 00000000..31b38ff6 --- /dev/null +++ b/src/Flipdish/Model/OwnerEntityConfigurations.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Owner Entity Configurations + /// + [DataContract] + public partial class OwnerEntityConfigurations : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Owner Entity Configuration. + public OwnerEntityConfigurations(List configurations = default(List)) + { + this.Configurations = configurations; + } + + /// + /// Owner Entity Configuration + /// + /// Owner Entity Configuration + [DataMember(Name="Configurations", EmitDefaultValue=false)] + public List Configurations { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OwnerEntityConfigurations {\n"); + sb.Append(" Configurations: ").Append(Configurations).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OwnerEntityConfigurations); + } + + /// + /// Returns true if OwnerEntityConfigurations instances are equal + /// + /// Instance of OwnerEntityConfigurations to be compared + /// Boolean + public bool Equals(OwnerEntityConfigurations input) + { + if (input == null) + return false; + + return + ( + this.Configurations == input.Configurations || + this.Configurations != null && + this.Configurations.SequenceEqual(input.Configurations) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Configurations != null) + hashCode = hashCode * 59 + this.Configurations.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PasswordResetModel.cs b/src/Flipdish/Model/PasswordResetModel.cs new file mode 100644 index 00000000..12b3983b --- /dev/null +++ b/src/Flipdish/Model/PasswordResetModel.cs @@ -0,0 +1,202 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Password reset model + /// + [DataContract] + public partial class PasswordResetModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PasswordResetModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Token Id. + /// Email address. + /// Password (required). + /// Password confirmation (required). + /// Password reset token. + public PasswordResetModel(string tokenId = default(string), string email = default(string), string password = default(string), string passwordConfirmation = default(string), string token = default(string)) + { + // to ensure "password" is required (not null) + if (password == null) + { + throw new InvalidDataException("password is a required property for PasswordResetModel and cannot be null"); + } + else + { + this.Password = password; + } + // to ensure "passwordConfirmation" is required (not null) + if (passwordConfirmation == null) + { + throw new InvalidDataException("passwordConfirmation is a required property for PasswordResetModel and cannot be null"); + } + else + { + this.PasswordConfirmation = passwordConfirmation; + } + this.TokenId = tokenId; + this.Email = email; + this.Token = token; + } + + /// + /// Token Id + /// + /// Token Id + [DataMember(Name="TokenId", EmitDefaultValue=false)] + public string TokenId { get; set; } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Password + /// + /// Password + [DataMember(Name="Password", EmitDefaultValue=false)] + public string Password { get; set; } + + /// + /// Password confirmation + /// + /// Password confirmation + [DataMember(Name="PasswordConfirmation", EmitDefaultValue=false)] + public string PasswordConfirmation { get; set; } + + /// + /// Password reset token + /// + /// Password reset token + [DataMember(Name="Token", EmitDefaultValue=false)] + public string Token { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PasswordResetModel {\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" PasswordConfirmation: ").Append(PasswordConfirmation).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PasswordResetModel); + } + + /// + /// Returns true if PasswordResetModel instances are equal + /// + /// Instance of PasswordResetModel to be compared + /// Boolean + public bool Equals(PasswordResetModel input) + { + if (input == null) + return false; + + return + ( + this.TokenId == input.TokenId || + (this.TokenId != null && + this.TokenId.Equals(input.TokenId)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) + ) && + ( + this.PasswordConfirmation == input.PasswordConfirmation || + (this.PasswordConfirmation != null && + this.PasswordConfirmation.Equals(input.PasswordConfirmation)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TokenId != null) + hashCode = hashCode * 59 + this.TokenId.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.Password != null) + hashCode = hashCode * 59 + this.Password.GetHashCode(); + if (this.PasswordConfirmation != null) + hashCode = hashCode * 59 + this.PasswordConfirmation.GetHashCode(); + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PaymentAccount.cs b/src/Flipdish/Model/PaymentAccount.cs new file mode 100644 index 00000000..8b52233a --- /dev/null +++ b/src/Flipdish/Model/PaymentAccount.cs @@ -0,0 +1,249 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Payment Account information + /// + [DataContract] + public partial class PaymentAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The user ID associated with the payment account.. + /// Unique identifier for the payment account.. + /// Indicates if the payment account can be removed from the customer view.. + /// Bank Identification Number (BIN) of the payment method.. + /// Indicates if this is the default payment method.. + /// Indicates if the payment account is visible to the customer.. + /// The type of payment account (e.g., card, PayPal).. + /// Description of the payment account.. + /// The customer ID associated with the payment account.. + public PaymentAccount(int? userId = default(int?), int? paymentAccountId = default(int?), bool? canRemoveFromCustomerView = default(bool?), string bin = default(string), bool? isDefaultPaymentMethod = default(bool?), bool? isVisibleToCustomer = default(bool?), string paymentAccountType = default(string), string description = default(string), string customerId = default(string)) + { + this.UserId = userId; + this.PaymentAccountId = paymentAccountId; + this.CanRemoveFromCustomerView = canRemoveFromCustomerView; + this.Bin = bin; + this.IsDefaultPaymentMethod = isDefaultPaymentMethod; + this.IsVisibleToCustomer = isVisibleToCustomer; + this.PaymentAccountType = paymentAccountType; + this.Description = description; + this.CustomerId = customerId; + } + + /// + /// The user ID associated with the payment account. + /// + /// The user ID associated with the payment account. + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Unique identifier for the payment account. + /// + /// Unique identifier for the payment account. + [DataMember(Name="PaymentAccountId", EmitDefaultValue=false)] + public int? PaymentAccountId { get; set; } + + /// + /// Indicates if the payment account can be removed from the customer view. + /// + /// Indicates if the payment account can be removed from the customer view. + [DataMember(Name="CanRemoveFromCustomerView", EmitDefaultValue=false)] + public bool? CanRemoveFromCustomerView { get; set; } + + /// + /// Bank Identification Number (BIN) of the payment method. + /// + /// Bank Identification Number (BIN) of the payment method. + [DataMember(Name="Bin", EmitDefaultValue=false)] + public string Bin { get; set; } + + /// + /// Indicates if this is the default payment method. + /// + /// Indicates if this is the default payment method. + [DataMember(Name="IsDefaultPaymentMethod", EmitDefaultValue=false)] + public bool? IsDefaultPaymentMethod { get; set; } + + /// + /// Indicates if the payment account is visible to the customer. + /// + /// Indicates if the payment account is visible to the customer. + [DataMember(Name="IsVisibleToCustomer", EmitDefaultValue=false)] + public bool? IsVisibleToCustomer { get; set; } + + /// + /// The type of payment account (e.g., card, PayPal). + /// + /// The type of payment account (e.g., card, PayPal). + [DataMember(Name="PaymentAccountType", EmitDefaultValue=false)] + public string PaymentAccountType { get; set; } + + /// + /// Description of the payment account. + /// + /// Description of the payment account. + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The customer ID associated with the payment account. + /// + /// The customer ID associated with the payment account. + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public string CustomerId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PaymentAccount {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" PaymentAccountId: ").Append(PaymentAccountId).Append("\n"); + sb.Append(" CanRemoveFromCustomerView: ").Append(CanRemoveFromCustomerView).Append("\n"); + sb.Append(" Bin: ").Append(Bin).Append("\n"); + sb.Append(" IsDefaultPaymentMethod: ").Append(IsDefaultPaymentMethod).Append("\n"); + sb.Append(" IsVisibleToCustomer: ").Append(IsVisibleToCustomer).Append("\n"); + sb.Append(" PaymentAccountType: ").Append(PaymentAccountType).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentAccount); + } + + /// + /// Returns true if PaymentAccount instances are equal + /// + /// Instance of PaymentAccount to be compared + /// Boolean + public bool Equals(PaymentAccount input) + { + if (input == null) + return false; + + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.PaymentAccountId == input.PaymentAccountId || + (this.PaymentAccountId != null && + this.PaymentAccountId.Equals(input.PaymentAccountId)) + ) && + ( + this.CanRemoveFromCustomerView == input.CanRemoveFromCustomerView || + (this.CanRemoveFromCustomerView != null && + this.CanRemoveFromCustomerView.Equals(input.CanRemoveFromCustomerView)) + ) && + ( + this.Bin == input.Bin || + (this.Bin != null && + this.Bin.Equals(input.Bin)) + ) && + ( + this.IsDefaultPaymentMethod == input.IsDefaultPaymentMethod || + (this.IsDefaultPaymentMethod != null && + this.IsDefaultPaymentMethod.Equals(input.IsDefaultPaymentMethod)) + ) && + ( + this.IsVisibleToCustomer == input.IsVisibleToCustomer || + (this.IsVisibleToCustomer != null && + this.IsVisibleToCustomer.Equals(input.IsVisibleToCustomer)) + ) && + ( + this.PaymentAccountType == input.PaymentAccountType || + (this.PaymentAccountType != null && + this.PaymentAccountType.Equals(input.PaymentAccountType)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.PaymentAccountId != null) + hashCode = hashCode * 59 + this.PaymentAccountId.GetHashCode(); + if (this.CanRemoveFromCustomerView != null) + hashCode = hashCode * 59 + this.CanRemoveFromCustomerView.GetHashCode(); + if (this.Bin != null) + hashCode = hashCode * 59 + this.Bin.GetHashCode(); + if (this.IsDefaultPaymentMethod != null) + hashCode = hashCode * 59 + this.IsDefaultPaymentMethod.GetHashCode(); + if (this.IsVisibleToCustomer != null) + hashCode = hashCode * 59 + this.IsVisibleToCustomer.GetHashCode(); + if (this.PaymentAccountType != null) + hashCode = hashCode * 59 + this.PaymentAccountType.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PaymentIntent.cs b/src/Flipdish/Model/PaymentIntent.cs new file mode 100644 index 00000000..1887d86b --- /dev/null +++ b/src/Flipdish/Model/PaymentIntent.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents stripe PaymentIntent + /// + [DataContract] + public partial class PaymentIntent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of payment intent. + /// An arbitrary string attached to the object. Often useful for displaying to users.. + /// Three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a>, in lowercase. Must be a <a href=\"https://stripe.com/docs/currencies\">supported currency</a>.. + /// Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent <a href=\"https://stripe.com/docs/payments/intents#intent-statuses\">status</a>. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded.. + /// Time at which the object was created. Measured in seconds since the Unix epoch.. + /// Failed payment intent Errors. + public PaymentIntent(string id = default(string), string description = default(string), string currency = default(string), string status = default(string), DateTime? created = default(DateTime?), LastPaymentError lastPaymentError = default(LastPaymentError)) + { + this.Id = id; + this.Description = description; + this.Currency = currency; + this.Status = status; + this.Created = created; + this.LastPaymentError = lastPaymentError; + } + + /// + /// Id of payment intent + /// + /// Id of payment intent + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a>, in lowercase. Must be a <a href=\"https://stripe.com/docs/currencies\">supported currency</a>. + /// + /// Three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a>, in lowercase. Must be a <a href=\"https://stripe.com/docs/currencies\">supported currency</a>. + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent <a href=\"https://stripe.com/docs/payments/intents#intent-statuses\">status</a>. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded. + /// + /// Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent <a href=\"https://stripe.com/docs/payments/intents#intent-statuses\">status</a>. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded. + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + [DataMember(Name="Created", EmitDefaultValue=false)] + public DateTime? Created { get; set; } + + /// + /// Failed payment intent Errors + /// + /// Failed payment intent Errors + [DataMember(Name="LastPaymentError", EmitDefaultValue=false)] + public LastPaymentError LastPaymentError { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PaymentIntent {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" LastPaymentError: ").Append(LastPaymentError).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentIntent); + } + + /// + /// Returns true if PaymentIntent instances are equal + /// + /// Instance of PaymentIntent to be compared + /// Boolean + public bool Equals(PaymentIntent input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Created == input.Created || + (this.Created != null && + this.Created.Equals(input.Created)) + ) && + ( + this.LastPaymentError == input.LastPaymentError || + (this.LastPaymentError != null && + this.LastPaymentError.Equals(input.LastPaymentError)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Created != null) + hashCode = hashCode * 59 + this.Created.GetHashCode(); + if (this.LastPaymentError != null) + hashCode = hashCode * 59 + this.LastPaymentError.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PaymentTerminalDetails.cs b/src/Flipdish/Model/PaymentTerminalDetails.cs new file mode 100644 index 00000000..be5af0a3 --- /dev/null +++ b/src/Flipdish/Model/PaymentTerminalDetails.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Details of Payment Terminal + /// + [DataContract] + public partial class PaymentTerminalDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Terminal Id (tid). + /// Status of Terminal. + /// Currency configured on the terminal. + /// Location to Device. + public PaymentTerminalDetails(string terminalId = default(string), string status = default(string), string currency = default(string), string uri = default(string)) + { + this.TerminalId = terminalId; + this.Status = status; + this.Currency = currency; + this.Uri = uri; + } + + /// + /// Terminal Id (tid) + /// + /// Terminal Id (tid) + [DataMember(Name="TerminalId", EmitDefaultValue=false)] + public string TerminalId { get; set; } + + /// + /// Status of Terminal + /// + /// Status of Terminal + [DataMember(Name="Status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// Currency configured on the terminal + /// + /// Currency configured on the terminal + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Location to Device + /// + /// Location to Device + [DataMember(Name="Uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PaymentTerminalDetails {\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Uri: ").Append(Uri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentTerminalDetails); + } + + /// + /// Returns true if PaymentTerminalDetails instances are equal + /// + /// Instance of PaymentTerminalDetails to be compared + /// Boolean + public bool Equals(PaymentTerminalDetails input) + { + if (input == null) + return false; + + return + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TerminalId != null) + hashCode = hashCode * 59 + this.TerminalId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PaymentTerminalTransactionDetails.cs b/src/Flipdish/Model/PaymentTerminalTransactionDetails.cs new file mode 100644 index 00000000..416d8f65 --- /dev/null +++ b/src/Flipdish/Model/PaymentTerminalTransactionDetails.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Details of Payment Terminal Transaction + /// + [DataContract] + public partial class PaymentTerminalTransactionDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Card Type. + /// Expirey Date on Card. + /// AuthCode. + /// State of Request, \"PENDING\" is not yet completed. + /// Masked PAN. + /// Type of Verification.. + public PaymentTerminalTransactionDetails(string cardSchemeName = default(string), string dateOfExpiry = default(string), string authCode = default(string), string transactionResult = default(string), string primaryAccountNumber = default(string), string cardholderVerificationMethod = default(string)) + { + this.CardSchemeName = cardSchemeName; + this.DateOfExpiry = dateOfExpiry; + this.AuthCode = authCode; + this.TransactionResult = transactionResult; + this.PrimaryAccountNumber = primaryAccountNumber; + this.CardholderVerificationMethod = cardholderVerificationMethod; + } + + /// + /// Card Type + /// + /// Card Type + [DataMember(Name="CardSchemeName", EmitDefaultValue=false)] + public string CardSchemeName { get; set; } + + /// + /// Expirey Date on Card + /// + /// Expirey Date on Card + [DataMember(Name="DateOfExpiry", EmitDefaultValue=false)] + public string DateOfExpiry { get; set; } + + /// + /// AuthCode + /// + /// AuthCode + [DataMember(Name="AuthCode", EmitDefaultValue=false)] + public string AuthCode { get; set; } + + /// + /// State of Request, \"PENDING\" is not yet completed + /// + /// State of Request, \"PENDING\" is not yet completed + [DataMember(Name="TransactionResult", EmitDefaultValue=false)] + public string TransactionResult { get; set; } + + /// + /// Masked PAN + /// + /// Masked PAN + [DataMember(Name="PrimaryAccountNumber", EmitDefaultValue=false)] + public string PrimaryAccountNumber { get; set; } + + /// + /// Type of Verification. + /// + /// Type of Verification. + [DataMember(Name="CardholderVerificationMethod", EmitDefaultValue=false)] + public string CardholderVerificationMethod { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PaymentTerminalTransactionDetails {\n"); + sb.Append(" CardSchemeName: ").Append(CardSchemeName).Append("\n"); + sb.Append(" DateOfExpiry: ").Append(DateOfExpiry).Append("\n"); + sb.Append(" AuthCode: ").Append(AuthCode).Append("\n"); + sb.Append(" TransactionResult: ").Append(TransactionResult).Append("\n"); + sb.Append(" PrimaryAccountNumber: ").Append(PrimaryAccountNumber).Append("\n"); + sb.Append(" CardholderVerificationMethod: ").Append(CardholderVerificationMethod).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentTerminalTransactionDetails); + } + + /// + /// Returns true if PaymentTerminalTransactionDetails instances are equal + /// + /// Instance of PaymentTerminalTransactionDetails to be compared + /// Boolean + public bool Equals(PaymentTerminalTransactionDetails input) + { + if (input == null) + return false; + + return + ( + this.CardSchemeName == input.CardSchemeName || + (this.CardSchemeName != null && + this.CardSchemeName.Equals(input.CardSchemeName)) + ) && + ( + this.DateOfExpiry == input.DateOfExpiry || + (this.DateOfExpiry != null && + this.DateOfExpiry.Equals(input.DateOfExpiry)) + ) && + ( + this.AuthCode == input.AuthCode || + (this.AuthCode != null && + this.AuthCode.Equals(input.AuthCode)) + ) && + ( + this.TransactionResult == input.TransactionResult || + (this.TransactionResult != null && + this.TransactionResult.Equals(input.TransactionResult)) + ) && + ( + this.PrimaryAccountNumber == input.PrimaryAccountNumber || + (this.PrimaryAccountNumber != null && + this.PrimaryAccountNumber.Equals(input.PrimaryAccountNumber)) + ) && + ( + this.CardholderVerificationMethod == input.CardholderVerificationMethod || + (this.CardholderVerificationMethod != null && + this.CardholderVerificationMethod.Equals(input.CardholderVerificationMethod)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CardSchemeName != null) + hashCode = hashCode * 59 + this.CardSchemeName.GetHashCode(); + if (this.DateOfExpiry != null) + hashCode = hashCode * 59 + this.DateOfExpiry.GetHashCode(); + if (this.AuthCode != null) + hashCode = hashCode * 59 + this.AuthCode.GetHashCode(); + if (this.TransactionResult != null) + hashCode = hashCode * 59 + this.TransactionResult.GetHashCode(); + if (this.PrimaryAccountNumber != null) + hashCode = hashCode * 59 + this.PrimaryAccountNumber.GetHashCode(); + if (this.CardholderVerificationMethod != null) + hashCode = hashCode * 59 + this.CardholderVerificationMethod.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Payout.cs b/src/Flipdish/Model/Payout.cs new file mode 100644 index 00000000..bfc735fe --- /dev/null +++ b/src/Flipdish/Model/Payout.cs @@ -0,0 +1,1608 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a whitelabel payout. + /// + [DataContract] + public partial class Payout : IEquatable + { + /// + /// Status of the payout + /// + /// Status of the payout + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutStatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum InTransit for value: InTransit + /// + [EnumMember(Value = "InTransit")] + InTransit = 2, + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 5 + } + + /// + /// Status of the payout + /// + /// Status of the payout + [DataMember(Name="PayoutStatus", EmitDefaultValue=false)] + public PayoutStatusEnum? PayoutStatus { get; set; } + /// + /// Type of payout source + /// + /// Type of payout source + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutTypeEnum + { + + /// + /// Enum Internal for value: Internal + /// + [EnumMember(Value = "Internal")] + Internal = 1, + + /// + /// Enum Stripe for value: Stripe + /// + [EnumMember(Value = "Stripe")] + Stripe = 2 + } + + /// + /// Type of payout source + /// + /// Type of payout source + [DataMember(Name="PayoutType", EmitDefaultValue=false)] + public PayoutTypeEnum? PayoutType { get; set; } + /// + /// Payout currency + /// + /// Payout currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Payout currency + /// + /// Payout currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the payout.. + /// Bank account identifier. + /// Account name of the payout destination. + /// Status of the payout. + /// Date payout was created. + /// This payout includes operations after at this date (inclusive). + /// This payout includes operations before at this date (exclusive). + /// Destination bank name. + /// Last 4 digits of the destination bank IBAN. + /// Payout amount. + /// Type of payout source. + /// Payout currency. + /// Payouts before this date do not have a details breakdown. + /// Payout online sales amount. + /// Payout online sales delivery charges. + /// Payout online sales tips. + /// Payout online sales service charges. + /// Payout online sales refunded fees. + /// Payout online sales fees. + /// Payout online sales fees. + /// Payout online sales refunded amount. + /// POS Payout online sales refunded amount. + /// Payout online sales tax. + /// Payout total online revenue. + /// Payout cash sales fees. + /// Payout cash sales refunded fees. + /// Payout cash fees charged to customer. + /// Payout sales fees vat. + /// Payout total fees. + /// Payout total online revenue adjustments. + /// Payout chargeback amount. + /// POS Payout chargeback amount. + /// Payout chargeback refunded fees. + /// Payout chargebacks total cost. + /// Payout other charges total. + /// Payout opening balance. + /// Payout closing balance. + /// Amount of sales through PayGreen (restaurant vouchers). + /// Third party integration delivery fee. + /// Third party integration delivery tip fee. + /// Total third party integration fees. + /// POS sales amount. + /// POS sales tax. + /// Tips on POS sales. + /// Indicates whether the bank account has changed since the previous payout. + public Payout(int? payoutId = default(int?), int? payeeBankAccountId = default(int?), string accountName = default(string), PayoutStatusEnum? payoutStatus = default(PayoutStatusEnum?), DateTime? createdDate = default(DateTime?), DateTime? periodStartTime = default(DateTime?), DateTime? periodEndTime = default(DateTime?), string destinationBank = default(string), string destinationAccount = default(string), double? amount = default(double?), PayoutTypeEnum? payoutType = default(PayoutTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), DateTime? cutoffDate = default(DateTime?), double? onlineSalesAmount = default(double?), double? onlineSalesDeliveryCharges = default(double?), double? onlineSalesTips = default(double?), double? onlineSalesServiceCharges = default(double?), double? onlineSalesRefundedFees = default(double?), double? onlineSalesFees = default(double?), double? posSalesFees = default(double?), double? onlineSalesRefundedAmount = default(double?), double? posSalesRefundedAmount = default(double?), double? onlineSalesTax = default(double?), double? totalOnlineRevenue = default(double?), double? cashSalesFees = default(double?), double? cashSalesRefundedFees = default(double?), double? customerCashFees = default(double?), double? salesFeesVat = default(double?), double? totalFees = default(double?), double? totalOnlineRevenueAdjustments = default(double?), double? chargebackAmount = default(double?), double? posSalesChargebackAmount = default(double?), double? chargebackRefundedFees = default(double?), double? totalChargebackCost = default(double?), double? totalOtherCharges = default(double?), double? openingBalance = default(double?), double? closingBalance = default(double?), double? payGreenSalesAmount = default(double?), double? deliveryIntegrationFee = default(double?), double? deliveryIntegrationTipFee = default(double?), double? totalThirdPartyFees = default(double?), double? posSalesAmount = default(double?), double? posSalesTax = default(double?), double? tipsOnPosSales = default(double?), bool? bankAccountHasChanged = default(bool?)) + { + this.PayoutId = payoutId; + this.PayeeBankAccountId = payeeBankAccountId; + this.AccountName = accountName; + this.PayoutStatus = payoutStatus; + this.CreatedDate = createdDate; + this.PeriodStartTime = periodStartTime; + this.PeriodEndTime = periodEndTime; + this.DestinationBank = destinationBank; + this.DestinationAccount = destinationAccount; + this.Amount = amount; + this.PayoutType = payoutType; + this.Currency = currency; + this.CutoffDate = cutoffDate; + this.OnlineSalesAmount = onlineSalesAmount; + this.OnlineSalesDeliveryCharges = onlineSalesDeliveryCharges; + this.OnlineSalesTips = onlineSalesTips; + this.OnlineSalesServiceCharges = onlineSalesServiceCharges; + this.OnlineSalesRefundedFees = onlineSalesRefundedFees; + this.OnlineSalesFees = onlineSalesFees; + this.PosSalesFees = posSalesFees; + this.OnlineSalesRefundedAmount = onlineSalesRefundedAmount; + this.PosSalesRefundedAmount = posSalesRefundedAmount; + this.OnlineSalesTax = onlineSalesTax; + this.TotalOnlineRevenue = totalOnlineRevenue; + this.CashSalesFees = cashSalesFees; + this.CashSalesRefundedFees = cashSalesRefundedFees; + this.CustomerCashFees = customerCashFees; + this.SalesFeesVat = salesFeesVat; + this.TotalFees = totalFees; + this.TotalOnlineRevenueAdjustments = totalOnlineRevenueAdjustments; + this.ChargebackAmount = chargebackAmount; + this.PosSalesChargebackAmount = posSalesChargebackAmount; + this.ChargebackRefundedFees = chargebackRefundedFees; + this.TotalChargebackCost = totalChargebackCost; + this.TotalOtherCharges = totalOtherCharges; + this.OpeningBalance = openingBalance; + this.ClosingBalance = closingBalance; + this.PayGreenSalesAmount = payGreenSalesAmount; + this.DeliveryIntegrationFee = deliveryIntegrationFee; + this.DeliveryIntegrationTipFee = deliveryIntegrationTipFee; + this.TotalThirdPartyFees = totalThirdPartyFees; + this.PosSalesAmount = posSalesAmount; + this.PosSalesTax = posSalesTax; + this.TipsOnPosSales = tipsOnPosSales; + this.BankAccountHasChanged = bankAccountHasChanged; + } + + /// + /// The id of the payout. + /// + /// The id of the payout. + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// Bank account identifier + /// + /// Bank account identifier + [DataMember(Name="PayeeBankAccountId", EmitDefaultValue=false)] + public int? PayeeBankAccountId { get; set; } + + /// + /// Account name of the payout destination + /// + /// Account name of the payout destination + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + + /// + /// Date payout was created + /// + /// Date payout was created + [DataMember(Name="CreatedDate", EmitDefaultValue=false)] + public DateTime? CreatedDate { get; set; } + + /// + /// This payout includes operations after at this date (inclusive) + /// + /// This payout includes operations after at this date (inclusive) + [DataMember(Name="PeriodStartTime", EmitDefaultValue=false)] + public DateTime? PeriodStartTime { get; set; } + + /// + /// This payout includes operations before at this date (exclusive) + /// + /// This payout includes operations before at this date (exclusive) + [DataMember(Name="PeriodEndTime", EmitDefaultValue=false)] + public DateTime? PeriodEndTime { get; set; } + + /// + /// Destination bank name + /// + /// Destination bank name + [DataMember(Name="DestinationBank", EmitDefaultValue=false)] + public string DestinationBank { get; set; } + + /// + /// Last 4 digits of the destination bank IBAN + /// + /// Last 4 digits of the destination bank IBAN + [DataMember(Name="DestinationAccount", EmitDefaultValue=false)] + public string DestinationAccount { get; set; } + + /// + /// Payout amount + /// + /// Payout amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + + + /// + /// Payouts before this date do not have a details breakdown + /// + /// Payouts before this date do not have a details breakdown + [DataMember(Name="CutoffDate", EmitDefaultValue=false)] + public DateTime? CutoffDate { get; set; } + + /// + /// Payout online sales amount + /// + /// Payout online sales amount + [DataMember(Name="OnlineSalesAmount", EmitDefaultValue=false)] + public double? OnlineSalesAmount { get; set; } + + /// + /// Payout online sales delivery charges + /// + /// Payout online sales delivery charges + [DataMember(Name="OnlineSalesDeliveryCharges", EmitDefaultValue=false)] + public double? OnlineSalesDeliveryCharges { get; set; } + + /// + /// Payout online sales tips + /// + /// Payout online sales tips + [DataMember(Name="OnlineSalesTips", EmitDefaultValue=false)] + public double? OnlineSalesTips { get; set; } + + /// + /// Payout online sales service charges + /// + /// Payout online sales service charges + [DataMember(Name="OnlineSalesServiceCharges", EmitDefaultValue=false)] + public double? OnlineSalesServiceCharges { get; set; } + + /// + /// Payout online sales refunded fees + /// + /// Payout online sales refunded fees + [DataMember(Name="OnlineSalesRefundedFees", EmitDefaultValue=false)] + public double? OnlineSalesRefundedFees { get; set; } + + /// + /// Payout online sales fees + /// + /// Payout online sales fees + [DataMember(Name="OnlineSalesFees", EmitDefaultValue=false)] + public double? OnlineSalesFees { get; set; } + + /// + /// Payout online sales fees + /// + /// Payout online sales fees + [DataMember(Name="PosSalesFees", EmitDefaultValue=false)] + public double? PosSalesFees { get; set; } + + /// + /// Payout online sales refunded amount + /// + /// Payout online sales refunded amount + [DataMember(Name="OnlineSalesRefundedAmount", EmitDefaultValue=false)] + public double? OnlineSalesRefundedAmount { get; set; } + + /// + /// POS Payout online sales refunded amount + /// + /// POS Payout online sales refunded amount + [DataMember(Name="PosSalesRefundedAmount", EmitDefaultValue=false)] + public double? PosSalesRefundedAmount { get; set; } + + /// + /// Payout online sales tax + /// + /// Payout online sales tax + [DataMember(Name="OnlineSalesTax", EmitDefaultValue=false)] + public double? OnlineSalesTax { get; set; } + + /// + /// Payout total online revenue + /// + /// Payout total online revenue + [DataMember(Name="TotalOnlineRevenue", EmitDefaultValue=false)] + public double? TotalOnlineRevenue { get; set; } + + /// + /// Payout cash sales fees + /// + /// Payout cash sales fees + [DataMember(Name="CashSalesFees", EmitDefaultValue=false)] + public double? CashSalesFees { get; set; } + + /// + /// Payout cash sales refunded fees + /// + /// Payout cash sales refunded fees + [DataMember(Name="CashSalesRefundedFees", EmitDefaultValue=false)] + public double? CashSalesRefundedFees { get; set; } + + /// + /// Payout cash fees charged to customer + /// + /// Payout cash fees charged to customer + [DataMember(Name="CustomerCashFees", EmitDefaultValue=false)] + public double? CustomerCashFees { get; set; } + + /// + /// Payout sales fees vat + /// + /// Payout sales fees vat + [DataMember(Name="SalesFeesVat", EmitDefaultValue=false)] + public double? SalesFeesVat { get; set; } + + /// + /// Payout total fees + /// + /// Payout total fees + [DataMember(Name="TotalFees", EmitDefaultValue=false)] + public double? TotalFees { get; set; } + + /// + /// Payout total online revenue adjustments + /// + /// Payout total online revenue adjustments + [DataMember(Name="TotalOnlineRevenueAdjustments", EmitDefaultValue=false)] + public double? TotalOnlineRevenueAdjustments { get; set; } + + /// + /// Payout chargeback amount + /// + /// Payout chargeback amount + [DataMember(Name="ChargebackAmount", EmitDefaultValue=false)] + public double? ChargebackAmount { get; set; } + + /// + /// POS Payout chargeback amount + /// + /// POS Payout chargeback amount + [DataMember(Name="PosSalesChargebackAmount", EmitDefaultValue=false)] + public double? PosSalesChargebackAmount { get; set; } + + /// + /// Payout chargeback refunded fees + /// + /// Payout chargeback refunded fees + [DataMember(Name="ChargebackRefundedFees", EmitDefaultValue=false)] + public double? ChargebackRefundedFees { get; set; } + + /// + /// Payout chargebacks total cost + /// + /// Payout chargebacks total cost + [DataMember(Name="TotalChargebackCost", EmitDefaultValue=false)] + public double? TotalChargebackCost { get; set; } + + /// + /// Payout other charges total + /// + /// Payout other charges total + [DataMember(Name="TotalOtherCharges", EmitDefaultValue=false)] + public double? TotalOtherCharges { get; set; } + + /// + /// Payout opening balance + /// + /// Payout opening balance + [DataMember(Name="OpeningBalance", EmitDefaultValue=false)] + public double? OpeningBalance { get; set; } + + /// + /// Payout closing balance + /// + /// Payout closing balance + [DataMember(Name="ClosingBalance", EmitDefaultValue=false)] + public double? ClosingBalance { get; set; } + + /// + /// Amount of sales through PayGreen (restaurant vouchers) + /// + /// Amount of sales through PayGreen (restaurant vouchers) + [DataMember(Name="PayGreenSalesAmount", EmitDefaultValue=false)] + public double? PayGreenSalesAmount { get; set; } + + /// + /// Third party integration delivery fee + /// + /// Third party integration delivery fee + [DataMember(Name="DeliveryIntegrationFee", EmitDefaultValue=false)] + public double? DeliveryIntegrationFee { get; set; } + + /// + /// Third party integration delivery tip fee + /// + /// Third party integration delivery tip fee + [DataMember(Name="DeliveryIntegrationTipFee", EmitDefaultValue=false)] + public double? DeliveryIntegrationTipFee { get; set; } + + /// + /// Total third party integration fees + /// + /// Total third party integration fees + [DataMember(Name="TotalThirdPartyFees", EmitDefaultValue=false)] + public double? TotalThirdPartyFees { get; set; } + + /// + /// POS sales amount + /// + /// POS sales amount + [DataMember(Name="PosSalesAmount", EmitDefaultValue=false)] + public double? PosSalesAmount { get; set; } + + /// + /// POS sales tax + /// + /// POS sales tax + [DataMember(Name="PosSalesTax", EmitDefaultValue=false)] + public double? PosSalesTax { get; set; } + + /// + /// Tips on POS sales + /// + /// Tips on POS sales + [DataMember(Name="TipsOnPosSales", EmitDefaultValue=false)] + public double? TipsOnPosSales { get; set; } + + /// + /// Indicates whether the bank account has changed since the previous payout + /// + /// Indicates whether the bank account has changed since the previous payout + [DataMember(Name="BankAccountHasChanged", EmitDefaultValue=false)] + public bool? BankAccountHasChanged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Payout {\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" PayeeBankAccountId: ").Append(PayeeBankAccountId).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" PayoutStatus: ").Append(PayoutStatus).Append("\n"); + sb.Append(" CreatedDate: ").Append(CreatedDate).Append("\n"); + sb.Append(" PeriodStartTime: ").Append(PeriodStartTime).Append("\n"); + sb.Append(" PeriodEndTime: ").Append(PeriodEndTime).Append("\n"); + sb.Append(" DestinationBank: ").Append(DestinationBank).Append("\n"); + sb.Append(" DestinationAccount: ").Append(DestinationAccount).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" PayoutType: ").Append(PayoutType).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" CutoffDate: ").Append(CutoffDate).Append("\n"); + sb.Append(" OnlineSalesAmount: ").Append(OnlineSalesAmount).Append("\n"); + sb.Append(" OnlineSalesDeliveryCharges: ").Append(OnlineSalesDeliveryCharges).Append("\n"); + sb.Append(" OnlineSalesTips: ").Append(OnlineSalesTips).Append("\n"); + sb.Append(" OnlineSalesServiceCharges: ").Append(OnlineSalesServiceCharges).Append("\n"); + sb.Append(" OnlineSalesRefundedFees: ").Append(OnlineSalesRefundedFees).Append("\n"); + sb.Append(" OnlineSalesFees: ").Append(OnlineSalesFees).Append("\n"); + sb.Append(" PosSalesFees: ").Append(PosSalesFees).Append("\n"); + sb.Append(" OnlineSalesRefundedAmount: ").Append(OnlineSalesRefundedAmount).Append("\n"); + sb.Append(" PosSalesRefundedAmount: ").Append(PosSalesRefundedAmount).Append("\n"); + sb.Append(" OnlineSalesTax: ").Append(OnlineSalesTax).Append("\n"); + sb.Append(" TotalOnlineRevenue: ").Append(TotalOnlineRevenue).Append("\n"); + sb.Append(" CashSalesFees: ").Append(CashSalesFees).Append("\n"); + sb.Append(" CashSalesRefundedFees: ").Append(CashSalesRefundedFees).Append("\n"); + sb.Append(" CustomerCashFees: ").Append(CustomerCashFees).Append("\n"); + sb.Append(" SalesFeesVat: ").Append(SalesFeesVat).Append("\n"); + sb.Append(" TotalFees: ").Append(TotalFees).Append("\n"); + sb.Append(" TotalOnlineRevenueAdjustments: ").Append(TotalOnlineRevenueAdjustments).Append("\n"); + sb.Append(" ChargebackAmount: ").Append(ChargebackAmount).Append("\n"); + sb.Append(" PosSalesChargebackAmount: ").Append(PosSalesChargebackAmount).Append("\n"); + sb.Append(" ChargebackRefundedFees: ").Append(ChargebackRefundedFees).Append("\n"); + sb.Append(" TotalChargebackCost: ").Append(TotalChargebackCost).Append("\n"); + sb.Append(" TotalOtherCharges: ").Append(TotalOtherCharges).Append("\n"); + sb.Append(" OpeningBalance: ").Append(OpeningBalance).Append("\n"); + sb.Append(" ClosingBalance: ").Append(ClosingBalance).Append("\n"); + sb.Append(" PayGreenSalesAmount: ").Append(PayGreenSalesAmount).Append("\n"); + sb.Append(" DeliveryIntegrationFee: ").Append(DeliveryIntegrationFee).Append("\n"); + sb.Append(" DeliveryIntegrationTipFee: ").Append(DeliveryIntegrationTipFee).Append("\n"); + sb.Append(" TotalThirdPartyFees: ").Append(TotalThirdPartyFees).Append("\n"); + sb.Append(" PosSalesAmount: ").Append(PosSalesAmount).Append("\n"); + sb.Append(" PosSalesTax: ").Append(PosSalesTax).Append("\n"); + sb.Append(" TipsOnPosSales: ").Append(TipsOnPosSales).Append("\n"); + sb.Append(" BankAccountHasChanged: ").Append(BankAccountHasChanged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Payout); + } + + /// + /// Returns true if Payout instances are equal + /// + /// Instance of Payout to be compared + /// Boolean + public bool Equals(Payout input) + { + if (input == null) + return false; + + return + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.PayeeBankAccountId == input.PayeeBankAccountId || + (this.PayeeBankAccountId != null && + this.PayeeBankAccountId.Equals(input.PayeeBankAccountId)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.PayoutStatus == input.PayoutStatus || + (this.PayoutStatus != null && + this.PayoutStatus.Equals(input.PayoutStatus)) + ) && + ( + this.CreatedDate == input.CreatedDate || + (this.CreatedDate != null && + this.CreatedDate.Equals(input.CreatedDate)) + ) && + ( + this.PeriodStartTime == input.PeriodStartTime || + (this.PeriodStartTime != null && + this.PeriodStartTime.Equals(input.PeriodStartTime)) + ) && + ( + this.PeriodEndTime == input.PeriodEndTime || + (this.PeriodEndTime != null && + this.PeriodEndTime.Equals(input.PeriodEndTime)) + ) && + ( + this.DestinationBank == input.DestinationBank || + (this.DestinationBank != null && + this.DestinationBank.Equals(input.DestinationBank)) + ) && + ( + this.DestinationAccount == input.DestinationAccount || + (this.DestinationAccount != null && + this.DestinationAccount.Equals(input.DestinationAccount)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.PayoutType == input.PayoutType || + (this.PayoutType != null && + this.PayoutType.Equals(input.PayoutType)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.CutoffDate == input.CutoffDate || + (this.CutoffDate != null && + this.CutoffDate.Equals(input.CutoffDate)) + ) && + ( + this.OnlineSalesAmount == input.OnlineSalesAmount || + (this.OnlineSalesAmount != null && + this.OnlineSalesAmount.Equals(input.OnlineSalesAmount)) + ) && + ( + this.OnlineSalesDeliveryCharges == input.OnlineSalesDeliveryCharges || + (this.OnlineSalesDeliveryCharges != null && + this.OnlineSalesDeliveryCharges.Equals(input.OnlineSalesDeliveryCharges)) + ) && + ( + this.OnlineSalesTips == input.OnlineSalesTips || + (this.OnlineSalesTips != null && + this.OnlineSalesTips.Equals(input.OnlineSalesTips)) + ) && + ( + this.OnlineSalesServiceCharges == input.OnlineSalesServiceCharges || + (this.OnlineSalesServiceCharges != null && + this.OnlineSalesServiceCharges.Equals(input.OnlineSalesServiceCharges)) + ) && + ( + this.OnlineSalesRefundedFees == input.OnlineSalesRefundedFees || + (this.OnlineSalesRefundedFees != null && + this.OnlineSalesRefundedFees.Equals(input.OnlineSalesRefundedFees)) + ) && + ( + this.OnlineSalesFees == input.OnlineSalesFees || + (this.OnlineSalesFees != null && + this.OnlineSalesFees.Equals(input.OnlineSalesFees)) + ) && + ( + this.PosSalesFees == input.PosSalesFees || + (this.PosSalesFees != null && + this.PosSalesFees.Equals(input.PosSalesFees)) + ) && + ( + this.OnlineSalesRefundedAmount == input.OnlineSalesRefundedAmount || + (this.OnlineSalesRefundedAmount != null && + this.OnlineSalesRefundedAmount.Equals(input.OnlineSalesRefundedAmount)) + ) && + ( + this.PosSalesRefundedAmount == input.PosSalesRefundedAmount || + (this.PosSalesRefundedAmount != null && + this.PosSalesRefundedAmount.Equals(input.PosSalesRefundedAmount)) + ) && + ( + this.OnlineSalesTax == input.OnlineSalesTax || + (this.OnlineSalesTax != null && + this.OnlineSalesTax.Equals(input.OnlineSalesTax)) + ) && + ( + this.TotalOnlineRevenue == input.TotalOnlineRevenue || + (this.TotalOnlineRevenue != null && + this.TotalOnlineRevenue.Equals(input.TotalOnlineRevenue)) + ) && + ( + this.CashSalesFees == input.CashSalesFees || + (this.CashSalesFees != null && + this.CashSalesFees.Equals(input.CashSalesFees)) + ) && + ( + this.CashSalesRefundedFees == input.CashSalesRefundedFees || + (this.CashSalesRefundedFees != null && + this.CashSalesRefundedFees.Equals(input.CashSalesRefundedFees)) + ) && + ( + this.CustomerCashFees == input.CustomerCashFees || + (this.CustomerCashFees != null && + this.CustomerCashFees.Equals(input.CustomerCashFees)) + ) && + ( + this.SalesFeesVat == input.SalesFeesVat || + (this.SalesFeesVat != null && + this.SalesFeesVat.Equals(input.SalesFeesVat)) + ) && + ( + this.TotalFees == input.TotalFees || + (this.TotalFees != null && + this.TotalFees.Equals(input.TotalFees)) + ) && + ( + this.TotalOnlineRevenueAdjustments == input.TotalOnlineRevenueAdjustments || + (this.TotalOnlineRevenueAdjustments != null && + this.TotalOnlineRevenueAdjustments.Equals(input.TotalOnlineRevenueAdjustments)) + ) && + ( + this.ChargebackAmount == input.ChargebackAmount || + (this.ChargebackAmount != null && + this.ChargebackAmount.Equals(input.ChargebackAmount)) + ) && + ( + this.PosSalesChargebackAmount == input.PosSalesChargebackAmount || + (this.PosSalesChargebackAmount != null && + this.PosSalesChargebackAmount.Equals(input.PosSalesChargebackAmount)) + ) && + ( + this.ChargebackRefundedFees == input.ChargebackRefundedFees || + (this.ChargebackRefundedFees != null && + this.ChargebackRefundedFees.Equals(input.ChargebackRefundedFees)) + ) && + ( + this.TotalChargebackCost == input.TotalChargebackCost || + (this.TotalChargebackCost != null && + this.TotalChargebackCost.Equals(input.TotalChargebackCost)) + ) && + ( + this.TotalOtherCharges == input.TotalOtherCharges || + (this.TotalOtherCharges != null && + this.TotalOtherCharges.Equals(input.TotalOtherCharges)) + ) && + ( + this.OpeningBalance == input.OpeningBalance || + (this.OpeningBalance != null && + this.OpeningBalance.Equals(input.OpeningBalance)) + ) && + ( + this.ClosingBalance == input.ClosingBalance || + (this.ClosingBalance != null && + this.ClosingBalance.Equals(input.ClosingBalance)) + ) && + ( + this.PayGreenSalesAmount == input.PayGreenSalesAmount || + (this.PayGreenSalesAmount != null && + this.PayGreenSalesAmount.Equals(input.PayGreenSalesAmount)) + ) && + ( + this.DeliveryIntegrationFee == input.DeliveryIntegrationFee || + (this.DeliveryIntegrationFee != null && + this.DeliveryIntegrationFee.Equals(input.DeliveryIntegrationFee)) + ) && + ( + this.DeliveryIntegrationTipFee == input.DeliveryIntegrationTipFee || + (this.DeliveryIntegrationTipFee != null && + this.DeliveryIntegrationTipFee.Equals(input.DeliveryIntegrationTipFee)) + ) && + ( + this.TotalThirdPartyFees == input.TotalThirdPartyFees || + (this.TotalThirdPartyFees != null && + this.TotalThirdPartyFees.Equals(input.TotalThirdPartyFees)) + ) && + ( + this.PosSalesAmount == input.PosSalesAmount || + (this.PosSalesAmount != null && + this.PosSalesAmount.Equals(input.PosSalesAmount)) + ) && + ( + this.PosSalesTax == input.PosSalesTax || + (this.PosSalesTax != null && + this.PosSalesTax.Equals(input.PosSalesTax)) + ) && + ( + this.TipsOnPosSales == input.TipsOnPosSales || + (this.TipsOnPosSales != null && + this.TipsOnPosSales.Equals(input.TipsOnPosSales)) + ) && + ( + this.BankAccountHasChanged == input.BankAccountHasChanged || + (this.BankAccountHasChanged != null && + this.BankAccountHasChanged.Equals(input.BankAccountHasChanged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.PayeeBankAccountId != null) + hashCode = hashCode * 59 + this.PayeeBankAccountId.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.PayoutStatus != null) + hashCode = hashCode * 59 + this.PayoutStatus.GetHashCode(); + if (this.CreatedDate != null) + hashCode = hashCode * 59 + this.CreatedDate.GetHashCode(); + if (this.PeriodStartTime != null) + hashCode = hashCode * 59 + this.PeriodStartTime.GetHashCode(); + if (this.PeriodEndTime != null) + hashCode = hashCode * 59 + this.PeriodEndTime.GetHashCode(); + if (this.DestinationBank != null) + hashCode = hashCode * 59 + this.DestinationBank.GetHashCode(); + if (this.DestinationAccount != null) + hashCode = hashCode * 59 + this.DestinationAccount.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.PayoutType != null) + hashCode = hashCode * 59 + this.PayoutType.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.CutoffDate != null) + hashCode = hashCode * 59 + this.CutoffDate.GetHashCode(); + if (this.OnlineSalesAmount != null) + hashCode = hashCode * 59 + this.OnlineSalesAmount.GetHashCode(); + if (this.OnlineSalesDeliveryCharges != null) + hashCode = hashCode * 59 + this.OnlineSalesDeliveryCharges.GetHashCode(); + if (this.OnlineSalesTips != null) + hashCode = hashCode * 59 + this.OnlineSalesTips.GetHashCode(); + if (this.OnlineSalesServiceCharges != null) + hashCode = hashCode * 59 + this.OnlineSalesServiceCharges.GetHashCode(); + if (this.OnlineSalesRefundedFees != null) + hashCode = hashCode * 59 + this.OnlineSalesRefundedFees.GetHashCode(); + if (this.OnlineSalesFees != null) + hashCode = hashCode * 59 + this.OnlineSalesFees.GetHashCode(); + if (this.PosSalesFees != null) + hashCode = hashCode * 59 + this.PosSalesFees.GetHashCode(); + if (this.OnlineSalesRefundedAmount != null) + hashCode = hashCode * 59 + this.OnlineSalesRefundedAmount.GetHashCode(); + if (this.PosSalesRefundedAmount != null) + hashCode = hashCode * 59 + this.PosSalesRefundedAmount.GetHashCode(); + if (this.OnlineSalesTax != null) + hashCode = hashCode * 59 + this.OnlineSalesTax.GetHashCode(); + if (this.TotalOnlineRevenue != null) + hashCode = hashCode * 59 + this.TotalOnlineRevenue.GetHashCode(); + if (this.CashSalesFees != null) + hashCode = hashCode * 59 + this.CashSalesFees.GetHashCode(); + if (this.CashSalesRefundedFees != null) + hashCode = hashCode * 59 + this.CashSalesRefundedFees.GetHashCode(); + if (this.CustomerCashFees != null) + hashCode = hashCode * 59 + this.CustomerCashFees.GetHashCode(); + if (this.SalesFeesVat != null) + hashCode = hashCode * 59 + this.SalesFeesVat.GetHashCode(); + if (this.TotalFees != null) + hashCode = hashCode * 59 + this.TotalFees.GetHashCode(); + if (this.TotalOnlineRevenueAdjustments != null) + hashCode = hashCode * 59 + this.TotalOnlineRevenueAdjustments.GetHashCode(); + if (this.ChargebackAmount != null) + hashCode = hashCode * 59 + this.ChargebackAmount.GetHashCode(); + if (this.PosSalesChargebackAmount != null) + hashCode = hashCode * 59 + this.PosSalesChargebackAmount.GetHashCode(); + if (this.ChargebackRefundedFees != null) + hashCode = hashCode * 59 + this.ChargebackRefundedFees.GetHashCode(); + if (this.TotalChargebackCost != null) + hashCode = hashCode * 59 + this.TotalChargebackCost.GetHashCode(); + if (this.TotalOtherCharges != null) + hashCode = hashCode * 59 + this.TotalOtherCharges.GetHashCode(); + if (this.OpeningBalance != null) + hashCode = hashCode * 59 + this.OpeningBalance.GetHashCode(); + if (this.ClosingBalance != null) + hashCode = hashCode * 59 + this.ClosingBalance.GetHashCode(); + if (this.PayGreenSalesAmount != null) + hashCode = hashCode * 59 + this.PayGreenSalesAmount.GetHashCode(); + if (this.DeliveryIntegrationFee != null) + hashCode = hashCode * 59 + this.DeliveryIntegrationFee.GetHashCode(); + if (this.DeliveryIntegrationTipFee != null) + hashCode = hashCode * 59 + this.DeliveryIntegrationTipFee.GetHashCode(); + if (this.TotalThirdPartyFees != null) + hashCode = hashCode * 59 + this.TotalThirdPartyFees.GetHashCode(); + if (this.PosSalesAmount != null) + hashCode = hashCode * 59 + this.PosSalesAmount.GetHashCode(); + if (this.PosSalesTax != null) + hashCode = hashCode * 59 + this.PosSalesTax.GetHashCode(); + if (this.TipsOnPosSales != null) + hashCode = hashCode * 59 + this.TipsOnPosSales.GetHashCode(); + if (this.BankAccountHasChanged != null) + hashCode = hashCode * 59 + this.BankAccountHasChanged.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutChargeback.cs b/src/Flipdish/Model/PayoutChargeback.cs new file mode 100644 index 00000000..ce21830e --- /dev/null +++ b/src/Flipdish/Model/PayoutChargeback.cs @@ -0,0 +1,957 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a chargeback related to a payout + /// + [DataContract] + public partial class PayoutChargeback : IEquatable + { + /// + /// Order currency + /// + /// Order currency + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderCurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Order currency + /// + /// Order currency + [DataMember(Name="OrderCurrency", EmitDefaultValue=false)] + public OrderCurrencyEnum? OrderCurrency { get; set; } + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 2 + } + + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public OrderTypeEnum? OrderType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the order the chargeback was for. + /// Order currency. + /// The id of the payout the order is related to. + /// The date the order was placed. + /// Order type (online or cash). + /// The date the chargeback was done. + /// Store id. + /// Chargeback amount. + /// Amount of refunded fees. + public PayoutChargeback(int? orderId = default(int?), OrderCurrencyEnum? orderCurrency = default(OrderCurrencyEnum?), int? payoutId = default(int?), DateTime? orderDate = default(DateTime?), OrderTypeEnum? orderType = default(OrderTypeEnum?), DateTime? chargebackDate = default(DateTime?), int? storeId = default(int?), double? chargebackAmount = default(double?), double? refundedFees = default(double?)) + { + this.OrderId = orderId; + this.OrderCurrency = orderCurrency; + this.PayoutId = payoutId; + this.OrderDate = orderDate; + this.OrderType = orderType; + this.ChargebackDate = chargebackDate; + this.StoreId = storeId; + this.ChargebackAmount = chargebackAmount; + this.RefundedFees = refundedFees; + } + + /// + /// The id of the order the chargeback was for + /// + /// The id of the order the chargeback was for + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + + /// + /// The id of the payout the order is related to + /// + /// The id of the payout the order is related to + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// The date the order was placed + /// + /// The date the order was placed + [DataMember(Name="OrderDate", EmitDefaultValue=false)] + public DateTime? OrderDate { get; set; } + + + /// + /// The date the chargeback was done + /// + /// The date the chargeback was done + [DataMember(Name="ChargebackDate", EmitDefaultValue=false)] + public DateTime? ChargebackDate { get; set; } + + /// + /// Store id + /// + /// Store id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Chargeback amount + /// + /// Chargeback amount + [DataMember(Name="ChargebackAmount", EmitDefaultValue=false)] + public double? ChargebackAmount { get; set; } + + /// + /// Amount of refunded fees + /// + /// Amount of refunded fees + [DataMember(Name="RefundedFees", EmitDefaultValue=false)] + public double? RefundedFees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutChargeback {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" OrderCurrency: ").Append(OrderCurrency).Append("\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" OrderDate: ").Append(OrderDate).Append("\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" ChargebackDate: ").Append(ChargebackDate).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" ChargebackAmount: ").Append(ChargebackAmount).Append("\n"); + sb.Append(" RefundedFees: ").Append(RefundedFees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutChargeback); + } + + /// + /// Returns true if PayoutChargeback instances are equal + /// + /// Instance of PayoutChargeback to be compared + /// Boolean + public bool Equals(PayoutChargeback input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.OrderCurrency == input.OrderCurrency || + (this.OrderCurrency != null && + this.OrderCurrency.Equals(input.OrderCurrency)) + ) && + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.OrderDate == input.OrderDate || + (this.OrderDate != null && + this.OrderDate.Equals(input.OrderDate)) + ) && + ( + this.OrderType == input.OrderType || + (this.OrderType != null && + this.OrderType.Equals(input.OrderType)) + ) && + ( + this.ChargebackDate == input.ChargebackDate || + (this.ChargebackDate != null && + this.ChargebackDate.Equals(input.ChargebackDate)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.ChargebackAmount == input.ChargebackAmount || + (this.ChargebackAmount != null && + this.ChargebackAmount.Equals(input.ChargebackAmount)) + ) && + ( + this.RefundedFees == input.RefundedFees || + (this.RefundedFees != null && + this.RefundedFees.Equals(input.RefundedFees)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.OrderCurrency != null) + hashCode = hashCode * 59 + this.OrderCurrency.GetHashCode(); + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.OrderDate != null) + hashCode = hashCode * 59 + this.OrderDate.GetHashCode(); + if (this.OrderType != null) + hashCode = hashCode * 59 + this.OrderType.GetHashCode(); + if (this.ChargebackDate != null) + hashCode = hashCode * 59 + this.ChargebackDate.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.ChargebackAmount != null) + hashCode = hashCode * 59 + this.ChargebackAmount.GetHashCode(); + if (this.RefundedFees != null) + hashCode = hashCode * 59 + this.RefundedFees.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutDetail.cs b/src/Flipdish/Model/PayoutDetail.cs new file mode 100644 index 00000000..767d310c --- /dev/null +++ b/src/Flipdish/Model/PayoutDetail.cs @@ -0,0 +1,1081 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a whitelabel payout with details broken down by Store + /// + [DataContract] + public partial class PayoutDetail : IEquatable + { + /// + /// Status of the payout + /// + /// Status of the payout + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutStatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum InTransit for value: InTransit + /// + [EnumMember(Value = "InTransit")] + InTransit = 2, + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 5 + } + + /// + /// Status of the payout + /// + /// Status of the payout + [DataMember(Name="PayoutStatus", EmitDefaultValue=false)] + public PayoutStatusEnum? PayoutStatus { get; set; } + /// + /// Type of payout source + /// + /// Type of payout source + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutTypeEnum + { + + /// + /// Enum Internal for value: Internal + /// + [EnumMember(Value = "Internal")] + Internal = 1, + + /// + /// Enum Stripe for value: Stripe + /// + [EnumMember(Value = "Stripe")] + Stripe = 2 + } + + /// + /// Type of payout source + /// + /// Type of payout source + [DataMember(Name="PayoutType", EmitDefaultValue=false)] + public PayoutTypeEnum? PayoutType { get; set; } + /// + /// Payout currency + /// + /// Payout currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Payout currency + /// + /// Payout currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the payout.. + /// Bank account identifier. + /// Account name of the payout destination. + /// Status of the payout. + /// Date payout was created. + /// This payout includes operations after at this date (inclusive). + /// This payout includes operations before at this date (exclusive). + /// Destination bank name. + /// Last 4 digits of the destination bank IBAN. + /// Type of payout source. + /// Payout currency. + /// Payout information broken down by Store. + /// Payout amount. + /// Payouts before this date do not have a details breakdown. + public PayoutDetail(int? payoutId = default(int?), int? bankAccountId = default(int?), string accountName = default(string), PayoutStatusEnum? payoutStatus = default(PayoutStatusEnum?), DateTime? createdDate = default(DateTime?), DateTime? periodStartTime = default(DateTime?), DateTime? periodEndTime = default(DateTime?), string destinationBank = default(string), string destinationAccount = default(string), PayoutTypeEnum? payoutType = default(PayoutTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), List payoutStores = default(List), double? amount = default(double?), DateTime? cutoffDate = default(DateTime?)) + { + this.PayoutId = payoutId; + this.BankAccountId = bankAccountId; + this.AccountName = accountName; + this.PayoutStatus = payoutStatus; + this.CreatedDate = createdDate; + this.PeriodStartTime = periodStartTime; + this.PeriodEndTime = periodEndTime; + this.DestinationBank = destinationBank; + this.DestinationAccount = destinationAccount; + this.PayoutType = payoutType; + this.Currency = currency; + this.PayoutStores = payoutStores; + this.Amount = amount; + this.CutoffDate = cutoffDate; + } + + /// + /// The id of the payout. + /// + /// The id of the payout. + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// Bank account identifier + /// + /// Bank account identifier + [DataMember(Name="BankAccountId", EmitDefaultValue=false)] + public int? BankAccountId { get; set; } + + /// + /// Account name of the payout destination + /// + /// Account name of the payout destination + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + + /// + /// Date payout was created + /// + /// Date payout was created + [DataMember(Name="CreatedDate", EmitDefaultValue=false)] + public DateTime? CreatedDate { get; set; } + + /// + /// This payout includes operations after at this date (inclusive) + /// + /// This payout includes operations after at this date (inclusive) + [DataMember(Name="PeriodStartTime", EmitDefaultValue=false)] + public DateTime? PeriodStartTime { get; set; } + + /// + /// This payout includes operations before at this date (exclusive) + /// + /// This payout includes operations before at this date (exclusive) + [DataMember(Name="PeriodEndTime", EmitDefaultValue=false)] + public DateTime? PeriodEndTime { get; set; } + + /// + /// Destination bank name + /// + /// Destination bank name + [DataMember(Name="DestinationBank", EmitDefaultValue=false)] + public string DestinationBank { get; set; } + + /// + /// Last 4 digits of the destination bank IBAN + /// + /// Last 4 digits of the destination bank IBAN + [DataMember(Name="DestinationAccount", EmitDefaultValue=false)] + public string DestinationAccount { get; set; } + + + + /// + /// Payout information broken down by Store + /// + /// Payout information broken down by Store + [DataMember(Name="PayoutStores", EmitDefaultValue=false)] + public List PayoutStores { get; set; } + + /// + /// Payout amount + /// + /// Payout amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Payouts before this date do not have a details breakdown + /// + /// Payouts before this date do not have a details breakdown + [DataMember(Name="CutoffDate", EmitDefaultValue=false)] + public DateTime? CutoffDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutDetail {\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" BankAccountId: ").Append(BankAccountId).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" PayoutStatus: ").Append(PayoutStatus).Append("\n"); + sb.Append(" CreatedDate: ").Append(CreatedDate).Append("\n"); + sb.Append(" PeriodStartTime: ").Append(PeriodStartTime).Append("\n"); + sb.Append(" PeriodEndTime: ").Append(PeriodEndTime).Append("\n"); + sb.Append(" DestinationBank: ").Append(DestinationBank).Append("\n"); + sb.Append(" DestinationAccount: ").Append(DestinationAccount).Append("\n"); + sb.Append(" PayoutType: ").Append(PayoutType).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" PayoutStores: ").Append(PayoutStores).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" CutoffDate: ").Append(CutoffDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutDetail); + } + + /// + /// Returns true if PayoutDetail instances are equal + /// + /// Instance of PayoutDetail to be compared + /// Boolean + public bool Equals(PayoutDetail input) + { + if (input == null) + return false; + + return + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.BankAccountId == input.BankAccountId || + (this.BankAccountId != null && + this.BankAccountId.Equals(input.BankAccountId)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.PayoutStatus == input.PayoutStatus || + (this.PayoutStatus != null && + this.PayoutStatus.Equals(input.PayoutStatus)) + ) && + ( + this.CreatedDate == input.CreatedDate || + (this.CreatedDate != null && + this.CreatedDate.Equals(input.CreatedDate)) + ) && + ( + this.PeriodStartTime == input.PeriodStartTime || + (this.PeriodStartTime != null && + this.PeriodStartTime.Equals(input.PeriodStartTime)) + ) && + ( + this.PeriodEndTime == input.PeriodEndTime || + (this.PeriodEndTime != null && + this.PeriodEndTime.Equals(input.PeriodEndTime)) + ) && + ( + this.DestinationBank == input.DestinationBank || + (this.DestinationBank != null && + this.DestinationBank.Equals(input.DestinationBank)) + ) && + ( + this.DestinationAccount == input.DestinationAccount || + (this.DestinationAccount != null && + this.DestinationAccount.Equals(input.DestinationAccount)) + ) && + ( + this.PayoutType == input.PayoutType || + (this.PayoutType != null && + this.PayoutType.Equals(input.PayoutType)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.PayoutStores == input.PayoutStores || + this.PayoutStores != null && + this.PayoutStores.SequenceEqual(input.PayoutStores) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.CutoffDate == input.CutoffDate || + (this.CutoffDate != null && + this.CutoffDate.Equals(input.CutoffDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.BankAccountId != null) + hashCode = hashCode * 59 + this.BankAccountId.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.PayoutStatus != null) + hashCode = hashCode * 59 + this.PayoutStatus.GetHashCode(); + if (this.CreatedDate != null) + hashCode = hashCode * 59 + this.CreatedDate.GetHashCode(); + if (this.PeriodStartTime != null) + hashCode = hashCode * 59 + this.PeriodStartTime.GetHashCode(); + if (this.PeriodEndTime != null) + hashCode = hashCode * 59 + this.PeriodEndTime.GetHashCode(); + if (this.DestinationBank != null) + hashCode = hashCode * 59 + this.DestinationBank.GetHashCode(); + if (this.DestinationAccount != null) + hashCode = hashCode * 59 + this.DestinationAccount.GetHashCode(); + if (this.PayoutType != null) + hashCode = hashCode * 59 + this.PayoutType.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.PayoutStores != null) + hashCode = hashCode * 59 + this.PayoutStores.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.CutoffDate != null) + hashCode = hashCode * 59 + this.CutoffDate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutOrder.cs b/src/Flipdish/Model/PayoutOrder.cs new file mode 100644 index 00000000..0d2dd3a6 --- /dev/null +++ b/src/Flipdish/Model/PayoutOrder.cs @@ -0,0 +1,1178 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for an order related to a payout + /// + [DataContract] + public partial class PayoutOrder : IEquatable + { + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 2 + } + + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public OrderTypeEnum? OrderType { get; set; } + /// + /// Order currency + /// + /// Order currency + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderCurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Order currency + /// + /// Order currency + [DataMember(Name="OrderCurrency", EmitDefaultValue=false)] + public OrderCurrencyEnum? OrderCurrency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the order. + /// The id of the payout the order is related to. + /// The date the order was placed. + /// Order type (online or cash). + /// Order currency. + /// Order sales amount. + /// Order sales tax amount. + /// Order delivery charges. + /// Order tips amount. + /// Order voucher amount. + /// Order flat fee amount excluding VAT. + /// Order flat fee amount excluding VAT. + /// Order flat fee amount including VAT. + /// Order percentage fee excluding VAT. + /// Order percentage fee excluding VAT. + /// Order VAT amount. + /// Total order fees amount. + /// Cash fee charged to customer. + /// Order net sales amount. + /// Store id. + /// Order ServiceChargeAmount amount. + /// Order ServiceChargePercentage amount. + public PayoutOrder(int? orderId = default(int?), int? payoutId = default(int?), DateTime? orderDate = default(DateTime?), OrderTypeEnum? orderType = default(OrderTypeEnum?), OrderCurrencyEnum? orderCurrency = default(OrderCurrencyEnum?), double? sales = default(double?), double? salesTax = default(double?), double? deliveryCharges = default(double?), double? tips = default(double?), double? voucher = default(double?), double? flatFeeExcludingVat = default(double?), double? flatFeeExcludingVAT = default(double?), double? flatFeeIncludingVat = default(double?), double? percentageFeeExcludingVat = default(double?), double? percentageFeeExcludingVAT = default(double?), double? vat = default(double?), double? totalFees = default(double?), double? cashFeeChargedToCustomer = default(double?), double? netSales = default(double?), int? storeId = default(int?), double? serviceChargeAmount = default(double?), double? serviceChargePercentage = default(double?)) + { + this.OrderId = orderId; + this.PayoutId = payoutId; + this.OrderDate = orderDate; + this.OrderType = orderType; + this.OrderCurrency = orderCurrency; + this.Sales = sales; + this.SalesTax = salesTax; + this.DeliveryCharges = deliveryCharges; + this.Tips = tips; + this.Voucher = voucher; + this.FlatFeeExcludingVat = flatFeeExcludingVat; + this.FlatFeeExcludingVAT = flatFeeExcludingVAT; + this.FlatFeeIncludingVat = flatFeeIncludingVat; + this.PercentageFeeExcludingVat = percentageFeeExcludingVat; + this.PercentageFeeExcludingVAT = percentageFeeExcludingVAT; + this.Vat = vat; + this.TotalFees = totalFees; + this.CashFeeChargedToCustomer = cashFeeChargedToCustomer; + this.NetSales = netSales; + this.StoreId = storeId; + this.ServiceChargeAmount = serviceChargeAmount; + this.ServiceChargePercentage = serviceChargePercentage; + } + + /// + /// The id of the order + /// + /// The id of the order + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// The id of the payout the order is related to + /// + /// The id of the payout the order is related to + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// The date the order was placed + /// + /// The date the order was placed + [DataMember(Name="OrderDate", EmitDefaultValue=false)] + public DateTime? OrderDate { get; set; } + + + + /// + /// Order sales amount + /// + /// Order sales amount + [DataMember(Name="Sales", EmitDefaultValue=false)] + public double? Sales { get; set; } + + /// + /// Order sales tax amount + /// + /// Order sales tax amount + [DataMember(Name="SalesTax", EmitDefaultValue=false)] + public double? SalesTax { get; set; } + + /// + /// Order delivery charges + /// + /// Order delivery charges + [DataMember(Name="DeliveryCharges", EmitDefaultValue=false)] + public double? DeliveryCharges { get; set; } + + /// + /// Order tips amount + /// + /// Order tips amount + [DataMember(Name="Tips", EmitDefaultValue=false)] + public double? Tips { get; set; } + + /// + /// Order voucher amount + /// + /// Order voucher amount + [DataMember(Name="Voucher", EmitDefaultValue=false)] + public double? Voucher { get; set; } + + /// + /// Order flat fee amount excluding VAT + /// + /// Order flat fee amount excluding VAT + [DataMember(Name="FlatFeeExcludingVat", EmitDefaultValue=false)] + public double? FlatFeeExcludingVat { get; set; } + + /// + /// Order flat fee amount excluding VAT + /// + /// Order flat fee amount excluding VAT + [DataMember(Name="FlatFeeExcludingVAT", EmitDefaultValue=false)] + public double? FlatFeeExcludingVAT { get; set; } + + /// + /// Order flat fee amount including VAT + /// + /// Order flat fee amount including VAT + [DataMember(Name="FlatFeeIncludingVat", EmitDefaultValue=false)] + public double? FlatFeeIncludingVat { get; set; } + + /// + /// Order percentage fee excluding VAT + /// + /// Order percentage fee excluding VAT + [DataMember(Name="PercentageFeeExcludingVat", EmitDefaultValue=false)] + public double? PercentageFeeExcludingVat { get; set; } + + /// + /// Order percentage fee excluding VAT + /// + /// Order percentage fee excluding VAT + [DataMember(Name="PercentageFeeExcludingVAT", EmitDefaultValue=false)] + public double? PercentageFeeExcludingVAT { get; set; } + + /// + /// Order VAT amount + /// + /// Order VAT amount + [DataMember(Name="Vat", EmitDefaultValue=false)] + public double? Vat { get; set; } + + /// + /// Total order fees amount + /// + /// Total order fees amount + [DataMember(Name="TotalFees", EmitDefaultValue=false)] + public double? TotalFees { get; set; } + + /// + /// Cash fee charged to customer + /// + /// Cash fee charged to customer + [DataMember(Name="CashFeeChargedToCustomer", EmitDefaultValue=false)] + public double? CashFeeChargedToCustomer { get; set; } + + /// + /// Order net sales amount + /// + /// Order net sales amount + [DataMember(Name="NetSales", EmitDefaultValue=false)] + public double? NetSales { get; set; } + + /// + /// Store id + /// + /// Store id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Order ServiceChargeAmount amount + /// + /// Order ServiceChargeAmount amount + [DataMember(Name="ServiceChargeAmount", EmitDefaultValue=false)] + public double? ServiceChargeAmount { get; set; } + + /// + /// Order ServiceChargePercentage amount + /// + /// Order ServiceChargePercentage amount + [DataMember(Name="ServiceChargePercentage", EmitDefaultValue=false)] + public double? ServiceChargePercentage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutOrder {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" OrderDate: ").Append(OrderDate).Append("\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" OrderCurrency: ").Append(OrderCurrency).Append("\n"); + sb.Append(" Sales: ").Append(Sales).Append("\n"); + sb.Append(" SalesTax: ").Append(SalesTax).Append("\n"); + sb.Append(" DeliveryCharges: ").Append(DeliveryCharges).Append("\n"); + sb.Append(" Tips: ").Append(Tips).Append("\n"); + sb.Append(" Voucher: ").Append(Voucher).Append("\n"); + sb.Append(" FlatFeeExcludingVat: ").Append(FlatFeeExcludingVat).Append("\n"); + sb.Append(" FlatFeeExcludingVAT: ").Append(FlatFeeExcludingVAT).Append("\n"); + sb.Append(" FlatFeeIncludingVat: ").Append(FlatFeeIncludingVat).Append("\n"); + sb.Append(" PercentageFeeExcludingVat: ").Append(PercentageFeeExcludingVat).Append("\n"); + sb.Append(" PercentageFeeExcludingVAT: ").Append(PercentageFeeExcludingVAT).Append("\n"); + sb.Append(" Vat: ").Append(Vat).Append("\n"); + sb.Append(" TotalFees: ").Append(TotalFees).Append("\n"); + sb.Append(" CashFeeChargedToCustomer: ").Append(CashFeeChargedToCustomer).Append("\n"); + sb.Append(" NetSales: ").Append(NetSales).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" ServiceChargeAmount: ").Append(ServiceChargeAmount).Append("\n"); + sb.Append(" ServiceChargePercentage: ").Append(ServiceChargePercentage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutOrder); + } + + /// + /// Returns true if PayoutOrder instances are equal + /// + /// Instance of PayoutOrder to be compared + /// Boolean + public bool Equals(PayoutOrder input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.OrderDate == input.OrderDate || + (this.OrderDate != null && + this.OrderDate.Equals(input.OrderDate)) + ) && + ( + this.OrderType == input.OrderType || + (this.OrderType != null && + this.OrderType.Equals(input.OrderType)) + ) && + ( + this.OrderCurrency == input.OrderCurrency || + (this.OrderCurrency != null && + this.OrderCurrency.Equals(input.OrderCurrency)) + ) && + ( + this.Sales == input.Sales || + (this.Sales != null && + this.Sales.Equals(input.Sales)) + ) && + ( + this.SalesTax == input.SalesTax || + (this.SalesTax != null && + this.SalesTax.Equals(input.SalesTax)) + ) && + ( + this.DeliveryCharges == input.DeliveryCharges || + (this.DeliveryCharges != null && + this.DeliveryCharges.Equals(input.DeliveryCharges)) + ) && + ( + this.Tips == input.Tips || + (this.Tips != null && + this.Tips.Equals(input.Tips)) + ) && + ( + this.Voucher == input.Voucher || + (this.Voucher != null && + this.Voucher.Equals(input.Voucher)) + ) && + ( + this.FlatFeeExcludingVat == input.FlatFeeExcludingVat || + (this.FlatFeeExcludingVat != null && + this.FlatFeeExcludingVat.Equals(input.FlatFeeExcludingVat)) + ) && + ( + this.FlatFeeExcludingVAT == input.FlatFeeExcludingVAT || + (this.FlatFeeExcludingVAT != null && + this.FlatFeeExcludingVAT.Equals(input.FlatFeeExcludingVAT)) + ) && + ( + this.FlatFeeIncludingVat == input.FlatFeeIncludingVat || + (this.FlatFeeIncludingVat != null && + this.FlatFeeIncludingVat.Equals(input.FlatFeeIncludingVat)) + ) && + ( + this.PercentageFeeExcludingVat == input.PercentageFeeExcludingVat || + (this.PercentageFeeExcludingVat != null && + this.PercentageFeeExcludingVat.Equals(input.PercentageFeeExcludingVat)) + ) && + ( + this.PercentageFeeExcludingVAT == input.PercentageFeeExcludingVAT || + (this.PercentageFeeExcludingVAT != null && + this.PercentageFeeExcludingVAT.Equals(input.PercentageFeeExcludingVAT)) + ) && + ( + this.Vat == input.Vat || + (this.Vat != null && + this.Vat.Equals(input.Vat)) + ) && + ( + this.TotalFees == input.TotalFees || + (this.TotalFees != null && + this.TotalFees.Equals(input.TotalFees)) + ) && + ( + this.CashFeeChargedToCustomer == input.CashFeeChargedToCustomer || + (this.CashFeeChargedToCustomer != null && + this.CashFeeChargedToCustomer.Equals(input.CashFeeChargedToCustomer)) + ) && + ( + this.NetSales == input.NetSales || + (this.NetSales != null && + this.NetSales.Equals(input.NetSales)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.ServiceChargeAmount == input.ServiceChargeAmount || + (this.ServiceChargeAmount != null && + this.ServiceChargeAmount.Equals(input.ServiceChargeAmount)) + ) && + ( + this.ServiceChargePercentage == input.ServiceChargePercentage || + (this.ServiceChargePercentage != null && + this.ServiceChargePercentage.Equals(input.ServiceChargePercentage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.OrderDate != null) + hashCode = hashCode * 59 + this.OrderDate.GetHashCode(); + if (this.OrderType != null) + hashCode = hashCode * 59 + this.OrderType.GetHashCode(); + if (this.OrderCurrency != null) + hashCode = hashCode * 59 + this.OrderCurrency.GetHashCode(); + if (this.Sales != null) + hashCode = hashCode * 59 + this.Sales.GetHashCode(); + if (this.SalesTax != null) + hashCode = hashCode * 59 + this.SalesTax.GetHashCode(); + if (this.DeliveryCharges != null) + hashCode = hashCode * 59 + this.DeliveryCharges.GetHashCode(); + if (this.Tips != null) + hashCode = hashCode * 59 + this.Tips.GetHashCode(); + if (this.Voucher != null) + hashCode = hashCode * 59 + this.Voucher.GetHashCode(); + if (this.FlatFeeExcludingVat != null) + hashCode = hashCode * 59 + this.FlatFeeExcludingVat.GetHashCode(); + if (this.FlatFeeExcludingVAT != null) + hashCode = hashCode * 59 + this.FlatFeeExcludingVAT.GetHashCode(); + if (this.FlatFeeIncludingVat != null) + hashCode = hashCode * 59 + this.FlatFeeIncludingVat.GetHashCode(); + if (this.PercentageFeeExcludingVat != null) + hashCode = hashCode * 59 + this.PercentageFeeExcludingVat.GetHashCode(); + if (this.PercentageFeeExcludingVAT != null) + hashCode = hashCode * 59 + this.PercentageFeeExcludingVAT.GetHashCode(); + if (this.Vat != null) + hashCode = hashCode * 59 + this.Vat.GetHashCode(); + if (this.TotalFees != null) + hashCode = hashCode * 59 + this.TotalFees.GetHashCode(); + if (this.CashFeeChargedToCustomer != null) + hashCode = hashCode * 59 + this.CashFeeChargedToCustomer.GetHashCode(); + if (this.NetSales != null) + hashCode = hashCode * 59 + this.NetSales.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.ServiceChargeAmount != null) + hashCode = hashCode * 59 + this.ServiceChargeAmount.GetHashCode(); + if (this.ServiceChargePercentage != null) + hashCode = hashCode * 59 + this.ServiceChargePercentage.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutOtherCharge.cs b/src/Flipdish/Model/PayoutOtherCharge.cs new file mode 100644 index 00000000..47aff00c --- /dev/null +++ b/src/Flipdish/Model/PayoutOtherCharge.cs @@ -0,0 +1,976 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a charge related to a payout + /// + [DataContract] + public partial class PayoutOtherCharge : IEquatable + { + /// + /// Currency of the charge + /// + /// Currency of the charge + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of the charge + /// + /// Currency of the charge + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Charge type + /// + /// Charge type + [JsonConverter(typeof(StringEnumConverter))] + public enum ChargeTypeEnum + { + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 1, + + /// + /// Enum Fees for value: Fees + /// + [EnumMember(Value = "Fees")] + Fees = 2, + + /// + /// Enum Chargeback for value: Chargeback + /// + [EnumMember(Value = "Chargeback")] + Chargeback = 3, + + /// + /// Enum TipFailure for value: TipFailure + /// + [EnumMember(Value = "TipFailure")] + TipFailure = 4, + + /// + /// Enum ExternalDisbursement for value: ExternalDisbursement + /// + [EnumMember(Value = "ExternalDisbursement")] + ExternalDisbursement = 5, + + /// + /// Enum Goods for value: Goods + /// + [EnumMember(Value = "Goods")] + Goods = 6, + + /// + /// Enum RestaurantSales for value: RestaurantSales + /// + [EnumMember(Value = "RestaurantSales")] + RestaurantSales = 7, + + /// + /// Enum Tips for value: Tips + /// + [EnumMember(Value = "Tips")] + Tips = 8 + } + + /// + /// Charge type + /// + /// Charge type + [DataMember(Name="ChargeType", EmitDefaultValue=false)] + public ChargeTypeEnum? ChargeType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the charge. + /// Charge amount. + /// Currency of the charge. + /// The id of the payout the order is related to. + /// The date the order was placed. + /// Charge type. + /// Charge description. + /// Store id. + public PayoutOtherCharge(int? chargeId = default(int?), double? amount = default(double?), CurrencyEnum? currency = default(CurrencyEnum?), int? payoutId = default(int?), DateTime? chargeDate = default(DateTime?), ChargeTypeEnum? chargeType = default(ChargeTypeEnum?), string chargeDescription = default(string), int? storeId = default(int?)) + { + this.ChargeId = chargeId; + this.Amount = amount; + this.Currency = currency; + this.PayoutId = payoutId; + this.ChargeDate = chargeDate; + this.ChargeType = chargeType; + this.ChargeDescription = chargeDescription; + this.StoreId = storeId; + } + + /// + /// The id of the charge + /// + /// The id of the charge + [DataMember(Name="ChargeId", EmitDefaultValue=false)] + public int? ChargeId { get; set; } + + /// + /// Charge amount + /// + /// Charge amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + + /// + /// The id of the payout the order is related to + /// + /// The id of the payout the order is related to + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// The date the order was placed + /// + /// The date the order was placed + [DataMember(Name="ChargeDate", EmitDefaultValue=false)] + public DateTime? ChargeDate { get; set; } + + + /// + /// Charge description + /// + /// Charge description + [DataMember(Name="ChargeDescription", EmitDefaultValue=false)] + public string ChargeDescription { get; set; } + + /// + /// Store id + /// + /// Store id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutOtherCharge {\n"); + sb.Append(" ChargeId: ").Append(ChargeId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" ChargeDate: ").Append(ChargeDate).Append("\n"); + sb.Append(" ChargeType: ").Append(ChargeType).Append("\n"); + sb.Append(" ChargeDescription: ").Append(ChargeDescription).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutOtherCharge); + } + + /// + /// Returns true if PayoutOtherCharge instances are equal + /// + /// Instance of PayoutOtherCharge to be compared + /// Boolean + public bool Equals(PayoutOtherCharge input) + { + if (input == null) + return false; + + return + ( + this.ChargeId == input.ChargeId || + (this.ChargeId != null && + this.ChargeId.Equals(input.ChargeId)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.ChargeDate == input.ChargeDate || + (this.ChargeDate != null && + this.ChargeDate.Equals(input.ChargeDate)) + ) && + ( + this.ChargeType == input.ChargeType || + (this.ChargeType != null && + this.ChargeType.Equals(input.ChargeType)) + ) && + ( + this.ChargeDescription == input.ChargeDescription || + (this.ChargeDescription != null && + this.ChargeDescription.Equals(input.ChargeDescription)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChargeId != null) + hashCode = hashCode * 59 + this.ChargeId.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.ChargeDate != null) + hashCode = hashCode * 59 + this.ChargeDate.GetHashCode(); + if (this.ChargeType != null) + hashCode = hashCode * 59 + this.ChargeType.GetHashCode(); + if (this.ChargeDescription != null) + hashCode = hashCode * 59 + this.ChargeDescription.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutRefund.cs b/src/Flipdish/Model/PayoutRefund.cs new file mode 100644 index 00000000..7d55ccd0 --- /dev/null +++ b/src/Flipdish/Model/PayoutRefund.cs @@ -0,0 +1,991 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a refund related to a payout + /// + [DataContract] + public partial class PayoutRefund : IEquatable + { + /// + /// Order currency + /// + /// Order currency + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderCurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Order currency + /// + /// Order currency + [DataMember(Name="OrderCurrency", EmitDefaultValue=false)] + public OrderCurrencyEnum? OrderCurrency { get; set; } + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Online for value: Online + /// + [EnumMember(Value = "Online")] + Online = 2 + } + + /// + /// Order type (online or cash) + /// + /// Order type (online or cash) + [DataMember(Name="OrderType", EmitDefaultValue=false)] + public OrderTypeEnum? OrderType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the order the refund was for. + /// Order currency. + /// The id of the payout the order is related to. + /// The date the order was placed. + /// Order type (online or cash). + /// The date the refund was done. + /// Store id. + /// Total refund amount. + /// Refunded fees amount. + /// Refunded amount. + /// Cash fee refunded to customer. + public PayoutRefund(int? orderId = default(int?), OrderCurrencyEnum? orderCurrency = default(OrderCurrencyEnum?), int? payoutId = default(int?), DateTime? orderDate = default(DateTime?), OrderTypeEnum? orderType = default(OrderTypeEnum?), DateTime? refundDate = default(DateTime?), int? storeId = default(int?), double? totalRefund = default(double?), double? refundedFees = default(double?), double? refundedAmount = default(double?), double? cashFeeRefundedToCustomer = default(double?)) + { + this.OrderId = orderId; + this.OrderCurrency = orderCurrency; + this.PayoutId = payoutId; + this.OrderDate = orderDate; + this.OrderType = orderType; + this.RefundDate = refundDate; + this.StoreId = storeId; + this.TotalRefund = totalRefund; + this.RefundedFees = refundedFees; + this.RefundedAmount = refundedAmount; + this.CashFeeRefundedToCustomer = cashFeeRefundedToCustomer; + } + + /// + /// The id of the order the refund was for + /// + /// The id of the order the refund was for + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + + /// + /// The id of the payout the order is related to + /// + /// The id of the payout the order is related to + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// The date the order was placed + /// + /// The date the order was placed + [DataMember(Name="OrderDate", EmitDefaultValue=false)] + public DateTime? OrderDate { get; set; } + + + /// + /// The date the refund was done + /// + /// The date the refund was done + [DataMember(Name="RefundDate", EmitDefaultValue=false)] + public DateTime? RefundDate { get; set; } + + /// + /// Store id + /// + /// Store id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Total refund amount + /// + /// Total refund amount + [DataMember(Name="TotalRefund", EmitDefaultValue=false)] + public double? TotalRefund { get; set; } + + /// + /// Refunded fees amount + /// + /// Refunded fees amount + [DataMember(Name="RefundedFees", EmitDefaultValue=false)] + public double? RefundedFees { get; set; } + + /// + /// Refunded amount + /// + /// Refunded amount + [DataMember(Name="RefundedAmount", EmitDefaultValue=false)] + public double? RefundedAmount { get; set; } + + /// + /// Cash fee refunded to customer + /// + /// Cash fee refunded to customer + [DataMember(Name="CashFeeRefundedToCustomer", EmitDefaultValue=false)] + public double? CashFeeRefundedToCustomer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutRefund {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" OrderCurrency: ").Append(OrderCurrency).Append("\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" OrderDate: ").Append(OrderDate).Append("\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" RefundDate: ").Append(RefundDate).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" TotalRefund: ").Append(TotalRefund).Append("\n"); + sb.Append(" RefundedFees: ").Append(RefundedFees).Append("\n"); + sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n"); + sb.Append(" CashFeeRefundedToCustomer: ").Append(CashFeeRefundedToCustomer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutRefund); + } + + /// + /// Returns true if PayoutRefund instances are equal + /// + /// Instance of PayoutRefund to be compared + /// Boolean + public bool Equals(PayoutRefund input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.OrderCurrency == input.OrderCurrency || + (this.OrderCurrency != null && + this.OrderCurrency.Equals(input.OrderCurrency)) + ) && + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.OrderDate == input.OrderDate || + (this.OrderDate != null && + this.OrderDate.Equals(input.OrderDate)) + ) && + ( + this.OrderType == input.OrderType || + (this.OrderType != null && + this.OrderType.Equals(input.OrderType)) + ) && + ( + this.RefundDate == input.RefundDate || + (this.RefundDate != null && + this.RefundDate.Equals(input.RefundDate)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.TotalRefund == input.TotalRefund || + (this.TotalRefund != null && + this.TotalRefund.Equals(input.TotalRefund)) + ) && + ( + this.RefundedFees == input.RefundedFees || + (this.RefundedFees != null && + this.RefundedFees.Equals(input.RefundedFees)) + ) && + ( + this.RefundedAmount == input.RefundedAmount || + (this.RefundedAmount != null && + this.RefundedAmount.Equals(input.RefundedAmount)) + ) && + ( + this.CashFeeRefundedToCustomer == input.CashFeeRefundedToCustomer || + (this.CashFeeRefundedToCustomer != null && + this.CashFeeRefundedToCustomer.Equals(input.CashFeeRefundedToCustomer)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.OrderCurrency != null) + hashCode = hashCode * 59 + this.OrderCurrency.GetHashCode(); + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.OrderDate != null) + hashCode = hashCode * 59 + this.OrderDate.GetHashCode(); + if (this.OrderType != null) + hashCode = hashCode * 59 + this.OrderType.GetHashCode(); + if (this.RefundDate != null) + hashCode = hashCode * 59 + this.RefundDate.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.TotalRefund != null) + hashCode = hashCode * 59 + this.TotalRefund.GetHashCode(); + if (this.RefundedFees != null) + hashCode = hashCode * 59 + this.RefundedFees.GetHashCode(); + if (this.RefundedAmount != null) + hashCode = hashCode * 59 + this.RefundedAmount.GetHashCode(); + if (this.CashFeeRefundedToCustomer != null) + hashCode = hashCode * 59 + this.CashFeeRefundedToCustomer.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3Details.cs b/src/Flipdish/Model/PayoutReport3Details.cs new file mode 100644 index 00000000..09c2a2a9 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3Details.cs @@ -0,0 +1,192 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3Details + /// + [DataContract] + public partial class PayoutReport3Details : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// amount. + /// currency. + /// summary. + /// revenue. + /// flipdishFees. + /// adjustments. + public PayoutReport3Details(double? amount = default(double?), string currency = default(string), PayoutReport3DetailsSummary summary = default(PayoutReport3DetailsSummary), PayoutReport3DetailsRevenue revenue = default(PayoutReport3DetailsRevenue), PayoutReport3DetailsFlipdishFees flipdishFees = default(PayoutReport3DetailsFlipdishFees), PayoutReport3DetailsAdjustments adjustments = default(PayoutReport3DetailsAdjustments)) + { + this.Amount = amount; + this.Currency = currency; + this.Summary = summary; + this.Revenue = revenue; + this.FlipdishFees = flipdishFees; + this.Adjustments = adjustments; + } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Gets or Sets Summary + /// + [DataMember(Name="Summary", EmitDefaultValue=false)] + public PayoutReport3DetailsSummary Summary { get; set; } + + /// + /// Gets or Sets Revenue + /// + [DataMember(Name="Revenue", EmitDefaultValue=false)] + public PayoutReport3DetailsRevenue Revenue { get; set; } + + /// + /// Gets or Sets FlipdishFees + /// + [DataMember(Name="FlipdishFees", EmitDefaultValue=false)] + public PayoutReport3DetailsFlipdishFees FlipdishFees { get; set; } + + /// + /// Gets or Sets Adjustments + /// + [DataMember(Name="Adjustments", EmitDefaultValue=false)] + public PayoutReport3DetailsAdjustments Adjustments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3Details {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Summary: ").Append(Summary).Append("\n"); + sb.Append(" Revenue: ").Append(Revenue).Append("\n"); + sb.Append(" FlipdishFees: ").Append(FlipdishFees).Append("\n"); + sb.Append(" Adjustments: ").Append(Adjustments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3Details); + } + + /// + /// Returns true if PayoutReport3Details instances are equal + /// + /// Instance of PayoutReport3Details to be compared + /// Boolean + public bool Equals(PayoutReport3Details input) + { + if (input == null) + return false; + + return + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Summary == input.Summary || + (this.Summary != null && + this.Summary.Equals(input.Summary)) + ) && + ( + this.Revenue == input.Revenue || + (this.Revenue != null && + this.Revenue.Equals(input.Revenue)) + ) && + ( + this.FlipdishFees == input.FlipdishFees || + (this.FlipdishFees != null && + this.FlipdishFees.Equals(input.FlipdishFees)) + ) && + ( + this.Adjustments == input.Adjustments || + (this.Adjustments != null && + this.Adjustments.Equals(input.Adjustments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Summary != null) + hashCode = hashCode * 59 + this.Summary.GetHashCode(); + if (this.Revenue != null) + hashCode = hashCode * 59 + this.Revenue.GetHashCode(); + if (this.FlipdishFees != null) + hashCode = hashCode * 59 + this.FlipdishFees.GetHashCode(); + if (this.Adjustments != null) + hashCode = hashCode * 59 + this.Adjustments.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3DetailsAdjustments.cs b/src/Flipdish/Model/PayoutReport3DetailsAdjustments.cs new file mode 100644 index 00000000..bc4a77be --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3DetailsAdjustments.cs @@ -0,0 +1,432 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3DetailsAdjustments + /// + [DataContract] + public partial class PayoutReport3DetailsAdjustments : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// openingBalanceDate. + /// closingBalanceDate. + /// openingBalance. + /// refundsOnCardOrders. + /// refundsOnCashOrders. + /// cashCustomerFees. + /// chargebacks. + /// otherTransactions. + /// closingBalance. + /// balanceRepaid. + /// refundsOnCardOrdersBracketsAmount. + /// refundsOnCardOrdersBracketsOutOfAmount. + /// refundsOnCashOrdersBracketsAmount. + /// refundsOnCashOrdersBracketsOutOfAmount. + /// cashCustomerFeesBracketsAmount. + /// cashCustomerFeesBracketsOutOfAmount. + /// balanceChange. + /// previousPayoutId. + /// nextPayoutId. + /// refundedFeesOnChargebacks. + /// totalChargebackCost. + public PayoutReport3DetailsAdjustments(DateTime? openingBalanceDate = default(DateTime?), DateTime? closingBalanceDate = default(DateTime?), double? openingBalance = default(double?), double? refundsOnCardOrders = default(double?), double? refundsOnCashOrders = default(double?), double? cashCustomerFees = default(double?), double? chargebacks = default(double?), double? otherTransactions = default(double?), double? closingBalance = default(double?), double? balanceRepaid = default(double?), double? refundsOnCardOrdersBracketsAmount = default(double?), double? refundsOnCardOrdersBracketsOutOfAmount = default(double?), double? refundsOnCashOrdersBracketsAmount = default(double?), double? refundsOnCashOrdersBracketsOutOfAmount = default(double?), double? cashCustomerFeesBracketsAmount = default(double?), double? cashCustomerFeesBracketsOutOfAmount = default(double?), double? balanceChange = default(double?), int? previousPayoutId = default(int?), int? nextPayoutId = default(int?), double? refundedFeesOnChargebacks = default(double?), double? totalChargebackCost = default(double?)) + { + this.OpeningBalanceDate = openingBalanceDate; + this.ClosingBalanceDate = closingBalanceDate; + this.OpeningBalance = openingBalance; + this.RefundsOnCardOrders = refundsOnCardOrders; + this.RefundsOnCashOrders = refundsOnCashOrders; + this.CashCustomerFees = cashCustomerFees; + this.Chargebacks = chargebacks; + this.OtherTransactions = otherTransactions; + this.ClosingBalance = closingBalance; + this.BalanceRepaid = balanceRepaid; + this.RefundsOnCardOrdersBracketsAmount = refundsOnCardOrdersBracketsAmount; + this.RefundsOnCardOrdersBracketsOutOfAmount = refundsOnCardOrdersBracketsOutOfAmount; + this.RefundsOnCashOrdersBracketsAmount = refundsOnCashOrdersBracketsAmount; + this.RefundsOnCashOrdersBracketsOutOfAmount = refundsOnCashOrdersBracketsOutOfAmount; + this.CashCustomerFeesBracketsAmount = cashCustomerFeesBracketsAmount; + this.CashCustomerFeesBracketsOutOfAmount = cashCustomerFeesBracketsOutOfAmount; + this.BalanceChange = balanceChange; + this.PreviousPayoutId = previousPayoutId; + this.NextPayoutId = nextPayoutId; + this.RefundedFeesOnChargebacks = refundedFeesOnChargebacks; + this.TotalChargebackCost = totalChargebackCost; + } + + /// + /// Gets or Sets OpeningBalanceDate + /// + [DataMember(Name="OpeningBalanceDate", EmitDefaultValue=false)] + public DateTime? OpeningBalanceDate { get; set; } + + /// + /// Gets or Sets ClosingBalanceDate + /// + [DataMember(Name="ClosingBalanceDate", EmitDefaultValue=false)] + public DateTime? ClosingBalanceDate { get; set; } + + /// + /// Gets or Sets OpeningBalance + /// + [DataMember(Name="OpeningBalance", EmitDefaultValue=false)] + public double? OpeningBalance { get; set; } + + /// + /// Gets or Sets RefundsOnCardOrders + /// + [DataMember(Name="RefundsOnCardOrders", EmitDefaultValue=false)] + public double? RefundsOnCardOrders { get; set; } + + /// + /// Gets or Sets RefundsOnCashOrders + /// + [DataMember(Name="RefundsOnCashOrders", EmitDefaultValue=false)] + public double? RefundsOnCashOrders { get; set; } + + /// + /// Gets or Sets CashCustomerFees + /// + [DataMember(Name="CashCustomerFees", EmitDefaultValue=false)] + public double? CashCustomerFees { get; set; } + + /// + /// Gets or Sets Chargebacks + /// + [DataMember(Name="Chargebacks", EmitDefaultValue=false)] + public double? Chargebacks { get; set; } + + /// + /// Gets or Sets OtherTransactions + /// + [DataMember(Name="OtherTransactions", EmitDefaultValue=false)] + public double? OtherTransactions { get; set; } + + /// + /// Gets or Sets ClosingBalance + /// + [DataMember(Name="ClosingBalance", EmitDefaultValue=false)] + public double? ClosingBalance { get; set; } + + /// + /// Gets or Sets BalanceRepaid + /// + [DataMember(Name="BalanceRepaid", EmitDefaultValue=false)] + public double? BalanceRepaid { get; set; } + + /// + /// Gets or Sets RefundsOnCardOrdersBracketsAmount + /// + [DataMember(Name="RefundsOnCardOrdersBracketsAmount", EmitDefaultValue=false)] + public double? RefundsOnCardOrdersBracketsAmount { get; set; } + + /// + /// Gets or Sets RefundsOnCardOrdersBracketsOutOfAmount + /// + [DataMember(Name="RefundsOnCardOrdersBracketsOutOfAmount", EmitDefaultValue=false)] + public double? RefundsOnCardOrdersBracketsOutOfAmount { get; set; } + + /// + /// Gets or Sets RefundsOnCashOrdersBracketsAmount + /// + [DataMember(Name="RefundsOnCashOrdersBracketsAmount", EmitDefaultValue=false)] + public double? RefundsOnCashOrdersBracketsAmount { get; set; } + + /// + /// Gets or Sets RefundsOnCashOrdersBracketsOutOfAmount + /// + [DataMember(Name="RefundsOnCashOrdersBracketsOutOfAmount", EmitDefaultValue=false)] + public double? RefundsOnCashOrdersBracketsOutOfAmount { get; set; } + + /// + /// Gets or Sets CashCustomerFeesBracketsAmount + /// + [DataMember(Name="CashCustomerFeesBracketsAmount", EmitDefaultValue=false)] + public double? CashCustomerFeesBracketsAmount { get; set; } + + /// + /// Gets or Sets CashCustomerFeesBracketsOutOfAmount + /// + [DataMember(Name="CashCustomerFeesBracketsOutOfAmount", EmitDefaultValue=false)] + public double? CashCustomerFeesBracketsOutOfAmount { get; set; } + + /// + /// Gets or Sets BalanceChange + /// + [DataMember(Name="BalanceChange", EmitDefaultValue=false)] + public double? BalanceChange { get; set; } + + /// + /// Gets or Sets PreviousPayoutId + /// + [DataMember(Name="PreviousPayoutId", EmitDefaultValue=false)] + public int? PreviousPayoutId { get; set; } + + /// + /// Gets or Sets NextPayoutId + /// + [DataMember(Name="NextPayoutId", EmitDefaultValue=false)] + public int? NextPayoutId { get; set; } + + /// + /// Gets or Sets RefundedFeesOnChargebacks + /// + [DataMember(Name="RefundedFeesOnChargebacks", EmitDefaultValue=false)] + public double? RefundedFeesOnChargebacks { get; set; } + + /// + /// Gets or Sets TotalChargebackCost + /// + [DataMember(Name="TotalChargebackCost", EmitDefaultValue=false)] + public double? TotalChargebackCost { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3DetailsAdjustments {\n"); + sb.Append(" OpeningBalanceDate: ").Append(OpeningBalanceDate).Append("\n"); + sb.Append(" ClosingBalanceDate: ").Append(ClosingBalanceDate).Append("\n"); + sb.Append(" OpeningBalance: ").Append(OpeningBalance).Append("\n"); + sb.Append(" RefundsOnCardOrders: ").Append(RefundsOnCardOrders).Append("\n"); + sb.Append(" RefundsOnCashOrders: ").Append(RefundsOnCashOrders).Append("\n"); + sb.Append(" CashCustomerFees: ").Append(CashCustomerFees).Append("\n"); + sb.Append(" Chargebacks: ").Append(Chargebacks).Append("\n"); + sb.Append(" OtherTransactions: ").Append(OtherTransactions).Append("\n"); + sb.Append(" ClosingBalance: ").Append(ClosingBalance).Append("\n"); + sb.Append(" BalanceRepaid: ").Append(BalanceRepaid).Append("\n"); + sb.Append(" RefundsOnCardOrdersBracketsAmount: ").Append(RefundsOnCardOrdersBracketsAmount).Append("\n"); + sb.Append(" RefundsOnCardOrdersBracketsOutOfAmount: ").Append(RefundsOnCardOrdersBracketsOutOfAmount).Append("\n"); + sb.Append(" RefundsOnCashOrdersBracketsAmount: ").Append(RefundsOnCashOrdersBracketsAmount).Append("\n"); + sb.Append(" RefundsOnCashOrdersBracketsOutOfAmount: ").Append(RefundsOnCashOrdersBracketsOutOfAmount).Append("\n"); + sb.Append(" CashCustomerFeesBracketsAmount: ").Append(CashCustomerFeesBracketsAmount).Append("\n"); + sb.Append(" CashCustomerFeesBracketsOutOfAmount: ").Append(CashCustomerFeesBracketsOutOfAmount).Append("\n"); + sb.Append(" BalanceChange: ").Append(BalanceChange).Append("\n"); + sb.Append(" PreviousPayoutId: ").Append(PreviousPayoutId).Append("\n"); + sb.Append(" NextPayoutId: ").Append(NextPayoutId).Append("\n"); + sb.Append(" RefundedFeesOnChargebacks: ").Append(RefundedFeesOnChargebacks).Append("\n"); + sb.Append(" TotalChargebackCost: ").Append(TotalChargebackCost).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3DetailsAdjustments); + } + + /// + /// Returns true if PayoutReport3DetailsAdjustments instances are equal + /// + /// Instance of PayoutReport3DetailsAdjustments to be compared + /// Boolean + public bool Equals(PayoutReport3DetailsAdjustments input) + { + if (input == null) + return false; + + return + ( + this.OpeningBalanceDate == input.OpeningBalanceDate || + (this.OpeningBalanceDate != null && + this.OpeningBalanceDate.Equals(input.OpeningBalanceDate)) + ) && + ( + this.ClosingBalanceDate == input.ClosingBalanceDate || + (this.ClosingBalanceDate != null && + this.ClosingBalanceDate.Equals(input.ClosingBalanceDate)) + ) && + ( + this.OpeningBalance == input.OpeningBalance || + (this.OpeningBalance != null && + this.OpeningBalance.Equals(input.OpeningBalance)) + ) && + ( + this.RefundsOnCardOrders == input.RefundsOnCardOrders || + (this.RefundsOnCardOrders != null && + this.RefundsOnCardOrders.Equals(input.RefundsOnCardOrders)) + ) && + ( + this.RefundsOnCashOrders == input.RefundsOnCashOrders || + (this.RefundsOnCashOrders != null && + this.RefundsOnCashOrders.Equals(input.RefundsOnCashOrders)) + ) && + ( + this.CashCustomerFees == input.CashCustomerFees || + (this.CashCustomerFees != null && + this.CashCustomerFees.Equals(input.CashCustomerFees)) + ) && + ( + this.Chargebacks == input.Chargebacks || + (this.Chargebacks != null && + this.Chargebacks.Equals(input.Chargebacks)) + ) && + ( + this.OtherTransactions == input.OtherTransactions || + (this.OtherTransactions != null && + this.OtherTransactions.Equals(input.OtherTransactions)) + ) && + ( + this.ClosingBalance == input.ClosingBalance || + (this.ClosingBalance != null && + this.ClosingBalance.Equals(input.ClosingBalance)) + ) && + ( + this.BalanceRepaid == input.BalanceRepaid || + (this.BalanceRepaid != null && + this.BalanceRepaid.Equals(input.BalanceRepaid)) + ) && + ( + this.RefundsOnCardOrdersBracketsAmount == input.RefundsOnCardOrdersBracketsAmount || + (this.RefundsOnCardOrdersBracketsAmount != null && + this.RefundsOnCardOrdersBracketsAmount.Equals(input.RefundsOnCardOrdersBracketsAmount)) + ) && + ( + this.RefundsOnCardOrdersBracketsOutOfAmount == input.RefundsOnCardOrdersBracketsOutOfAmount || + (this.RefundsOnCardOrdersBracketsOutOfAmount != null && + this.RefundsOnCardOrdersBracketsOutOfAmount.Equals(input.RefundsOnCardOrdersBracketsOutOfAmount)) + ) && + ( + this.RefundsOnCashOrdersBracketsAmount == input.RefundsOnCashOrdersBracketsAmount || + (this.RefundsOnCashOrdersBracketsAmount != null && + this.RefundsOnCashOrdersBracketsAmount.Equals(input.RefundsOnCashOrdersBracketsAmount)) + ) && + ( + this.RefundsOnCashOrdersBracketsOutOfAmount == input.RefundsOnCashOrdersBracketsOutOfAmount || + (this.RefundsOnCashOrdersBracketsOutOfAmount != null && + this.RefundsOnCashOrdersBracketsOutOfAmount.Equals(input.RefundsOnCashOrdersBracketsOutOfAmount)) + ) && + ( + this.CashCustomerFeesBracketsAmount == input.CashCustomerFeesBracketsAmount || + (this.CashCustomerFeesBracketsAmount != null && + this.CashCustomerFeesBracketsAmount.Equals(input.CashCustomerFeesBracketsAmount)) + ) && + ( + this.CashCustomerFeesBracketsOutOfAmount == input.CashCustomerFeesBracketsOutOfAmount || + (this.CashCustomerFeesBracketsOutOfAmount != null && + this.CashCustomerFeesBracketsOutOfAmount.Equals(input.CashCustomerFeesBracketsOutOfAmount)) + ) && + ( + this.BalanceChange == input.BalanceChange || + (this.BalanceChange != null && + this.BalanceChange.Equals(input.BalanceChange)) + ) && + ( + this.PreviousPayoutId == input.PreviousPayoutId || + (this.PreviousPayoutId != null && + this.PreviousPayoutId.Equals(input.PreviousPayoutId)) + ) && + ( + this.NextPayoutId == input.NextPayoutId || + (this.NextPayoutId != null && + this.NextPayoutId.Equals(input.NextPayoutId)) + ) && + ( + this.RefundedFeesOnChargebacks == input.RefundedFeesOnChargebacks || + (this.RefundedFeesOnChargebacks != null && + this.RefundedFeesOnChargebacks.Equals(input.RefundedFeesOnChargebacks)) + ) && + ( + this.TotalChargebackCost == input.TotalChargebackCost || + (this.TotalChargebackCost != null && + this.TotalChargebackCost.Equals(input.TotalChargebackCost)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OpeningBalanceDate != null) + hashCode = hashCode * 59 + this.OpeningBalanceDate.GetHashCode(); + if (this.ClosingBalanceDate != null) + hashCode = hashCode * 59 + this.ClosingBalanceDate.GetHashCode(); + if (this.OpeningBalance != null) + hashCode = hashCode * 59 + this.OpeningBalance.GetHashCode(); + if (this.RefundsOnCardOrders != null) + hashCode = hashCode * 59 + this.RefundsOnCardOrders.GetHashCode(); + if (this.RefundsOnCashOrders != null) + hashCode = hashCode * 59 + this.RefundsOnCashOrders.GetHashCode(); + if (this.CashCustomerFees != null) + hashCode = hashCode * 59 + this.CashCustomerFees.GetHashCode(); + if (this.Chargebacks != null) + hashCode = hashCode * 59 + this.Chargebacks.GetHashCode(); + if (this.OtherTransactions != null) + hashCode = hashCode * 59 + this.OtherTransactions.GetHashCode(); + if (this.ClosingBalance != null) + hashCode = hashCode * 59 + this.ClosingBalance.GetHashCode(); + if (this.BalanceRepaid != null) + hashCode = hashCode * 59 + this.BalanceRepaid.GetHashCode(); + if (this.RefundsOnCardOrdersBracketsAmount != null) + hashCode = hashCode * 59 + this.RefundsOnCardOrdersBracketsAmount.GetHashCode(); + if (this.RefundsOnCardOrdersBracketsOutOfAmount != null) + hashCode = hashCode * 59 + this.RefundsOnCardOrdersBracketsOutOfAmount.GetHashCode(); + if (this.RefundsOnCashOrdersBracketsAmount != null) + hashCode = hashCode * 59 + this.RefundsOnCashOrdersBracketsAmount.GetHashCode(); + if (this.RefundsOnCashOrdersBracketsOutOfAmount != null) + hashCode = hashCode * 59 + this.RefundsOnCashOrdersBracketsOutOfAmount.GetHashCode(); + if (this.CashCustomerFeesBracketsAmount != null) + hashCode = hashCode * 59 + this.CashCustomerFeesBracketsAmount.GetHashCode(); + if (this.CashCustomerFeesBracketsOutOfAmount != null) + hashCode = hashCode * 59 + this.CashCustomerFeesBracketsOutOfAmount.GetHashCode(); + if (this.BalanceChange != null) + hashCode = hashCode * 59 + this.BalanceChange.GetHashCode(); + if (this.PreviousPayoutId != null) + hashCode = hashCode * 59 + this.PreviousPayoutId.GetHashCode(); + if (this.NextPayoutId != null) + hashCode = hashCode * 59 + this.NextPayoutId.GetHashCode(); + if (this.RefundedFeesOnChargebacks != null) + hashCode = hashCode * 59 + this.RefundedFeesOnChargebacks.GetHashCode(); + if (this.TotalChargebackCost != null) + hashCode = hashCode * 59 + this.TotalChargebackCost.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3DetailsFlipdishFees.cs b/src/Flipdish/Model/PayoutReport3DetailsFlipdishFees.cs new file mode 100644 index 00000000..a55e957a --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3DetailsFlipdishFees.cs @@ -0,0 +1,592 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3DetailsFlipdishFees + /// + [DataContract] + public partial class PayoutReport3DetailsFlipdishFees : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// webAndAppCash. + /// webAndAppCashRevenueIncludingTips. + /// webAndAppCard. + /// webAndAppCardRevenueIncludingTips. + /// kioskCash. + /// kioskCashRevenue. + /// kioskCard. + /// kioskCardRevenue. + /// qropCash. + /// qropCashRevenue. + /// qropCard. + /// qropCardRevenue. + /// posCard. + /// posCardRevenue. + /// posCardOnFlipdishOrders. + /// otherIntegrationFees. + /// otherIntegrationFeesExcludingVat. + /// otherIntegrationFeesVatAmount. + /// otherIntegrationTips. + /// refundedFeesOnRefundedSales. + /// vat. + /// refundedFeesOnPosSales. + /// total. + /// thirdPartyIntegrationFeesAndTips. + /// webAndAppCardOnXOrders. + /// webAndAppCashOnXOrders. + /// kioskCardOnXOrders. + /// kioskCashOnXOrders. + /// qropCardOnXOrders. + /// qropCashOnXOrders. + /// posCardOnXOrders. + public PayoutReport3DetailsFlipdishFees(double? webAndAppCash = default(double?), double? webAndAppCashRevenueIncludingTips = default(double?), double? webAndAppCard = default(double?), double? webAndAppCardRevenueIncludingTips = default(double?), double? kioskCash = default(double?), double? kioskCashRevenue = default(double?), double? kioskCard = default(double?), double? kioskCardRevenue = default(double?), double? qropCash = default(double?), double? qropCashRevenue = default(double?), double? qropCard = default(double?), double? qropCardRevenue = default(double?), double? posCard = default(double?), double? posCardRevenue = default(double?), double? posCardOnFlipdishOrders = default(double?), double? otherIntegrationFees = default(double?), double? otherIntegrationFeesExcludingVat = default(double?), double? otherIntegrationFeesVatAmount = default(double?), double? otherIntegrationTips = default(double?), double? refundedFeesOnRefundedSales = default(double?), double? vat = default(double?), double? refundedFeesOnPosSales = default(double?), double? total = default(double?), double? thirdPartyIntegrationFeesAndTips = default(double?), int? webAndAppCardOnXOrders = default(int?), int? webAndAppCashOnXOrders = default(int?), int? kioskCardOnXOrders = default(int?), int? kioskCashOnXOrders = default(int?), int? qropCardOnXOrders = default(int?), int? qropCashOnXOrders = default(int?), int? posCardOnXOrders = default(int?)) + { + this.WebAndAppCash = webAndAppCash; + this.WebAndAppCashRevenueIncludingTips = webAndAppCashRevenueIncludingTips; + this.WebAndAppCard = webAndAppCard; + this.WebAndAppCardRevenueIncludingTips = webAndAppCardRevenueIncludingTips; + this.KioskCash = kioskCash; + this.KioskCashRevenue = kioskCashRevenue; + this.KioskCard = kioskCard; + this.KioskCardRevenue = kioskCardRevenue; + this.QropCash = qropCash; + this.QropCashRevenue = qropCashRevenue; + this.QropCard = qropCard; + this.QropCardRevenue = qropCardRevenue; + this.PosCard = posCard; + this.PosCardRevenue = posCardRevenue; + this.PosCardOnFlipdishOrders = posCardOnFlipdishOrders; + this.OtherIntegrationFees = otherIntegrationFees; + this.OtherIntegrationFeesExcludingVat = otherIntegrationFeesExcludingVat; + this.OtherIntegrationFeesVatAmount = otherIntegrationFeesVatAmount; + this.OtherIntegrationTips = otherIntegrationTips; + this.RefundedFeesOnRefundedSales = refundedFeesOnRefundedSales; + this.Vat = vat; + this.RefundedFeesOnPosSales = refundedFeesOnPosSales; + this.Total = total; + this.ThirdPartyIntegrationFeesAndTips = thirdPartyIntegrationFeesAndTips; + this.WebAndAppCardOnXOrders = webAndAppCardOnXOrders; + this.WebAndAppCashOnXOrders = webAndAppCashOnXOrders; + this.KioskCardOnXOrders = kioskCardOnXOrders; + this.KioskCashOnXOrders = kioskCashOnXOrders; + this.QropCardOnXOrders = qropCardOnXOrders; + this.QropCashOnXOrders = qropCashOnXOrders; + this.PosCardOnXOrders = posCardOnXOrders; + } + + /// + /// Gets or Sets WebAndAppCash + /// + [DataMember(Name="WebAndAppCash", EmitDefaultValue=false)] + public double? WebAndAppCash { get; set; } + + /// + /// Gets or Sets WebAndAppCashRevenueIncludingTips + /// + [DataMember(Name="WebAndAppCashRevenueIncludingTips", EmitDefaultValue=false)] + public double? WebAndAppCashRevenueIncludingTips { get; set; } + + /// + /// Gets or Sets WebAndAppCard + /// + [DataMember(Name="WebAndAppCard", EmitDefaultValue=false)] + public double? WebAndAppCard { get; set; } + + /// + /// Gets or Sets WebAndAppCardRevenueIncludingTips + /// + [DataMember(Name="WebAndAppCardRevenueIncludingTips", EmitDefaultValue=false)] + public double? WebAndAppCardRevenueIncludingTips { get; set; } + + /// + /// Gets or Sets KioskCash + /// + [DataMember(Name="KioskCash", EmitDefaultValue=false)] + public double? KioskCash { get; set; } + + /// + /// Gets or Sets KioskCashRevenue + /// + [DataMember(Name="KioskCashRevenue", EmitDefaultValue=false)] + public double? KioskCashRevenue { get; set; } + + /// + /// Gets or Sets KioskCard + /// + [DataMember(Name="KioskCard", EmitDefaultValue=false)] + public double? KioskCard { get; set; } + + /// + /// Gets or Sets KioskCardRevenue + /// + [DataMember(Name="KioskCardRevenue", EmitDefaultValue=false)] + public double? KioskCardRevenue { get; set; } + + /// + /// Gets or Sets QropCash + /// + [DataMember(Name="QropCash", EmitDefaultValue=false)] + public double? QropCash { get; set; } + + /// + /// Gets or Sets QropCashRevenue + /// + [DataMember(Name="QropCashRevenue", EmitDefaultValue=false)] + public double? QropCashRevenue { get; set; } + + /// + /// Gets or Sets QropCard + /// + [DataMember(Name="QropCard", EmitDefaultValue=false)] + public double? QropCard { get; set; } + + /// + /// Gets or Sets QropCardRevenue + /// + [DataMember(Name="QropCardRevenue", EmitDefaultValue=false)] + public double? QropCardRevenue { get; set; } + + /// + /// Gets or Sets PosCard + /// + [DataMember(Name="PosCard", EmitDefaultValue=false)] + public double? PosCard { get; set; } + + /// + /// Gets or Sets PosCardRevenue + /// + [DataMember(Name="PosCardRevenue", EmitDefaultValue=false)] + public double? PosCardRevenue { get; set; } + + /// + /// Gets or Sets PosCardOnFlipdishOrders + /// + [DataMember(Name="PosCardOnFlipdishOrders", EmitDefaultValue=false)] + public double? PosCardOnFlipdishOrders { get; set; } + + /// + /// Gets or Sets OtherIntegrationFees + /// + [DataMember(Name="OtherIntegrationFees", EmitDefaultValue=false)] + public double? OtherIntegrationFees { get; set; } + + /// + /// Gets or Sets OtherIntegrationFeesExcludingVat + /// + [DataMember(Name="OtherIntegrationFeesExcludingVat", EmitDefaultValue=false)] + public double? OtherIntegrationFeesExcludingVat { get; set; } + + /// + /// Gets or Sets OtherIntegrationFeesVatAmount + /// + [DataMember(Name="OtherIntegrationFeesVatAmount", EmitDefaultValue=false)] + public double? OtherIntegrationFeesVatAmount { get; set; } + + /// + /// Gets or Sets OtherIntegrationTips + /// + [DataMember(Name="OtherIntegrationTips", EmitDefaultValue=false)] + public double? OtherIntegrationTips { get; set; } + + /// + /// Gets or Sets RefundedFeesOnRefundedSales + /// + [DataMember(Name="RefundedFeesOnRefundedSales", EmitDefaultValue=false)] + public double? RefundedFeesOnRefundedSales { get; set; } + + /// + /// Gets or Sets Vat + /// + [DataMember(Name="Vat", EmitDefaultValue=false)] + public double? Vat { get; set; } + + /// + /// Gets or Sets RefundedFeesOnPosSales + /// + [DataMember(Name="RefundedFeesOnPosSales", EmitDefaultValue=false)] + public double? RefundedFeesOnPosSales { get; set; } + + /// + /// Gets or Sets Total + /// + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; set; } + + /// + /// Gets or Sets ThirdPartyIntegrationFeesAndTips + /// + [DataMember(Name="ThirdPartyIntegrationFeesAndTips", EmitDefaultValue=false)] + public double? ThirdPartyIntegrationFeesAndTips { get; set; } + + /// + /// Gets or Sets WebAndAppCardOnXOrders + /// + [DataMember(Name="WebAndAppCardOnXOrders", EmitDefaultValue=false)] + public int? WebAndAppCardOnXOrders { get; set; } + + /// + /// Gets or Sets WebAndAppCashOnXOrders + /// + [DataMember(Name="WebAndAppCashOnXOrders", EmitDefaultValue=false)] + public int? WebAndAppCashOnXOrders { get; set; } + + /// + /// Gets or Sets KioskCardOnXOrders + /// + [DataMember(Name="KioskCardOnXOrders", EmitDefaultValue=false)] + public int? KioskCardOnXOrders { get; set; } + + /// + /// Gets or Sets KioskCashOnXOrders + /// + [DataMember(Name="KioskCashOnXOrders", EmitDefaultValue=false)] + public int? KioskCashOnXOrders { get; set; } + + /// + /// Gets or Sets QropCardOnXOrders + /// + [DataMember(Name="QropCardOnXOrders", EmitDefaultValue=false)] + public int? QropCardOnXOrders { get; set; } + + /// + /// Gets or Sets QropCashOnXOrders + /// + [DataMember(Name="QropCashOnXOrders", EmitDefaultValue=false)] + public int? QropCashOnXOrders { get; set; } + + /// + /// Gets or Sets PosCardOnXOrders + /// + [DataMember(Name="PosCardOnXOrders", EmitDefaultValue=false)] + public int? PosCardOnXOrders { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3DetailsFlipdishFees {\n"); + sb.Append(" WebAndAppCash: ").Append(WebAndAppCash).Append("\n"); + sb.Append(" WebAndAppCashRevenueIncludingTips: ").Append(WebAndAppCashRevenueIncludingTips).Append("\n"); + sb.Append(" WebAndAppCard: ").Append(WebAndAppCard).Append("\n"); + sb.Append(" WebAndAppCardRevenueIncludingTips: ").Append(WebAndAppCardRevenueIncludingTips).Append("\n"); + sb.Append(" KioskCash: ").Append(KioskCash).Append("\n"); + sb.Append(" KioskCashRevenue: ").Append(KioskCashRevenue).Append("\n"); + sb.Append(" KioskCard: ").Append(KioskCard).Append("\n"); + sb.Append(" KioskCardRevenue: ").Append(KioskCardRevenue).Append("\n"); + sb.Append(" QropCash: ").Append(QropCash).Append("\n"); + sb.Append(" QropCashRevenue: ").Append(QropCashRevenue).Append("\n"); + sb.Append(" QropCard: ").Append(QropCard).Append("\n"); + sb.Append(" QropCardRevenue: ").Append(QropCardRevenue).Append("\n"); + sb.Append(" PosCard: ").Append(PosCard).Append("\n"); + sb.Append(" PosCardRevenue: ").Append(PosCardRevenue).Append("\n"); + sb.Append(" PosCardOnFlipdishOrders: ").Append(PosCardOnFlipdishOrders).Append("\n"); + sb.Append(" OtherIntegrationFees: ").Append(OtherIntegrationFees).Append("\n"); + sb.Append(" OtherIntegrationFeesExcludingVat: ").Append(OtherIntegrationFeesExcludingVat).Append("\n"); + sb.Append(" OtherIntegrationFeesVatAmount: ").Append(OtherIntegrationFeesVatAmount).Append("\n"); + sb.Append(" OtherIntegrationTips: ").Append(OtherIntegrationTips).Append("\n"); + sb.Append(" RefundedFeesOnRefundedSales: ").Append(RefundedFeesOnRefundedSales).Append("\n"); + sb.Append(" Vat: ").Append(Vat).Append("\n"); + sb.Append(" RefundedFeesOnPosSales: ").Append(RefundedFeesOnPosSales).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" ThirdPartyIntegrationFeesAndTips: ").Append(ThirdPartyIntegrationFeesAndTips).Append("\n"); + sb.Append(" WebAndAppCardOnXOrders: ").Append(WebAndAppCardOnXOrders).Append("\n"); + sb.Append(" WebAndAppCashOnXOrders: ").Append(WebAndAppCashOnXOrders).Append("\n"); + sb.Append(" KioskCardOnXOrders: ").Append(KioskCardOnXOrders).Append("\n"); + sb.Append(" KioskCashOnXOrders: ").Append(KioskCashOnXOrders).Append("\n"); + sb.Append(" QropCardOnXOrders: ").Append(QropCardOnXOrders).Append("\n"); + sb.Append(" QropCashOnXOrders: ").Append(QropCashOnXOrders).Append("\n"); + sb.Append(" PosCardOnXOrders: ").Append(PosCardOnXOrders).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3DetailsFlipdishFees); + } + + /// + /// Returns true if PayoutReport3DetailsFlipdishFees instances are equal + /// + /// Instance of PayoutReport3DetailsFlipdishFees to be compared + /// Boolean + public bool Equals(PayoutReport3DetailsFlipdishFees input) + { + if (input == null) + return false; + + return + ( + this.WebAndAppCash == input.WebAndAppCash || + (this.WebAndAppCash != null && + this.WebAndAppCash.Equals(input.WebAndAppCash)) + ) && + ( + this.WebAndAppCashRevenueIncludingTips == input.WebAndAppCashRevenueIncludingTips || + (this.WebAndAppCashRevenueIncludingTips != null && + this.WebAndAppCashRevenueIncludingTips.Equals(input.WebAndAppCashRevenueIncludingTips)) + ) && + ( + this.WebAndAppCard == input.WebAndAppCard || + (this.WebAndAppCard != null && + this.WebAndAppCard.Equals(input.WebAndAppCard)) + ) && + ( + this.WebAndAppCardRevenueIncludingTips == input.WebAndAppCardRevenueIncludingTips || + (this.WebAndAppCardRevenueIncludingTips != null && + this.WebAndAppCardRevenueIncludingTips.Equals(input.WebAndAppCardRevenueIncludingTips)) + ) && + ( + this.KioskCash == input.KioskCash || + (this.KioskCash != null && + this.KioskCash.Equals(input.KioskCash)) + ) && + ( + this.KioskCashRevenue == input.KioskCashRevenue || + (this.KioskCashRevenue != null && + this.KioskCashRevenue.Equals(input.KioskCashRevenue)) + ) && + ( + this.KioskCard == input.KioskCard || + (this.KioskCard != null && + this.KioskCard.Equals(input.KioskCard)) + ) && + ( + this.KioskCardRevenue == input.KioskCardRevenue || + (this.KioskCardRevenue != null && + this.KioskCardRevenue.Equals(input.KioskCardRevenue)) + ) && + ( + this.QropCash == input.QropCash || + (this.QropCash != null && + this.QropCash.Equals(input.QropCash)) + ) && + ( + this.QropCashRevenue == input.QropCashRevenue || + (this.QropCashRevenue != null && + this.QropCashRevenue.Equals(input.QropCashRevenue)) + ) && + ( + this.QropCard == input.QropCard || + (this.QropCard != null && + this.QropCard.Equals(input.QropCard)) + ) && + ( + this.QropCardRevenue == input.QropCardRevenue || + (this.QropCardRevenue != null && + this.QropCardRevenue.Equals(input.QropCardRevenue)) + ) && + ( + this.PosCard == input.PosCard || + (this.PosCard != null && + this.PosCard.Equals(input.PosCard)) + ) && + ( + this.PosCardRevenue == input.PosCardRevenue || + (this.PosCardRevenue != null && + this.PosCardRevenue.Equals(input.PosCardRevenue)) + ) && + ( + this.PosCardOnFlipdishOrders == input.PosCardOnFlipdishOrders || + (this.PosCardOnFlipdishOrders != null && + this.PosCardOnFlipdishOrders.Equals(input.PosCardOnFlipdishOrders)) + ) && + ( + this.OtherIntegrationFees == input.OtherIntegrationFees || + (this.OtherIntegrationFees != null && + this.OtherIntegrationFees.Equals(input.OtherIntegrationFees)) + ) && + ( + this.OtherIntegrationFeesExcludingVat == input.OtherIntegrationFeesExcludingVat || + (this.OtherIntegrationFeesExcludingVat != null && + this.OtherIntegrationFeesExcludingVat.Equals(input.OtherIntegrationFeesExcludingVat)) + ) && + ( + this.OtherIntegrationFeesVatAmount == input.OtherIntegrationFeesVatAmount || + (this.OtherIntegrationFeesVatAmount != null && + this.OtherIntegrationFeesVatAmount.Equals(input.OtherIntegrationFeesVatAmount)) + ) && + ( + this.OtherIntegrationTips == input.OtherIntegrationTips || + (this.OtherIntegrationTips != null && + this.OtherIntegrationTips.Equals(input.OtherIntegrationTips)) + ) && + ( + this.RefundedFeesOnRefundedSales == input.RefundedFeesOnRefundedSales || + (this.RefundedFeesOnRefundedSales != null && + this.RefundedFeesOnRefundedSales.Equals(input.RefundedFeesOnRefundedSales)) + ) && + ( + this.Vat == input.Vat || + (this.Vat != null && + this.Vat.Equals(input.Vat)) + ) && + ( + this.RefundedFeesOnPosSales == input.RefundedFeesOnPosSales || + (this.RefundedFeesOnPosSales != null && + this.RefundedFeesOnPosSales.Equals(input.RefundedFeesOnPosSales)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ) && + ( + this.ThirdPartyIntegrationFeesAndTips == input.ThirdPartyIntegrationFeesAndTips || + (this.ThirdPartyIntegrationFeesAndTips != null && + this.ThirdPartyIntegrationFeesAndTips.Equals(input.ThirdPartyIntegrationFeesAndTips)) + ) && + ( + this.WebAndAppCardOnXOrders == input.WebAndAppCardOnXOrders || + (this.WebAndAppCardOnXOrders != null && + this.WebAndAppCardOnXOrders.Equals(input.WebAndAppCardOnXOrders)) + ) && + ( + this.WebAndAppCashOnXOrders == input.WebAndAppCashOnXOrders || + (this.WebAndAppCashOnXOrders != null && + this.WebAndAppCashOnXOrders.Equals(input.WebAndAppCashOnXOrders)) + ) && + ( + this.KioskCardOnXOrders == input.KioskCardOnXOrders || + (this.KioskCardOnXOrders != null && + this.KioskCardOnXOrders.Equals(input.KioskCardOnXOrders)) + ) && + ( + this.KioskCashOnXOrders == input.KioskCashOnXOrders || + (this.KioskCashOnXOrders != null && + this.KioskCashOnXOrders.Equals(input.KioskCashOnXOrders)) + ) && + ( + this.QropCardOnXOrders == input.QropCardOnXOrders || + (this.QropCardOnXOrders != null && + this.QropCardOnXOrders.Equals(input.QropCardOnXOrders)) + ) && + ( + this.QropCashOnXOrders == input.QropCashOnXOrders || + (this.QropCashOnXOrders != null && + this.QropCashOnXOrders.Equals(input.QropCashOnXOrders)) + ) && + ( + this.PosCardOnXOrders == input.PosCardOnXOrders || + (this.PosCardOnXOrders != null && + this.PosCardOnXOrders.Equals(input.PosCardOnXOrders)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WebAndAppCash != null) + hashCode = hashCode * 59 + this.WebAndAppCash.GetHashCode(); + if (this.WebAndAppCashRevenueIncludingTips != null) + hashCode = hashCode * 59 + this.WebAndAppCashRevenueIncludingTips.GetHashCode(); + if (this.WebAndAppCard != null) + hashCode = hashCode * 59 + this.WebAndAppCard.GetHashCode(); + if (this.WebAndAppCardRevenueIncludingTips != null) + hashCode = hashCode * 59 + this.WebAndAppCardRevenueIncludingTips.GetHashCode(); + if (this.KioskCash != null) + hashCode = hashCode * 59 + this.KioskCash.GetHashCode(); + if (this.KioskCashRevenue != null) + hashCode = hashCode * 59 + this.KioskCashRevenue.GetHashCode(); + if (this.KioskCard != null) + hashCode = hashCode * 59 + this.KioskCard.GetHashCode(); + if (this.KioskCardRevenue != null) + hashCode = hashCode * 59 + this.KioskCardRevenue.GetHashCode(); + if (this.QropCash != null) + hashCode = hashCode * 59 + this.QropCash.GetHashCode(); + if (this.QropCashRevenue != null) + hashCode = hashCode * 59 + this.QropCashRevenue.GetHashCode(); + if (this.QropCard != null) + hashCode = hashCode * 59 + this.QropCard.GetHashCode(); + if (this.QropCardRevenue != null) + hashCode = hashCode * 59 + this.QropCardRevenue.GetHashCode(); + if (this.PosCard != null) + hashCode = hashCode * 59 + this.PosCard.GetHashCode(); + if (this.PosCardRevenue != null) + hashCode = hashCode * 59 + this.PosCardRevenue.GetHashCode(); + if (this.PosCardOnFlipdishOrders != null) + hashCode = hashCode * 59 + this.PosCardOnFlipdishOrders.GetHashCode(); + if (this.OtherIntegrationFees != null) + hashCode = hashCode * 59 + this.OtherIntegrationFees.GetHashCode(); + if (this.OtherIntegrationFeesExcludingVat != null) + hashCode = hashCode * 59 + this.OtherIntegrationFeesExcludingVat.GetHashCode(); + if (this.OtherIntegrationFeesVatAmount != null) + hashCode = hashCode * 59 + this.OtherIntegrationFeesVatAmount.GetHashCode(); + if (this.OtherIntegrationTips != null) + hashCode = hashCode * 59 + this.OtherIntegrationTips.GetHashCode(); + if (this.RefundedFeesOnRefundedSales != null) + hashCode = hashCode * 59 + this.RefundedFeesOnRefundedSales.GetHashCode(); + if (this.Vat != null) + hashCode = hashCode * 59 + this.Vat.GetHashCode(); + if (this.RefundedFeesOnPosSales != null) + hashCode = hashCode * 59 + this.RefundedFeesOnPosSales.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + if (this.ThirdPartyIntegrationFeesAndTips != null) + hashCode = hashCode * 59 + this.ThirdPartyIntegrationFeesAndTips.GetHashCode(); + if (this.WebAndAppCardOnXOrders != null) + hashCode = hashCode * 59 + this.WebAndAppCardOnXOrders.GetHashCode(); + if (this.WebAndAppCashOnXOrders != null) + hashCode = hashCode * 59 + this.WebAndAppCashOnXOrders.GetHashCode(); + if (this.KioskCardOnXOrders != null) + hashCode = hashCode * 59 + this.KioskCardOnXOrders.GetHashCode(); + if (this.KioskCashOnXOrders != null) + hashCode = hashCode * 59 + this.KioskCashOnXOrders.GetHashCode(); + if (this.QropCardOnXOrders != null) + hashCode = hashCode * 59 + this.QropCardOnXOrders.GetHashCode(); + if (this.QropCashOnXOrders != null) + hashCode = hashCode * 59 + this.QropCashOnXOrders.GetHashCode(); + if (this.PosCardOnXOrders != null) + hashCode = hashCode * 59 + this.PosCardOnXOrders.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3DetailsRevenue.cs b/src/Flipdish/Model/PayoutReport3DetailsRevenue.cs new file mode 100644 index 00000000..9103d210 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3DetailsRevenue.cs @@ -0,0 +1,224 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3DetailsRevenue + /// + [DataContract] + public partial class PayoutReport3DetailsRevenue : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// grossSales. + /// salesTax. + /// deliveryCharges. + /// otherCharges. + /// tips. + /// totalRevenue. + /// revenueForFeeCalculations. + /// drsCharges. + public PayoutReport3DetailsRevenue(PayoutReport3DetailsSalesLine grossSales = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine salesTax = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine deliveryCharges = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine otherCharges = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine tips = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine totalRevenue = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine revenueForFeeCalculations = default(PayoutReport3DetailsSalesLine), PayoutReport3DetailsSalesLine drsCharges = default(PayoutReport3DetailsSalesLine)) + { + this.GrossSales = grossSales; + this.SalesTax = salesTax; + this.DeliveryCharges = deliveryCharges; + this.OtherCharges = otherCharges; + this.Tips = tips; + this.TotalRevenue = totalRevenue; + this.RevenueForFeeCalculations = revenueForFeeCalculations; + this.DrsCharges = drsCharges; + } + + /// + /// Gets or Sets GrossSales + /// + [DataMember(Name="GrossSales", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine GrossSales { get; set; } + + /// + /// Gets or Sets SalesTax + /// + [DataMember(Name="SalesTax", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine SalesTax { get; set; } + + /// + /// Gets or Sets DeliveryCharges + /// + [DataMember(Name="DeliveryCharges", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine DeliveryCharges { get; set; } + + /// + /// Gets or Sets OtherCharges + /// + [DataMember(Name="OtherCharges", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine OtherCharges { get; set; } + + /// + /// Gets or Sets Tips + /// + [DataMember(Name="Tips", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine Tips { get; set; } + + /// + /// Gets or Sets TotalRevenue + /// + [DataMember(Name="TotalRevenue", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine TotalRevenue { get; set; } + + /// + /// Gets or Sets RevenueForFeeCalculations + /// + [DataMember(Name="RevenueForFeeCalculations", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine RevenueForFeeCalculations { get; set; } + + /// + /// Gets or Sets DrsCharges + /// + [DataMember(Name="DrsCharges", EmitDefaultValue=false)] + public PayoutReport3DetailsSalesLine DrsCharges { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3DetailsRevenue {\n"); + sb.Append(" GrossSales: ").Append(GrossSales).Append("\n"); + sb.Append(" SalesTax: ").Append(SalesTax).Append("\n"); + sb.Append(" DeliveryCharges: ").Append(DeliveryCharges).Append("\n"); + sb.Append(" OtherCharges: ").Append(OtherCharges).Append("\n"); + sb.Append(" Tips: ").Append(Tips).Append("\n"); + sb.Append(" TotalRevenue: ").Append(TotalRevenue).Append("\n"); + sb.Append(" RevenueForFeeCalculations: ").Append(RevenueForFeeCalculations).Append("\n"); + sb.Append(" DrsCharges: ").Append(DrsCharges).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3DetailsRevenue); + } + + /// + /// Returns true if PayoutReport3DetailsRevenue instances are equal + /// + /// Instance of PayoutReport3DetailsRevenue to be compared + /// Boolean + public bool Equals(PayoutReport3DetailsRevenue input) + { + if (input == null) + return false; + + return + ( + this.GrossSales == input.GrossSales || + (this.GrossSales != null && + this.GrossSales.Equals(input.GrossSales)) + ) && + ( + this.SalesTax == input.SalesTax || + (this.SalesTax != null && + this.SalesTax.Equals(input.SalesTax)) + ) && + ( + this.DeliveryCharges == input.DeliveryCharges || + (this.DeliveryCharges != null && + this.DeliveryCharges.Equals(input.DeliveryCharges)) + ) && + ( + this.OtherCharges == input.OtherCharges || + (this.OtherCharges != null && + this.OtherCharges.Equals(input.OtherCharges)) + ) && + ( + this.Tips == input.Tips || + (this.Tips != null && + this.Tips.Equals(input.Tips)) + ) && + ( + this.TotalRevenue == input.TotalRevenue || + (this.TotalRevenue != null && + this.TotalRevenue.Equals(input.TotalRevenue)) + ) && + ( + this.RevenueForFeeCalculations == input.RevenueForFeeCalculations || + (this.RevenueForFeeCalculations != null && + this.RevenueForFeeCalculations.Equals(input.RevenueForFeeCalculations)) + ) && + ( + this.DrsCharges == input.DrsCharges || + (this.DrsCharges != null && + this.DrsCharges.Equals(input.DrsCharges)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GrossSales != null) + hashCode = hashCode * 59 + this.GrossSales.GetHashCode(); + if (this.SalesTax != null) + hashCode = hashCode * 59 + this.SalesTax.GetHashCode(); + if (this.DeliveryCharges != null) + hashCode = hashCode * 59 + this.DeliveryCharges.GetHashCode(); + if (this.OtherCharges != null) + hashCode = hashCode * 59 + this.OtherCharges.GetHashCode(); + if (this.Tips != null) + hashCode = hashCode * 59 + this.Tips.GetHashCode(); + if (this.TotalRevenue != null) + hashCode = hashCode * 59 + this.TotalRevenue.GetHashCode(); + if (this.RevenueForFeeCalculations != null) + hashCode = hashCode * 59 + this.RevenueForFeeCalculations.GetHashCode(); + if (this.DrsCharges != null) + hashCode = hashCode * 59 + this.DrsCharges.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3DetailsSalesLine.cs b/src/Flipdish/Model/PayoutReport3DetailsSalesLine.cs new file mode 100644 index 00000000..eda39a7b --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3DetailsSalesLine.cs @@ -0,0 +1,158 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3DetailsSalesLine + /// + [DataContract] + public partial class PayoutReport3DetailsSalesLine : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// online. + /// pos. + /// other. + public PayoutReport3DetailsSalesLine(double? online = default(double?), double? pos = default(double?), double? other = default(double?)) + { + this.Online = online; + this.Pos = pos; + this.Other = other; + } + + /// + /// Gets or Sets Online + /// + [DataMember(Name="Online", EmitDefaultValue=false)] + public double? Online { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name="Pos", EmitDefaultValue=false)] + public double? Pos { get; set; } + + /// + /// Gets or Sets Other + /// + [DataMember(Name="Other", EmitDefaultValue=false)] + public double? Other { get; set; } + + /// + /// Gets or Sets Total + /// + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3DetailsSalesLine {\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Other: ").Append(Other).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3DetailsSalesLine); + } + + /// + /// Returns true if PayoutReport3DetailsSalesLine instances are equal + /// + /// Instance of PayoutReport3DetailsSalesLine to be compared + /// Boolean + public bool Equals(PayoutReport3DetailsSalesLine input) + { + if (input == null) + return false; + + return + ( + this.Online == input.Online || + (this.Online != null && + this.Online.Equals(input.Online)) + ) && + ( + this.Pos == input.Pos || + (this.Pos != null && + this.Pos.Equals(input.Pos)) + ) && + ( + this.Other == input.Other || + (this.Other != null && + this.Other.Equals(input.Other)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Online != null) + hashCode = hashCode * 59 + this.Online.GetHashCode(); + if (this.Pos != null) + hashCode = hashCode * 59 + this.Pos.GetHashCode(); + if (this.Other != null) + hashCode = hashCode * 59 + this.Other.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3DetailsSummary.cs b/src/Flipdish/Model/PayoutReport3DetailsSummary.cs new file mode 100644 index 00000000..3d8c4f4f --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3DetailsSummary.cs @@ -0,0 +1,224 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3DetailsSummary + /// + [DataContract] + public partial class PayoutReport3DetailsSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// revenue. + /// revenueOfWhichCash. + /// unpaidRevenue. + /// revenueForFeeCalculations. + /// flipdishFees. + /// adjustments. + /// thirdPartyIntegrationFeesAndTips. + /// total. + public PayoutReport3DetailsSummary(double? revenue = default(double?), double? revenueOfWhichCash = default(double?), double? unpaidRevenue = default(double?), double? revenueForFeeCalculations = default(double?), double? flipdishFees = default(double?), double? adjustments = default(double?), double? thirdPartyIntegrationFeesAndTips = default(double?), double? total = default(double?)) + { + this.Revenue = revenue; + this.RevenueOfWhichCash = revenueOfWhichCash; + this.UnpaidRevenue = unpaidRevenue; + this.RevenueForFeeCalculations = revenueForFeeCalculations; + this.FlipdishFees = flipdishFees; + this.Adjustments = adjustments; + this.ThirdPartyIntegrationFeesAndTips = thirdPartyIntegrationFeesAndTips; + this.Total = total; + } + + /// + /// Gets or Sets Revenue + /// + [DataMember(Name="Revenue", EmitDefaultValue=false)] + public double? Revenue { get; set; } + + /// + /// Gets or Sets RevenueOfWhichCash + /// + [DataMember(Name="RevenueOfWhichCash", EmitDefaultValue=false)] + public double? RevenueOfWhichCash { get; set; } + + /// + /// Gets or Sets UnpaidRevenue + /// + [DataMember(Name="UnpaidRevenue", EmitDefaultValue=false)] + public double? UnpaidRevenue { get; set; } + + /// + /// Gets or Sets RevenueForFeeCalculations + /// + [DataMember(Name="RevenueForFeeCalculations", EmitDefaultValue=false)] + public double? RevenueForFeeCalculations { get; set; } + + /// + /// Gets or Sets FlipdishFees + /// + [DataMember(Name="FlipdishFees", EmitDefaultValue=false)] + public double? FlipdishFees { get; set; } + + /// + /// Gets or Sets Adjustments + /// + [DataMember(Name="Adjustments", EmitDefaultValue=false)] + public double? Adjustments { get; set; } + + /// + /// Gets or Sets ThirdPartyIntegrationFeesAndTips + /// + [DataMember(Name="ThirdPartyIntegrationFeesAndTips", EmitDefaultValue=false)] + public double? ThirdPartyIntegrationFeesAndTips { get; set; } + + /// + /// Gets or Sets Total + /// + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3DetailsSummary {\n"); + sb.Append(" Revenue: ").Append(Revenue).Append("\n"); + sb.Append(" RevenueOfWhichCash: ").Append(RevenueOfWhichCash).Append("\n"); + sb.Append(" UnpaidRevenue: ").Append(UnpaidRevenue).Append("\n"); + sb.Append(" RevenueForFeeCalculations: ").Append(RevenueForFeeCalculations).Append("\n"); + sb.Append(" FlipdishFees: ").Append(FlipdishFees).Append("\n"); + sb.Append(" Adjustments: ").Append(Adjustments).Append("\n"); + sb.Append(" ThirdPartyIntegrationFeesAndTips: ").Append(ThirdPartyIntegrationFeesAndTips).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3DetailsSummary); + } + + /// + /// Returns true if PayoutReport3DetailsSummary instances are equal + /// + /// Instance of PayoutReport3DetailsSummary to be compared + /// Boolean + public bool Equals(PayoutReport3DetailsSummary input) + { + if (input == null) + return false; + + return + ( + this.Revenue == input.Revenue || + (this.Revenue != null && + this.Revenue.Equals(input.Revenue)) + ) && + ( + this.RevenueOfWhichCash == input.RevenueOfWhichCash || + (this.RevenueOfWhichCash != null && + this.RevenueOfWhichCash.Equals(input.RevenueOfWhichCash)) + ) && + ( + this.UnpaidRevenue == input.UnpaidRevenue || + (this.UnpaidRevenue != null && + this.UnpaidRevenue.Equals(input.UnpaidRevenue)) + ) && + ( + this.RevenueForFeeCalculations == input.RevenueForFeeCalculations || + (this.RevenueForFeeCalculations != null && + this.RevenueForFeeCalculations.Equals(input.RevenueForFeeCalculations)) + ) && + ( + this.FlipdishFees == input.FlipdishFees || + (this.FlipdishFees != null && + this.FlipdishFees.Equals(input.FlipdishFees)) + ) && + ( + this.Adjustments == input.Adjustments || + (this.Adjustments != null && + this.Adjustments.Equals(input.Adjustments)) + ) && + ( + this.ThirdPartyIntegrationFeesAndTips == input.ThirdPartyIntegrationFeesAndTips || + (this.ThirdPartyIntegrationFeesAndTips != null && + this.ThirdPartyIntegrationFeesAndTips.Equals(input.ThirdPartyIntegrationFeesAndTips)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revenue != null) + hashCode = hashCode * 59 + this.Revenue.GetHashCode(); + if (this.RevenueOfWhichCash != null) + hashCode = hashCode * 59 + this.RevenueOfWhichCash.GetHashCode(); + if (this.UnpaidRevenue != null) + hashCode = hashCode * 59 + this.UnpaidRevenue.GetHashCode(); + if (this.RevenueForFeeCalculations != null) + hashCode = hashCode * 59 + this.RevenueForFeeCalculations.GetHashCode(); + if (this.FlipdishFees != null) + hashCode = hashCode * 59 + this.FlipdishFees.GetHashCode(); + if (this.Adjustments != null) + hashCode = hashCode * 59 + this.Adjustments.GetHashCode(); + if (this.ThirdPartyIntegrationFeesAndTips != null) + hashCode = hashCode * 59 + this.ThirdPartyIntegrationFeesAndTips.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3Overview.cs b/src/Flipdish/Model/PayoutReport3Overview.cs new file mode 100644 index 00000000..6ea95079 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3Overview.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3Overview + /// + [DataContract] + public partial class PayoutReport3Overview : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// payoutReport3OverviewHeader. + /// payoutStores. + public PayoutReport3Overview(PayoutReport3OverviewHeader payoutReport3OverviewHeader = default(PayoutReport3OverviewHeader), List payoutStores = default(List)) + { + this.PayoutReport3OverviewHeader = payoutReport3OverviewHeader; + this.PayoutStores = payoutStores; + } + + /// + /// Gets or Sets PayoutReport3OverviewHeader + /// + [DataMember(Name="PayoutReport3OverviewHeader", EmitDefaultValue=false)] + public PayoutReport3OverviewHeader PayoutReport3OverviewHeader { get; set; } + + /// + /// Gets or Sets PayoutStores + /// + [DataMember(Name="PayoutStores", EmitDefaultValue=false)] + public List PayoutStores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3Overview {\n"); + sb.Append(" PayoutReport3OverviewHeader: ").Append(PayoutReport3OverviewHeader).Append("\n"); + sb.Append(" PayoutStores: ").Append(PayoutStores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3Overview); + } + + /// + /// Returns true if PayoutReport3Overview instances are equal + /// + /// Instance of PayoutReport3Overview to be compared + /// Boolean + public bool Equals(PayoutReport3Overview input) + { + if (input == null) + return false; + + return + ( + this.PayoutReport3OverviewHeader == input.PayoutReport3OverviewHeader || + (this.PayoutReport3OverviewHeader != null && + this.PayoutReport3OverviewHeader.Equals(input.PayoutReport3OverviewHeader)) + ) && + ( + this.PayoutStores == input.PayoutStores || + this.PayoutStores != null && + this.PayoutStores.SequenceEqual(input.PayoutStores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayoutReport3OverviewHeader != null) + hashCode = hashCode * 59 + this.PayoutReport3OverviewHeader.GetHashCode(); + if (this.PayoutStores != null) + hashCode = hashCode * 59 + this.PayoutStores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3OverviewHeader.cs b/src/Flipdish/Model/PayoutReport3OverviewHeader.cs new file mode 100644 index 00000000..03974575 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3OverviewHeader.cs @@ -0,0 +1,304 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3OverviewHeader + /// + [DataContract] + public partial class PayoutReport3OverviewHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// payoutId. + /// bankAccountId. + /// isManualPayout. + /// accountName. + /// payoutStatus. + /// createdDate. + /// periodStartTime. + /// periodEndTime. + /// destinationBank. + /// destinationAccount. + /// amount. + /// currency. + /// bankAccountHasChanged. + public PayoutReport3OverviewHeader(int? payoutId = default(int?), int? bankAccountId = default(int?), bool? isManualPayout = default(bool?), string accountName = default(string), string payoutStatus = default(string), DateTime? createdDate = default(DateTime?), DateTime? periodStartTime = default(DateTime?), DateTime? periodEndTime = default(DateTime?), string destinationBank = default(string), string destinationAccount = default(string), double? amount = default(double?), string currency = default(string), bool? bankAccountHasChanged = default(bool?)) + { + this.PayoutId = payoutId; + this.BankAccountId = bankAccountId; + this.IsManualPayout = isManualPayout; + this.AccountName = accountName; + this.PayoutStatus = payoutStatus; + this.CreatedDate = createdDate; + this.PeriodStartTime = periodStartTime; + this.PeriodEndTime = periodEndTime; + this.DestinationBank = destinationBank; + this.DestinationAccount = destinationAccount; + this.Amount = amount; + this.Currency = currency; + this.BankAccountHasChanged = bankAccountHasChanged; + } + + /// + /// Gets or Sets PayoutId + /// + [DataMember(Name="PayoutId", EmitDefaultValue=false)] + public int? PayoutId { get; set; } + + /// + /// Gets or Sets BankAccountId + /// + [DataMember(Name="BankAccountId", EmitDefaultValue=false)] + public int? BankAccountId { get; set; } + + /// + /// Gets or Sets IsManualPayout + /// + [DataMember(Name="IsManualPayout", EmitDefaultValue=false)] + public bool? IsManualPayout { get; set; } + + /// + /// Gets or Sets AccountName + /// + [DataMember(Name="AccountName", EmitDefaultValue=false)] + public string AccountName { get; set; } + + /// + /// Gets or Sets PayoutStatus + /// + [DataMember(Name="PayoutStatus", EmitDefaultValue=false)] + public string PayoutStatus { get; set; } + + /// + /// Gets or Sets CreatedDate + /// + [DataMember(Name="CreatedDate", EmitDefaultValue=false)] + public DateTime? CreatedDate { get; set; } + + /// + /// Gets or Sets PeriodStartTime + /// + [DataMember(Name="PeriodStartTime", EmitDefaultValue=false)] + public DateTime? PeriodStartTime { get; set; } + + /// + /// Gets or Sets PeriodEndTime + /// + [DataMember(Name="PeriodEndTime", EmitDefaultValue=false)] + public DateTime? PeriodEndTime { get; set; } + + /// + /// Gets or Sets DestinationBank + /// + [DataMember(Name="DestinationBank", EmitDefaultValue=false)] + public string DestinationBank { get; set; } + + /// + /// Gets or Sets DestinationAccount + /// + [DataMember(Name="DestinationAccount", EmitDefaultValue=false)] + public string DestinationAccount { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Gets or Sets BankAccountHasChanged + /// + [DataMember(Name="BankAccountHasChanged", EmitDefaultValue=false)] + public bool? BankAccountHasChanged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3OverviewHeader {\n"); + sb.Append(" PayoutId: ").Append(PayoutId).Append("\n"); + sb.Append(" BankAccountId: ").Append(BankAccountId).Append("\n"); + sb.Append(" IsManualPayout: ").Append(IsManualPayout).Append("\n"); + sb.Append(" AccountName: ").Append(AccountName).Append("\n"); + sb.Append(" PayoutStatus: ").Append(PayoutStatus).Append("\n"); + sb.Append(" CreatedDate: ").Append(CreatedDate).Append("\n"); + sb.Append(" PeriodStartTime: ").Append(PeriodStartTime).Append("\n"); + sb.Append(" PeriodEndTime: ").Append(PeriodEndTime).Append("\n"); + sb.Append(" DestinationBank: ").Append(DestinationBank).Append("\n"); + sb.Append(" DestinationAccount: ").Append(DestinationAccount).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" BankAccountHasChanged: ").Append(BankAccountHasChanged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3OverviewHeader); + } + + /// + /// Returns true if PayoutReport3OverviewHeader instances are equal + /// + /// Instance of PayoutReport3OverviewHeader to be compared + /// Boolean + public bool Equals(PayoutReport3OverviewHeader input) + { + if (input == null) + return false; + + return + ( + this.PayoutId == input.PayoutId || + (this.PayoutId != null && + this.PayoutId.Equals(input.PayoutId)) + ) && + ( + this.BankAccountId == input.BankAccountId || + (this.BankAccountId != null && + this.BankAccountId.Equals(input.BankAccountId)) + ) && + ( + this.IsManualPayout == input.IsManualPayout || + (this.IsManualPayout != null && + this.IsManualPayout.Equals(input.IsManualPayout)) + ) && + ( + this.AccountName == input.AccountName || + (this.AccountName != null && + this.AccountName.Equals(input.AccountName)) + ) && + ( + this.PayoutStatus == input.PayoutStatus || + (this.PayoutStatus != null && + this.PayoutStatus.Equals(input.PayoutStatus)) + ) && + ( + this.CreatedDate == input.CreatedDate || + (this.CreatedDate != null && + this.CreatedDate.Equals(input.CreatedDate)) + ) && + ( + this.PeriodStartTime == input.PeriodStartTime || + (this.PeriodStartTime != null && + this.PeriodStartTime.Equals(input.PeriodStartTime)) + ) && + ( + this.PeriodEndTime == input.PeriodEndTime || + (this.PeriodEndTime != null && + this.PeriodEndTime.Equals(input.PeriodEndTime)) + ) && + ( + this.DestinationBank == input.DestinationBank || + (this.DestinationBank != null && + this.DestinationBank.Equals(input.DestinationBank)) + ) && + ( + this.DestinationAccount == input.DestinationAccount || + (this.DestinationAccount != null && + this.DestinationAccount.Equals(input.DestinationAccount)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.BankAccountHasChanged == input.BankAccountHasChanged || + (this.BankAccountHasChanged != null && + this.BankAccountHasChanged.Equals(input.BankAccountHasChanged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayoutId != null) + hashCode = hashCode * 59 + this.PayoutId.GetHashCode(); + if (this.BankAccountId != null) + hashCode = hashCode * 59 + this.BankAccountId.GetHashCode(); + if (this.IsManualPayout != null) + hashCode = hashCode * 59 + this.IsManualPayout.GetHashCode(); + if (this.AccountName != null) + hashCode = hashCode * 59 + this.AccountName.GetHashCode(); + if (this.PayoutStatus != null) + hashCode = hashCode * 59 + this.PayoutStatus.GetHashCode(); + if (this.CreatedDate != null) + hashCode = hashCode * 59 + this.CreatedDate.GetHashCode(); + if (this.PeriodStartTime != null) + hashCode = hashCode * 59 + this.PeriodStartTime.GetHashCode(); + if (this.PeriodEndTime != null) + hashCode = hashCode * 59 + this.PeriodEndTime.GetHashCode(); + if (this.DestinationBank != null) + hashCode = hashCode * 59 + this.DestinationBank.GetHashCode(); + if (this.DestinationAccount != null) + hashCode = hashCode * 59 + this.DestinationAccount.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.BankAccountHasChanged != null) + hashCode = hashCode * 59 + this.BankAccountHasChanged.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3PropertyDetails.cs b/src/Flipdish/Model/PayoutReport3PropertyDetails.cs new file mode 100644 index 00000000..6c17e44e --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3PropertyDetails.cs @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3PropertyDetails + /// + [DataContract] + public partial class PayoutReport3PropertyDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// availableProperties. + /// selectedPropertyIds. + /// matchedStoreIds. + /// details. + public PayoutReport3PropertyDetails(List availableProperties = default(List), List selectedPropertyIds = default(List), List matchedStoreIds = default(List), PayoutReport3Details details = default(PayoutReport3Details)) + { + this.AvailableProperties = availableProperties; + this.SelectedPropertyIds = selectedPropertyIds; + this.MatchedStoreIds = matchedStoreIds; + this.Details = details; + } + + /// + /// Gets or Sets AvailableProperties + /// + [DataMember(Name="AvailableProperties", EmitDefaultValue=false)] + public List AvailableProperties { get; set; } + + /// + /// Gets or Sets SelectedPropertyIds + /// + [DataMember(Name="SelectedPropertyIds", EmitDefaultValue=false)] + public List SelectedPropertyIds { get; set; } + + /// + /// Gets or Sets MatchedStoreIds + /// + [DataMember(Name="MatchedStoreIds", EmitDefaultValue=false)] + public List MatchedStoreIds { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name="Details", EmitDefaultValue=false)] + public PayoutReport3Details Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3PropertyDetails {\n"); + sb.Append(" AvailableProperties: ").Append(AvailableProperties).Append("\n"); + sb.Append(" SelectedPropertyIds: ").Append(SelectedPropertyIds).Append("\n"); + sb.Append(" MatchedStoreIds: ").Append(MatchedStoreIds).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3PropertyDetails); + } + + /// + /// Returns true if PayoutReport3PropertyDetails instances are equal + /// + /// Instance of PayoutReport3PropertyDetails to be compared + /// Boolean + public bool Equals(PayoutReport3PropertyDetails input) + { + if (input == null) + return false; + + return + ( + this.AvailableProperties == input.AvailableProperties || + this.AvailableProperties != null && + this.AvailableProperties.SequenceEqual(input.AvailableProperties) + ) && + ( + this.SelectedPropertyIds == input.SelectedPropertyIds || + this.SelectedPropertyIds != null && + this.SelectedPropertyIds.SequenceEqual(input.SelectedPropertyIds) + ) && + ( + this.MatchedStoreIds == input.MatchedStoreIds || + this.MatchedStoreIds != null && + this.MatchedStoreIds.SequenceEqual(input.MatchedStoreIds) + ) && + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AvailableProperties != null) + hashCode = hashCode * 59 + this.AvailableProperties.GetHashCode(); + if (this.SelectedPropertyIds != null) + hashCode = hashCode * 59 + this.SelectedPropertyIds.GetHashCode(); + if (this.MatchedStoreIds != null) + hashCode = hashCode * 59 + this.MatchedStoreIds.GetHashCode(); + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3PropertyFilterOption.cs b/src/Flipdish/Model/PayoutReport3PropertyFilterOption.cs new file mode 100644 index 00000000..05e1e58a --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3PropertyFilterOption.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3PropertyFilterOption + /// + [DataContract] + public partial class PayoutReport3PropertyFilterOption : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// propertyId. + /// propertyName. + /// storeIds. + public PayoutReport3PropertyFilterOption(string propertyId = default(string), string propertyName = default(string), List storeIds = default(List)) + { + this.PropertyId = propertyId; + this.PropertyName = propertyName; + this.StoreIds = storeIds; + } + + /// + /// Gets or Sets PropertyId + /// + [DataMember(Name="PropertyId", EmitDefaultValue=false)] + public string PropertyId { get; set; } + + /// + /// Gets or Sets PropertyName + /// + [DataMember(Name="PropertyName", EmitDefaultValue=false)] + public string PropertyName { get; set; } + + /// + /// Gets or Sets StoreIds + /// + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3PropertyFilterOption {\n"); + sb.Append(" PropertyId: ").Append(PropertyId).Append("\n"); + sb.Append(" PropertyName: ").Append(PropertyName).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3PropertyFilterOption); + } + + /// + /// Returns true if PayoutReport3PropertyFilterOption instances are equal + /// + /// Instance of PayoutReport3PropertyFilterOption to be compared + /// Boolean + public bool Equals(PayoutReport3PropertyFilterOption input) + { + if (input == null) + return false; + + return + ( + this.PropertyId == input.PropertyId || + (this.PropertyId != null && + this.PropertyId.Equals(input.PropertyId)) + ) && + ( + this.PropertyName == input.PropertyName || + (this.PropertyName != null && + this.PropertyName.Equals(input.PropertyName)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PropertyId != null) + hashCode = hashCode * 59 + this.PropertyId.GetHashCode(); + if (this.PropertyName != null) + hashCode = hashCode * 59 + this.PropertyName.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3RefundedOrder.cs b/src/Flipdish/Model/PayoutReport3RefundedOrder.cs new file mode 100644 index 00000000..68af92c7 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3RefundedOrder.cs @@ -0,0 +1,260 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3RefundedOrder + /// + [DataContract] + public partial class PayoutReport3RefundedOrder : IEquatable + { + /// + /// Defines Type + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 1, + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 2 + } + + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// orderId. + /// placedAtTime. + /// modifiedAtTime. + /// storeName. + /// type. + /// refundedAmount. + /// refundedFees. + /// refundType. + /// cashFeeRefundedToCustomer. + public PayoutReport3RefundedOrder(int? orderId = default(int?), DateTime? placedAtTime = default(DateTime?), DateTime? modifiedAtTime = default(DateTime?), string storeName = default(string), TypeEnum? type = default(TypeEnum?), double? refundedAmount = default(double?), double? refundedFees = default(double?), string refundType = default(string), double? cashFeeRefundedToCustomer = default(double?)) + { + this.OrderId = orderId; + this.PlacedAtTime = placedAtTime; + this.ModifiedAtTime = modifiedAtTime; + this.StoreName = storeName; + this.Type = type; + this.RefundedAmount = refundedAmount; + this.RefundedFees = refundedFees; + this.RefundType = refundType; + this.CashFeeRefundedToCustomer = cashFeeRefundedToCustomer; + } + + /// + /// Gets or Sets OrderId + /// + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Gets or Sets PlacedAtTime + /// + [DataMember(Name="PlacedAtTime", EmitDefaultValue=false)] + public DateTime? PlacedAtTime { get; set; } + + /// + /// Gets or Sets ModifiedAtTime + /// + [DataMember(Name="ModifiedAtTime", EmitDefaultValue=false)] + public DateTime? ModifiedAtTime { get; set; } + + /// + /// Gets or Sets StoreName + /// + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + + /// + /// Gets or Sets RefundedAmount + /// + [DataMember(Name="RefundedAmount", EmitDefaultValue=false)] + public double? RefundedAmount { get; set; } + + /// + /// Gets or Sets RefundedFees + /// + [DataMember(Name="RefundedFees", EmitDefaultValue=false)] + public double? RefundedFees { get; set; } + + /// + /// Gets or Sets RefundType + /// + [DataMember(Name="RefundType", EmitDefaultValue=false)] + public string RefundType { get; set; } + + /// + /// Gets or Sets CashFeeRefundedToCustomer + /// + [DataMember(Name="CashFeeRefundedToCustomer", EmitDefaultValue=false)] + public double? CashFeeRefundedToCustomer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3RefundedOrder {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" PlacedAtTime: ").Append(PlacedAtTime).Append("\n"); + sb.Append(" ModifiedAtTime: ").Append(ModifiedAtTime).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" RefundedAmount: ").Append(RefundedAmount).Append("\n"); + sb.Append(" RefundedFees: ").Append(RefundedFees).Append("\n"); + sb.Append(" RefundType: ").Append(RefundType).Append("\n"); + sb.Append(" CashFeeRefundedToCustomer: ").Append(CashFeeRefundedToCustomer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3RefundedOrder); + } + + /// + /// Returns true if PayoutReport3RefundedOrder instances are equal + /// + /// Instance of PayoutReport3RefundedOrder to be compared + /// Boolean + public bool Equals(PayoutReport3RefundedOrder input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.PlacedAtTime == input.PlacedAtTime || + (this.PlacedAtTime != null && + this.PlacedAtTime.Equals(input.PlacedAtTime)) + ) && + ( + this.ModifiedAtTime == input.ModifiedAtTime || + (this.ModifiedAtTime != null && + this.ModifiedAtTime.Equals(input.ModifiedAtTime)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.RefundedAmount == input.RefundedAmount || + (this.RefundedAmount != null && + this.RefundedAmount.Equals(input.RefundedAmount)) + ) && + ( + this.RefundedFees == input.RefundedFees || + (this.RefundedFees != null && + this.RefundedFees.Equals(input.RefundedFees)) + ) && + ( + this.RefundType == input.RefundType || + (this.RefundType != null && + this.RefundType.Equals(input.RefundType)) + ) && + ( + this.CashFeeRefundedToCustomer == input.CashFeeRefundedToCustomer || + (this.CashFeeRefundedToCustomer != null && + this.CashFeeRefundedToCustomer.Equals(input.CashFeeRefundedToCustomer)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.PlacedAtTime != null) + hashCode = hashCode * 59 + this.PlacedAtTime.GetHashCode(); + if (this.ModifiedAtTime != null) + hashCode = hashCode * 59 + this.ModifiedAtTime.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.RefundedAmount != null) + hashCode = hashCode * 59 + this.RefundedAmount.GetHashCode(); + if (this.RefundedFees != null) + hashCode = hashCode * 59 + this.RefundedFees.GetHashCode(); + if (this.RefundType != null) + hashCode = hashCode * 59 + this.RefundType.GetHashCode(); + if (this.CashFeeRefundedToCustomer != null) + hashCode = hashCode * 59 + this.CashFeeRefundedToCustomer.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3Store.cs b/src/Flipdish/Model/PayoutReport3Store.cs new file mode 100644 index 00000000..5658fa44 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3Store.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3Store + /// + [DataContract] + public partial class PayoutReport3Store : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// storeId. + /// storeName. + public PayoutReport3Store(int? storeId = default(int?), string storeName = default(string)) + { + this.StoreId = storeId; + this.StoreName = storeName; + } + + /// + /// Gets or Sets StoreId + /// + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Gets or Sets StoreName + /// + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3Store {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3Store); + } + + /// + /// Returns true if PayoutReport3Store instances are equal + /// + /// Instance of PayoutReport3Store to be compared + /// Boolean + public bool Equals(PayoutReport3Store input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3StorePayout.cs b/src/Flipdish/Model/PayoutReport3StorePayout.cs new file mode 100644 index 00000000..3fb216e3 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3StorePayout.cs @@ -0,0 +1,224 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3StorePayout + /// + [DataContract] + public partial class PayoutReport3StorePayout : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// storeId. + /// storeName. + /// summaryTotalPayout. + /// summaryRevenue. + /// summaryCashRevenue. + /// summaryTotalFlipdishFees. + /// summaryAdjustments. + /// currency. + public PayoutReport3StorePayout(int? storeId = default(int?), string storeName = default(string), double? summaryTotalPayout = default(double?), double? summaryRevenue = default(double?), double? summaryCashRevenue = default(double?), double? summaryTotalFlipdishFees = default(double?), double? summaryAdjustments = default(double?), string currency = default(string)) + { + this.StoreId = storeId; + this.StoreName = storeName; + this.SummaryTotalPayout = summaryTotalPayout; + this.SummaryRevenue = summaryRevenue; + this.SummaryCashRevenue = summaryCashRevenue; + this.SummaryTotalFlipdishFees = summaryTotalFlipdishFees; + this.SummaryAdjustments = summaryAdjustments; + this.Currency = currency; + } + + /// + /// Gets or Sets StoreId + /// + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Gets or Sets StoreName + /// + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Gets or Sets SummaryTotalPayout + /// + [DataMember(Name="SummaryTotalPayout", EmitDefaultValue=false)] + public double? SummaryTotalPayout { get; set; } + + /// + /// Gets or Sets SummaryRevenue + /// + [DataMember(Name="SummaryRevenue", EmitDefaultValue=false)] + public double? SummaryRevenue { get; set; } + + /// + /// Gets or Sets SummaryCashRevenue + /// + [DataMember(Name="SummaryCashRevenue", EmitDefaultValue=false)] + public double? SummaryCashRevenue { get; set; } + + /// + /// Gets or Sets SummaryTotalFlipdishFees + /// + [DataMember(Name="SummaryTotalFlipdishFees", EmitDefaultValue=false)] + public double? SummaryTotalFlipdishFees { get; set; } + + /// + /// Gets or Sets SummaryAdjustments + /// + [DataMember(Name="SummaryAdjustments", EmitDefaultValue=false)] + public double? SummaryAdjustments { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name="Currency", EmitDefaultValue=false)] + public string Currency { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3StorePayout {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" SummaryTotalPayout: ").Append(SummaryTotalPayout).Append("\n"); + sb.Append(" SummaryRevenue: ").Append(SummaryRevenue).Append("\n"); + sb.Append(" SummaryCashRevenue: ").Append(SummaryCashRevenue).Append("\n"); + sb.Append(" SummaryTotalFlipdishFees: ").Append(SummaryTotalFlipdishFees).Append("\n"); + sb.Append(" SummaryAdjustments: ").Append(SummaryAdjustments).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3StorePayout); + } + + /// + /// Returns true if PayoutReport3StorePayout instances are equal + /// + /// Instance of PayoutReport3StorePayout to be compared + /// Boolean + public bool Equals(PayoutReport3StorePayout input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.SummaryTotalPayout == input.SummaryTotalPayout || + (this.SummaryTotalPayout != null && + this.SummaryTotalPayout.Equals(input.SummaryTotalPayout)) + ) && + ( + this.SummaryRevenue == input.SummaryRevenue || + (this.SummaryRevenue != null && + this.SummaryRevenue.Equals(input.SummaryRevenue)) + ) && + ( + this.SummaryCashRevenue == input.SummaryCashRevenue || + (this.SummaryCashRevenue != null && + this.SummaryCashRevenue.Equals(input.SummaryCashRevenue)) + ) && + ( + this.SummaryTotalFlipdishFees == input.SummaryTotalFlipdishFees || + (this.SummaryTotalFlipdishFees != null && + this.SummaryTotalFlipdishFees.Equals(input.SummaryTotalFlipdishFees)) + ) && + ( + this.SummaryAdjustments == input.SummaryAdjustments || + (this.SummaryAdjustments != null && + this.SummaryAdjustments.Equals(input.SummaryAdjustments)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.SummaryTotalPayout != null) + hashCode = hashCode * 59 + this.SummaryTotalPayout.GetHashCode(); + if (this.SummaryRevenue != null) + hashCode = hashCode * 59 + this.SummaryRevenue.GetHashCode(); + if (this.SummaryCashRevenue != null) + hashCode = hashCode * 59 + this.SummaryCashRevenue.GetHashCode(); + if (this.SummaryTotalFlipdishFees != null) + hashCode = hashCode * 59 + this.SummaryTotalFlipdishFees.GetHashCode(); + if (this.SummaryAdjustments != null) + hashCode = hashCode * 59 + this.SummaryAdjustments.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutReport3StorePayouts.cs b/src/Flipdish/Model/PayoutReport3StorePayouts.cs new file mode 100644 index 00000000..09147ff8 --- /dev/null +++ b/src/Flipdish/Model/PayoutReport3StorePayouts.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PayoutReport3StorePayouts + /// + [DataContract] + public partial class PayoutReport3StorePayouts : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// stores. + public PayoutReport3StorePayouts(List stores = default(List)) + { + this.Stores = stores; + } + + /// + /// Gets or Sets Stores + /// + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutReport3StorePayouts {\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutReport3StorePayouts); + } + + /// + /// Returns true if PayoutReport3StorePayouts instances are equal + /// + /// Instance of PayoutReport3StorePayouts to be compared + /// Boolean + public bool Equals(PayoutReport3StorePayouts input) + { + if (input == null) + return false; + + return + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutRequestIds.cs b/src/Flipdish/Model/PayoutRequestIds.cs new file mode 100644 index 00000000..50b254ed --- /dev/null +++ b/src/Flipdish/Model/PayoutRequestIds.cs @@ -0,0 +1,169 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Payout Request ids for filtering on Payouts + /// + [DataContract] + public partial class PayoutRequestIds : IEquatable + { + /// + /// Defines States + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatesEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum InTransit for value: InTransit + /// + [EnumMember(Value = "InTransit")] + InTransit = 2, + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 5 + } + + + /// + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + /// + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + [DataMember(Name="States", EmitDefaultValue=false)] + public List States { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// List of bank account ids to search for. + /// List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for. + public PayoutRequestIds(List bankAccountIds = default(List), List states = default(List)) + { + this.BankAccountIds = bankAccountIds; + this.States = states; + } + + /// + /// List of bank account ids to search for + /// + /// List of bank account ids to search for + [DataMember(Name="BankAccountIds", EmitDefaultValue=false)] + public List BankAccountIds { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutRequestIds {\n"); + sb.Append(" BankAccountIds: ").Append(BankAccountIds).Append("\n"); + sb.Append(" States: ").Append(States).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutRequestIds); + } + + /// + /// Returns true if PayoutRequestIds instances are equal + /// + /// Instance of PayoutRequestIds to be compared + /// Boolean + public bool Equals(PayoutRequestIds input) + { + if (input == null) + return false; + + return + ( + this.BankAccountIds == input.BankAccountIds || + this.BankAccountIds != null && + this.BankAccountIds.SequenceEqual(input.BankAccountIds) + ) && + ( + this.States == input.States || + this.States != null && + this.States.SequenceEqual(input.States) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankAccountIds != null) + hashCode = hashCode * 59 + this.BankAccountIds.GetHashCode(); + if (this.States != null) + hashCode = hashCode * 59 + this.States.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutStore.cs b/src/Flipdish/Model/PayoutStore.cs new file mode 100644 index 00000000..8052b739 --- /dev/null +++ b/src/Flipdish/Model/PayoutStore.cs @@ -0,0 +1,298 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Payout details for a single store + /// + [DataContract] + public partial class PayoutStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the Store.. + /// Name of the store. + /// Amount of the payout for this Store. + /// Revenue details. + /// Revenue Adjustments breakdown. + /// Fees breakdown. + /// Chargebacks breakdown. + /// Breakdown of other charges. + /// Period opening and closing balance. + /// Breakdown of POS charges. + /// Third party integration fees. + public PayoutStore(int? storeId = default(int?), string storeName = default(string), double? amount = default(double?), RevenueDetail revenue = default(RevenueDetail), RevenueAdjustmentsDetails revenueAdjustments = default(RevenueAdjustmentsDetails), FlipdishFeesDetails flipdishFees = default(FlipdishFeesDetails), ChargebackDetails chargebacks = default(ChargebackDetails), OtherChargesDetails otherCharges = default(OtherChargesDetails), BalanceDetails balance = default(BalanceDetails), PosRevenueDetails posRevenue = default(PosRevenueDetails), ThirdPartyFeesDetails thirdPartyFees = default(ThirdPartyFeesDetails)) + { + this.StoreId = storeId; + this.StoreName = storeName; + this.Amount = amount; + this.Revenue = revenue; + this.RevenueAdjustments = revenueAdjustments; + this.FlipdishFees = flipdishFees; + this.Chargebacks = chargebacks; + this.OtherCharges = otherCharges; + this.Balance = balance; + this.PosRevenue = posRevenue; + this.ThirdPartyFees = thirdPartyFees; + } + + /// + /// The id of the Store. + /// + /// The id of the Store. + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name of the store + /// + /// Name of the store + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Amount of the payout for this Store + /// + /// Amount of the payout for this Store + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Revenue details (DEPRECATED: Use Revenue) + /// + /// Revenue details (DEPRECATED: Use Revenue) + [DataMember(Name="OnlineRevenue", EmitDefaultValue=false)] + public RevenueDetail OnlineRevenue { get; private set; } + + /// + /// Revenue details + /// + /// Revenue details + [DataMember(Name="Revenue", EmitDefaultValue=false)] + public RevenueDetail Revenue { get; set; } + + /// + /// Revenue Adjustments breakdown + /// + /// Revenue Adjustments breakdown + [DataMember(Name="RevenueAdjustments", EmitDefaultValue=false)] + public RevenueAdjustmentsDetails RevenueAdjustments { get; set; } + + /// + /// Fees breakdown + /// + /// Fees breakdown + [DataMember(Name="FlipdishFees", EmitDefaultValue=false)] + public FlipdishFeesDetails FlipdishFees { get; set; } + + /// + /// Chargebacks breakdown + /// + /// Chargebacks breakdown + [DataMember(Name="Chargebacks", EmitDefaultValue=false)] + public ChargebackDetails Chargebacks { get; set; } + + /// + /// Breakdown of other charges + /// + /// Breakdown of other charges + [DataMember(Name="OtherCharges", EmitDefaultValue=false)] + public OtherChargesDetails OtherCharges { get; set; } + + /// + /// Period opening and closing balance + /// + /// Period opening and closing balance + [DataMember(Name="Balance", EmitDefaultValue=false)] + public BalanceDetails Balance { get; set; } + + /// + /// Breakdown of POS charges + /// + /// Breakdown of POS charges + [DataMember(Name="PosRevenue", EmitDefaultValue=false)] + public PosRevenueDetails PosRevenue { get; set; } + + /// + /// Third party integration fees + /// + /// Third party integration fees + [DataMember(Name="ThirdPartyFees", EmitDefaultValue=false)] + public ThirdPartyFeesDetails ThirdPartyFees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutStore {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" OnlineRevenue: ").Append(OnlineRevenue).Append("\n"); + sb.Append(" Revenue: ").Append(Revenue).Append("\n"); + sb.Append(" RevenueAdjustments: ").Append(RevenueAdjustments).Append("\n"); + sb.Append(" FlipdishFees: ").Append(FlipdishFees).Append("\n"); + sb.Append(" Chargebacks: ").Append(Chargebacks).Append("\n"); + sb.Append(" OtherCharges: ").Append(OtherCharges).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append(" PosRevenue: ").Append(PosRevenue).Append("\n"); + sb.Append(" ThirdPartyFees: ").Append(ThirdPartyFees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutStore); + } + + /// + /// Returns true if PayoutStore instances are equal + /// + /// Instance of PayoutStore to be compared + /// Boolean + public bool Equals(PayoutStore input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.OnlineRevenue == input.OnlineRevenue || + (this.OnlineRevenue != null && + this.OnlineRevenue.Equals(input.OnlineRevenue)) + ) && + ( + this.Revenue == input.Revenue || + (this.Revenue != null && + this.Revenue.Equals(input.Revenue)) + ) && + ( + this.RevenueAdjustments == input.RevenueAdjustments || + (this.RevenueAdjustments != null && + this.RevenueAdjustments.Equals(input.RevenueAdjustments)) + ) && + ( + this.FlipdishFees == input.FlipdishFees || + (this.FlipdishFees != null && + this.FlipdishFees.Equals(input.FlipdishFees)) + ) && + ( + this.Chargebacks == input.Chargebacks || + (this.Chargebacks != null && + this.Chargebacks.Equals(input.Chargebacks)) + ) && + ( + this.OtherCharges == input.OtherCharges || + (this.OtherCharges != null && + this.OtherCharges.Equals(input.OtherCharges)) + ) && + ( + this.Balance == input.Balance || + (this.Balance != null && + this.Balance.Equals(input.Balance)) + ) && + ( + this.PosRevenue == input.PosRevenue || + (this.PosRevenue != null && + this.PosRevenue.Equals(input.PosRevenue)) + ) && + ( + this.ThirdPartyFees == input.ThirdPartyFees || + (this.ThirdPartyFees != null && + this.ThirdPartyFees.Equals(input.ThirdPartyFees)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.OnlineRevenue != null) + hashCode = hashCode * 59 + this.OnlineRevenue.GetHashCode(); + if (this.Revenue != null) + hashCode = hashCode * 59 + this.Revenue.GetHashCode(); + if (this.RevenueAdjustments != null) + hashCode = hashCode * 59 + this.RevenueAdjustments.GetHashCode(); + if (this.FlipdishFees != null) + hashCode = hashCode * 59 + this.FlipdishFees.GetHashCode(); + if (this.Chargebacks != null) + hashCode = hashCode * 59 + this.Chargebacks.GetHashCode(); + if (this.OtherCharges != null) + hashCode = hashCode * 59 + this.OtherCharges.GetHashCode(); + if (this.Balance != null) + hashCode = hashCode * 59 + this.Balance.GetHashCode(); + if (this.PosRevenue != null) + hashCode = hashCode * 59 + this.PosRevenue.GetHashCode(); + if (this.ThirdPartyFees != null) + hashCode = hashCode * 59 + this.ThirdPartyFees.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PayoutSummary.cs b/src/Flipdish/Model/PayoutSummary.cs new file mode 100644 index 00000000..a23f44ae --- /dev/null +++ b/src/Flipdish/Model/PayoutSummary.cs @@ -0,0 +1,890 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Holds the information for a whitelabel payouts summary. + /// + [DataContract] + public partial class PayoutSummary : IEquatable + { + /// + /// Status of the payout + /// + /// Status of the payout + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutStatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum InTransit for value: InTransit + /// + [EnumMember(Value = "InTransit")] + InTransit = 2, + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4, + + /// + /// Enum Cancelled for value: Cancelled + /// + [EnumMember(Value = "Cancelled")] + Cancelled = 5 + } + + /// + /// Status of the payout + /// + /// Status of the payout + [DataMember(Name="PayoutStatus", EmitDefaultValue=false)] + public PayoutStatusEnum? PayoutStatus { get; set; } + /// + /// Payout currency + /// + /// Payout currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Payout currency + /// + /// Payout currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Status of the payout. + /// Total payouts amount. + /// Payout currency. + /// Total payouts count. + public PayoutSummary(PayoutStatusEnum? payoutStatus = default(PayoutStatusEnum?), double? totalAmount = default(double?), CurrencyEnum? currency = default(CurrencyEnum?), int? totalCount = default(int?)) + { + this.PayoutStatus = payoutStatus; + this.TotalAmount = totalAmount; + this.Currency = currency; + this.TotalCount = totalCount; + } + + + /// + /// Total payouts amount + /// + /// Total payouts amount + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public double? TotalAmount { get; set; } + + + /// + /// Total payouts count + /// + /// Total payouts count + [DataMember(Name="TotalCount", EmitDefaultValue=false)] + public int? TotalCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PayoutSummary {\n"); + sb.Append(" PayoutStatus: ").Append(PayoutStatus).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" TotalCount: ").Append(TotalCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PayoutSummary); + } + + /// + /// Returns true if PayoutSummary instances are equal + /// + /// Instance of PayoutSummary to be compared + /// Boolean + public bool Equals(PayoutSummary input) + { + if (input == null) + return false; + + return + ( + this.PayoutStatus == input.PayoutStatus || + (this.PayoutStatus != null && + this.PayoutStatus.Equals(input.PayoutStatus)) + ) && + ( + this.TotalAmount == input.TotalAmount || + (this.TotalAmount != null && + this.TotalAmount.Equals(input.TotalAmount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.TotalCount == input.TotalCount || + (this.TotalCount != null && + this.TotalCount.Equals(input.TotalCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayoutStatus != null) + hashCode = hashCode * 59 + this.PayoutStatus.GetHashCode(); + if (this.TotalAmount != null) + hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.TotalCount != null) + hashCode = hashCode * 59 + this.TotalCount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PendingInvitation.cs b/src/Flipdish/Model/PendingInvitation.cs new file mode 100644 index 00000000..7e3ed8e5 --- /dev/null +++ b/src/Flipdish/Model/PendingInvitation.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// An invitation to join a team at Flipdish. + /// + [DataContract] + public partial class PendingInvitation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the brand that you have been invited to join.. + /// The email address that the invitation was sent to.. + /// The one-time code that can be used to accept the invitation.. + /// The time that the invitation was created.. + public PendingInvitation(string appName = default(string), string email = default(string), string otc = default(string), DateTime? createdAt = default(DateTime?)) + { + this.AppName = appName; + this.Email = email; + this.Otc = otc; + this.CreatedAt = createdAt; + } + + /// + /// The name of the brand that you have been invited to join. + /// + /// The name of the brand that you have been invited to join. + [DataMember(Name="AppName", EmitDefaultValue=false)] + public string AppName { get; set; } + + /// + /// The email address that the invitation was sent to. + /// + /// The email address that the invitation was sent to. + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// The one-time code that can be used to accept the invitation. + /// + /// The one-time code that can be used to accept the invitation. + [DataMember(Name="Otc", EmitDefaultValue=false)] + public string Otc { get; set; } + + /// + /// The time that the invitation was created. + /// + /// The time that the invitation was created. + [DataMember(Name="CreatedAt", EmitDefaultValue=false)] + public DateTime? CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PendingInvitation {\n"); + sb.Append(" AppName: ").Append(AppName).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Otc: ").Append(Otc).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PendingInvitation); + } + + /// + /// Returns true if PendingInvitation instances are equal + /// + /// Instance of PendingInvitation to be compared + /// Boolean + public bool Equals(PendingInvitation input) + { + if (input == null) + return false; + + return + ( + this.AppName == input.AppName || + (this.AppName != null && + this.AppName.Equals(input.AppName)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.Otc == input.Otc || + (this.Otc != null && + this.Otc.Equals(input.Otc)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppName != null) + hashCode = hashCode * 59 + this.AppName.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.Otc != null) + hashCode = hashCode * 59 + this.Otc.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PendingMenuChanges.cs b/src/Flipdish/Model/PendingMenuChanges.cs new file mode 100644 index 00000000..e6b8f6cd --- /dev/null +++ b/src/Flipdish/Model/PendingMenuChanges.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Pending Menu Changes + /// + [DataContract] + public partial class PendingMenuChanges : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog item id. + /// Unique menu id. + public PendingMenuChanges(string catalogItemId = default(string), int? menuId = default(int?)) + { + this.CatalogItemId = catalogItemId; + this.MenuId = menuId; + } + + /// + /// Unique catalog item id + /// + /// Unique catalog item id + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Unique menu id + /// + /// Unique menu id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PendingMenuChanges {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PendingMenuChanges); + } + + /// + /// Returns true if PendingMenuChanges instances are equal + /// + /// Instance of PendingMenuChanges to be compared + /// Boolean + public bool Equals(PendingMenuChanges input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PendingMenuChangesSummaries.cs b/src/Flipdish/Model/PendingMenuChangesSummaries.cs new file mode 100644 index 00000000..341cb6ff --- /dev/null +++ b/src/Flipdish/Model/PendingMenuChangesSummaries.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Pending menu changes summaries + /// + [DataContract] + public partial class PendingMenuChangesSummaries : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Menu id. + /// Sum of pending changes per menu id. + public PendingMenuChangesSummaries(int? menuId = default(int?), int? totalPendingChanges = default(int?)) + { + this.MenuId = menuId; + this.TotalPendingChanges = totalPendingChanges; + } + + /// + /// Menu id + /// + /// Menu id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Sum of pending changes per menu id + /// + /// Sum of pending changes per menu id + [DataMember(Name="TotalPendingChanges", EmitDefaultValue=false)] + public int? TotalPendingChanges { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PendingMenuChangesSummaries {\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" TotalPendingChanges: ").Append(TotalPendingChanges).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PendingMenuChangesSummaries); + } + + /// + /// Returns true if PendingMenuChangesSummaries instances are equal + /// + /// Instance of PendingMenuChangesSummaries to be compared + /// Boolean + public bool Equals(PendingMenuChangesSummaries input) + { + if (input == null) + return false; + + return + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.TotalPendingChanges == input.TotalPendingChanges || + (this.TotalPendingChanges != null && + this.TotalPendingChanges.Equals(input.TotalPendingChanges)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.TotalPendingChanges != null) + hashCode = hashCode * 59 + this.TotalPendingChanges.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PercentDiscountDetails.cs b/src/Flipdish/Model/PercentDiscountDetails.cs new file mode 100644 index 00000000..292b65af --- /dev/null +++ b/src/Flipdish/Model/PercentDiscountDetails.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Percent discount details + /// + [DataContract] + public partial class PercentDiscountDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Percentage discount. + /// The maximum amount that the percentage discount value can be. If not set then there is no maximum. If set to e.g. 20 euro, and the percentage discount is 25%, and the order total is 100 euro, then the discount will be 20 euro (not 25 euro).. + public PercentDiscountDetails(int? percentageDiscount = default(int?), double? maxDiscountAmount = default(double?)) + { + this.PercentageDiscount = percentageDiscount; + this.MaxDiscountAmount = maxDiscountAmount; + } + + /// + /// Percentage discount + /// + /// Percentage discount + [DataMember(Name="PercentageDiscount", EmitDefaultValue=false)] + public int? PercentageDiscount { get; set; } + + /// + /// The maximum amount that the percentage discount value can be. If not set then there is no maximum. If set to e.g. 20 euro, and the percentage discount is 25%, and the order total is 100 euro, then the discount will be 20 euro (not 25 euro). + /// + /// The maximum amount that the percentage discount value can be. If not set then there is no maximum. If set to e.g. 20 euro, and the percentage discount is 25%, and the order total is 100 euro, then the discount will be 20 euro (not 25 euro). + [DataMember(Name="MaxDiscountAmount", EmitDefaultValue=false)] + public double? MaxDiscountAmount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PercentDiscountDetails {\n"); + sb.Append(" PercentageDiscount: ").Append(PercentageDiscount).Append("\n"); + sb.Append(" MaxDiscountAmount: ").Append(MaxDiscountAmount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PercentDiscountDetails); + } + + /// + /// Returns true if PercentDiscountDetails instances are equal + /// + /// Instance of PercentDiscountDetails to be compared + /// Boolean + public bool Equals(PercentDiscountDetails input) + { + if (input == null) + return false; + + return + ( + this.PercentageDiscount == input.PercentageDiscount || + (this.PercentageDiscount != null && + this.PercentageDiscount.Equals(input.PercentageDiscount)) + ) && + ( + this.MaxDiscountAmount == input.MaxDiscountAmount || + (this.MaxDiscountAmount != null && + this.MaxDiscountAmount.Equals(input.MaxDiscountAmount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PercentageDiscount != null) + hashCode = hashCode * 59 + this.PercentageDiscount.GetHashCode(); + if (this.MaxDiscountAmount != null) + hashCode = hashCode * 59 + this.MaxDiscountAmount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PhoneCall.cs b/src/Flipdish/Model/PhoneCall.cs new file mode 100644 index 00000000..1589b383 --- /dev/null +++ b/src/Flipdish/Model/PhoneCall.cs @@ -0,0 +1,346 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Phone call + /// + [DataContract] + public partial class PhoneCall : IEquatable + { + /// + /// The status of the call + /// + /// The status of the call + [JsonConverter(typeof(StringEnumConverter))] + public enum CallStatusEnum + { + + /// + /// Enum Queued for value: Queued + /// + [EnumMember(Value = "Queued")] + Queued = 1, + + /// + /// Enum Ringing for value: Ringing + /// + [EnumMember(Value = "Ringing")] + Ringing = 2, + + /// + /// Enum InProgress for value: InProgress + /// + [EnumMember(Value = "InProgress")] + InProgress = 3, + + /// + /// Enum Completed for value: Completed + /// + [EnumMember(Value = "Completed")] + Completed = 4, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 5, + + /// + /// Enum Busy for value: Busy + /// + [EnumMember(Value = "Busy")] + Busy = 6, + + /// + /// Enum NoAnswer for value: NoAnswer + /// + [EnumMember(Value = "NoAnswer")] + NoAnswer = 7, + + /// + /// Enum Unknown for value: Unknown + /// + [EnumMember(Value = "Unknown")] + Unknown = 8, + + /// + /// Enum Canceled for value: Canceled + /// + [EnumMember(Value = "Canceled")] + Canceled = 9 + } + + /// + /// The status of the call + /// + /// The status of the call + [DataMember(Name="CallStatus", EmitDefaultValue=false)] + public CallStatusEnum? CallStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Phone call id. + /// Twilio Call SID. + /// Time of the call. + /// Time of the call, local to the store to which the call was made. + /// ID of the store that the call was TO. + /// Name of the store that the call was TO. + /// Name of the caller. + /// UserID of the caller. + /// Phone number of the caller. + /// The amount of time the call took. + /// The status of the call. + public PhoneCall(int? phoneCallId = default(int?), string callSid = default(string), DateTime? timeOfCall = default(DateTime?), DateTime? timeOfCallLocal = default(DateTime?), int? storeId = default(int?), string storeName = default(string), string callerName = default(string), int? callerUserId = default(int?), string callerNumber = default(string), int? callLengthInSeconds = default(int?), CallStatusEnum? callStatus = default(CallStatusEnum?)) + { + this.PhoneCallId = phoneCallId; + this.CallSid = callSid; + this.TimeOfCall = timeOfCall; + this.TimeOfCallLocal = timeOfCallLocal; + this.StoreId = storeId; + this.StoreName = storeName; + this.CallerName = callerName; + this.CallerUserId = callerUserId; + this.CallerNumber = callerNumber; + this.CallLengthInSeconds = callLengthInSeconds; + this.CallStatus = callStatus; + } + + /// + /// Phone call id + /// + /// Phone call id + [DataMember(Name="PhoneCallId", EmitDefaultValue=false)] + public int? PhoneCallId { get; set; } + + /// + /// Twilio Call SID + /// + /// Twilio Call SID + [DataMember(Name="CallSid", EmitDefaultValue=false)] + public string CallSid { get; set; } + + /// + /// Time of the call + /// + /// Time of the call + [DataMember(Name="TimeOfCall", EmitDefaultValue=false)] + public DateTime? TimeOfCall { get; set; } + + /// + /// Time of the call, local to the store to which the call was made + /// + /// Time of the call, local to the store to which the call was made + [DataMember(Name="TimeOfCallLocal", EmitDefaultValue=false)] + public DateTime? TimeOfCallLocal { get; set; } + + /// + /// ID of the store that the call was TO + /// + /// ID of the store that the call was TO + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name of the store that the call was TO + /// + /// Name of the store that the call was TO + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Name of the caller + /// + /// Name of the caller + [DataMember(Name="CallerName", EmitDefaultValue=false)] + public string CallerName { get; set; } + + /// + /// UserID of the caller + /// + /// UserID of the caller + [DataMember(Name="CallerUserId", EmitDefaultValue=false)] + public int? CallerUserId { get; set; } + + /// + /// Phone number of the caller + /// + /// Phone number of the caller + [DataMember(Name="CallerNumber", EmitDefaultValue=false)] + public string CallerNumber { get; set; } + + /// + /// The amount of time the call took + /// + /// The amount of time the call took + [DataMember(Name="CallLengthInSeconds", EmitDefaultValue=false)] + public int? CallLengthInSeconds { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PhoneCall {\n"); + sb.Append(" PhoneCallId: ").Append(PhoneCallId).Append("\n"); + sb.Append(" CallSid: ").Append(CallSid).Append("\n"); + sb.Append(" TimeOfCall: ").Append(TimeOfCall).Append("\n"); + sb.Append(" TimeOfCallLocal: ").Append(TimeOfCallLocal).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" CallerName: ").Append(CallerName).Append("\n"); + sb.Append(" CallerUserId: ").Append(CallerUserId).Append("\n"); + sb.Append(" CallerNumber: ").Append(CallerNumber).Append("\n"); + sb.Append(" CallLengthInSeconds: ").Append(CallLengthInSeconds).Append("\n"); + sb.Append(" CallStatus: ").Append(CallStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhoneCall); + } + + /// + /// Returns true if PhoneCall instances are equal + /// + /// Instance of PhoneCall to be compared + /// Boolean + public bool Equals(PhoneCall input) + { + if (input == null) + return false; + + return + ( + this.PhoneCallId == input.PhoneCallId || + (this.PhoneCallId != null && + this.PhoneCallId.Equals(input.PhoneCallId)) + ) && + ( + this.CallSid == input.CallSid || + (this.CallSid != null && + this.CallSid.Equals(input.CallSid)) + ) && + ( + this.TimeOfCall == input.TimeOfCall || + (this.TimeOfCall != null && + this.TimeOfCall.Equals(input.TimeOfCall)) + ) && + ( + this.TimeOfCallLocal == input.TimeOfCallLocal || + (this.TimeOfCallLocal != null && + this.TimeOfCallLocal.Equals(input.TimeOfCallLocal)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.CallerName == input.CallerName || + (this.CallerName != null && + this.CallerName.Equals(input.CallerName)) + ) && + ( + this.CallerUserId == input.CallerUserId || + (this.CallerUserId != null && + this.CallerUserId.Equals(input.CallerUserId)) + ) && + ( + this.CallerNumber == input.CallerNumber || + (this.CallerNumber != null && + this.CallerNumber.Equals(input.CallerNumber)) + ) && + ( + this.CallLengthInSeconds == input.CallLengthInSeconds || + (this.CallLengthInSeconds != null && + this.CallLengthInSeconds.Equals(input.CallLengthInSeconds)) + ) && + ( + this.CallStatus == input.CallStatus || + (this.CallStatus != null && + this.CallStatus.Equals(input.CallStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneCallId != null) + hashCode = hashCode * 59 + this.PhoneCallId.GetHashCode(); + if (this.CallSid != null) + hashCode = hashCode * 59 + this.CallSid.GetHashCode(); + if (this.TimeOfCall != null) + hashCode = hashCode * 59 + this.TimeOfCall.GetHashCode(); + if (this.TimeOfCallLocal != null) + hashCode = hashCode * 59 + this.TimeOfCallLocal.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.CallerName != null) + hashCode = hashCode * 59 + this.CallerName.GetHashCode(); + if (this.CallerUserId != null) + hashCode = hashCode * 59 + this.CallerUserId.GetHashCode(); + if (this.CallerNumber != null) + hashCode = hashCode * 59 + this.CallerNumber.GetHashCode(); + if (this.CallLengthInSeconds != null) + hashCode = hashCode * 59 + this.CallLengthInSeconds.GetHashCode(); + if (this.CallStatus != null) + hashCode = hashCode * 59 + this.CallStatus.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PhoneCallEndedEvent.cs b/src/Flipdish/Model/PhoneCallEndedEvent.cs new file mode 100644 index 00000000..63221e46 --- /dev/null +++ b/src/Flipdish/Model/PhoneCallEndedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Phone call ended event + /// + [DataContract] + public partial class PhoneCallEndedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// The phone call. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PhoneCallEndedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), PhoneCall phoneCall = default(PhoneCall), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.PhoneCall = phoneCall; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// The phone call + /// + /// The phone call + [DataMember(Name="PhoneCall", EmitDefaultValue=false)] + public PhoneCall PhoneCall { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PhoneCallEndedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" PhoneCall: ").Append(PhoneCall).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhoneCallEndedEvent); + } + + /// + /// Returns true if PhoneCallEndedEvent instances are equal + /// + /// Instance of PhoneCallEndedEvent to be compared + /// Boolean + public bool Equals(PhoneCallEndedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.PhoneCall == input.PhoneCall || + (this.PhoneCall != null && + this.PhoneCall.Equals(input.PhoneCall)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.PhoneCall != null) + hashCode = hashCode * 59 + this.PhoneCall.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PhoneCallStartedEvent.cs b/src/Flipdish/Model/PhoneCallStartedEvent.cs new file mode 100644 index 00000000..0a6e2df0 --- /dev/null +++ b/src/Flipdish/Model/PhoneCallStartedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Phone call started event + /// + [DataContract] + public partial class PhoneCallStartedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// The phone call. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PhoneCallStartedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), PhoneCall phoneCall = default(PhoneCall), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.PhoneCall = phoneCall; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// The phone call + /// + /// The phone call + [DataMember(Name="PhoneCall", EmitDefaultValue=false)] + public PhoneCall PhoneCall { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PhoneCallStartedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" PhoneCall: ").Append(PhoneCall).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PhoneCallStartedEvent); + } + + /// + /// Returns true if PhoneCallStartedEvent instances are equal + /// + /// Instance of PhoneCallStartedEvent to be compared + /// Boolean + public bool Equals(PhoneCallStartedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.PhoneCall == input.PhoneCall || + (this.PhoneCall != null && + this.PhoneCall.Equals(input.PhoneCall)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.PhoneCall != null) + hashCode = hashCode * 59 + this.PhoneCall.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PixelPointProductCatalogue.cs b/src/Flipdish/Model/PixelPointProductCatalogue.cs new file mode 100644 index 00000000..fbba60b4 --- /dev/null +++ b/src/Flipdish/Model/PixelPointProductCatalogue.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Catalogue of PixelPoint products uploaded for a store + /// + [DataContract] + public partial class PixelPointProductCatalogue : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PixelPointProductCatalogue() { } + /// + /// Initializes a new instance of the class. + /// + /// PixelPoint product number mapped to its display string. Always includes the special NOT_INCLUDED sentinel entry. (required). + /// Current page index (1-based) (required). + /// Current page size (required). + /// Total number of products matching the filter (excluding the sentinel entry) (required). + public PixelPointProductCatalogue(Dictionary products = default(Dictionary), int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?)) + { + // to ensure "products" is required (not null) + if (products == null) + { + throw new InvalidDataException("products is a required property for PixelPointProductCatalogue and cannot be null"); + } + else + { + this.Products = products; + } + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for PixelPointProductCatalogue and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for PixelPointProductCatalogue and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for PixelPointProductCatalogue and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + } + + /// + /// PixelPoint product number mapped to its display string. Always includes the special NOT_INCLUDED sentinel entry. + /// + /// PixelPoint product number mapped to its display string. Always includes the special NOT_INCLUDED sentinel entry. + [DataMember(Name="Products", EmitDefaultValue=false)] + public Dictionary Products { get; set; } + + /// + /// Current page index (1-based) + /// + /// Current page index (1-based) + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total number of products matching the filter (excluding the sentinel entry) + /// + /// Total number of products matching the filter (excluding the sentinel entry) + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PixelPointProductCatalogue {\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PixelPointProductCatalogue); + } + + /// + /// Returns true if PixelPointProductCatalogue instances are equal + /// + /// Instance of PixelPointProductCatalogue to be compared + /// Boolean + public bool Equals(PixelPointProductCatalogue input) + { + if (input == null) + return false; + + return + ( + this.Products == input.Products || + this.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Products != null) + hashCode = hashCode * 59 + this.Products.GetHashCode(); + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PlayStoreConfigModel.cs b/src/Flipdish/Model/PlayStoreConfigModel.cs new file mode 100644 index 00000000..4de84f31 --- /dev/null +++ b/src/Flipdish/Model/PlayStoreConfigModel.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Play Store configuration model + /// + [DataContract] + public partial class PlayStoreConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label ID. + /// Bundle ID. + /// Description. + /// Short description. + /// Copyright. + /// Keywords. + /// Marketing URL. + /// Privacy URL. + /// Support URL. + /// Play Console account: 0 = IE, 1 = UK, 2 = IE2, 3 = IE3. + /// Release notes. + /// Store icon URL. + /// Ready to publish Android. + public PlayStoreConfigModel(int? whiteLabelId = default(int?), string bundleId = default(string), string description = default(string), string shortDescription = default(string), string copyright = default(string), string keywords = default(string), string marketingUrl = default(string), string privacyUrl = default(string), string supportUrl = default(string), int? playConsoleAccount = default(int?), string releaseNotes = default(string), string storeIcon = default(string), bool? readyToPublishAndroid = default(bool?)) + { + this.WhiteLabelId = whiteLabelId; + this.BundleId = bundleId; + this.Description = description; + this.ShortDescription = shortDescription; + this.Copyright = copyright; + this.Keywords = keywords; + this.MarketingUrl = marketingUrl; + this.PrivacyUrl = privacyUrl; + this.SupportUrl = supportUrl; + this.PlayConsoleAccount = playConsoleAccount; + this.ReleaseNotes = releaseNotes; + this.StoreIcon = storeIcon; + this.ReadyToPublishAndroid = readyToPublishAndroid; + } + + /// + /// White label ID + /// + /// White label ID + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// Bundle ID + /// + /// Bundle ID + [DataMember(Name="BundleId", EmitDefaultValue=false)] + public string BundleId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Short description + /// + /// Short description + [DataMember(Name="ShortDescription", EmitDefaultValue=false)] + public string ShortDescription { get; set; } + + /// + /// Copyright + /// + /// Copyright + [DataMember(Name="Copyright", EmitDefaultValue=false)] + public string Copyright { get; set; } + + /// + /// Keywords + /// + /// Keywords + [DataMember(Name="Keywords", EmitDefaultValue=false)] + public string Keywords { get; set; } + + /// + /// Marketing URL + /// + /// Marketing URL + [DataMember(Name="MarketingUrl", EmitDefaultValue=false)] + public string MarketingUrl { get; set; } + + /// + /// Privacy URL + /// + /// Privacy URL + [DataMember(Name="PrivacyUrl", EmitDefaultValue=false)] + public string PrivacyUrl { get; set; } + + /// + /// Support URL + /// + /// Support URL + [DataMember(Name="SupportUrl", EmitDefaultValue=false)] + public string SupportUrl { get; set; } + + /// + /// Play Console account: 0 = IE, 1 = UK, 2 = IE2, 3 = IE3 + /// + /// Play Console account: 0 = IE, 1 = UK, 2 = IE2, 3 = IE3 + [DataMember(Name="PlayConsoleAccount", EmitDefaultValue=false)] + public int? PlayConsoleAccount { get; set; } + + /// + /// Release notes + /// + /// Release notes + [DataMember(Name="ReleaseNotes", EmitDefaultValue=false)] + public string ReleaseNotes { get; set; } + + /// + /// Store icon URL + /// + /// Store icon URL + [DataMember(Name="StoreIcon", EmitDefaultValue=false)] + public string StoreIcon { get; set; } + + /// + /// Ready to publish Android + /// + /// Ready to publish Android + [DataMember(Name="ReadyToPublishAndroid", EmitDefaultValue=false)] + public bool? ReadyToPublishAndroid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PlayStoreConfigModel {\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" BundleId: ").Append(BundleId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ShortDescription: ").Append(ShortDescription).Append("\n"); + sb.Append(" Copyright: ").Append(Copyright).Append("\n"); + sb.Append(" Keywords: ").Append(Keywords).Append("\n"); + sb.Append(" MarketingUrl: ").Append(MarketingUrl).Append("\n"); + sb.Append(" PrivacyUrl: ").Append(PrivacyUrl).Append("\n"); + sb.Append(" SupportUrl: ").Append(SupportUrl).Append("\n"); + sb.Append(" PlayConsoleAccount: ").Append(PlayConsoleAccount).Append("\n"); + sb.Append(" ReleaseNotes: ").Append(ReleaseNotes).Append("\n"); + sb.Append(" StoreIcon: ").Append(StoreIcon).Append("\n"); + sb.Append(" ReadyToPublishAndroid: ").Append(ReadyToPublishAndroid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PlayStoreConfigModel); + } + + /// + /// Returns true if PlayStoreConfigModel instances are equal + /// + /// Instance of PlayStoreConfigModel to be compared + /// Boolean + public bool Equals(PlayStoreConfigModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.BundleId == input.BundleId || + (this.BundleId != null && + this.BundleId.Equals(input.BundleId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ShortDescription == input.ShortDescription || + (this.ShortDescription != null && + this.ShortDescription.Equals(input.ShortDescription)) + ) && + ( + this.Copyright == input.Copyright || + (this.Copyright != null && + this.Copyright.Equals(input.Copyright)) + ) && + ( + this.Keywords == input.Keywords || + (this.Keywords != null && + this.Keywords.Equals(input.Keywords)) + ) && + ( + this.MarketingUrl == input.MarketingUrl || + (this.MarketingUrl != null && + this.MarketingUrl.Equals(input.MarketingUrl)) + ) && + ( + this.PrivacyUrl == input.PrivacyUrl || + (this.PrivacyUrl != null && + this.PrivacyUrl.Equals(input.PrivacyUrl)) + ) && + ( + this.SupportUrl == input.SupportUrl || + (this.SupportUrl != null && + this.SupportUrl.Equals(input.SupportUrl)) + ) && + ( + this.PlayConsoleAccount == input.PlayConsoleAccount || + (this.PlayConsoleAccount != null && + this.PlayConsoleAccount.Equals(input.PlayConsoleAccount)) + ) && + ( + this.ReleaseNotes == input.ReleaseNotes || + (this.ReleaseNotes != null && + this.ReleaseNotes.Equals(input.ReleaseNotes)) + ) && + ( + this.StoreIcon == input.StoreIcon || + (this.StoreIcon != null && + this.StoreIcon.Equals(input.StoreIcon)) + ) && + ( + this.ReadyToPublishAndroid == input.ReadyToPublishAndroid || + (this.ReadyToPublishAndroid != null && + this.ReadyToPublishAndroid.Equals(input.ReadyToPublishAndroid)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.BundleId != null) + hashCode = hashCode * 59 + this.BundleId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ShortDescription != null) + hashCode = hashCode * 59 + this.ShortDescription.GetHashCode(); + if (this.Copyright != null) + hashCode = hashCode * 59 + this.Copyright.GetHashCode(); + if (this.Keywords != null) + hashCode = hashCode * 59 + this.Keywords.GetHashCode(); + if (this.MarketingUrl != null) + hashCode = hashCode * 59 + this.MarketingUrl.GetHashCode(); + if (this.PrivacyUrl != null) + hashCode = hashCode * 59 + this.PrivacyUrl.GetHashCode(); + if (this.SupportUrl != null) + hashCode = hashCode * 59 + this.SupportUrl.GetHashCode(); + if (this.PlayConsoleAccount != null) + hashCode = hashCode * 59 + this.PlayConsoleAccount.GetHashCode(); + if (this.ReleaseNotes != null) + hashCode = hashCode * 59 + this.ReleaseNotes.GetHashCode(); + if (this.StoreIcon != null) + hashCode = hashCode * 59 + this.StoreIcon.GetHashCode(); + if (this.ReadyToPublishAndroid != null) + hashCode = hashCode * 59 + this.ReadyToPublishAndroid.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PosRevenueDetails.cs b/src/Flipdish/Model/PosRevenueDetails.cs new file mode 100644 index 00000000..720c5cf1 --- /dev/null +++ b/src/Flipdish/Model/PosRevenueDetails.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Breakdown of POS charges + /// + [DataContract] + public partial class PosRevenueDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// POS sale amount for the store. + /// POS sale Tax for the store. + /// POS sale tips for the store. + /// POS Total Revenue for the store. + public PosRevenueDetails(double? posSalesAmount = default(double?), double? posSalesTax = default(double?), double? posSalesTips = default(double?), double? totalPosRevenue = default(double?)) + { + this.PosSalesAmount = posSalesAmount; + this.PosSalesTax = posSalesTax; + this.PosSalesTips = posSalesTips; + this.TotalPosRevenue = totalPosRevenue; + } + + /// + /// POS sale amount for the store + /// + /// POS sale amount for the store + [DataMember(Name="PosSalesAmount", EmitDefaultValue=false)] + public double? PosSalesAmount { get; set; } + + /// + /// POS sale Tax for the store + /// + /// POS sale Tax for the store + [DataMember(Name="PosSalesTax", EmitDefaultValue=false)] + public double? PosSalesTax { get; set; } + + /// + /// POS sale tips for the store + /// + /// POS sale tips for the store + [DataMember(Name="PosSalesTips", EmitDefaultValue=false)] + public double? PosSalesTips { get; set; } + + /// + /// POS Total Revenue for the store + /// + /// POS Total Revenue for the store + [DataMember(Name="TotalPosRevenue", EmitDefaultValue=false)] + public double? TotalPosRevenue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PosRevenueDetails {\n"); + sb.Append(" PosSalesAmount: ").Append(PosSalesAmount).Append("\n"); + sb.Append(" PosSalesTax: ").Append(PosSalesTax).Append("\n"); + sb.Append(" PosSalesTips: ").Append(PosSalesTips).Append("\n"); + sb.Append(" TotalPosRevenue: ").Append(TotalPosRevenue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PosRevenueDetails); + } + + /// + /// Returns true if PosRevenueDetails instances are equal + /// + /// Instance of PosRevenueDetails to be compared + /// Boolean + public bool Equals(PosRevenueDetails input) + { + if (input == null) + return false; + + return + ( + this.PosSalesAmount == input.PosSalesAmount || + (this.PosSalesAmount != null && + this.PosSalesAmount.Equals(input.PosSalesAmount)) + ) && + ( + this.PosSalesTax == input.PosSalesTax || + (this.PosSalesTax != null && + this.PosSalesTax.Equals(input.PosSalesTax)) + ) && + ( + this.PosSalesTips == input.PosSalesTips || + (this.PosSalesTips != null && + this.PosSalesTips.Equals(input.PosSalesTips)) + ) && + ( + this.TotalPosRevenue == input.TotalPosRevenue || + (this.TotalPosRevenue != null && + this.TotalPosRevenue.Equals(input.TotalPosRevenue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PosSalesAmount != null) + hashCode = hashCode * 59 + this.PosSalesAmount.GetHashCode(); + if (this.PosSalesTax != null) + hashCode = hashCode * 59 + this.PosSalesTax.GetHashCode(); + if (this.PosSalesTips != null) + hashCode = hashCode * 59 + this.PosSalesTips.GetHashCode(); + if (this.TotalPosRevenue != null) + hashCode = hashCode * 59 + this.TotalPosRevenue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PreOrderConfig.cs b/src/Flipdish/Model/PreOrderConfig.cs new file mode 100644 index 00000000..9154d8a4 --- /dev/null +++ b/src/Flipdish/Model/PreOrderConfig.cs @@ -0,0 +1,293 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Pre Order Config + /// + [DataContract] + public partial class PreOrderConfig : IEquatable + { + /// + /// Type of time displayed. + /// + /// Type of time displayed. + [JsonConverter(typeof(StringEnumConverter))] + public enum PreOrderTimeDisplayTypeEnum + { + + /// + /// Enum SingleTime for value: SingleTime + /// + [EnumMember(Value = "SingleTime")] + SingleTime = 1, + + /// + /// Enum StartAndEndTime for value: StartAndEndTime + /// + [EnumMember(Value = "StartAndEndTime")] + StartAndEndTime = 2, + + /// + /// Enum DayOnly for value: DayOnly + /// + [EnumMember(Value = "DayOnly")] + DayOnly = 3 + } + + /// + /// Type of time displayed. + /// + /// Type of time displayed. + [DataMember(Name="PreOrderTimeDisplayType", EmitDefaultValue=false)] + public PreOrderTimeDisplayTypeEnum? PreOrderTimeDisplayType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Lead Time in Minutes. + /// Interval in minutes. + /// Max Days to order ahead. + /// Show ASAP as option. + /// Granual Init' Time. + /// Cut off time previous day. + /// Cut off time current day. + /// Type of time displayed.. + /// Specifies whether a customer can pre-order outside the store opening hours or not.. + /// Force customer to select collection time.. + public PreOrderConfig(int? leadTimeMinutes = default(int?), int? intervalMinutes = default(int?), int? maxOrderAheadDays = default(int?), bool? includeAsap = default(bool?), bool? includeMoreGranularInitialTime = default(bool?), string cutOffTimePreviousDayBasic = default(string), string cutOffTimeCurrentDayBasic = default(string), PreOrderTimeDisplayTypeEnum? preOrderTimeDisplayType = default(PreOrderTimeDisplayTypeEnum?), bool? alwaysAppearOpen = default(bool?), bool? requireExplicitSelectAlways = default(bool?)) + { + this.LeadTimeMinutes = leadTimeMinutes; + this.IntervalMinutes = intervalMinutes; + this.MaxOrderAheadDays = maxOrderAheadDays; + this.IncludeAsap = includeAsap; + this.IncludeMoreGranularInitialTime = includeMoreGranularInitialTime; + this.CutOffTimePreviousDayBasic = cutOffTimePreviousDayBasic; + this.CutOffTimeCurrentDayBasic = cutOffTimeCurrentDayBasic; + this.PreOrderTimeDisplayType = preOrderTimeDisplayType; + this.AlwaysAppearOpen = alwaysAppearOpen; + this.RequireExplicitSelectAlways = requireExplicitSelectAlways; + } + + /// + /// Lead Time in Minutes + /// + /// Lead Time in Minutes + [DataMember(Name="LeadTimeMinutes", EmitDefaultValue=false)] + public int? LeadTimeMinutes { get; set; } + + /// + /// Interval in minutes + /// + /// Interval in minutes + [DataMember(Name="IntervalMinutes", EmitDefaultValue=false)] + public int? IntervalMinutes { get; set; } + + /// + /// Max Days to order ahead + /// + /// Max Days to order ahead + [DataMember(Name="MaxOrderAheadDays", EmitDefaultValue=false)] + public int? MaxOrderAheadDays { get; set; } + + /// + /// Show ASAP as option + /// + /// Show ASAP as option + [DataMember(Name="IncludeAsap", EmitDefaultValue=false)] + public bool? IncludeAsap { get; set; } + + /// + /// Granual Init' Time + /// + /// Granual Init' Time + [DataMember(Name="IncludeMoreGranularInitialTime", EmitDefaultValue=false)] + public bool? IncludeMoreGranularInitialTime { get; set; } + + /// + /// Cut off time previous day + /// + /// Cut off time previous day + [DataMember(Name="CutOffTimePreviousDayBasic", EmitDefaultValue=false)] + public string CutOffTimePreviousDayBasic { get; set; } + + /// + /// Cut off time current day + /// + /// Cut off time current day + [DataMember(Name="CutOffTimeCurrentDayBasic", EmitDefaultValue=false)] + public string CutOffTimeCurrentDayBasic { get; set; } + + + /// + /// Specifies whether a customer can pre-order outside the store opening hours or not. + /// + /// Specifies whether a customer can pre-order outside the store opening hours or not. + [DataMember(Name="AlwaysAppearOpen", EmitDefaultValue=false)] + public bool? AlwaysAppearOpen { get; set; } + + /// + /// Force customer to select collection time. + /// + /// Force customer to select collection time. + [DataMember(Name="RequireExplicitSelectAlways", EmitDefaultValue=false)] + public bool? RequireExplicitSelectAlways { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreOrderConfig {\n"); + sb.Append(" LeadTimeMinutes: ").Append(LeadTimeMinutes).Append("\n"); + sb.Append(" IntervalMinutes: ").Append(IntervalMinutes).Append("\n"); + sb.Append(" MaxOrderAheadDays: ").Append(MaxOrderAheadDays).Append("\n"); + sb.Append(" IncludeAsap: ").Append(IncludeAsap).Append("\n"); + sb.Append(" IncludeMoreGranularInitialTime: ").Append(IncludeMoreGranularInitialTime).Append("\n"); + sb.Append(" CutOffTimePreviousDayBasic: ").Append(CutOffTimePreviousDayBasic).Append("\n"); + sb.Append(" CutOffTimeCurrentDayBasic: ").Append(CutOffTimeCurrentDayBasic).Append("\n"); + sb.Append(" PreOrderTimeDisplayType: ").Append(PreOrderTimeDisplayType).Append("\n"); + sb.Append(" AlwaysAppearOpen: ").Append(AlwaysAppearOpen).Append("\n"); + sb.Append(" RequireExplicitSelectAlways: ").Append(RequireExplicitSelectAlways).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreOrderConfig); + } + + /// + /// Returns true if PreOrderConfig instances are equal + /// + /// Instance of PreOrderConfig to be compared + /// Boolean + public bool Equals(PreOrderConfig input) + { + if (input == null) + return false; + + return + ( + this.LeadTimeMinutes == input.LeadTimeMinutes || + (this.LeadTimeMinutes != null && + this.LeadTimeMinutes.Equals(input.LeadTimeMinutes)) + ) && + ( + this.IntervalMinutes == input.IntervalMinutes || + (this.IntervalMinutes != null && + this.IntervalMinutes.Equals(input.IntervalMinutes)) + ) && + ( + this.MaxOrderAheadDays == input.MaxOrderAheadDays || + (this.MaxOrderAheadDays != null && + this.MaxOrderAheadDays.Equals(input.MaxOrderAheadDays)) + ) && + ( + this.IncludeAsap == input.IncludeAsap || + (this.IncludeAsap != null && + this.IncludeAsap.Equals(input.IncludeAsap)) + ) && + ( + this.IncludeMoreGranularInitialTime == input.IncludeMoreGranularInitialTime || + (this.IncludeMoreGranularInitialTime != null && + this.IncludeMoreGranularInitialTime.Equals(input.IncludeMoreGranularInitialTime)) + ) && + ( + this.CutOffTimePreviousDayBasic == input.CutOffTimePreviousDayBasic || + (this.CutOffTimePreviousDayBasic != null && + this.CutOffTimePreviousDayBasic.Equals(input.CutOffTimePreviousDayBasic)) + ) && + ( + this.CutOffTimeCurrentDayBasic == input.CutOffTimeCurrentDayBasic || + (this.CutOffTimeCurrentDayBasic != null && + this.CutOffTimeCurrentDayBasic.Equals(input.CutOffTimeCurrentDayBasic)) + ) && + ( + this.PreOrderTimeDisplayType == input.PreOrderTimeDisplayType || + (this.PreOrderTimeDisplayType != null && + this.PreOrderTimeDisplayType.Equals(input.PreOrderTimeDisplayType)) + ) && + ( + this.AlwaysAppearOpen == input.AlwaysAppearOpen || + (this.AlwaysAppearOpen != null && + this.AlwaysAppearOpen.Equals(input.AlwaysAppearOpen)) + ) && + ( + this.RequireExplicitSelectAlways == input.RequireExplicitSelectAlways || + (this.RequireExplicitSelectAlways != null && + this.RequireExplicitSelectAlways.Equals(input.RequireExplicitSelectAlways)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LeadTimeMinutes != null) + hashCode = hashCode * 59 + this.LeadTimeMinutes.GetHashCode(); + if (this.IntervalMinutes != null) + hashCode = hashCode * 59 + this.IntervalMinutes.GetHashCode(); + if (this.MaxOrderAheadDays != null) + hashCode = hashCode * 59 + this.MaxOrderAheadDays.GetHashCode(); + if (this.IncludeAsap != null) + hashCode = hashCode * 59 + this.IncludeAsap.GetHashCode(); + if (this.IncludeMoreGranularInitialTime != null) + hashCode = hashCode * 59 + this.IncludeMoreGranularInitialTime.GetHashCode(); + if (this.CutOffTimePreviousDayBasic != null) + hashCode = hashCode * 59 + this.CutOffTimePreviousDayBasic.GetHashCode(); + if (this.CutOffTimeCurrentDayBasic != null) + hashCode = hashCode * 59 + this.CutOffTimeCurrentDayBasic.GetHashCode(); + if (this.PreOrderTimeDisplayType != null) + hashCode = hashCode * 59 + this.PreOrderTimeDisplayType.GetHashCode(); + if (this.AlwaysAppearOpen != null) + hashCode = hashCode * 59 + this.AlwaysAppearOpen.GetHashCode(); + if (this.RequireExplicitSelectAlways != null) + hashCode = hashCode * 59 + this.RequireExplicitSelectAlways.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PreOrderTime.cs b/src/Flipdish/Model/PreOrderTime.cs new file mode 100644 index 00000000..a49a9b7b --- /dev/null +++ b/src/Flipdish/Model/PreOrderTime.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Time order can be placed + /// + [DataContract] + public partial class PreOrderTime : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Start Time. + /// End Time. + public PreOrderTime(DateTime? startTime = default(DateTime?), DateTime? endTime = default(DateTime?)) + { + this.StartTime = startTime; + this.EndTime = endTime; + } + + /// + /// Start Time + /// + /// Start Time + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// End Time + /// + /// End Time + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreOrderTime {\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreOrderTime); + } + + /// + /// Returns true if PreOrderTime instances are equal + /// + /// Instance of PreOrderTime to be compared + /// Boolean + public bool Equals(PreOrderTime input) + { + if (input == null) + return false; + + return + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PredefinedAnswer.cs b/src/Flipdish/Model/PredefinedAnswer.cs new file mode 100644 index 00000000..f2ff93b0 --- /dev/null +++ b/src/Flipdish/Model/PredefinedAnswer.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Predefined answer + /// + [DataContract] + public partial class PredefinedAnswer : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Identifier. + /// Text. + public PredefinedAnswer(int? id = default(int?), string text = default(string)) + { + this.Id = id; + this.Text = text; + } + + /// + /// Identifier + /// + /// Identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Text + /// + /// Text + [DataMember(Name="Text", EmitDefaultValue=false)] + public string Text { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PredefinedAnswer {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PredefinedAnswer); + } + + /// + /// Returns true if PredefinedAnswer instances are equal + /// + /// Instance of PredefinedAnswer to be compared + /// Boolean + public bool Equals(PredefinedAnswer input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Text != null) + hashCode = hashCode * 59 + this.Text.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PreviousOrder.cs b/src/Flipdish/Model/PreviousOrder.cs new file mode 100644 index 00000000..cc7f7dc4 --- /dev/null +++ b/src/Flipdish/Model/PreviousOrder.cs @@ -0,0 +1,1166 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PreviousOrder + /// + [DataContract] + public partial class PreviousOrder : IEquatable + { + /// + /// Defines Currency + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// deliveryType. + /// deliveryLocationAddressString. + /// paymentAccountType. + /// orderId. + /// receiptCode. + /// restaurantName. + /// localOrderId. + /// tableServiceCategory. + /// pickupLocationOptionValue. + /// customerName. + /// phoneNumberInternationalFormatString. + /// deliveryInstructions. + /// currency. + /// processingFee. + /// serviceChargePercentage. + /// serviceChargeAmount. + /// tipAmount. + /// deliveryAmount. + /// depositReturnFeeAmount. + /// totalTax. + /// totalAmount. + /// items. + /// taxRates. + /// whiteLabelId. + public PreviousOrder(string deliveryType = default(string), string deliveryLocationAddressString = default(string), string paymentAccountType = default(string), int? orderId = default(int?), string receiptCode = default(string), string restaurantName = default(string), string localOrderId = default(string), string tableServiceCategory = default(string), string pickupLocationOptionValue = default(string), string customerName = default(string), string phoneNumberInternationalFormatString = default(string), string deliveryInstructions = default(string), CurrencyEnum? currency = default(CurrencyEnum?), double? processingFee = default(double?), double? serviceChargePercentage = default(double?), double? serviceChargeAmount = default(double?), double? tipAmount = default(double?), double? deliveryAmount = default(double?), double? depositReturnFeeAmount = default(double?), double? totalTax = default(double?), double? totalAmount = default(double?), List items = default(List), List taxRates = default(List), int? whiteLabelId = default(int?)) + { + this.DeliveryType = deliveryType; + this.DeliveryLocationAddressString = deliveryLocationAddressString; + this.PaymentAccountType = paymentAccountType; + this.OrderId = orderId; + this.ReceiptCode = receiptCode; + this.RestaurantName = restaurantName; + this.LocalOrderId = localOrderId; + this.TableServiceCategory = tableServiceCategory; + this.PickupLocationOptionValue = pickupLocationOptionValue; + this.CustomerName = customerName; + this.PhoneNumberInternationalFormatString = phoneNumberInternationalFormatString; + this.DeliveryInstructions = deliveryInstructions; + this.Currency = currency; + this.ProcessingFee = processingFee; + this.ServiceChargePercentage = serviceChargePercentage; + this.ServiceChargeAmount = serviceChargeAmount; + this.TipAmount = tipAmount; + this.DeliveryAmount = deliveryAmount; + this.DepositReturnFeeAmount = depositReturnFeeAmount; + this.TotalTax = totalTax; + this.TotalAmount = totalAmount; + this.Items = items; + this.TaxRates = taxRates; + this.WhiteLabelId = whiteLabelId; + } + + /// + /// Gets or Sets DeliveryType + /// + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public string DeliveryType { get; set; } + + /// + /// Gets or Sets DeliveryLocationAddressString + /// + [DataMember(Name="DeliveryLocationAddressString", EmitDefaultValue=false)] + public string DeliveryLocationAddressString { get; set; } + + /// + /// Gets or Sets PaymentAccountType + /// + [DataMember(Name="PaymentAccountType", EmitDefaultValue=false)] + public string PaymentAccountType { get; set; } + + /// + /// Gets or Sets OrderId + /// + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Gets or Sets ReceiptCode + /// + [DataMember(Name="ReceiptCode", EmitDefaultValue=false)] + public string ReceiptCode { get; set; } + + /// + /// Gets or Sets RestaurantName + /// + [DataMember(Name="RestaurantName", EmitDefaultValue=false)] + public string RestaurantName { get; set; } + + /// + /// Gets or Sets LocalOrderId + /// + [DataMember(Name="LocalOrderId", EmitDefaultValue=false)] + public string LocalOrderId { get; set; } + + /// + /// Gets or Sets TableServiceCategory + /// + [DataMember(Name="TableServiceCategory", EmitDefaultValue=false)] + public string TableServiceCategory { get; set; } + + /// + /// Gets or Sets PickupLocationOptionValue + /// + [DataMember(Name="PickupLocationOptionValue", EmitDefaultValue=false)] + public string PickupLocationOptionValue { get; set; } + + /// + /// Gets or Sets CustomerName + /// + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public string CustomerName { get; set; } + + /// + /// Gets or Sets PhoneNumberInternationalFormatString + /// + [DataMember(Name="PhoneNumberInternationalFormatString", EmitDefaultValue=false)] + public string PhoneNumberInternationalFormatString { get; set; } + + /// + /// Gets or Sets DeliveryInstructions + /// + [DataMember(Name="DeliveryInstructions", EmitDefaultValue=false)] + public string DeliveryInstructions { get; set; } + + + /// + /// Gets or Sets ProcessingFee + /// + [DataMember(Name="ProcessingFee", EmitDefaultValue=false)] + public double? ProcessingFee { get; set; } + + /// + /// Gets or Sets ServiceChargePercentage + /// + [DataMember(Name="ServiceChargePercentage", EmitDefaultValue=false)] + public double? ServiceChargePercentage { get; set; } + + /// + /// Gets or Sets ServiceChargeAmount + /// + [DataMember(Name="ServiceChargeAmount", EmitDefaultValue=false)] + public double? ServiceChargeAmount { get; set; } + + /// + /// Gets or Sets TipAmount + /// + [DataMember(Name="TipAmount", EmitDefaultValue=false)] + public double? TipAmount { get; set; } + + /// + /// Gets or Sets DeliveryAmount + /// + [DataMember(Name="DeliveryAmount", EmitDefaultValue=false)] + public double? DeliveryAmount { get; set; } + + /// + /// Gets or Sets DepositReturnFeeAmount + /// + [DataMember(Name="DepositReturnFeeAmount", EmitDefaultValue=false)] + public double? DepositReturnFeeAmount { get; set; } + + /// + /// Gets or Sets TotalTax + /// + [DataMember(Name="TotalTax", EmitDefaultValue=false)] + public double? TotalTax { get; set; } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name="TotalAmount", EmitDefaultValue=false)] + public double? TotalAmount { get; set; } + + /// + /// Gets or Sets Items + /// + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } + + /// + /// Gets or Sets TaxRates + /// + [DataMember(Name="TaxRates", EmitDefaultValue=false)] + public List TaxRates { get; set; } + + /// + /// Gets or Sets WhiteLabelId + /// + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreviousOrder {\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" DeliveryLocationAddressString: ").Append(DeliveryLocationAddressString).Append("\n"); + sb.Append(" PaymentAccountType: ").Append(PaymentAccountType).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" ReceiptCode: ").Append(ReceiptCode).Append("\n"); + sb.Append(" RestaurantName: ").Append(RestaurantName).Append("\n"); + sb.Append(" LocalOrderId: ").Append(LocalOrderId).Append("\n"); + sb.Append(" TableServiceCategory: ").Append(TableServiceCategory).Append("\n"); + sb.Append(" PickupLocationOptionValue: ").Append(PickupLocationOptionValue).Append("\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" PhoneNumberInternationalFormatString: ").Append(PhoneNumberInternationalFormatString).Append("\n"); + sb.Append(" DeliveryInstructions: ").Append(DeliveryInstructions).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" ProcessingFee: ").Append(ProcessingFee).Append("\n"); + sb.Append(" ServiceChargePercentage: ").Append(ServiceChargePercentage).Append("\n"); + sb.Append(" ServiceChargeAmount: ").Append(ServiceChargeAmount).Append("\n"); + sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); + sb.Append(" DeliveryAmount: ").Append(DeliveryAmount).Append("\n"); + sb.Append(" DepositReturnFeeAmount: ").Append(DepositReturnFeeAmount).Append("\n"); + sb.Append(" TotalTax: ").Append(TotalTax).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append(" TaxRates: ").Append(TaxRates).Append("\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreviousOrder); + } + + /// + /// Returns true if PreviousOrder instances are equal + /// + /// Instance of PreviousOrder to be compared + /// Boolean + public bool Equals(PreviousOrder input) + { + if (input == null) + return false; + + return + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.DeliveryLocationAddressString == input.DeliveryLocationAddressString || + (this.DeliveryLocationAddressString != null && + this.DeliveryLocationAddressString.Equals(input.DeliveryLocationAddressString)) + ) && + ( + this.PaymentAccountType == input.PaymentAccountType || + (this.PaymentAccountType != null && + this.PaymentAccountType.Equals(input.PaymentAccountType)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.ReceiptCode == input.ReceiptCode || + (this.ReceiptCode != null && + this.ReceiptCode.Equals(input.ReceiptCode)) + ) && + ( + this.RestaurantName == input.RestaurantName || + (this.RestaurantName != null && + this.RestaurantName.Equals(input.RestaurantName)) + ) && + ( + this.LocalOrderId == input.LocalOrderId || + (this.LocalOrderId != null && + this.LocalOrderId.Equals(input.LocalOrderId)) + ) && + ( + this.TableServiceCategory == input.TableServiceCategory || + (this.TableServiceCategory != null && + this.TableServiceCategory.Equals(input.TableServiceCategory)) + ) && + ( + this.PickupLocationOptionValue == input.PickupLocationOptionValue || + (this.PickupLocationOptionValue != null && + this.PickupLocationOptionValue.Equals(input.PickupLocationOptionValue)) + ) && + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.PhoneNumberInternationalFormatString == input.PhoneNumberInternationalFormatString || + (this.PhoneNumberInternationalFormatString != null && + this.PhoneNumberInternationalFormatString.Equals(input.PhoneNumberInternationalFormatString)) + ) && + ( + this.DeliveryInstructions == input.DeliveryInstructions || + (this.DeliveryInstructions != null && + this.DeliveryInstructions.Equals(input.DeliveryInstructions)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.ProcessingFee == input.ProcessingFee || + (this.ProcessingFee != null && + this.ProcessingFee.Equals(input.ProcessingFee)) + ) && + ( + this.ServiceChargePercentage == input.ServiceChargePercentage || + (this.ServiceChargePercentage != null && + this.ServiceChargePercentage.Equals(input.ServiceChargePercentage)) + ) && + ( + this.ServiceChargeAmount == input.ServiceChargeAmount || + (this.ServiceChargeAmount != null && + this.ServiceChargeAmount.Equals(input.ServiceChargeAmount)) + ) && + ( + this.TipAmount == input.TipAmount || + (this.TipAmount != null && + this.TipAmount.Equals(input.TipAmount)) + ) && + ( + this.DeliveryAmount == input.DeliveryAmount || + (this.DeliveryAmount != null && + this.DeliveryAmount.Equals(input.DeliveryAmount)) + ) && + ( + this.DepositReturnFeeAmount == input.DepositReturnFeeAmount || + (this.DepositReturnFeeAmount != null && + this.DepositReturnFeeAmount.Equals(input.DepositReturnFeeAmount)) + ) && + ( + this.TotalTax == input.TotalTax || + (this.TotalTax != null && + this.TotalTax.Equals(input.TotalTax)) + ) && + ( + this.TotalAmount == input.TotalAmount || + (this.TotalAmount != null && + this.TotalAmount.Equals(input.TotalAmount)) + ) && + ( + this.Items == input.Items || + this.Items != null && + this.Items.SequenceEqual(input.Items) + ) && + ( + this.TaxRates == input.TaxRates || + this.TaxRates != null && + this.TaxRates.SequenceEqual(input.TaxRates) + ) && + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.DeliveryLocationAddressString != null) + hashCode = hashCode * 59 + this.DeliveryLocationAddressString.GetHashCode(); + if (this.PaymentAccountType != null) + hashCode = hashCode * 59 + this.PaymentAccountType.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.ReceiptCode != null) + hashCode = hashCode * 59 + this.ReceiptCode.GetHashCode(); + if (this.RestaurantName != null) + hashCode = hashCode * 59 + this.RestaurantName.GetHashCode(); + if (this.LocalOrderId != null) + hashCode = hashCode * 59 + this.LocalOrderId.GetHashCode(); + if (this.TableServiceCategory != null) + hashCode = hashCode * 59 + this.TableServiceCategory.GetHashCode(); + if (this.PickupLocationOptionValue != null) + hashCode = hashCode * 59 + this.PickupLocationOptionValue.GetHashCode(); + if (this.CustomerName != null) + hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); + if (this.PhoneNumberInternationalFormatString != null) + hashCode = hashCode * 59 + this.PhoneNumberInternationalFormatString.GetHashCode(); + if (this.DeliveryInstructions != null) + hashCode = hashCode * 59 + this.DeliveryInstructions.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.ProcessingFee != null) + hashCode = hashCode * 59 + this.ProcessingFee.GetHashCode(); + if (this.ServiceChargePercentage != null) + hashCode = hashCode * 59 + this.ServiceChargePercentage.GetHashCode(); + if (this.ServiceChargeAmount != null) + hashCode = hashCode * 59 + this.ServiceChargeAmount.GetHashCode(); + if (this.TipAmount != null) + hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); + if (this.DeliveryAmount != null) + hashCode = hashCode * 59 + this.DeliveryAmount.GetHashCode(); + if (this.DepositReturnFeeAmount != null) + hashCode = hashCode * 59 + this.DepositReturnFeeAmount.GetHashCode(); + if (this.TotalTax != null) + hashCode = hashCode * 59 + this.TotalTax.GetHashCode(); + if (this.TotalAmount != null) + hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); + if (this.Items != null) + hashCode = hashCode * 59 + this.Items.GetHashCode(); + if (this.TaxRates != null) + hashCode = hashCode * 59 + this.TaxRates.GetHashCode(); + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PreviousOrderItem.cs b/src/Flipdish/Model/PreviousOrderItem.cs new file mode 100644 index 00000000..48e2491f --- /dev/null +++ b/src/Flipdish/Model/PreviousOrderItem.cs @@ -0,0 +1,208 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PreviousOrderItem + /// + [DataContract] + public partial class PreviousOrderItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// menuSectionDisplayOrder. + /// menuSectionName. + /// name. + /// priceIncludingOptionSetItems. + /// depositReturnFee. + /// taxAmount. + /// previousOrderItemOptions. + public PreviousOrderItem(int? menuSectionDisplayOrder = default(int?), string menuSectionName = default(string), string name = default(string), double? priceIncludingOptionSetItems = default(double?), double? depositReturnFee = default(double?), double? taxAmount = default(double?), List previousOrderItemOptions = default(List)) + { + this.MenuSectionDisplayOrder = menuSectionDisplayOrder; + this.MenuSectionName = menuSectionName; + this.Name = name; + this.PriceIncludingOptionSetItems = priceIncludingOptionSetItems; + this.DepositReturnFee = depositReturnFee; + this.TaxAmount = taxAmount; + this.PreviousOrderItemOptions = previousOrderItemOptions; + } + + /// + /// Gets or Sets MenuSectionDisplayOrder + /// + [DataMember(Name="MenuSectionDisplayOrder", EmitDefaultValue=false)] + public int? MenuSectionDisplayOrder { get; set; } + + /// + /// Gets or Sets MenuSectionName + /// + [DataMember(Name="MenuSectionName", EmitDefaultValue=false)] + public string MenuSectionName { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets PriceIncludingOptionSetItems + /// + [DataMember(Name="PriceIncludingOptionSetItems", EmitDefaultValue=false)] + public double? PriceIncludingOptionSetItems { get; set; } + + /// + /// Gets or Sets DepositReturnFee + /// + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Gets or Sets TaxAmount + /// + [DataMember(Name="TaxAmount", EmitDefaultValue=false)] + public double? TaxAmount { get; set; } + + /// + /// Gets or Sets PreviousOrderItemOptions + /// + [DataMember(Name="PreviousOrderItemOptions", EmitDefaultValue=false)] + public List PreviousOrderItemOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreviousOrderItem {\n"); + sb.Append(" MenuSectionDisplayOrder: ").Append(MenuSectionDisplayOrder).Append("\n"); + sb.Append(" MenuSectionName: ").Append(MenuSectionName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PriceIncludingOptionSetItems: ").Append(PriceIncludingOptionSetItems).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n"); + sb.Append(" PreviousOrderItemOptions: ").Append(PreviousOrderItemOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreviousOrderItem); + } + + /// + /// Returns true if PreviousOrderItem instances are equal + /// + /// Instance of PreviousOrderItem to be compared + /// Boolean + public bool Equals(PreviousOrderItem input) + { + if (input == null) + return false; + + return + ( + this.MenuSectionDisplayOrder == input.MenuSectionDisplayOrder || + (this.MenuSectionDisplayOrder != null && + this.MenuSectionDisplayOrder.Equals(input.MenuSectionDisplayOrder)) + ) && + ( + this.MenuSectionName == input.MenuSectionName || + (this.MenuSectionName != null && + this.MenuSectionName.Equals(input.MenuSectionName)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PriceIncludingOptionSetItems == input.PriceIncludingOptionSetItems || + (this.PriceIncludingOptionSetItems != null && + this.PriceIncludingOptionSetItems.Equals(input.PriceIncludingOptionSetItems)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ) && + ( + this.TaxAmount == input.TaxAmount || + (this.TaxAmount != null && + this.TaxAmount.Equals(input.TaxAmount)) + ) && + ( + this.PreviousOrderItemOptions == input.PreviousOrderItemOptions || + this.PreviousOrderItemOptions != null && + this.PreviousOrderItemOptions.SequenceEqual(input.PreviousOrderItemOptions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MenuSectionDisplayOrder != null) + hashCode = hashCode * 59 + this.MenuSectionDisplayOrder.GetHashCode(); + if (this.MenuSectionName != null) + hashCode = hashCode * 59 + this.MenuSectionName.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PriceIncludingOptionSetItems != null) + hashCode = hashCode * 59 + this.PriceIncludingOptionSetItems.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + if (this.TaxAmount != null) + hashCode = hashCode * 59 + this.TaxAmount.GetHashCode(); + if (this.PreviousOrderItemOptions != null) + hashCode = hashCode * 59 + this.PreviousOrderItemOptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PreviousOrderItemOption.cs b/src/Flipdish/Model/PreviousOrderItemOption.cs new file mode 100644 index 00000000..e8a0c008 --- /dev/null +++ b/src/Flipdish/Model/PreviousOrderItemOption.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PreviousOrderItemOption + /// + [DataContract] + public partial class PreviousOrderItemOption : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// name. + /// depositReturnFee. + public PreviousOrderItemOption(string name = default(string), double? depositReturnFee = default(double?)) + { + this.Name = name; + this.DepositReturnFee = depositReturnFee; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets DepositReturnFee + /// + [DataMember(Name="DepositReturnFee", EmitDefaultValue=false)] + public double? DepositReturnFee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreviousOrderItemOption {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" DepositReturnFee: ").Append(DepositReturnFee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreviousOrderItemOption); + } + + /// + /// Returns true if PreviousOrderItemOption instances are equal + /// + /// Instance of PreviousOrderItemOption to be compared + /// Boolean + public bool Equals(PreviousOrderItemOption input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.DepositReturnFee != null) + hashCode = hashCode * 59 + this.DepositReturnFee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Printer.cs b/src/Flipdish/Model/Printer.cs new file mode 100644 index 00000000..855e1d58 --- /dev/null +++ b/src/Flipdish/Model/Printer.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Printer + /// + [DataContract] + public partial class Printer : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Unique serial number of the printer. + /// Date and time when the printer last polled Flipdish for new orders.. + public Printer(string serialNumber = default(string), DateTime? lastPollTime = default(DateTime?)) + { + this.SerialNumber = serialNumber; + this.LastPollTime = lastPollTime; + } + + /// + /// Unique serial number of the printer + /// + /// Unique serial number of the printer + [DataMember(Name="SerialNumber", EmitDefaultValue=false)] + public string SerialNumber { get; set; } + + /// + /// Date and time when the printer last polled Flipdish for new orders. + /// + /// Date and time when the printer last polled Flipdish for new orders. + [DataMember(Name="LastPollTime", EmitDefaultValue=false)] + public DateTime? LastPollTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Printer {\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" LastPollTime: ").Append(LastPollTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Printer); + } + + /// + /// Returns true if Printer instances are equal + /// + /// Instance of Printer to be compared + /// Boolean + public bool Equals(Printer input) + { + if (input == null) + return false; + + return + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.LastPollTime == input.LastPollTime || + (this.LastPollTime != null && + this.LastPollTime.Equals(input.LastPollTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.LastPollTime != null) + hashCode = hashCode * 59 + this.LastPollTime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs b/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs new file mode 100644 index 00000000..4e76d0e7 --- /dev/null +++ b/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Printer assigned to store event + /// + [DataContract] + public partial class PrinterAssignedToStoreEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Store group Id. + /// Info User. + /// The printer. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PrinterAssignedToStoreEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), Printer printer = default(Printer), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Printer = printer; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The printer + /// + /// The printer + [DataMember(Name="Printer", EmitDefaultValue=false)] + public Printer Printer { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrinterAssignedToStoreEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Printer: ").Append(Printer).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrinterAssignedToStoreEvent); + } + + /// + /// Returns true if PrinterAssignedToStoreEvent instances are equal + /// + /// Instance of PrinterAssignedToStoreEvent to be compared + /// Boolean + public bool Equals(PrinterAssignedToStoreEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Printer == input.Printer || + (this.Printer != null && + this.Printer.Equals(input.Printer)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Printer != null) + hashCode = hashCode * 59 + this.Printer.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PrinterTurnedOffEvent.cs b/src/Flipdish/Model/PrinterTurnedOffEvent.cs new file mode 100644 index 00000000..e3bccade --- /dev/null +++ b/src/Flipdish/Model/PrinterTurnedOffEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Printer turned off event + /// + [DataContract] + public partial class PrinterTurnedOffEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Store group Id. + /// Info User. + /// The printer. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PrinterTurnedOffEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), Printer printer = default(Printer), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Printer = printer; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The printer + /// + /// The printer + [DataMember(Name="Printer", EmitDefaultValue=false)] + public Printer Printer { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrinterTurnedOffEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Printer: ").Append(Printer).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrinterTurnedOffEvent); + } + + /// + /// Returns true if PrinterTurnedOffEvent instances are equal + /// + /// Instance of PrinterTurnedOffEvent to be compared + /// Boolean + public bool Equals(PrinterTurnedOffEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Printer == input.Printer || + (this.Printer != null && + this.Printer.Equals(input.Printer)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Printer != null) + hashCode = hashCode * 59 + this.Printer.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PrinterTurnedOnEvent.cs b/src/Flipdish/Model/PrinterTurnedOnEvent.cs new file mode 100644 index 00000000..fab5c70b --- /dev/null +++ b/src/Flipdish/Model/PrinterTurnedOnEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Printer turned on event + /// + [DataContract] + public partial class PrinterTurnedOnEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Store group Id. + /// Info User. + /// The printer. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PrinterTurnedOnEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), Printer printer = default(Printer), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Printer = printer; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The printer + /// + /// The printer + [DataMember(Name="Printer", EmitDefaultValue=false)] + public Printer Printer { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrinterTurnedOnEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Printer: ").Append(Printer).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrinterTurnedOnEvent); + } + + /// + /// Returns true if PrinterTurnedOnEvent instances are equal + /// + /// Instance of PrinterTurnedOnEvent to be compared + /// Boolean + public bool Equals(PrinterTurnedOnEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Printer == input.Printer || + (this.Printer != null && + this.Printer.Equals(input.Printer)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Printer != null) + hashCode = hashCode * 59 + this.Printer.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PrinterUnassignedFromStoreEvent.cs b/src/Flipdish/Model/PrinterUnassignedFromStoreEvent.cs new file mode 100644 index 00000000..b6273e1f --- /dev/null +++ b/src/Flipdish/Model/PrinterUnassignedFromStoreEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Printer assigned from store event + /// + [DataContract] + public partial class PrinterUnassignedFromStoreEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Store group Id. + /// Info User. + /// The printer. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PrinterUnassignedFromStoreEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), Printer printer = default(Printer), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Printer = printer; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The printer + /// + /// The printer + [DataMember(Name="Printer", EmitDefaultValue=false)] + public Printer Printer { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrinterUnassignedFromStoreEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Printer: ").Append(Printer).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrinterUnassignedFromStoreEvent); + } + + /// + /// Returns true if PrinterUnassignedFromStoreEvent instances are equal + /// + /// Instance of PrinterUnassignedFromStoreEvent to be compared + /// Boolean + public bool Equals(PrinterUnassignedFromStoreEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Printer == input.Printer || + (this.Printer != null && + this.Printer.Equals(input.Printer)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Printer != null) + hashCode = hashCode * 59 + this.Printer.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ProcessPaymentIntentRequest.cs b/src/Flipdish/Model/ProcessPaymentIntentRequest.cs new file mode 100644 index 00000000..55ab7f1f --- /dev/null +++ b/src/Flipdish/Model/ProcessPaymentIntentRequest.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Initiate card reader Payment process request + /// + [DataContract] + public partial class ProcessPaymentIntentRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ProcessPaymentIntentRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Device card paymentIntentId (required). + public ProcessPaymentIntentRequest(string paymentIntentId = default(string)) + { + // to ensure "paymentIntentId" is required (not null) + if (paymentIntentId == null) + { + throw new InvalidDataException("paymentIntentId is a required property for ProcessPaymentIntentRequest and cannot be null"); + } + else + { + this.PaymentIntentId = paymentIntentId; + } + } + + /// + /// Device card paymentIntentId + /// + /// Device card paymentIntentId + [DataMember(Name="PaymentIntentId", EmitDefaultValue=false)] + public string PaymentIntentId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessPaymentIntentRequest {\n"); + sb.Append(" PaymentIntentId: ").Append(PaymentIntentId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessPaymentIntentRequest); + } + + /// + /// Returns true if ProcessPaymentIntentRequest instances are equal + /// + /// Instance of ProcessPaymentIntentRequest to be compared + /// Boolean + public bool Equals(ProcessPaymentIntentRequest input) + { + if (input == null) + return false; + + return + ( + this.PaymentIntentId == input.PaymentIntentId || + (this.PaymentIntentId != null && + this.PaymentIntentId.Equals(input.PaymentIntentId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PaymentIntentId != null) + hashCode = hashCode * 59 + this.PaymentIntentId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ProcessingFeeConfig.cs b/src/Flipdish/Model/ProcessingFeeConfig.cs new file mode 100644 index 00000000..e4978f09 --- /dev/null +++ b/src/Flipdish/Model/ProcessingFeeConfig.cs @@ -0,0 +1,233 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Processing fee config + /// + [DataContract] + public partial class ProcessingFeeConfig : IEquatable + { + /// + /// Payment account type + /// + /// Payment account type + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentAccountTypeEnum + { + + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 1, + + /// + /// Enum Cash for value: Cash + /// + [EnumMember(Value = "Cash")] + Cash = 2, + + /// + /// Enum Ideal for value: Ideal + /// + [EnumMember(Value = "Ideal")] + Ideal = 3, + + /// + /// Enum Bancontact for value: Bancontact + /// + [EnumMember(Value = "Bancontact")] + Bancontact = 4, + + /// + /// Enum Giropay for value: Giropay + /// + [EnumMember(Value = "Giropay")] + Giropay = 5, + + /// + /// Enum Eps for value: Eps + /// + [EnumMember(Value = "Eps")] + Eps = 6, + + /// + /// Enum Emv for value: Emv + /// + [EnumMember(Value = "Emv")] + Emv = 7, + + /// + /// Enum PayPal for value: PayPal + /// + [EnumMember(Value = "PayPal")] + PayPal = 8, + + /// + /// Enum PayGreen for value: PayGreen + /// + [EnumMember(Value = "PayGreen")] + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 + } + + /// + /// Payment account type + /// + /// Payment account type + [DataMember(Name="PaymentAccountType", EmitDefaultValue=false)] + public PaymentAccountTypeEnum? PaymentAccountType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store Id. + /// Payment account type. + /// Percent fee to customer, including VAT. + /// Fixed fee to customer, including VAT. + public ProcessingFeeConfig(int? storeId = default(int?), PaymentAccountTypeEnum? paymentAccountType = default(PaymentAccountTypeEnum?), double? percentFee = default(double?), double? fixedFee = default(double?)) + { + this.StoreId = storeId; + this.PaymentAccountType = paymentAccountType; + this.PercentFee = percentFee; + this.FixedFee = fixedFee; + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + + /// + /// Percent fee to customer, including VAT + /// + /// Percent fee to customer, including VAT + [DataMember(Name="PercentFee", EmitDefaultValue=false)] + public double? PercentFee { get; set; } + + /// + /// Fixed fee to customer, including VAT + /// + /// Fixed fee to customer, including VAT + [DataMember(Name="FixedFee", EmitDefaultValue=false)] + public double? FixedFee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessingFeeConfig {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" PaymentAccountType: ").Append(PaymentAccountType).Append("\n"); + sb.Append(" PercentFee: ").Append(PercentFee).Append("\n"); + sb.Append(" FixedFee: ").Append(FixedFee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessingFeeConfig); + } + + /// + /// Returns true if ProcessingFeeConfig instances are equal + /// + /// Instance of ProcessingFeeConfig to be compared + /// Boolean + public bool Equals(ProcessingFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.PaymentAccountType == input.PaymentAccountType || + (this.PaymentAccountType != null && + this.PaymentAccountType.Equals(input.PaymentAccountType)) + ) && + ( + this.PercentFee == input.PercentFee || + (this.PercentFee != null && + this.PercentFee.Equals(input.PercentFee)) + ) && + ( + this.FixedFee == input.FixedFee || + (this.FixedFee != null && + this.FixedFee.Equals(input.FixedFee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.PaymentAccountType != null) + hashCode = hashCode * 59 + this.PaymentAccountType.GetHashCode(); + if (this.PercentFee != null) + hashCode = hashCode * 59 + this.PercentFee.GetHashCode(); + if (this.FixedFee != null) + hashCode = hashCode * 59 + this.FixedFee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Product.cs b/src/Flipdish/Model/Product.cs new file mode 100644 index 00000000..84131f48 --- /dev/null +++ b/src/Flipdish/Model/Product.cs @@ -0,0 +1,341 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Product + /// + [DataContract] + public partial class Product : IEquatable + { + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of item (Product, Modifier, etc) + /// + /// Type of item (Product, Modifier, etc) + [DataMember(Name="ProductType", EmitDefaultValue=false)] + public ProductTypeEnum ProductType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Product() { } + /// + /// Initializes a new instance of the class. + /// + /// Unique catalog Item id. + /// Returns true if the item is archived. + /// Collection of groups associated with this item. + /// Collection of metafields. + /// Type of item (Product, Modifier, etc) (required). + /// Stock Keeping Unit (SKU) (required). + /// Product name (required). + /// Product description. + /// Product price (required). + /// Image File Name. + /// Product contains alcohol. + public Product(string catalogItemId = default(string), bool? isArchived = default(bool?), List groups = default(List), List metafields = default(List), ProductTypeEnum productType = default(ProductTypeEnum), string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?)) + { + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new InvalidDataException("productType is a required property for Product and cannot be null"); + } + else + { + this.ProductType = productType; + } + // to ensure "sku" is required (not null) + if (sku == null) + { + throw new InvalidDataException("sku is a required property for Product and cannot be null"); + } + else + { + this.Sku = sku; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for Product and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "price" is required (not null) + if (price == null) + { + throw new InvalidDataException("price is a required property for Product and cannot be null"); + } + else + { + this.Price = price; + } + this.CatalogItemId = catalogItemId; + this.IsArchived = isArchived; + this.Groups = groups; + this.Metafields = metafields; + this.Description = description; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + } + + /// + /// Unique catalog Item id + /// + /// Unique catalog Item id + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Returns true if the item is archived + /// + /// Returns true if the item is archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Product name + /// + /// Product name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Product description + /// + /// Product description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Product price + /// + /// Product price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Product contains alcohol + /// + /// Product contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Product {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Product); + } + + /// + /// Returns true if Product instances are equal + /// + /// Instance of Product to be compared + /// Boolean + public bool Equals(Product input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ProductReference.cs b/src/Flipdish/Model/ProductReference.cs new file mode 100644 index 00000000..fd1afcdf --- /dev/null +++ b/src/Flipdish/Model/ProductReference.cs @@ -0,0 +1,223 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Catalog Item associated + /// + [DataContract] + public partial class ProductReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="ProductType", EmitDefaultValue=false)] + public ProductTypeEnum ProductType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ProductReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product}. + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product}. + /// Identifier of the CatalogItemId to use as SubProduct (required). + /// Type of the SupProduct (required). + /// Quantity of the modifier that will be set when the parent product is placed in the basket. + public ProductReference(Product item = default(Product), Product product = default(Product), string catalogItemId = default(string), ProductTypeEnum productType = default(ProductTypeEnum), int? preselectedQuantity = default(int?)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for ProductReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new InvalidDataException("productType is a required property for ProductReference and cannot be null"); + } + else + { + this.ProductType = productType; + } + this.Item = item; + this.Product = product; + this.PreselectedQuantity = preselectedQuantity; + } + + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} + [DataMember(Name="Item", EmitDefaultValue=false)] + public Product Item { get; set; } + + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} + /// + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} + [DataMember(Name="Product", EmitDefaultValue=false)] + public Product Product { get; set; } + + /// + /// Identifier of the CatalogItemId to use as SubProduct + /// + /// Identifier of the CatalogItemId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + [DataMember(Name="PreselectedQuantity", EmitDefaultValue=false)] + public int? PreselectedQuantity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProductReference {\n"); + sb.Append(" Item: ").Append(Item).Append("\n"); + sb.Append(" Product: ").Append(Product).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" PreselectedQuantity: ").Append(PreselectedQuantity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProductReference); + } + + /// + /// Returns true if ProductReference instances are equal + /// + /// Instance of ProductReference to be compared + /// Boolean + public bool Equals(ProductReference input) + { + if (input == null) + return false; + + return + ( + this.Item == input.Item || + (this.Item != null && + this.Item.Equals(input.Item)) + ) && + ( + this.Product == input.Product || + (this.Product != null && + this.Product.Equals(input.Product)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.PreselectedQuantity == input.PreselectedQuantity || + (this.PreselectedQuantity != null && + this.PreselectedQuantity.Equals(input.PreselectedQuantity)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Item != null) + hashCode = hashCode * 59 + this.Item.GetHashCode(); + if (this.Product != null) + hashCode = hashCode * 59 + this.Product.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.PreselectedQuantity != null) + hashCode = hashCode * 59 + this.PreselectedQuantity.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PromotionAward.cs b/src/Flipdish/Model/PromotionAward.cs new file mode 100644 index 00000000..c4193c0b --- /dev/null +++ b/src/Flipdish/Model/PromotionAward.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Promotion + /// + [DataContract] + public partial class PromotionAward : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Promotion Award Id. + /// The public id of the menu item that will be awarded. + public PromotionAward(int? promotionAwardId = default(int?), Guid? menuItemPublicId = default(Guid?)) + { + this.PromotionAwardId = promotionAwardId; + this.MenuItemPublicId = menuItemPublicId; + } + + /// + /// Promotion Award Id + /// + /// Promotion Award Id + [DataMember(Name="PromotionAwardId", EmitDefaultValue=false)] + public int? PromotionAwardId { get; set; } + + /// + /// The public id of the menu item that will be awarded + /// + /// The public id of the menu item that will be awarded + [DataMember(Name="MenuItemPublicId", EmitDefaultValue=false)] + public Guid? MenuItemPublicId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PromotionAward {\n"); + sb.Append(" PromotionAwardId: ").Append(PromotionAwardId).Append("\n"); + sb.Append(" MenuItemPublicId: ").Append(MenuItemPublicId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PromotionAward); + } + + /// + /// Returns true if PromotionAward instances are equal + /// + /// Instance of PromotionAward to be compared + /// Boolean + public bool Equals(PromotionAward input) + { + if (input == null) + return false; + + return + ( + this.PromotionAwardId == input.PromotionAwardId || + (this.PromotionAwardId != null && + this.PromotionAwardId.Equals(input.PromotionAwardId)) + ) && + ( + this.MenuItemPublicId == input.MenuItemPublicId || + (this.MenuItemPublicId != null && + this.MenuItemPublicId.Equals(input.MenuItemPublicId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PromotionAwardId != null) + hashCode = hashCode * 59 + this.PromotionAwardId.GetHashCode(); + if (this.MenuItemPublicId != null) + hashCode = hashCode * 59 + this.MenuItemPublicId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PromotionDetails.cs b/src/Flipdish/Model/PromotionDetails.cs new file mode 100644 index 00000000..b682a5bc --- /dev/null +++ b/src/Flipdish/Model/PromotionDetails.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Promotion + /// + [DataContract] + public partial class PromotionDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Promotion Id. + /// The name of the promotion. + /// The items that this promotion will award. + public PromotionDetails(int? promotionId = default(int?), string name = default(string), List promotionAwards = default(List)) + { + this.PromotionId = promotionId; + this.Name = name; + this.PromotionAwards = promotionAwards; + } + + /// + /// Promotion Id + /// + /// Promotion Id + [DataMember(Name="PromotionId", EmitDefaultValue=false)] + public int? PromotionId { get; set; } + + /// + /// The name of the promotion + /// + /// The name of the promotion + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The items that this promotion will award + /// + /// The items that this promotion will award + [DataMember(Name="PromotionAwards", EmitDefaultValue=false)] + public List PromotionAwards { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PromotionDetails {\n"); + sb.Append(" PromotionId: ").Append(PromotionId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PromotionAwards: ").Append(PromotionAwards).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PromotionDetails); + } + + /// + /// Returns true if PromotionDetails instances are equal + /// + /// Instance of PromotionDetails to be compared + /// Boolean + public bool Equals(PromotionDetails input) + { + if (input == null) + return false; + + return + ( + this.PromotionId == input.PromotionId || + (this.PromotionId != null && + this.PromotionId.Equals(input.PromotionId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PromotionAwards == input.PromotionAwards || + this.PromotionAwards != null && + this.PromotionAwards.SequenceEqual(input.PromotionAwards) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PromotionId != null) + hashCode = hashCode * 59 + this.PromotionId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PromotionAwards != null) + hashCode = hashCode * 59 + this.PromotionAwards.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PublishMenuChanges.cs b/src/Flipdish/Model/PublishMenuChanges.cs new file mode 100644 index 00000000..9c79c5a6 --- /dev/null +++ b/src/Flipdish/Model/PublishMenuChanges.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Publish Menu Changes + /// + [DataContract] + public partial class PublishMenuChanges : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Optional Catalog item id. + /// Optional Collection of Menu id. + public PublishMenuChanges(string catalogItemId = default(string), List menuIds = default(List)) + { + this.CatalogItemId = catalogItemId; + this.MenuIds = menuIds; + } + + /// + /// Optional Catalog item id + /// + /// Optional Catalog item id + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + /// + /// Optional Collection of Menu id + /// + /// Optional Collection of Menu id + [DataMember(Name="MenuIds", EmitDefaultValue=false)] + public List MenuIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishMenuChanges {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" MenuIds: ").Append(MenuIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PublishMenuChanges); + } + + /// + /// Returns true if PublishMenuChanges instances are equal + /// + /// Instance of PublishMenuChanges to be compared + /// Boolean + public bool Equals(PublishMenuChanges input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.MenuIds == input.MenuIds || + this.MenuIds != null && + this.MenuIds.SequenceEqual(input.MenuIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.MenuIds != null) + hashCode = hashCode * 59 + this.MenuIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PushNotificationDeletedEvent.cs b/src/Flipdish/Model/PushNotificationDeletedEvent.cs new file mode 100644 index 00000000..ea38952f --- /dev/null +++ b/src/Flipdish/Model/PushNotificationDeletedEvent.cs @@ -0,0 +1,281 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PushNotificationDeletedEvent + /// + [DataContract] + public partial class PushNotificationDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// description. + /// pushNotification. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PushNotificationDeletedEvent(string eventName = default(string), string description = default(string), PushNotificationRequest pushNotification = default(PushNotificationRequest), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.PushNotification = pushNotification; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets PushNotification + /// + [DataMember(Name="PushNotification", EmitDefaultValue=false)] + public PushNotificationRequest PushNotification { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PushNotificationDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" PushNotification: ").Append(PushNotification).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PushNotificationDeletedEvent); + } + + /// + /// Returns true if PushNotificationDeletedEvent instances are equal + /// + /// Instance of PushNotificationDeletedEvent to be compared + /// Boolean + public bool Equals(PushNotificationDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.PushNotification == input.PushNotification || + (this.PushNotification != null && + this.PushNotification.Equals(input.PushNotification)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.PushNotification != null) + hashCode = hashCode * 59 + this.PushNotification.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PushNotificationRequest.cs b/src/Flipdish/Model/PushNotificationRequest.cs new file mode 100644 index 00000000..84a3736e --- /dev/null +++ b/src/Flipdish/Model/PushNotificationRequest.cs @@ -0,0 +1,160 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Push Notification Details + /// + [DataContract] + public partial class PushNotificationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PushNotificationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// UTC Time at which to send the push notification. + /// Title of the notification. + /// Message of the notification (required). + public PushNotificationRequest(DateTime? scheduledTime = default(DateTime?), string title = default(string), string message = default(string)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new InvalidDataException("message is a required property for PushNotificationRequest and cannot be null"); + } + else + { + this.Message = message; + } + this.ScheduledTime = scheduledTime; + this.Title = title; + } + + /// + /// UTC Time at which to send the push notification + /// + /// UTC Time at which to send the push notification + [DataMember(Name="ScheduledTime", EmitDefaultValue=false)] + public DateTime? ScheduledTime { get; set; } + + /// + /// Title of the notification + /// + /// Title of the notification + [DataMember(Name="Title", EmitDefaultValue=false)] + public string Title { get; set; } + + /// + /// Message of the notification + /// + /// Message of the notification + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PushNotificationRequest {\n"); + sb.Append(" ScheduledTime: ").Append(ScheduledTime).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PushNotificationRequest); + } + + /// + /// Returns true if PushNotificationRequest instances are equal + /// + /// Instance of PushNotificationRequest to be compared + /// Boolean + public bool Equals(PushNotificationRequest input) + { + if (input == null) + return false; + + return + ( + this.ScheduledTime == input.ScheduledTime || + (this.ScheduledTime != null && + this.ScheduledTime.Equals(input.ScheduledTime)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ScheduledTime != null) + hashCode = hashCode * 59 + this.ScheduledTime.GetHashCode(); + if (this.Title != null) + hashCode = hashCode * 59 + this.Title.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PushNotificationResponse.cs b/src/Flipdish/Model/PushNotificationResponse.cs new file mode 100644 index 00000000..ee520a5a --- /dev/null +++ b/src/Flipdish/Model/PushNotificationResponse.cs @@ -0,0 +1,194 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Push Notification + /// + [DataContract] + public partial class PushNotificationResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PushNotificationResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Sent. + /// Push notification identifier. + /// UTC Time at which to send the push notification. + /// Title of the notification. + /// Message of the notification (required). + public PushNotificationResponse(bool? sent = default(bool?), int? scheduledPushNotificationId = default(int?), DateTime? scheduledTime = default(DateTime?), string title = default(string), string message = default(string)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new InvalidDataException("message is a required property for PushNotificationResponse and cannot be null"); + } + else + { + this.Message = message; + } + this.Sent = sent; + this.ScheduledPushNotificationId = scheduledPushNotificationId; + this.ScheduledTime = scheduledTime; + this.Title = title; + } + + /// + /// Sent + /// + /// Sent + [DataMember(Name="Sent", EmitDefaultValue=false)] + public bool? Sent { get; set; } + + /// + /// Push notification identifier + /// + /// Push notification identifier + [DataMember(Name="ScheduledPushNotificationId", EmitDefaultValue=false)] + public int? ScheduledPushNotificationId { get; set; } + + /// + /// UTC Time at which to send the push notification + /// + /// UTC Time at which to send the push notification + [DataMember(Name="ScheduledTime", EmitDefaultValue=false)] + public DateTime? ScheduledTime { get; set; } + + /// + /// Title of the notification + /// + /// Title of the notification + [DataMember(Name="Title", EmitDefaultValue=false)] + public string Title { get; set; } + + /// + /// Message of the notification + /// + /// Message of the notification + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PushNotificationResponse {\n"); + sb.Append(" Sent: ").Append(Sent).Append("\n"); + sb.Append(" ScheduledPushNotificationId: ").Append(ScheduledPushNotificationId).Append("\n"); + sb.Append(" ScheduledTime: ").Append(ScheduledTime).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PushNotificationResponse); + } + + /// + /// Returns true if PushNotificationResponse instances are equal + /// + /// Instance of PushNotificationResponse to be compared + /// Boolean + public bool Equals(PushNotificationResponse input) + { + if (input == null) + return false; + + return + ( + this.Sent == input.Sent || + (this.Sent != null && + this.Sent.Equals(input.Sent)) + ) && + ( + this.ScheduledPushNotificationId == input.ScheduledPushNotificationId || + (this.ScheduledPushNotificationId != null && + this.ScheduledPushNotificationId.Equals(input.ScheduledPushNotificationId)) + ) && + ( + this.ScheduledTime == input.ScheduledTime || + (this.ScheduledTime != null && + this.ScheduledTime.Equals(input.ScheduledTime)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sent != null) + hashCode = hashCode * 59 + this.Sent.GetHashCode(); + if (this.ScheduledPushNotificationId != null) + hashCode = hashCode * 59 + this.ScheduledPushNotificationId.GetHashCode(); + if (this.ScheduledTime != null) + hashCode = hashCode * 59 + this.ScheduledTime.GetHashCode(); + if (this.Title != null) + hashCode = hashCode * 59 + this.Title.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PushNotificationScheduledEvent.cs b/src/Flipdish/Model/PushNotificationScheduledEvent.cs new file mode 100644 index 00000000..6d373c30 --- /dev/null +++ b/src/Flipdish/Model/PushNotificationScheduledEvent.cs @@ -0,0 +1,297 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PushNotificationScheduledEvent + /// + [DataContract] + public partial class PushNotificationScheduledEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// user. + /// description. + /// pushNotification. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PushNotificationScheduledEvent(string eventName = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), PushNotificationRequest pushNotification = default(PushNotificationRequest), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.User = user; + this.Description = description; + this.PushNotification = pushNotification; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Gets or Sets User + /// + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets PushNotification + /// + [DataMember(Name="PushNotification", EmitDefaultValue=false)] + public PushNotificationRequest PushNotification { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PushNotificationScheduledEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" PushNotification: ").Append(PushNotification).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PushNotificationScheduledEvent); + } + + /// + /// Returns true if PushNotificationScheduledEvent instances are equal + /// + /// Instance of PushNotificationScheduledEvent to be compared + /// Boolean + public bool Equals(PushNotificationScheduledEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.PushNotification == input.PushNotification || + (this.PushNotification != null && + this.PushNotification.Equals(input.PushNotification)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.PushNotification != null) + hashCode = hashCode * 59 + this.PushNotification.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/PushNotificationSentEvent.cs b/src/Flipdish/Model/PushNotificationSentEvent.cs new file mode 100644 index 00000000..7f27b40a --- /dev/null +++ b/src/Flipdish/Model/PushNotificationSentEvent.cs @@ -0,0 +1,282 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// PushNotificationSentEvent + /// + [DataContract] + public partial class PushNotificationSentEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// pushNotification. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public PushNotificationSentEvent(string eventName = default(string), string description = default(string), PushNotificationRequest pushNotification = default(PushNotificationRequest), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.PushNotification = pushNotification; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets PushNotification + /// + [DataMember(Name="PushNotification", EmitDefaultValue=false)] + public PushNotificationRequest PushNotification { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PushNotificationSentEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" PushNotification: ").Append(PushNotification).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PushNotificationSentEvent); + } + + /// + /// Returns true if PushNotificationSentEvent instances are equal + /// + /// Instance of PushNotificationSentEvent to be compared + /// Boolean + public bool Equals(PushNotificationSentEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.PushNotification == input.PushNotification || + (this.PushNotification != null && + this.PushNotification.Equals(input.PushNotification)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.PushNotification != null) + hashCode = hashCode * 59 + this.PushNotification.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Range.cs b/src/Flipdish/Model/Range.cs new file mode 100644 index 00000000..10cb8d1c --- /dev/null +++ b/src/Flipdish/Model/Range.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A class that represents a single opening period in a day. This starts 'StartTime' after midnight and runs for a 'Period' after that, on the given DayOfWeek. + /// + [DataContract] + public partial class Range : IEquatable + { + /// + /// Day of week + /// + /// Day of week + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// Day of week + /// + /// Day of week + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public DayOfWeekEnum? DayOfWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Start time. + /// Period. + /// Day of week. + public Range(string startTime = default(string), string period = default(string), DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?)) + { + this.StartTime = startTime; + this.Period = period; + this.DayOfWeek = dayOfWeek; + } + + /// + /// Start time + /// + /// Start time + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public string StartTime { get; set; } + + /// + /// Period + /// + /// Period + [DataMember(Name="Period", EmitDefaultValue=false)] + public string Period { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Range {\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Range); + } + + /// + /// Returns true if Range instances are equal + /// + /// Instance of Range to be compared + /// Boolean + public bool Equals(Range input) + { + if (input == null) + return false; + + return + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.Period == input.Period || + (this.Period != null && + this.Period.Equals(input.Period)) + ) && + ( + this.DayOfWeek == input.DayOfWeek || + (this.DayOfWeek != null && + this.DayOfWeek.Equals(input.DayOfWeek)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.Period != null) + hashCode = hashCode * 59 + this.Period.GetHashCode(); + if (this.DayOfWeek != null) + hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ReaderActionStateInfo.cs b/src/Flipdish/Model/ReaderActionStateInfo.cs new file mode 100644 index 00000000..24a1829c --- /dev/null +++ b/src/Flipdish/Model/ReaderActionStateInfo.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Card reader state information + /// + [DataContract] + public partial class ReaderActionStateInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Action state. + /// Failure code. + /// Failure Message. + /// Type. + public ReaderActionStateInfo(string actionState = default(string), string failureCode = default(string), string failureMessage = default(string), string type = default(string)) + { + this.ActionState = actionState; + this.FailureCode = failureCode; + this.FailureMessage = failureMessage; + this.Type = type; + } + + /// + /// Action state + /// + /// Action state + [DataMember(Name="ActionState", EmitDefaultValue=false)] + public string ActionState { get; set; } + + /// + /// Failure code + /// + /// Failure code + [DataMember(Name="FailureCode", EmitDefaultValue=false)] + public string FailureCode { get; set; } + + /// + /// Failure Message + /// + /// Failure Message + [DataMember(Name="FailureMessage", EmitDefaultValue=false)] + public string FailureMessage { get; set; } + + /// + /// Type + /// + /// Type + [DataMember(Name="Type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReaderActionStateInfo {\n"); + sb.Append(" ActionState: ").Append(ActionState).Append("\n"); + sb.Append(" FailureCode: ").Append(FailureCode).Append("\n"); + sb.Append(" FailureMessage: ").Append(FailureMessage).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReaderActionStateInfo); + } + + /// + /// Returns true if ReaderActionStateInfo instances are equal + /// + /// Instance of ReaderActionStateInfo to be compared + /// Boolean + public bool Equals(ReaderActionStateInfo input) + { + if (input == null) + return false; + + return + ( + this.ActionState == input.ActionState || + (this.ActionState != null && + this.ActionState.Equals(input.ActionState)) + ) && + ( + this.FailureCode == input.FailureCode || + (this.FailureCode != null && + this.FailureCode.Equals(input.FailureCode)) + ) && + ( + this.FailureMessage == input.FailureMessage || + (this.FailureMessage != null && + this.FailureMessage.Equals(input.FailureMessage)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActionState != null) + hashCode = hashCode * 59 + this.ActionState.GetHashCode(); + if (this.FailureCode != null) + hashCode = hashCode * 59 + this.FailureCode.GetHashCode(); + if (this.FailureMessage != null) + hashCode = hashCode * 59 + this.FailureMessage.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RedeemInvitationResult.cs b/src/Flipdish/Model/RedeemInvitationResult.cs new file mode 100644 index 00000000..3f56ba70 --- /dev/null +++ b/src/Flipdish/Model/RedeemInvitationResult.cs @@ -0,0 +1,157 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RedeemInvitationResult + /// + [DataContract] + public partial class RedeemInvitationResult : IEquatable + { + /// + /// Invitation status + /// + /// Invitation status + [JsonConverter(typeof(StringEnumConverter))] + public enum InvitationStatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum Accepted for value: Accepted + /// + [EnumMember(Value = "Accepted")] + Accepted = 2, + + /// + /// Enum Expired for value: Expired + /// + [EnumMember(Value = "Expired")] + Expired = 3 + } + + /// + /// Invitation status + /// + /// Invitation status + [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] + public InvitationStatusEnum? InvitationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Access level is for this App. + /// Invitation status. + public RedeemInvitationResult(string appId = default(string), InvitationStatusEnum? invitationStatus = default(InvitationStatusEnum?)) + { + this.AppId = appId; + this.InvitationStatus = invitationStatus; + } + + /// + /// Access level is for this App + /// + /// Access level is for this App + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RedeemInvitationResult {\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" InvitationStatus: ").Append(InvitationStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RedeemInvitationResult); + } + + /// + /// Returns true if RedeemInvitationResult instances are equal + /// + /// Instance of RedeemInvitationResult to be compared + /// Boolean + public bool Equals(RedeemInvitationResult input) + { + if (input == null) + return false; + + return + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.InvitationStatus == input.InvitationStatus || + (this.InvitationStatus != null && + this.InvitationStatus.Equals(input.InvitationStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.InvitationStatus != null) + hashCode = hashCode * 59 + this.InvitationStatus.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Refund.cs b/src/Flipdish/Model/Refund.cs new file mode 100644 index 00000000..c6a0aa6e --- /dev/null +++ b/src/Flipdish/Model/Refund.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Refund + /// + [DataContract] + public partial class Refund : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Refund() { } + /// + /// Initializes a new instance of the class. + /// + /// Refund reason. + /// Refund amount (required). + /// If true, the system sends notification to the customer about the refund (required). + public Refund(string refundReason = default(string), double? refundAmount = default(double?), bool? notifyCustomer = default(bool?)) + { + // to ensure "refundAmount" is required (not null) + if (refundAmount == null) + { + throw new InvalidDataException("refundAmount is a required property for Refund and cannot be null"); + } + else + { + this.RefundAmount = refundAmount; + } + // to ensure "notifyCustomer" is required (not null) + if (notifyCustomer == null) + { + throw new InvalidDataException("notifyCustomer is a required property for Refund and cannot be null"); + } + else + { + this.NotifyCustomer = notifyCustomer; + } + this.RefundReason = refundReason; + } + + /// + /// Refund reason + /// + /// Refund reason + [DataMember(Name="RefundReason", EmitDefaultValue=false)] + public string RefundReason { get; set; } + + /// + /// Refund amount + /// + /// Refund amount + [DataMember(Name="RefundAmount", EmitDefaultValue=false)] + public double? RefundAmount { get; set; } + + /// + /// If true, the system sends notification to the customer about the refund + /// + /// If true, the system sends notification to the customer about the refund + [DataMember(Name="NotifyCustomer", EmitDefaultValue=false)] + public bool? NotifyCustomer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Refund {\n"); + sb.Append(" RefundReason: ").Append(RefundReason).Append("\n"); + sb.Append(" RefundAmount: ").Append(RefundAmount).Append("\n"); + sb.Append(" NotifyCustomer: ").Append(NotifyCustomer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Refund); + } + + /// + /// Returns true if Refund instances are equal + /// + /// Instance of Refund to be compared + /// Boolean + public bool Equals(Refund input) + { + if (input == null) + return false; + + return + ( + this.RefundReason == input.RefundReason || + (this.RefundReason != null && + this.RefundReason.Equals(input.RefundReason)) + ) && + ( + this.RefundAmount == input.RefundAmount || + (this.RefundAmount != null && + this.RefundAmount.Equals(input.RefundAmount)) + ) && + ( + this.NotifyCustomer == input.NotifyCustomer || + (this.NotifyCustomer != null && + this.NotifyCustomer.Equals(input.NotifyCustomer)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefundReason != null) + hashCode = hashCode * 59 + this.RefundReason.GetHashCode(); + if (this.RefundAmount != null) + hashCode = hashCode * 59 + this.RefundAmount.GetHashCode(); + if (this.NotifyCustomer != null) + hashCode = hashCode * 59 + this.NotifyCustomer.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Reject.cs b/src/Flipdish/Model/Reject.cs new file mode 100644 index 00000000..b8e871f8 --- /dev/null +++ b/src/Flipdish/Model/Reject.cs @@ -0,0 +1,206 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Reject + /// + [DataContract] + public partial class Reject : IEquatable + { + /// + /// Reject reason. + /// + /// Reject reason. + [JsonConverter(typeof(StringEnumConverter))] + public enum RejectReasonEnum + { + + /// + /// Enum TooBusy for value: TooBusy + /// + [EnumMember(Value = "TooBusy")] + TooBusy = 1, + + /// + /// Enum FoodUnavailable for value: FoodUnavailable + /// + [EnumMember(Value = "FoodUnavailable")] + FoodUnavailable = 2, + + /// + /// Enum UnableToDeliver for value: UnableToDeliver + /// + [EnumMember(Value = "UnableToDeliver")] + UnableToDeliver = 3, + + /// + /// Enum UnknownAddress for value: UnknownAddress + /// + [EnumMember(Value = "UnknownAddress")] + UnknownAddress = 4, + + /// + /// Enum UnknownReason for value: UnknownReason + /// + [EnumMember(Value = "UnknownReason")] + UnknownReason = 5, + + /// + /// Enum TooSoon for value: TooSoon + /// + [EnumMember(Value = "TooSoon")] + TooSoon = 6, + + /// + /// Enum TimeUnavailable for value: TimeUnavailable + /// + [EnumMember(Value = "TimeUnavailable")] + TimeUnavailable = 7, + + /// + /// Enum DontDeliverToArea for value: DontDeliverToArea + /// + [EnumMember(Value = "DontDeliverToArea")] + DontDeliverToArea = 8, + + /// + /// Enum StoreUncontactable for value: StoreUncontactable + /// + [EnumMember(Value = "StoreUncontactable")] + StoreUncontactable = 9 + } + + /// + /// Reject reason. + /// + /// Reject reason. + [DataMember(Name="RejectReason", EmitDefaultValue=false)] + public RejectReasonEnum RejectReason { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Reject() { } + /// + /// Initializes a new instance of the class. + /// + /// Reject reason. (required). + /// Notify customer. The server will not send and SMS to the customer if the value is true.. + public Reject(RejectReasonEnum rejectReason = default(RejectReasonEnum), bool? doNotNotifyCustomer = default(bool?)) + { + // to ensure "rejectReason" is required (not null) + if (rejectReason == null) + { + throw new InvalidDataException("rejectReason is a required property for Reject and cannot be null"); + } + else + { + this.RejectReason = rejectReason; + } + this.DoNotNotifyCustomer = doNotNotifyCustomer; + } + + + /// + /// Notify customer. The server will not send and SMS to the customer if the value is true. + /// + /// Notify customer. The server will not send and SMS to the customer if the value is true. + [DataMember(Name="DoNotNotifyCustomer", EmitDefaultValue=false)] + public bool? DoNotNotifyCustomer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Reject {\n"); + sb.Append(" RejectReason: ").Append(RejectReason).Append("\n"); + sb.Append(" DoNotNotifyCustomer: ").Append(DoNotNotifyCustomer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Reject); + } + + /// + /// Returns true if Reject instances are equal + /// + /// Instance of Reject to be compared + /// Boolean + public bool Equals(Reject input) + { + if (input == null) + return false; + + return + ( + this.RejectReason == input.RejectReason || + (this.RejectReason != null && + this.RejectReason.Equals(input.RejectReason)) + ) && + ( + this.DoNotNotifyCustomer == input.DoNotNotifyCustomer || + (this.DoNotNotifyCustomer != null && + this.DoNotNotifyCustomer.Equals(input.DoNotNotifyCustomer)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RejectReason != null) + hashCode = hashCode * 59 + this.RejectReason.GetHashCode(); + if (this.DoNotNotifyCustomer != null) + hashCode = hashCode * 59 + this.DoNotNotifyCustomer.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RequestPasswordResetModel.cs b/src/Flipdish/Model/RequestPasswordResetModel.cs new file mode 100644 index 00000000..0803dc70 --- /dev/null +++ b/src/Flipdish/Model/RequestPasswordResetModel.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RequestPasswordResetModel + /// + [DataContract] + public partial class RequestPasswordResetModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Email address. + /// Google Recaptcha Token. + public RequestPasswordResetModel(string email = default(string), string recaptchaToken = default(string)) + { + this.Email = email; + this.RecaptchaToken = recaptchaToken; + } + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Google Recaptcha Token + /// + /// Google Recaptcha Token + [DataMember(Name="RecaptchaToken", EmitDefaultValue=false)] + public string RecaptchaToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequestPasswordResetModel {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" RecaptchaToken: ").Append(RecaptchaToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequestPasswordResetModel); + } + + /// + /// Returns true if RequestPasswordResetModel instances are equal + /// + /// Instance of RequestPasswordResetModel to be compared + /// Boolean + public bool Equals(RequestPasswordResetModel input) + { + if (input == null) + return false; + + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.RecaptchaToken == input.RecaptchaToken || + (this.RecaptchaToken != null && + this.RecaptchaToken.Equals(input.RecaptchaToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.RecaptchaToken != null) + hashCode = hashCode * 59 + this.RecaptchaToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Response.cs b/src/Flipdish/Model/Response.cs new file mode 100644 index 00000000..aa4972a0 --- /dev/null +++ b/src/Flipdish/Model/Response.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Response + /// + [DataContract] + public partial class Response : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// stores. + public Response(List stores = default(List)) + { + this.Stores = stores; + } + + /// + /// Gets or Sets Stores + /// + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Response {\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Response); + } + + /// + /// Returns true if Response instances are equal + /// + /// Instance of Response to be compared + /// Boolean + public bool Equals(Response input) + { + if (input == null) + return false; + + return + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultAllMetadataResult.cs b/src/Flipdish/Model/RestApiArrayResultAllMetadataResult.cs new file mode 100644 index 00000000..ab07152d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultAllMetadataResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultAllMetadataResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultAllMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultAllMetadataResult(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultAllMetadataResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultAllMetadataResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultAllMetadataResult); + } + + /// + /// Returns true if RestApiArrayResultAllMetadataResult instances are equal + /// + /// Instance of RestApiArrayResultAllMetadataResult to be compared + /// Boolean + public bool Equals(RestApiArrayResultAllMetadataResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultAllergen.cs b/src/Flipdish/Model/RestApiArrayResultAllergen.cs new file mode 100644 index 00000000..ea477625 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultAllergen.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultAllergen : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultAllergen() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultAllergen(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultAllergen and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultAllergen {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultAllergen); + } + + /// + /// Returns true if RestApiArrayResultAllergen instances are equal + /// + /// Instance of RestApiArrayResultAllergen to be compared + /// Boolean + public bool Equals(RestApiArrayResultAllergen input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultApmCurrencyDataPoint.cs b/src/Flipdish/Model/RestApiArrayResultApmCurrencyDataPoint.cs new file mode 100644 index 00000000..cccac23a --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultApmCurrencyDataPoint.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultApmCurrencyDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultApmCurrencyDataPoint() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultApmCurrencyDataPoint(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultApmCurrencyDataPoint and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultApmCurrencyDataPoint {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultApmCurrencyDataPoint); + } + + /// + /// Returns true if RestApiArrayResultApmCurrencyDataPoint instances are equal + /// + /// Instance of RestApiArrayResultApmCurrencyDataPoint to be compared + /// Boolean + public bool Equals(RestApiArrayResultApmCurrencyDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultApmDataPoint.cs b/src/Flipdish/Model/RestApiArrayResultApmDataPoint.cs new file mode 100644 index 00000000..5991905d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultApmDataPoint.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultApmDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultApmDataPoint() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultApmDataPoint(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultApmDataPoint and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultApmDataPoint {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultApmDataPoint); + } + + /// + /// Returns true if RestApiArrayResultApmDataPoint instances are equal + /// + /// Instance of RestApiArrayResultApmDataPoint to be compared + /// Boolean + public bool Equals(RestApiArrayResultApmDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultApmHourlyDataPoint.cs b/src/Flipdish/Model/RestApiArrayResultApmHourlyDataPoint.cs new file mode 100644 index 00000000..a482ec80 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultApmHourlyDataPoint.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultApmHourlyDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultApmHourlyDataPoint() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultApmHourlyDataPoint(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultApmHourlyDataPoint and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultApmHourlyDataPoint {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultApmHourlyDataPoint); + } + + /// + /// Returns true if RestApiArrayResultApmHourlyDataPoint instances are equal + /// + /// Instance of RestApiArrayResultApmHourlyDataPoint to be compared + /// Boolean + public bool Equals(RestApiArrayResultApmHourlyDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationSummary.cs b/src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationSummary.cs new file mode 100644 index 00000000..9d87bb7f --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultAppStoreAppConfigurationSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultAppStoreAppConfigurationSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultAppStoreAppConfigurationSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultAppStoreAppConfigurationSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultAppStoreAppConfigurationSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultAppStoreAppConfigurationSummary); + } + + /// + /// Returns true if RestApiArrayResultAppStoreAppConfigurationSummary instances are equal + /// + /// Instance of RestApiArrayResultAppStoreAppConfigurationSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultAppStoreAppConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs b/src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs new file mode 100644 index 00000000..c8f6cc7e --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultAppStoreAppSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultAppStoreAppSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultAppStoreAppSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultAppStoreAppSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultAppStoreAppSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultAppStoreAppSummary); + } + + /// + /// Returns true if RestApiArrayResultAppStoreAppSummary instances are equal + /// + /// Instance of RestApiArrayResultAppStoreAppSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultAppStoreAppSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultBankAccountSummary.cs b/src/Flipdish/Model/RestApiArrayResultBankAccountSummary.cs new file mode 100644 index 00000000..484d4ecd --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultBankAccountSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultBankAccountSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultBankAccountSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultBankAccountSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultBankAccountSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultBankAccountSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultBankAccountSummary); + } + + /// + /// Returns true if RestApiArrayResultBankAccountSummary instances are equal + /// + /// Instance of RestApiArrayResultBankAccountSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultBankAccountSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultBusinessHoursPeriod.cs b/src/Flipdish/Model/RestApiArrayResultBusinessHoursPeriod.cs new file mode 100644 index 00000000..05e4a0f8 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultBusinessHoursPeriod.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultBusinessHoursPeriod : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultBusinessHoursPeriod() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultBusinessHoursPeriod(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultBusinessHoursPeriod and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultBusinessHoursPeriod {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultBusinessHoursPeriod); + } + + /// + /// Returns true if RestApiArrayResultBusinessHoursPeriod instances are equal + /// + /// Instance of RestApiArrayResultBusinessHoursPeriod to be compared + /// Boolean + public bool Equals(RestApiArrayResultBusinessHoursPeriod input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultChannel.cs b/src/Flipdish/Model/RestApiArrayResultChannel.cs new file mode 100644 index 00000000..74e9b956 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultChannel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultChannel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultChannel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultChannel(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultChannel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultChannel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultChannel); + } + + /// + /// Returns true if RestApiArrayResultChannel instances are equal + /// + /// Instance of RestApiArrayResultChannel to be compared + /// Boolean + public bool Equals(RestApiArrayResultChannel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultClientDeviceSummary.cs b/src/Flipdish/Model/RestApiArrayResultClientDeviceSummary.cs new file mode 100644 index 00000000..b4a8fdaa --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultClientDeviceSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultClientDeviceSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultClientDeviceSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultClientDeviceSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultClientDeviceSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultClientDeviceSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultClientDeviceSummary); + } + + /// + /// Returns true if RestApiArrayResultClientDeviceSummary instances are equal + /// + /// Instance of RestApiArrayResultClientDeviceSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultClientDeviceSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultCountryWithAccountFieldsDefinitions.cs b/src/Flipdish/Model/RestApiArrayResultCountryWithAccountFieldsDefinitions.cs new file mode 100644 index 00000000..989c0898 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultCountryWithAccountFieldsDefinitions.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultCountryWithAccountFieldsDefinitions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultCountryWithAccountFieldsDefinitions() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultCountryWithAccountFieldsDefinitions(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultCountryWithAccountFieldsDefinitions and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultCountryWithAccountFieldsDefinitions {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultCountryWithAccountFieldsDefinitions); + } + + /// + /// Returns true if RestApiArrayResultCountryWithAccountFieldsDefinitions instances are equal + /// + /// Instance of RestApiArrayResultCountryWithAccountFieldsDefinitions to be compared + /// Boolean + public bool Equals(RestApiArrayResultCountryWithAccountFieldsDefinitions input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultDeliveryZone.cs b/src/Flipdish/Model/RestApiArrayResultDeliveryZone.cs new file mode 100644 index 00000000..e88abc94 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultDeliveryZone.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultDeliveryZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultDeliveryZone() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultDeliveryZone(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultDeliveryZone and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultDeliveryZone {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultDeliveryZone); + } + + /// + /// Returns true if RestApiArrayResultDeliveryZone instances are equal + /// + /// Instance of RestApiArrayResultDeliveryZone to be compared + /// Boolean + public bool Equals(RestApiArrayResultDeliveryZone input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultEmvTerminalWithAssignments.cs b/src/Flipdish/Model/RestApiArrayResultEmvTerminalWithAssignments.cs new file mode 100644 index 00000000..304cde5b --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultEmvTerminalWithAssignments.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultEmvTerminalWithAssignments : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultEmvTerminalWithAssignments() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultEmvTerminalWithAssignments(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultEmvTerminalWithAssignments and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultEmvTerminalWithAssignments {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultEmvTerminalWithAssignments); + } + + /// + /// Returns true if RestApiArrayResultEmvTerminalWithAssignments instances are equal + /// + /// Instance of RestApiArrayResultEmvTerminalWithAssignments to be compared + /// Boolean + public bool Equals(RestApiArrayResultEmvTerminalWithAssignments input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultFlipdishAccountName.cs b/src/Flipdish/Model/RestApiArrayResultFlipdishAccountName.cs new file mode 100644 index 00000000..a762df59 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultFlipdishAccountName.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultFlipdishAccountName : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultFlipdishAccountName() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultFlipdishAccountName(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultFlipdishAccountName and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultFlipdishAccountName {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultFlipdishAccountName); + } + + /// + /// Returns true if RestApiArrayResultFlipdishAccountName instances are equal + /// + /// Instance of RestApiArrayResultFlipdishAccountName to be compared + /// Boolean + public bool Equals(RestApiArrayResultFlipdishAccountName input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultFulfillmentStatesConfigurationSummary.cs b/src/Flipdish/Model/RestApiArrayResultFulfillmentStatesConfigurationSummary.cs new file mode 100644 index 00000000..bfca4537 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultFulfillmentStatesConfigurationSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultFulfillmentStatesConfigurationSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultFulfillmentStatesConfigurationSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultFulfillmentStatesConfigurationSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultFulfillmentStatesConfigurationSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultFulfillmentStatesConfigurationSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultFulfillmentStatesConfigurationSummary); + } + + /// + /// Returns true if RestApiArrayResultFulfillmentStatesConfigurationSummary instances are equal + /// + /// Instance of RestApiArrayResultFulfillmentStatesConfigurationSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultFulfillmentStatesConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultHomeAction.cs b/src/Flipdish/Model/RestApiArrayResultHomeAction.cs new file mode 100644 index 00000000..10bffe19 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultHomeAction.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultHomeAction : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultHomeAction() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultHomeAction(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultHomeAction and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultHomeAction {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultHomeAction); + } + + /// + /// Returns true if RestApiArrayResultHomeAction instances are equal + /// + /// Instance of RestApiArrayResultHomeAction to be compared + /// Boolean + public bool Equals(RestApiArrayResultHomeAction input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultKioskCashPaymentSettings.cs b/src/Flipdish/Model/RestApiArrayResultKioskCashPaymentSettings.cs new file mode 100644 index 00000000..347d4f4c --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultKioskCashPaymentSettings.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultKioskCashPaymentSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultKioskCashPaymentSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultKioskCashPaymentSettings(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultKioskCashPaymentSettings and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultKioskCashPaymentSettings {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultKioskCashPaymentSettings); + } + + /// + /// Returns true if RestApiArrayResultKioskCashPaymentSettings instances are equal + /// + /// Instance of RestApiArrayResultKioskCashPaymentSettings to be compared + /// Boolean + public bool Equals(RestApiArrayResultKioskCashPaymentSettings input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultLocalisedTimeZone.cs b/src/Flipdish/Model/RestApiArrayResultLocalisedTimeZone.cs new file mode 100644 index 00000000..ae83d071 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultLocalisedTimeZone.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultLocalisedTimeZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultLocalisedTimeZone() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultLocalisedTimeZone(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultLocalisedTimeZone and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultLocalisedTimeZone {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultLocalisedTimeZone); + } + + /// + /// Returns true if RestApiArrayResultLocalisedTimeZone instances are equal + /// + /// Instance of RestApiArrayResultLocalisedTimeZone to be compared + /// Boolean + public bool Equals(RestApiArrayResultLocalisedTimeZone input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultLocationAreaLocation.cs b/src/Flipdish/Model/RestApiArrayResultLocationAreaLocation.cs new file mode 100644 index 00000000..ae798efc --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultLocationAreaLocation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultLocationAreaLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultLocationAreaLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultLocationAreaLocation(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultLocationAreaLocation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultLocationAreaLocation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultLocationAreaLocation); + } + + /// + /// Returns true if RestApiArrayResultLocationAreaLocation instances are equal + /// + /// Instance of RestApiArrayResultLocationAreaLocation to be compared + /// Boolean + public bool Equals(RestApiArrayResultLocationAreaLocation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultLocationAreaWithLocations.cs b/src/Flipdish/Model/RestApiArrayResultLocationAreaWithLocations.cs new file mode 100644 index 00000000..4d8ae7ee --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultLocationAreaWithLocations.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultLocationAreaWithLocations : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultLocationAreaWithLocations() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultLocationAreaWithLocations(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultLocationAreaWithLocations and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultLocationAreaWithLocations {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultLocationAreaWithLocations); + } + + /// + /// Returns true if RestApiArrayResultLocationAreaWithLocations instances are equal + /// + /// Instance of RestApiArrayResultLocationAreaWithLocations to be compared + /// Boolean + public bool Equals(RestApiArrayResultLocationAreaWithLocations input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultLoyaltyCampaign.cs b/src/Flipdish/Model/RestApiArrayResultLoyaltyCampaign.cs new file mode 100644 index 00000000..dc64dbaf --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultLoyaltyCampaign.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultLoyaltyCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultLoyaltyCampaign() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultLoyaltyCampaign(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultLoyaltyCampaign and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultLoyaltyCampaign {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultLoyaltyCampaign); + } + + /// + /// Returns true if RestApiArrayResultLoyaltyCampaign instances are equal + /// + /// Instance of RestApiArrayResultLoyaltyCampaign to be compared + /// Boolean + public bool Equals(RestApiArrayResultLoyaltyCampaign input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuCheckpoint.cs b/src/Flipdish/Model/RestApiArrayResultMenuCheckpoint.cs new file mode 100644 index 00000000..169f84f8 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuCheckpoint.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuCheckpoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuCheckpoint() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuCheckpoint(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuCheckpoint and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuCheckpoint {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuCheckpoint); + } + + /// + /// Returns true if RestApiArrayResultMenuCheckpoint instances are equal + /// + /// Instance of RestApiArrayResultMenuCheckpoint to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuCheckpoint input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuElementEditResponse.cs b/src/Flipdish/Model/RestApiArrayResultMenuElementEditResponse.cs new file mode 100644 index 00000000..43ad9ba6 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuElementEditResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuElementEditResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuElementEditResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuElementEditResponse(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuElementEditResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuElementEditResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuElementEditResponse); + } + + /// + /// Returns true if RestApiArrayResultMenuElementEditResponse instances are equal + /// + /// Instance of RestApiArrayResultMenuElementEditResponse to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuElementEditResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuElementListResponse.cs b/src/Flipdish/Model/RestApiArrayResultMenuElementListResponse.cs new file mode 100644 index 00000000..c822f42d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuElementListResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuElementListResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuElementListResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuElementListResponse(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuElementListResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuElementListResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuElementListResponse); + } + + /// + /// Returns true if RestApiArrayResultMenuElementListResponse instances are equal + /// + /// Instance of RestApiArrayResultMenuElementListResponse to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuElementListResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSet.cs b/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSet.cs new file mode 100644 index 00000000..5e37cdb3 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSet.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuItemOptionSet : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuItemOptionSet() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuItemOptionSet(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuItemOptionSet and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuItemOptionSet {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuItemOptionSet); + } + + /// + /// Returns true if RestApiArrayResultMenuItemOptionSet instances are equal + /// + /// Instance of RestApiArrayResultMenuItemOptionSet to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuItemOptionSet input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSetItem.cs b/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSetItem.cs new file mode 100644 index 00000000..6b5a205d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuItemOptionSetItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuItemOptionSetItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuItemOptionSetItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuItemOptionSetItem(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuItemOptionSetItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuItemOptionSetItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuItemOptionSetItem); + } + + /// + /// Returns true if RestApiArrayResultMenuItemOptionSetItem instances are equal + /// + /// Instance of RestApiArrayResultMenuItemOptionSetItem to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuItemOptionSetItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuSection.cs b/src/Flipdish/Model/RestApiArrayResultMenuSection.cs new file mode 100644 index 00000000..b49b6b24 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuSection.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuSection : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuSection() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuSection(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuSection and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuSection {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuSection); + } + + /// + /// Returns true if RestApiArrayResultMenuSection instances are equal + /// + /// Instance of RestApiArrayResultMenuSection to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuSection input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuSectionItem.cs b/src/Flipdish/Model/RestApiArrayResultMenuSectionItem.cs new file mode 100644 index 00000000..8f1bbf4d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuSectionItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuSectionItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuSectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuSectionItem(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuSectionItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuSectionItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuSectionItem); + } + + /// + /// Returns true if RestApiArrayResultMenuSectionItem instances are equal + /// + /// Instance of RestApiArrayResultMenuSectionItem to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuSectionItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuStoreNames.cs b/src/Flipdish/Model/RestApiArrayResultMenuStoreNames.cs new file mode 100644 index 00000000..389e00f3 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuStoreNames.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuStoreNames : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuStoreNames() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuStoreNames(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuStoreNames and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuStoreNames {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuStoreNames); + } + + /// + /// Returns true if RestApiArrayResultMenuStoreNames instances are equal + /// + /// Instance of RestApiArrayResultMenuStoreNames to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuStoreNames input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuSummary.cs b/src/Flipdish/Model/RestApiArrayResultMenuSummary.cs new file mode 100644 index 00000000..ca55dff2 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuSummary); + } + + /// + /// Returns true if RestApiArrayResultMenuSummary instances are equal + /// + /// Instance of RestApiArrayResultMenuSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuTaxDetails.cs b/src/Flipdish/Model/RestApiArrayResultMenuTaxDetails.cs new file mode 100644 index 00000000..4e1a0554 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuTaxDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuTaxDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuTaxDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuTaxDetails(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuTaxDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuTaxDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuTaxDetails); + } + + /// + /// Returns true if RestApiArrayResultMenuTaxDetails instances are equal + /// + /// Instance of RestApiArrayResultMenuTaxDetails to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuTaxDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMenuZone.cs b/src/Flipdish/Model/RestApiArrayResultMenuZone.cs new file mode 100644 index 00000000..033d102f --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMenuZone.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMenuZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMenuZone() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMenuZone(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuZone and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMenuZone {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMenuZone); + } + + /// + /// Returns true if RestApiArrayResultMenuZone instances are equal + /// + /// Instance of RestApiArrayResultMenuZone to be compared + /// Boolean + public bool Equals(RestApiArrayResultMenuZone input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMetadata.cs b/src/Flipdish/Model/RestApiArrayResultMetadata.cs new file mode 100644 index 00000000..39e79456 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMetadata.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMetadata : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMetadata(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMetadata and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMetadata {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMetadata); + } + + /// + /// Returns true if RestApiArrayResultMetadata instances are equal + /// + /// Instance of RestApiArrayResultMetadata to be compared + /// Boolean + public bool Equals(RestApiArrayResultMetadata input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultMobileAppsStatistics.cs b/src/Flipdish/Model/RestApiArrayResultMobileAppsStatistics.cs new file mode 100644 index 00000000..35cb2b29 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultMobileAppsStatistics.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultMobileAppsStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultMobileAppsStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultMobileAppsStatistics(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultMobileAppsStatistics and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultMobileAppsStatistics {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultMobileAppsStatistics); + } + + /// + /// Returns true if RestApiArrayResultMobileAppsStatistics instances are equal + /// + /// Instance of RestApiArrayResultMobileAppsStatistics to be compared + /// Boolean + public bool Equals(RestApiArrayResultMobileAppsStatistics input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultOAuthApp.cs b/src/Flipdish/Model/RestApiArrayResultOAuthApp.cs new file mode 100644 index 00000000..760c0744 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultOAuthApp.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultOAuthApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultOAuthApp() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultOAuthApp(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultOAuthApp and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultOAuthApp {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultOAuthApp); + } + + /// + /// Returns true if RestApiArrayResultOAuthApp instances are equal + /// + /// Instance of RestApiArrayResultOAuthApp to be compared + /// Boolean + public bool Equals(RestApiArrayResultOAuthApp input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultOauthClientRedirectUri.cs b/src/Flipdish/Model/RestApiArrayResultOauthClientRedirectUri.cs new file mode 100644 index 00000000..5d2984a9 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultOauthClientRedirectUri.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultOauthClientRedirectUri : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultOauthClientRedirectUri() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultOauthClientRedirectUri(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultOauthClientRedirectUri and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultOauthClientRedirectUri {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultOauthClientRedirectUri); + } + + /// + /// Returns true if RestApiArrayResultOauthClientRedirectUri instances are equal + /// + /// Instance of RestApiArrayResultOauthClientRedirectUri to be compared + /// Boolean + public bool Equals(RestApiArrayResultOauthClientRedirectUri input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultOrderBatch.cs b/src/Flipdish/Model/RestApiArrayResultOrderBatch.cs new file mode 100644 index 00000000..bc560af2 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultOrderBatch.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultOrderBatch : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultOrderBatch() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultOrderBatch(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultOrderBatch and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultOrderBatch {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultOrderBatch); + } + + /// + /// Returns true if RestApiArrayResultOrderBatch instances are equal + /// + /// Instance of RestApiArrayResultOrderBatch to be compared + /// Boolean + public bool Equals(RestApiArrayResultOrderBatch input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultOrderFulfillmentStatus.cs b/src/Flipdish/Model/RestApiArrayResultOrderFulfillmentStatus.cs new file mode 100644 index 00000000..4aaf7e34 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultOrderFulfillmentStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultOrderFulfillmentStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultOrderFulfillmentStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultOrderFulfillmentStatus(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultOrderFulfillmentStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultOrderFulfillmentStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultOrderFulfillmentStatus); + } + + /// + /// Returns true if RestApiArrayResultOrderFulfillmentStatus instances are equal + /// + /// Instance of RestApiArrayResultOrderFulfillmentStatus to be compared + /// Boolean + public bool Equals(RestApiArrayResultOrderFulfillmentStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultPayoutSummary.cs b/src/Flipdish/Model/RestApiArrayResultPayoutSummary.cs new file mode 100644 index 00000000..0ba0ea7a --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultPayoutSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultPayoutSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultPayoutSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultPayoutSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultPayoutSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultPayoutSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultPayoutSummary); + } + + /// + /// Returns true if RestApiArrayResultPayoutSummary instances are equal + /// + /// Instance of RestApiArrayResultPayoutSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultPayoutSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultPendingInvitation.cs b/src/Flipdish/Model/RestApiArrayResultPendingInvitation.cs new file mode 100644 index 00000000..a3ec79e0 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultPendingInvitation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultPendingInvitation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultPendingInvitation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultPendingInvitation(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultPendingInvitation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultPendingInvitation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultPendingInvitation); + } + + /// + /// Returns true if RestApiArrayResultPendingInvitation instances are equal + /// + /// Instance of RestApiArrayResultPendingInvitation to be compared + /// Boolean + public bool Equals(RestApiArrayResultPendingInvitation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultPendingMenuChangesSummaries.cs b/src/Flipdish/Model/RestApiArrayResultPendingMenuChangesSummaries.cs new file mode 100644 index 00000000..2bbaa0a7 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultPendingMenuChangesSummaries.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultPendingMenuChangesSummaries : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultPendingMenuChangesSummaries() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultPendingMenuChangesSummaries(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultPendingMenuChangesSummaries and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultPendingMenuChangesSummaries {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultPendingMenuChangesSummaries); + } + + /// + /// Returns true if RestApiArrayResultPendingMenuChangesSummaries instances are equal + /// + /// Instance of RestApiArrayResultPendingMenuChangesSummaries to be compared + /// Boolean + public bool Equals(RestApiArrayResultPendingMenuChangesSummaries input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultPreOrderTime.cs b/src/Flipdish/Model/RestApiArrayResultPreOrderTime.cs new file mode 100644 index 00000000..cc461d90 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultPreOrderTime.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultPreOrderTime : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultPreOrderTime() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultPreOrderTime(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultPreOrderTime and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultPreOrderTime {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultPreOrderTime); + } + + /// + /// Returns true if RestApiArrayResultPreOrderTime instances are equal + /// + /// Instance of RestApiArrayResultPreOrderTime to be compared + /// Boolean + public bool Equals(RestApiArrayResultPreOrderTime input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultProcessingFeeConfig.cs b/src/Flipdish/Model/RestApiArrayResultProcessingFeeConfig.cs new file mode 100644 index 00000000..8aece1fc --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultProcessingFeeConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultProcessingFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultProcessingFeeConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultProcessingFeeConfig(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultProcessingFeeConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultProcessingFeeConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultProcessingFeeConfig); + } + + /// + /// Returns true if RestApiArrayResultProcessingFeeConfig instances are equal + /// + /// Instance of RestApiArrayResultProcessingFeeConfig to be compared + /// Boolean + public bool Equals(RestApiArrayResultProcessingFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRedeemInvitationResult.cs b/src/Flipdish/Model/RestApiArrayResultRedeemInvitationResult.cs new file mode 100644 index 00000000..ab60f2cb --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRedeemInvitationResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRedeemInvitationResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRedeemInvitationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRedeemInvitationResult(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRedeemInvitationResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRedeemInvitationResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRedeemInvitationResult); + } + + /// + /// Returns true if RestApiArrayResultRedeemInvitationResult instances are equal + /// + /// Instance of RestApiArrayResultRedeemInvitationResult to be compared + /// Boolean + public bool Equals(RestApiArrayResultRedeemInvitationResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRestApiDefaultResponse.cs b/src/Flipdish/Model/RestApiArrayResultRestApiDefaultResponse.cs new file mode 100644 index 00000000..01f7d6d5 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRestApiDefaultResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRestApiDefaultResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRestApiDefaultResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRestApiDefaultResponse(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRestApiDefaultResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRestApiDefaultResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRestApiDefaultResponse); + } + + /// + /// Returns true if RestApiArrayResultRestApiDefaultResponse instances are equal + /// + /// Instance of RestApiArrayResultRestApiDefaultResponse to be compared + /// Boolean + public bool Equals(RestApiArrayResultRestApiDefaultResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherEligibleStore.cs b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherEligibleStore.cs new file mode 100644 index 00000000..0266ae57 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherEligibleStore.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRestaurantVoucherEligibleStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRestaurantVoucherEligibleStore() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRestaurantVoucherEligibleStore(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRestaurantVoucherEligibleStore and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRestaurantVoucherEligibleStore {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRestaurantVoucherEligibleStore); + } + + /// + /// Returns true if RestApiArrayResultRestaurantVoucherEligibleStore instances are equal + /// + /// Instance of RestApiArrayResultRestaurantVoucherEligibleStore to be compared + /// Boolean + public bool Equals(RestApiArrayResultRestaurantVoucherEligibleStore input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.cs b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.cs new file mode 100644 index 00000000..00a57d37 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRestaurantVoucherPayGreenConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRestaurantVoucherPayGreenConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRestaurantVoucherPayGreenConfiguration(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRestaurantVoucherPayGreenConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRestaurantVoucherPayGreenConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRestaurantVoucherPayGreenConfiguration); + } + + /// + /// Returns true if RestApiArrayResultRestaurantVoucherPayGreenConfiguration instances are equal + /// + /// Instance of RestApiArrayResultRestaurantVoucherPayGreenConfiguration to be compared + /// Boolean + public bool Equals(RestApiArrayResultRestaurantVoucherPayGreenConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.cs b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.cs new file mode 100644 index 00000000..78461156 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary); + } + + /// + /// Returns true if RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary instances are equal + /// + /// Instance of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultRetentionCampaign.cs b/src/Flipdish/Model/RestApiArrayResultRetentionCampaign.cs new file mode 100644 index 00000000..b8c3f123 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultRetentionCampaign.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultRetentionCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultRetentionCampaign() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultRetentionCampaign(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultRetentionCampaign and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultRetentionCampaign {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultRetentionCampaign); + } + + /// + /// Returns true if RestApiArrayResultRetentionCampaign instances are equal + /// + /// Instance of RestApiArrayResultRetentionCampaign to be compared + /// Boolean + public bool Equals(RestApiArrayResultRetentionCampaign input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultSmsProviderCredential.cs b/src/Flipdish/Model/RestApiArrayResultSmsProviderCredential.cs new file mode 100644 index 00000000..60fba7a9 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultSmsProviderCredential.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultSmsProviderCredential : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultSmsProviderCredential() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultSmsProviderCredential(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultSmsProviderCredential and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultSmsProviderCredential {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultSmsProviderCredential); + } + + /// + /// Returns true if RestApiArrayResultSmsProviderCredential instances are equal + /// + /// Instance of RestApiArrayResultSmsProviderCredential to be compared + /// Boolean + public bool Equals(RestApiArrayResultSmsProviderCredential input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultStoreChannelAssignment.cs b/src/Flipdish/Model/RestApiArrayResultStoreChannelAssignment.cs new file mode 100644 index 00000000..9a23a7be --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultStoreChannelAssignment.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultStoreChannelAssignment : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultStoreChannelAssignment() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultStoreChannelAssignment(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultStoreChannelAssignment and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultStoreChannelAssignment {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultStoreChannelAssignment); + } + + /// + /// Returns true if RestApiArrayResultStoreChannelAssignment instances are equal + /// + /// Instance of RestApiArrayResultStoreChannelAssignment to be compared + /// Boolean + public bool Equals(RestApiArrayResultStoreChannelAssignment input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs b/src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs new file mode 100644 index 00000000..f4c7ef44 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultStoreDeliveryZoneFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultStoreDeliveryZoneFeeConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultStoreDeliveryZoneFeeConfig(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultStoreDeliveryZoneFeeConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultStoreDeliveryZoneFeeConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultStoreDeliveryZoneFeeConfig); + } + + /// + /// Returns true if RestApiArrayResultStoreDeliveryZoneFeeConfig instances are equal + /// + /// Instance of RestApiArrayResultStoreDeliveryZoneFeeConfig to be compared + /// Boolean + public bool Equals(RestApiArrayResultStoreDeliveryZoneFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultStoreListItem.cs b/src/Flipdish/Model/RestApiArrayResultStoreListItem.cs new file mode 100644 index 00000000..552a1ec4 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultStoreListItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultStoreListItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultStoreListItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultStoreListItem(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultStoreListItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultStoreListItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultStoreListItem); + } + + /// + /// Returns true if RestApiArrayResultStoreListItem instances are equal + /// + /// Instance of RestApiArrayResultStoreListItem to be compared + /// Boolean + public bool Equals(RestApiArrayResultStoreListItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultStoreStatistics.cs b/src/Flipdish/Model/RestApiArrayResultStoreStatistics.cs new file mode 100644 index 00000000..f04dc083 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultStoreStatistics.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultStoreStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultStoreStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultStoreStatistics(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultStoreStatistics and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultStoreStatistics {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultStoreStatistics); + } + + /// + /// Returns true if RestApiArrayResultStoreStatistics instances are equal + /// + /// Instance of RestApiArrayResultStoreStatistics to be compared + /// Boolean + public bool Equals(RestApiArrayResultStoreStatistics input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultStripeCustomConnectedAccount.cs b/src/Flipdish/Model/RestApiArrayResultStripeCustomConnectedAccount.cs new file mode 100644 index 00000000..85632952 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultStripeCustomConnectedAccount.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultStripeCustomConnectedAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultStripeCustomConnectedAccount() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultStripeCustomConnectedAccount(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultStripeCustomConnectedAccount and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultStripeCustomConnectedAccount {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultStripeCustomConnectedAccount); + } + + /// + /// Returns true if RestApiArrayResultStripeCustomConnectedAccount instances are equal + /// + /// Instance of RestApiArrayResultStripeCustomConnectedAccount to be compared + /// Boolean + public bool Equals(RestApiArrayResultStripeCustomConnectedAccount input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultSubscriptionSummary.cs b/src/Flipdish/Model/RestApiArrayResultSubscriptionSummary.cs new file mode 100644 index 00000000..0429f1d8 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultSubscriptionSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultSubscriptionSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultSubscriptionSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultSubscriptionSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultSubscriptionSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultSubscriptionSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultSubscriptionSummary); + } + + /// + /// Returns true if RestApiArrayResultSubscriptionSummary instances are equal + /// + /// Instance of RestApiArrayResultSubscriptionSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultSubscriptionSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultSupportedCountry.cs b/src/Flipdish/Model/RestApiArrayResultSupportedCountry.cs new file mode 100644 index 00000000..a6a4374a --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultSupportedCountry.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultSupportedCountry : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultSupportedCountry() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultSupportedCountry(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultSupportedCountry and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultSupportedCountry {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultSupportedCountry); + } + + /// + /// Returns true if RestApiArrayResultSupportedCountry instances are equal + /// + /// Instance of RestApiArrayResultSupportedCountry to be compared + /// Boolean + public bool Equals(RestApiArrayResultSupportedCountry input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultTeammate.cs b/src/Flipdish/Model/RestApiArrayResultTeammate.cs new file mode 100644 index 00000000..676e720f --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultTeammate.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultTeammate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultTeammate() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultTeammate(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultTeammate and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultTeammate {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultTeammate); + } + + /// + /// Returns true if RestApiArrayResultTeammate instances are equal + /// + /// Instance of RestApiArrayResultTeammate to be compared + /// Boolean + public bool Equals(RestApiArrayResultTeammate input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserDeliveryLocationAdmin.cs b/src/Flipdish/Model/RestApiArrayResultUserDeliveryLocationAdmin.cs new file mode 100644 index 00000000..48db143f --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserDeliveryLocationAdmin.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserDeliveryLocationAdmin : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserDeliveryLocationAdmin() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserDeliveryLocationAdmin(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserDeliveryLocationAdmin and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserDeliveryLocationAdmin {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserDeliveryLocationAdmin); + } + + /// + /// Returns true if RestApiArrayResultUserDeliveryLocationAdmin instances are equal + /// + /// Instance of RestApiArrayResultUserDeliveryLocationAdmin to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserDeliveryLocationAdmin input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserFlipdishAccount.cs b/src/Flipdish/Model/RestApiArrayResultUserFlipdishAccount.cs new file mode 100644 index 00000000..39f1db92 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserFlipdishAccount.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserFlipdishAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserFlipdishAccount() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserFlipdishAccount(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserFlipdishAccount and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserFlipdishAccount {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserFlipdishAccount); + } + + /// + /// Returns true if RestApiArrayResultUserFlipdishAccount instances are equal + /// + /// Instance of RestApiArrayResultUserFlipdishAccount to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserFlipdishAccount input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserNote.cs b/src/Flipdish/Model/RestApiArrayResultUserNote.cs new file mode 100644 index 00000000..3fe3ac3d --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserNote.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserNote : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserNote() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserNote(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserNote and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserNote {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserNote); + } + + /// + /// Returns true if RestApiArrayResultUserNote instances are equal + /// + /// Instance of RestApiArrayResultUserNote to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserNote input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserOrderSummary.cs b/src/Flipdish/Model/RestApiArrayResultUserOrderSummary.cs new file mode 100644 index 00000000..803331ed --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserOrderSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserOrderSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserOrderSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserOrderSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserOrderSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserOrderSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserOrderSummary); + } + + /// + /// Returns true if RestApiArrayResultUserOrderSummary instances are equal + /// + /// Instance of RestApiArrayResultUserOrderSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserOrderSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserSmsChatItem.cs b/src/Flipdish/Model/RestApiArrayResultUserSmsChatItem.cs new file mode 100644 index 00000000..23c2db7c --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserSmsChatItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserSmsChatItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserSmsChatItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserSmsChatItem(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserSmsChatItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserSmsChatItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserSmsChatItem); + } + + /// + /// Returns true if RestApiArrayResultUserSmsChatItem instances are equal + /// + /// Instance of RestApiArrayResultUserSmsChatItem to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserSmsChatItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultUserStoreInfo.cs b/src/Flipdish/Model/RestApiArrayResultUserStoreInfo.cs new file mode 100644 index 00000000..7492ea54 --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultUserStoreInfo.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultUserStoreInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultUserStoreInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultUserStoreInfo(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultUserStoreInfo and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultUserStoreInfo {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultUserStoreInfo); + } + + /// + /// Returns true if RestApiArrayResultUserStoreInfo instances are equal + /// + /// Instance of RestApiArrayResultUserStoreInfo to be compared + /// Boolean + public bool Equals(RestApiArrayResultUserStoreInfo input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultVoucherDataPoint.cs b/src/Flipdish/Model/RestApiArrayResultVoucherDataPoint.cs new file mode 100644 index 00000000..19b88b6a --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultVoucherDataPoint.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultVoucherDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultVoucherDataPoint() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultVoucherDataPoint(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultVoucherDataPoint and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultVoucherDataPoint {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultVoucherDataPoint); + } + + /// + /// Returns true if RestApiArrayResultVoucherDataPoint instances are equal + /// + /// Instance of RestApiArrayResultVoucherDataPoint to be compared + /// Boolean + public bool Equals(RestApiArrayResultVoucherDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiArrayResultVoucherSummary.cs b/src/Flipdish/Model/RestApiArrayResultVoucherSummary.cs new file mode 100644 index 00000000..66807fde --- /dev/null +++ b/src/Flipdish/Model/RestApiArrayResultVoucherSummary.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api array result + /// + [DataContract] + public partial class RestApiArrayResultVoucherSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiArrayResultVoucherSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiArrayResultVoucherSummary(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiArrayResultVoucherSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiArrayResultVoucherSummary {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiArrayResultVoucherSummary); + } + + /// + /// Returns true if RestApiArrayResultVoucherSummary instances are equal + /// + /// Instance of RestApiArrayResultVoucherSummary to be compared + /// Boolean + public bool Equals(RestApiArrayResultVoucherSummary input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiDefaultResponse.cs b/src/Flipdish/Model/RestApiDefaultResponse.cs new file mode 100644 index 00000000..598f0125 --- /dev/null +++ b/src/Flipdish/Model/RestApiDefaultResponse.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api default response + /// + [DataContract] + public partial class RestApiDefaultResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public RestApiDefaultResponse() + { + } + + /// + /// Data string + /// + /// Data string + [DataMember(Name="Data", EmitDefaultValue=false)] + public string Data { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiDefaultResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiDefaultResponse); + } + + /// + /// Returns true if RestApiDefaultResponse instances are equal + /// + /// Instance of RestApiDefaultResponse to be compared + /// Boolean + public bool Equals(RestApiDefaultResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiErrorResult.cs b/src/Flipdish/Model/RestApiErrorResult.cs new file mode 100644 index 00000000..4f47bf76 --- /dev/null +++ b/src/Flipdish/Model/RestApiErrorResult.cs @@ -0,0 +1,177 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api error result + /// + [DataContract] + public partial class RestApiErrorResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiErrorResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Error message (required). + /// Error code. + /// Stack trace. + /// List of errors grouped by field name. + public RestApiErrorResult(string message = default(string), int? errorCode = default(int?), string stackTrace = default(string), List errors = default(List)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new InvalidDataException("message is a required property for RestApiErrorResult and cannot be null"); + } + else + { + this.Message = message; + } + this.ErrorCode = errorCode; + this.StackTrace = stackTrace; + this.Errors = errors; + } + + /// + /// Error message + /// + /// Error message + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Error code + /// + /// Error code + [DataMember(Name="ErrorCode", EmitDefaultValue=false)] + public int? ErrorCode { get; set; } + + /// + /// Stack trace + /// + /// Stack trace + [DataMember(Name="StackTrace", EmitDefaultValue=false)] + public string StackTrace { get; set; } + + /// + /// List of errors grouped by field name + /// + /// List of errors grouped by field name + [DataMember(Name="Errors", EmitDefaultValue=false)] + public List Errors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiErrorResult {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n"); + sb.Append(" StackTrace: ").Append(StackTrace).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiErrorResult); + } + + /// + /// Returns true if RestApiErrorResult instances are equal + /// + /// Instance of RestApiErrorResult to be compared + /// Boolean + public bool Equals(RestApiErrorResult input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.ErrorCode == input.ErrorCode || + (this.ErrorCode != null && + this.ErrorCode.Equals(input.ErrorCode)) + ) && + ( + this.StackTrace == input.StackTrace || + (this.StackTrace != null && + this.StackTrace.Equals(input.StackTrace)) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.ErrorCode != null) + hashCode = hashCode * 59 + this.ErrorCode.GetHashCode(); + if (this.StackTrace != null) + hashCode = hashCode * 59 + this.StackTrace.GetHashCode(); + if (this.Errors != null) + hashCode = hashCode * 59 + this.Errors.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiEventSearchPaginationResult.cs b/src/Flipdish/Model/RestApiEventSearchPaginationResult.cs new file mode 100644 index 00000000..e325796e --- /dev/null +++ b/src/Flipdish/Model/RestApiEventSearchPaginationResult.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestApiEventSearchPaginationResult + /// + [DataContract] + public partial class RestApiEventSearchPaginationResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiEventSearchPaginationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Event results (required). + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + public RestApiEventSearchPaginationResult(EventSearchResult data = default(EventSearchResult), int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiEventSearchPaginationResult and cannot be null"); + } + else + { + this.Data = data; + } + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiEventSearchPaginationResult and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiEventSearchPaginationResult and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiEventSearchPaginationResult and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + } + + /// + /// Event results + /// + /// Event results + [DataMember(Name="Data", EmitDefaultValue=false)] + public EventSearchResult Data { get; set; } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiEventSearchPaginationResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiEventSearchPaginationResult); + } + + /// + /// Returns true if RestApiEventSearchPaginationResult instances are equal + /// + /// Instance of RestApiEventSearchPaginationResult to be compared + /// Boolean + public bool Equals(RestApiEventSearchPaginationResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiFinanceSearchPaginationResultInvoice.cs b/src/Flipdish/Model/RestApiFinanceSearchPaginationResultInvoice.cs new file mode 100644 index 00000000..9e112709 --- /dev/null +++ b/src/Flipdish/Model/RestApiFinanceSearchPaginationResultInvoice.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api finance search pagination result + /// + [DataContract] + public partial class RestApiFinanceSearchPaginationResultInvoice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiFinanceSearchPaginationResultInvoice() { } + /// + /// Initializes a new instance of the class. + /// + /// Next page (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiFinanceSearchPaginationResultInvoice(string nextPage = default(string), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "nextPage" is required (not null) + if (nextPage == null) + { + throw new InvalidDataException("nextPage is a required property for RestApiFinanceSearchPaginationResultInvoice and cannot be null"); + } + else + { + this.NextPage = nextPage; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiFinanceSearchPaginationResultInvoice and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiFinanceSearchPaginationResultInvoice and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiFinanceSearchPaginationResultInvoice and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Next page + /// + /// Next page + [DataMember(Name="NextPage", EmitDefaultValue=false)] + public string NextPage { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiFinanceSearchPaginationResultInvoice {\n"); + sb.Append(" NextPage: ").Append(NextPage).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiFinanceSearchPaginationResultInvoice); + } + + /// + /// Returns true if RestApiFinanceSearchPaginationResultInvoice instances are equal + /// + /// Instance of RestApiFinanceSearchPaginationResultInvoice to be compared + /// Boolean + public bool Equals(RestApiFinanceSearchPaginationResultInvoice input) + { + if (input == null) + return false; + + return + ( + this.NextPage == input.NextPage || + (this.NextPage != null && + this.NextPage.Equals(input.NextPage)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NextPage != null) + hashCode = hashCode * 59 + this.NextPage.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.cs b/src/Flipdish/Model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.cs new file mode 100644 index 00000000..dbd6516e --- /dev/null +++ b/src/Flipdish/Model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api finance search pagination result + /// + [DataContract] + public partial class RestApiFinanceSearchPaginationResultSubscriptionInvoice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiFinanceSearchPaginationResultSubscriptionInvoice() { } + /// + /// Initializes a new instance of the class. + /// + /// Next page (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiFinanceSearchPaginationResultSubscriptionInvoice(string nextPage = default(string), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "nextPage" is required (not null) + if (nextPage == null) + { + throw new InvalidDataException("nextPage is a required property for RestApiFinanceSearchPaginationResultSubscriptionInvoice and cannot be null"); + } + else + { + this.NextPage = nextPage; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiFinanceSearchPaginationResultSubscriptionInvoice and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiFinanceSearchPaginationResultSubscriptionInvoice and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiFinanceSearchPaginationResultSubscriptionInvoice and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Next page + /// + /// Next page + [DataMember(Name="NextPage", EmitDefaultValue=false)] + public string NextPage { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiFinanceSearchPaginationResultSubscriptionInvoice {\n"); + sb.Append(" NextPage: ").Append(NextPage).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiFinanceSearchPaginationResultSubscriptionInvoice); + } + + /// + /// Returns true if RestApiFinanceSearchPaginationResultSubscriptionInvoice instances are equal + /// + /// Instance of RestApiFinanceSearchPaginationResultSubscriptionInvoice to be compared + /// Boolean + public bool Equals(RestApiFinanceSearchPaginationResultSubscriptionInvoice input) + { + if (input == null) + return false; + + return + ( + this.NextPage == input.NextPage || + (this.NextPage != null && + this.NextPage.Equals(input.NextPage)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NextPage != null) + hashCode = hashCode * 59 + this.NextPage.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiForbiddenResult.cs b/src/Flipdish/Model/RestApiForbiddenResult.cs new file mode 100644 index 00000000..b4a9b00b --- /dev/null +++ b/src/Flipdish/Model/RestApiForbiddenResult.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest Api Forbidden Result + /// + [DataContract] + public partial class RestApiForbiddenResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public RestApiForbiddenResult() + { + } + + /// + /// Message + /// + /// Message + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiForbiddenResult {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiForbiddenResult); + } + + /// + /// Returns true if RestApiForbiddenResult instances are equal + /// + /// Instance of RestApiForbiddenResult to be compared + /// Boolean + public bool Equals(RestApiForbiddenResult input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiIntegerResult.cs b/src/Flipdish/Model/RestApiIntegerResult.cs new file mode 100644 index 00000000..757d06a8 --- /dev/null +++ b/src/Flipdish/Model/RestApiIntegerResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api integer result + /// + [DataContract] + public partial class RestApiIntegerResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiIntegerResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Data integer (required). + public RestApiIntegerResult(int? data = default(int?)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiIntegerResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Data integer + /// + /// Data integer + [DataMember(Name="Data", EmitDefaultValue=false)] + public int? Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiIntegerResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiIntegerResult); + } + + /// + /// Returns true if RestApiIntegerResult instances are equal + /// + /// Instance of RestApiIntegerResult to be compared + /// Boolean + public bool Equals(RestApiIntegerResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultApp.cs b/src/Flipdish/Model/RestApiPaginationResultApp.cs new file mode 100644 index 00000000..c5a44977 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultApp.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultApp() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultApp(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultApp and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultApp and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultApp and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultApp and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultApp {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultApp); + } + + /// + /// Returns true if RestApiPaginationResultApp instances are equal + /// + /// Instance of RestApiPaginationResultApp to be compared + /// Boolean + public bool Equals(RestApiPaginationResultApp input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultAppStoreAppSummary.cs b/src/Flipdish/Model/RestApiPaginationResultAppStoreAppSummary.cs new file mode 100644 index 00000000..5bfee755 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultAppStoreAppSummary.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultAppStoreAppSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultAppStoreAppSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultAppStoreAppSummary(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultAppStoreAppSummary and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultAppStoreAppSummary and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultAppStoreAppSummary and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultAppStoreAppSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultAppStoreAppSummary {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultAppStoreAppSummary); + } + + /// + /// Returns true if RestApiPaginationResultAppStoreAppSummary instances are equal + /// + /// Instance of RestApiPaginationResultAppStoreAppSummary to be compared + /// Boolean + public bool Equals(RestApiPaginationResultAppStoreAppSummary input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultBusinessHoursOverride.cs b/src/Flipdish/Model/RestApiPaginationResultBusinessHoursOverride.cs new file mode 100644 index 00000000..bf6e6e0c --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultBusinessHoursOverride.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultBusinessHoursOverride : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultBusinessHoursOverride() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultBusinessHoursOverride(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultBusinessHoursOverride and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultBusinessHoursOverride and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultBusinessHoursOverride and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultBusinessHoursOverride and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultBusinessHoursOverride {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultBusinessHoursOverride); + } + + /// + /// Returns true if RestApiPaginationResultBusinessHoursOverride instances are equal + /// + /// Instance of RestApiPaginationResultBusinessHoursOverride to be compared + /// Boolean + public bool Equals(RestApiPaginationResultBusinessHoursOverride input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultCatalogItem.cs b/src/Flipdish/Model/RestApiPaginationResultCatalogItem.cs new file mode 100644 index 00000000..00aa83f9 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultCatalogItem.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultCatalogItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultCatalogItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultCatalogItem(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultCatalogItem and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultCatalogItem and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultCatalogItem and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultCatalogItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultCatalogItem {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultCatalogItem); + } + + /// + /// Returns true if RestApiPaginationResultCatalogItem instances are equal + /// + /// Instance of RestApiPaginationResultCatalogItem to be compared + /// Boolean + public bool Equals(RestApiPaginationResultCatalogItem input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultGroup.cs b/src/Flipdish/Model/RestApiPaginationResultGroup.cs new file mode 100644 index 00000000..57ece035 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultGroup.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultGroup(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultGroup and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultGroup and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultGroup and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultGroup and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultGroup {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultGroup); + } + + /// + /// Returns true if RestApiPaginationResultGroup instances are equal + /// + /// Instance of RestApiPaginationResultGroup to be compared + /// Boolean + public bool Equals(RestApiPaginationResultGroup input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultHydraDeviceDetails.cs b/src/Flipdish/Model/RestApiPaginationResultHydraDeviceDetails.cs new file mode 100644 index 00000000..9782fc69 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultHydraDeviceDetails.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultHydraDeviceDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultHydraDeviceDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultHydraDeviceDetails(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultHydraDeviceDetails and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultHydraDeviceDetails and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultHydraDeviceDetails and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultHydraDeviceDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultHydraDeviceDetails {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultHydraDeviceDetails); + } + + /// + /// Returns true if RestApiPaginationResultHydraDeviceDetails instances are equal + /// + /// Instance of RestApiPaginationResultHydraDeviceDetails to be compared + /// Boolean + public bool Equals(RestApiPaginationResultHydraDeviceDetails input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinition.cs b/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinition.cs new file mode 100644 index 00000000..7735db6d --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinition.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultMetafieldDefinition : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultMetafieldDefinition() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultMetafieldDefinition(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultMetafieldDefinition and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultMetafieldDefinition and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultMetafieldDefinition and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultMetafieldDefinition and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultMetafieldDefinition {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultMetafieldDefinition); + } + + /// + /// Returns true if RestApiPaginationResultMetafieldDefinition instances are equal + /// + /// Instance of RestApiPaginationResultMetafieldDefinition to be compared + /// Boolean + public bool Equals(RestApiPaginationResultMetafieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinitionRecommendation.cs b/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinitionRecommendation.cs new file mode 100644 index 00000000..5f8bbdf3 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultMetafieldDefinitionRecommendation.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultMetafieldDefinitionRecommendation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultMetafieldDefinitionRecommendation() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultMetafieldDefinitionRecommendation(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultMetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultMetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultMetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultMetafieldDefinitionRecommendation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultMetafieldDefinitionRecommendation {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultMetafieldDefinitionRecommendation); + } + + /// + /// Returns true if RestApiPaginationResultMetafieldDefinitionRecommendation instances are equal + /// + /// Instance of RestApiPaginationResultMetafieldDefinitionRecommendation to be compared + /// Boolean + public bool Equals(RestApiPaginationResultMetafieldDefinitionRecommendation input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultOAuthTokenModel.cs b/src/Flipdish/Model/RestApiPaginationResultOAuthTokenModel.cs new file mode 100644 index 00000000..d6d3207a --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultOAuthTokenModel.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultOAuthTokenModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultOAuthTokenModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultOAuthTokenModel(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultOAuthTokenModel and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultOAuthTokenModel and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultOAuthTokenModel and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultOAuthTokenModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultOAuthTokenModel {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultOAuthTokenModel); + } + + /// + /// Returns true if RestApiPaginationResultOAuthTokenModel instances are equal + /// + /// Instance of RestApiPaginationResultOAuthTokenModel to be compared + /// Boolean + public bool Equals(RestApiPaginationResultOAuthTokenModel input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultOrder.cs b/src/Flipdish/Model/RestApiPaginationResultOrder.cs new file mode 100644 index 00000000..55d59608 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultOrder.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultOrder : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultOrder(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultOrder and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultOrder and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultOrder and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultOrder and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultOrder {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultOrder); + } + + /// + /// Returns true if RestApiPaginationResultOrder instances are equal + /// + /// Instance of RestApiPaginationResultOrder to be compared + /// Boolean + public bool Equals(RestApiPaginationResultOrder input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultOrderSummary.cs b/src/Flipdish/Model/RestApiPaginationResultOrderSummary.cs new file mode 100644 index 00000000..6b6e9fe8 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultOrderSummary.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultOrderSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultOrderSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultOrderSummary(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultOrderSummary and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultOrderSummary and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultOrderSummary and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultOrderSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultOrderSummary {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultOrderSummary); + } + + /// + /// Returns true if RestApiPaginationResultOrderSummary instances are equal + /// + /// Instance of RestApiPaginationResultOrderSummary to be compared + /// Boolean + public bool Equals(RestApiPaginationResultOrderSummary input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayout.cs b/src/Flipdish/Model/RestApiPaginationResultPayout.cs new file mode 100644 index 00000000..da706097 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayout.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayout : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayout() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayout(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayout and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayout and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayout and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayout and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayout {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayout); + } + + /// + /// Returns true if RestApiPaginationResultPayout instances are equal + /// + /// Instance of RestApiPaginationResultPayout to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayout input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayoutChargeback.cs b/src/Flipdish/Model/RestApiPaginationResultPayoutChargeback.cs new file mode 100644 index 00000000..a401bdc4 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayoutChargeback.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayoutChargeback : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayoutChargeback() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayoutChargeback(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayoutChargeback and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayoutChargeback and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayoutChargeback and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayoutChargeback and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayoutChargeback {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayoutChargeback); + } + + /// + /// Returns true if RestApiPaginationResultPayoutChargeback instances are equal + /// + /// Instance of RestApiPaginationResultPayoutChargeback to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayoutChargeback input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayoutOrder.cs b/src/Flipdish/Model/RestApiPaginationResultPayoutOrder.cs new file mode 100644 index 00000000..aed46a74 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayoutOrder.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayoutOrder : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayoutOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayoutOrder(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayoutOrder and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayoutOrder and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayoutOrder and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayoutOrder and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayoutOrder {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayoutOrder); + } + + /// + /// Returns true if RestApiPaginationResultPayoutOrder instances are equal + /// + /// Instance of RestApiPaginationResultPayoutOrder to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayoutOrder input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayoutOtherCharge.cs b/src/Flipdish/Model/RestApiPaginationResultPayoutOtherCharge.cs new file mode 100644 index 00000000..61116555 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayoutOtherCharge.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayoutOtherCharge : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayoutOtherCharge() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayoutOtherCharge(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayoutOtherCharge and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayoutOtherCharge and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayoutOtherCharge and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayoutOtherCharge and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayoutOtherCharge {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayoutOtherCharge); + } + + /// + /// Returns true if RestApiPaginationResultPayoutOtherCharge instances are equal + /// + /// Instance of RestApiPaginationResultPayoutOtherCharge to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayoutOtherCharge input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayoutRefund.cs b/src/Flipdish/Model/RestApiPaginationResultPayoutRefund.cs new file mode 100644 index 00000000..1c712807 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayoutRefund.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayoutRefund : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayoutRefund() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayoutRefund(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayoutRefund and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayoutRefund and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayoutRefund and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayoutRefund and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayoutRefund {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayoutRefund); + } + + /// + /// Returns true if RestApiPaginationResultPayoutRefund instances are equal + /// + /// Instance of RestApiPaginationResultPayoutRefund to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayoutRefund input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPayoutReport3RefundedOrder.cs b/src/Flipdish/Model/RestApiPaginationResultPayoutReport3RefundedOrder.cs new file mode 100644 index 00000000..af06c119 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPayoutReport3RefundedOrder.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPayoutReport3RefundedOrder : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPayoutReport3RefundedOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPayoutReport3RefundedOrder(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPayoutReport3RefundedOrder and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPayoutReport3RefundedOrder and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPayoutReport3RefundedOrder and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPayoutReport3RefundedOrder and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPayoutReport3RefundedOrder {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPayoutReport3RefundedOrder); + } + + /// + /// Returns true if RestApiPaginationResultPayoutReport3RefundedOrder instances are equal + /// + /// Instance of RestApiPaginationResultPayoutReport3RefundedOrder to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPayoutReport3RefundedOrder input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPendingMenuChanges.cs b/src/Flipdish/Model/RestApiPaginationResultPendingMenuChanges.cs new file mode 100644 index 00000000..5d482c42 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPendingMenuChanges.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPendingMenuChanges : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPendingMenuChanges() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPendingMenuChanges(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPendingMenuChanges and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPendingMenuChanges and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPendingMenuChanges and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPendingMenuChanges and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPendingMenuChanges {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPendingMenuChanges); + } + + /// + /// Returns true if RestApiPaginationResultPendingMenuChanges instances are equal + /// + /// Instance of RestApiPaginationResultPendingMenuChanges to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPendingMenuChanges input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPhoneCall.cs b/src/Flipdish/Model/RestApiPaginationResultPhoneCall.cs new file mode 100644 index 00000000..5bae65a7 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPhoneCall.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPhoneCall : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPhoneCall() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPhoneCall(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPhoneCall and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPhoneCall and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPhoneCall and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPhoneCall and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPhoneCall {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPhoneCall); + } + + /// + /// Returns true if RestApiPaginationResultPhoneCall instances are equal + /// + /// Instance of RestApiPaginationResultPhoneCall to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPhoneCall input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultProduct.cs b/src/Flipdish/Model/RestApiPaginationResultProduct.cs new file mode 100644 index 00000000..fa2f2fcd --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultProduct.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultProduct : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultProduct() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultProduct(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultProduct and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultProduct and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultProduct and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultProduct and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultProduct {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultProduct); + } + + /// + /// Returns true if RestApiPaginationResultProduct instances are equal + /// + /// Instance of RestApiPaginationResultProduct to be compared + /// Boolean + public bool Equals(RestApiPaginationResultProduct input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultPushNotificationResponse.cs b/src/Flipdish/Model/RestApiPaginationResultPushNotificationResponse.cs new file mode 100644 index 00000000..40b13c90 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultPushNotificationResponse.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultPushNotificationResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultPushNotificationResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultPushNotificationResponse(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultPushNotificationResponse and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultPushNotificationResponse and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultPushNotificationResponse and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultPushNotificationResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultPushNotificationResponse {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultPushNotificationResponse); + } + + /// + /// Returns true if RestApiPaginationResultPushNotificationResponse instances are equal + /// + /// Instance of RestApiPaginationResultPushNotificationResponse to be compared + /// Boolean + public bool Equals(RestApiPaginationResultPushNotificationResponse input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultRestaurant.cs b/src/Flipdish/Model/RestApiPaginationResultRestaurant.cs new file mode 100644 index 00000000..ef59fe97 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultRestaurant.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultRestaurant : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultRestaurant() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultRestaurant(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultRestaurant and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultRestaurant and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultRestaurant and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultRestaurant and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultRestaurant {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultRestaurant); + } + + /// + /// Returns true if RestApiPaginationResultRestaurant instances are equal + /// + /// Instance of RestApiPaginationResultRestaurant to be compared + /// Boolean + public bool Equals(RestApiPaginationResultRestaurant input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultStore.cs b/src/Flipdish/Model/RestApiPaginationResultStore.cs new file mode 100644 index 00000000..b896423a --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultStore.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultStore() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultStore(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultStore and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultStore and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultStore and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultStore and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultStore {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultStore); + } + + /// + /// Returns true if RestApiPaginationResultStore instances are equal + /// + /// Instance of RestApiPaginationResultStore to be compared + /// Boolean + public bool Equals(RestApiPaginationResultStore input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultStoreGroup.cs b/src/Flipdish/Model/RestApiPaginationResultStoreGroup.cs new file mode 100644 index 00000000..5e2b11a0 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultStoreGroup.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultStoreGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultStoreGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultStoreGroup(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultStoreGroup and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultStoreGroup and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultStoreGroup and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultStoreGroup and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultStoreGroup {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultStoreGroup); + } + + /// + /// Returns true if RestApiPaginationResultStoreGroup instances are equal + /// + /// Instance of RestApiPaginationResultStoreGroup to be compared + /// Boolean + public bool Equals(RestApiPaginationResultStoreGroup input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultStoreGroupExtended.cs b/src/Flipdish/Model/RestApiPaginationResultStoreGroupExtended.cs new file mode 100644 index 00000000..6285b6fc --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultStoreGroupExtended.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultStoreGroupExtended : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultStoreGroupExtended() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultStoreGroupExtended(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultStoreGroupExtended and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultStoreGroupExtended and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultStoreGroupExtended and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultStoreGroupExtended and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultStoreGroupExtended {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultStoreGroupExtended); + } + + /// + /// Returns true if RestApiPaginationResultStoreGroupExtended instances are equal + /// + /// Instance of RestApiPaginationResultStoreGroupExtended to be compared + /// Boolean + public bool Equals(RestApiPaginationResultStoreGroupExtended input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultStoreHeader.cs b/src/Flipdish/Model/RestApiPaginationResultStoreHeader.cs new file mode 100644 index 00000000..da458522 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultStoreHeader.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultStoreHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultStoreHeader() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultStoreHeader(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultStoreHeader and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultStoreHeader and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultStoreHeader and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultStoreHeader and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultStoreHeader {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultStoreHeader); + } + + /// + /// Returns true if RestApiPaginationResultStoreHeader instances are equal + /// + /// Instance of RestApiPaginationResultStoreHeader to be compared + /// Boolean + public bool Equals(RestApiPaginationResultStoreHeader input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultStoreValidationConfig.cs b/src/Flipdish/Model/RestApiPaginationResultStoreValidationConfig.cs new file mode 100644 index 00000000..fff278e9 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultStoreValidationConfig.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultStoreValidationConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultStoreValidationConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultStoreValidationConfig(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultStoreValidationConfig and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultStoreValidationConfig and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultStoreValidationConfig and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultStoreValidationConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultStoreValidationConfig {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultStoreValidationConfig); + } + + /// + /// Returns true if RestApiPaginationResultStoreValidationConfig instances are equal + /// + /// Instance of RestApiPaginationResultStoreValidationConfig to be compared + /// Boolean + public bool Equals(RestApiPaginationResultStoreValidationConfig input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultUserSearch.cs b/src/Flipdish/Model/RestApiPaginationResultUserSearch.cs new file mode 100644 index 00000000..3e715663 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultUserSearch.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultUserSearch : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultUserSearch() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultUserSearch(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultUserSearch and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultUserSearch and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultUserSearch and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultUserSearch and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultUserSearch {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultUserSearch); + } + + /// + /// Returns true if RestApiPaginationResultUserSearch instances are equal + /// + /// Instance of RestApiPaginationResultUserSearch to be compared + /// Boolean + public bool Equals(RestApiPaginationResultUserSearch input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultVoucherSummary.cs b/src/Flipdish/Model/RestApiPaginationResultVoucherSummary.cs new file mode 100644 index 00000000..c155d393 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultVoucherSummary.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultVoucherSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultVoucherSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultVoucherSummary(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultVoucherSummary and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultVoucherSummary and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultVoucherSummary and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultVoucherSummary and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultVoucherSummary {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultVoucherSummary); + } + + /// + /// Returns true if RestApiPaginationResultVoucherSummary instances are equal + /// + /// Instance of RestApiPaginationResultVoucherSummary to be compared + /// Boolean + public bool Equals(RestApiPaginationResultVoucherSummary input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultWebhookLog.cs b/src/Flipdish/Model/RestApiPaginationResultWebhookLog.cs new file mode 100644 index 00000000..a2cd1aec --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultWebhookLog.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultWebhookLog : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultWebhookLog() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultWebhookLog(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultWebhookLog and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultWebhookLog and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultWebhookLog and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultWebhookLog and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultWebhookLog {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultWebhookLog); + } + + /// + /// Returns true if RestApiPaginationResultWebhookLog instances are equal + /// + /// Instance of RestApiPaginationResultWebhookLog to be compared + /// Boolean + public bool Equals(RestApiPaginationResultWebhookLog input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiPaginationResultWebhookSubscription.cs b/src/Flipdish/Model/RestApiPaginationResultWebhookSubscription.cs new file mode 100644 index 00000000..f9d46f51 --- /dev/null +++ b/src/Flipdish/Model/RestApiPaginationResultWebhookSubscription.cs @@ -0,0 +1,201 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api pagination result + /// + [DataContract] + public partial class RestApiPaginationResultWebhookSubscription : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiPaginationResultWebhookSubscription() { } + /// + /// Initializes a new instance of the class. + /// + /// Current page index (required). + /// Current page size (required). + /// Total record count (required). + /// Generic data object. (required). + public RestApiPaginationResultWebhookSubscription(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new InvalidDataException("page is a required property for RestApiPaginationResultWebhookSubscription and cannot be null"); + } + else + { + this.Page = page; + } + // to ensure "limit" is required (not null) + if (limit == null) + { + throw new InvalidDataException("limit is a required property for RestApiPaginationResultWebhookSubscription and cannot be null"); + } + else + { + this.Limit = limit; + } + // to ensure "totalRecordCount" is required (not null) + if (totalRecordCount == null) + { + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultWebhookSubscription and cannot be null"); + } + else + { + this.TotalRecordCount = totalRecordCount; + } + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiPaginationResultWebhookSubscription and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Current page index + /// + /// Current page index + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Current page size + /// + /// Current page size + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// Total record count + /// + /// Total record count + [DataMember(Name="TotalRecordCount", EmitDefaultValue=false)] + public int? TotalRecordCount { get; set; } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiPaginationResultWebhookSubscription {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" TotalRecordCount: ").Append(TotalRecordCount).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiPaginationResultWebhookSubscription); + } + + /// + /// Returns true if RestApiPaginationResultWebhookSubscription instances are equal + /// + /// Instance of RestApiPaginationResultWebhookSubscription to be compared + /// Boolean + public bool Equals(RestApiPaginationResultWebhookSubscription input) + { + if (input == null) + return false; + + return + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.TotalRecordCount == input.TotalRecordCount || + (this.TotalRecordCount != null && + this.TotalRecordCount.Equals(input.TotalRecordCount)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.TotalRecordCount != null) + hashCode = hashCode * 59 + this.TotalRecordCount.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAcceptInvitationResult.cs b/src/Flipdish/Model/RestApiResultAcceptInvitationResult.cs new file mode 100644 index 00000000..f0a8323d --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAcceptInvitationResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAcceptInvitationResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAcceptInvitationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAcceptInvitationResult(AcceptInvitationResult data = default(AcceptInvitationResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAcceptInvitationResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AcceptInvitationResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAcceptInvitationResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAcceptInvitationResult); + } + + /// + /// Returns true if RestApiResultAcceptInvitationResult instances are equal + /// + /// Instance of RestApiResultAcceptInvitationResult to be compared + /// Boolean + public bool Equals(RestApiResultAcceptInvitationResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAccountDetail.cs b/src/Flipdish/Model/RestApiResultAccountDetail.cs new file mode 100644 index 00000000..83153106 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAccountDetail.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAccountDetail : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAccountDetail() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAccountDetail(AccountDetail data = default(AccountDetail)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAccountDetail and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AccountDetail Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAccountDetail {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAccountDetail); + } + + /// + /// Returns true if RestApiResultAccountDetail instances are equal + /// + /// Instance of RestApiResultAccountDetail to be compared + /// Boolean + public bool Equals(RestApiResultAccountDetail input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAccountFieldsDefinitions.cs b/src/Flipdish/Model/RestApiResultAccountFieldsDefinitions.cs new file mode 100644 index 00000000..79e43e96 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAccountFieldsDefinitions.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAccountFieldsDefinitions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAccountFieldsDefinitions() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAccountFieldsDefinitions(AccountFieldsDefinitions data = default(AccountFieldsDefinitions)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAccountFieldsDefinitions and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AccountFieldsDefinitions Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAccountFieldsDefinitions {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAccountFieldsDefinitions); + } + + /// + /// Returns true if RestApiResultAccountFieldsDefinitions instances are equal + /// + /// Instance of RestApiResultAccountFieldsDefinitions to be compared + /// Boolean + public bool Equals(RestApiResultAccountFieldsDefinitions input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAddressFormResponse.cs b/src/Flipdish/Model/RestApiResultAddressFormResponse.cs new file mode 100644 index 00000000..0f70133c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAddressFormResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAddressFormResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAddressFormResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAddressFormResponse(AddressFormResponse data = default(AddressFormResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAddressFormResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AddressFormResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAddressFormResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAddressFormResponse); + } + + /// + /// Returns true if RestApiResultAddressFormResponse instances are equal + /// + /// Instance of RestApiResultAddressFormResponse to be compared + /// Boolean + public bool Equals(RestApiResultAddressFormResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultApmStatistics.cs b/src/Flipdish/Model/RestApiResultApmStatistics.cs new file mode 100644 index 00000000..e59811ad --- /dev/null +++ b/src/Flipdish/Model/RestApiResultApmStatistics.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultApmStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultApmStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultApmStatistics(ApmStatistics data = default(ApmStatistics)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultApmStatistics and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ApmStatistics Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultApmStatistics {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultApmStatistics); + } + + /// + /// Returns true if RestApiResultApmStatistics instances are equal + /// + /// Instance of RestApiResultApmStatistics to be compared + /// Boolean + public bool Equals(RestApiResultApmStatistics input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultApmStatus.cs b/src/Flipdish/Model/RestApiResultApmStatus.cs new file mode 100644 index 00000000..49b122cc --- /dev/null +++ b/src/Flipdish/Model/RestApiResultApmStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultApmStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultApmStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultApmStatus(ApmStatus data = default(ApmStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultApmStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ApmStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultApmStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultApmStatus); + } + + /// + /// Returns true if RestApiResultApmStatus instances are equal + /// + /// Instance of RestApiResultApmStatus to be compared + /// Boolean + public bool Equals(RestApiResultApmStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultApp.cs b/src/Flipdish/Model/RestApiResultApp.cs new file mode 100644 index 00000000..f8e8d72d --- /dev/null +++ b/src/Flipdish/Model/RestApiResultApp.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultApp() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultApp(App data = default(App)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultApp and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public App Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultApp {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultApp); + } + + /// + /// Returns true if RestApiResultApp instances are equal + /// + /// Instance of RestApiResultApp to be compared + /// Boolean + public bool Equals(RestApiResultApp input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppChannelAssignment.cs b/src/Flipdish/Model/RestApiResultAppChannelAssignment.cs new file mode 100644 index 00000000..a25648c4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppChannelAssignment.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppChannelAssignment : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppChannelAssignment() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppChannelAssignment(AppChannelAssignment data = default(AppChannelAssignment)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppChannelAssignment and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppChannelAssignment Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppChannelAssignment {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppChannelAssignment); + } + + /// + /// Returns true if RestApiResultAppChannelAssignment instances are equal + /// + /// Instance of RestApiResultAppChannelAssignment to be compared + /// Boolean + public bool Equals(RestApiResultAppChannelAssignment input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppCompliance.cs b/src/Flipdish/Model/RestApiResultAppCompliance.cs new file mode 100644 index 00000000..68b92066 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppCompliance.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppCompliance : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppCompliance() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppCompliance(AppCompliance data = default(AppCompliance)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppCompliance and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppCompliance Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppCompliance {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppCompliance); + } + + /// + /// Returns true if RestApiResultAppCompliance instances are equal + /// + /// Instance of RestApiResultAppCompliance to be compared + /// Boolean + public bool Equals(RestApiResultAppCompliance input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppConfigSalesChannel.cs b/src/Flipdish/Model/RestApiResultAppConfigSalesChannel.cs new file mode 100644 index 00000000..19a70240 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppConfigSalesChannel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppConfigSalesChannel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppConfigSalesChannel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppConfigSalesChannel(AppConfigSalesChannel data = default(AppConfigSalesChannel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppConfigSalesChannel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppConfigSalesChannel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppConfigSalesChannel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppConfigSalesChannel); + } + + /// + /// Returns true if RestApiResultAppConfigSalesChannel instances are equal + /// + /// Instance of RestApiResultAppConfigSalesChannel to be compared + /// Boolean + public bool Equals(RestApiResultAppConfigSalesChannel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppGeneralConfigModel.cs b/src/Flipdish/Model/RestApiResultAppGeneralConfigModel.cs new file mode 100644 index 00000000..49d36912 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppGeneralConfigModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppGeneralConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppGeneralConfigModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppGeneralConfigModel(AppGeneralConfigModel data = default(AppGeneralConfigModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppGeneralConfigModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppGeneralConfigModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppGeneralConfigModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppGeneralConfigModel); + } + + /// + /// Returns true if RestApiResultAppGeneralConfigModel instances are equal + /// + /// Instance of RestApiResultAppGeneralConfigModel to be compared + /// Boolean + public bool Equals(RestApiResultAppGeneralConfigModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppStoreApp.cs b/src/Flipdish/Model/RestApiResultAppStoreApp.cs new file mode 100644 index 00000000..fae237a0 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppStoreApp.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppStoreApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppStoreApp() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppStoreApp(AppStoreApp data = default(AppStoreApp)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppStoreApp and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppStoreApp Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppStoreApp {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppStoreApp); + } + + /// + /// Returns true if RestApiResultAppStoreApp instances are equal + /// + /// Instance of RestApiResultAppStoreApp to be compared + /// Boolean + public bool Equals(RestApiResultAppStoreApp input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppStoreAppConfiguration.cs b/src/Flipdish/Model/RestApiResultAppStoreAppConfiguration.cs new file mode 100644 index 00000000..c612d4a8 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppStoreAppConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppStoreAppConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppStoreAppConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppStoreAppConfiguration(AppStoreAppConfiguration data = default(AppStoreAppConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppStoreAppConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppStoreAppConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppStoreAppConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppStoreAppConfiguration); + } + + /// + /// Returns true if RestApiResultAppStoreAppConfiguration instances are equal + /// + /// Instance of RestApiResultAppStoreAppConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultAppStoreAppConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppStoreAppEntitlements.cs b/src/Flipdish/Model/RestApiResultAppStoreAppEntitlements.cs new file mode 100644 index 00000000..b35fb160 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppStoreAppEntitlements.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppStoreAppEntitlements : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppStoreAppEntitlements() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppStoreAppEntitlements(AppStoreAppEntitlements data = default(AppStoreAppEntitlements)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppStoreAppEntitlements and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppStoreAppEntitlements Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppStoreAppEntitlements {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppStoreAppEntitlements); + } + + /// + /// Returns true if RestApiResultAppStoreAppEntitlements instances are equal + /// + /// Instance of RestApiResultAppStoreAppEntitlements to be compared + /// Boolean + public bool Equals(RestApiResultAppStoreAppEntitlements input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAppStoreConfigModel.cs b/src/Flipdish/Model/RestApiResultAppStoreConfigModel.cs new file mode 100644 index 00000000..5166e447 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAppStoreConfigModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAppStoreConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAppStoreConfigModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAppStoreConfigModel(AppStoreConfigModel data = default(AppStoreConfigModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAppStoreConfigModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AppStoreConfigModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAppStoreConfigModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAppStoreConfigModel); + } + + /// + /// Returns true if RestApiResultAppStoreConfigModel instances are equal + /// + /// Instance of RestApiResultAppStoreConfigModel to be compared + /// Boolean + public bool Equals(RestApiResultAppStoreConfigModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAssetResultModel.cs b/src/Flipdish/Model/RestApiResultAssetResultModel.cs new file mode 100644 index 00000000..04889ab6 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAssetResultModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAssetResultModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAssetResultModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAssetResultModel(AssetResultModel data = default(AssetResultModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAssetResultModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AssetResultModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAssetResultModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAssetResultModel); + } + + /// + /// Returns true if RestApiResultAssetResultModel instances are equal + /// + /// Instance of RestApiResultAssetResultModel to be compared + /// Boolean + public bool Equals(RestApiResultAssetResultModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultAssignedBankAccount.cs b/src/Flipdish/Model/RestApiResultAssignedBankAccount.cs new file mode 100644 index 00000000..a89b74b0 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultAssignedBankAccount.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultAssignedBankAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultAssignedBankAccount() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultAssignedBankAccount(AssignedBankAccount data = default(AssignedBankAccount)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultAssignedBankAccount and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public AssignedBankAccount Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultAssignedBankAccount {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultAssignedBankAccount); + } + + /// + /// Returns true if RestApiResultAssignedBankAccount instances are equal + /// + /// Instance of RestApiResultAssignedBankAccount to be compared + /// Boolean + public bool Equals(RestApiResultAssignedBankAccount input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultBankAccountDetail.cs b/src/Flipdish/Model/RestApiResultBankAccountDetail.cs new file mode 100644 index 00000000..c32871fb --- /dev/null +++ b/src/Flipdish/Model/RestApiResultBankAccountDetail.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultBankAccountDetail : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultBankAccountDetail() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultBankAccountDetail(BankAccountDetail data = default(BankAccountDetail)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultBankAccountDetail and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public BankAccountDetail Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultBankAccountDetail {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultBankAccountDetail); + } + + /// + /// Returns true if RestApiResultBankAccountDetail instances are equal + /// + /// Instance of RestApiResultBankAccountDetail to be compared + /// Boolean + public bool Equals(RestApiResultBankAccountDetail input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultBluetoothTerminalStatus.cs b/src/Flipdish/Model/RestApiResultBluetoothTerminalStatus.cs new file mode 100644 index 00000000..febddb64 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultBluetoothTerminalStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultBluetoothTerminalStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultBluetoothTerminalStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultBluetoothTerminalStatus(BluetoothTerminalStatus data = default(BluetoothTerminalStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultBluetoothTerminalStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public BluetoothTerminalStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultBluetoothTerminalStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultBluetoothTerminalStatus); + } + + /// + /// Returns true if RestApiResultBluetoothTerminalStatus instances are equal + /// + /// Instance of RestApiResultBluetoothTerminalStatus to be compared + /// Boolean + public bool Equals(RestApiResultBluetoothTerminalStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultBuildResultModel.cs b/src/Flipdish/Model/RestApiResultBuildResultModel.cs new file mode 100644 index 00000000..c796b92b --- /dev/null +++ b/src/Flipdish/Model/RestApiResultBuildResultModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultBuildResultModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultBuildResultModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultBuildResultModel(BuildResultModel data = default(BuildResultModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultBuildResultModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public BuildResultModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultBuildResultModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultBuildResultModel); + } + + /// + /// Returns true if RestApiResultBuildResultModel instances are equal + /// + /// Instance of RestApiResultBuildResultModel to be compared + /// Boolean + public bool Equals(RestApiResultBuildResultModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultBusinessHoursOverride.cs b/src/Flipdish/Model/RestApiResultBusinessHoursOverride.cs new file mode 100644 index 00000000..62973914 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultBusinessHoursOverride.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultBusinessHoursOverride : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultBusinessHoursOverride() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultBusinessHoursOverride(BusinessHoursOverride data = default(BusinessHoursOverride)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultBusinessHoursOverride and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public BusinessHoursOverride Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultBusinessHoursOverride {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultBusinessHoursOverride); + } + + /// + /// Returns true if RestApiResultBusinessHoursOverride instances are equal + /// + /// Instance of RestApiResultBusinessHoursOverride to be compared + /// Boolean + public bool Equals(RestApiResultBusinessHoursOverride input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultBusinessHoursPeriod.cs b/src/Flipdish/Model/RestApiResultBusinessHoursPeriod.cs new file mode 100644 index 00000000..5798bb53 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultBusinessHoursPeriod.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultBusinessHoursPeriod : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultBusinessHoursPeriod() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultBusinessHoursPeriod(BusinessHoursPeriod data = default(BusinessHoursPeriod)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultBusinessHoursPeriod and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public BusinessHoursPeriod Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultBusinessHoursPeriod {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultBusinessHoursPeriod); + } + + /// + /// Returns true if RestApiResultBusinessHoursPeriod instances are equal + /// + /// Instance of RestApiResultBusinessHoursPeriod to be compared + /// Boolean + public bool Equals(RestApiResultBusinessHoursPeriod input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCardReader.cs b/src/Flipdish/Model/RestApiResultCardReader.cs new file mode 100644 index 00000000..eed1acab --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCardReader.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCardReader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCardReader() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCardReader(CardReader data = default(CardReader)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCardReader and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public CardReader Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCardReader {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCardReader); + } + + /// + /// Returns true if RestApiResultCardReader instances are equal + /// + /// Instance of RestApiResultCardReader to be compared + /// Boolean + public bool Equals(RestApiResultCardReader input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCatalogItem.cs b/src/Flipdish/Model/RestApiResultCatalogItem.cs new file mode 100644 index 00000000..005b1f30 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCatalogItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCatalogItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCatalogItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCatalogItem(CatalogItem data = default(CatalogItem)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCatalogItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public CatalogItem Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCatalogItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCatalogItem); + } + + /// + /// Returns true if RestApiResultCatalogItem instances are equal + /// + /// Instance of RestApiResultCatalogItem to be compared + /// Boolean + public bool Equals(RestApiResultCatalogItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultChannel.cs b/src/Flipdish/Model/RestApiResultChannel.cs new file mode 100644 index 00000000..3328f052 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultChannel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultChannel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultChannel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultChannel(Channel data = default(Channel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultChannel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Channel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultChannel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultChannel); + } + + /// + /// Returns true if RestApiResultChannel instances are equal + /// + /// Instance of RestApiResultChannel to be compared + /// Boolean + public bool Equals(RestApiResultChannel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultClientDevice.cs b/src/Flipdish/Model/RestApiResultClientDevice.cs new file mode 100644 index 00000000..57cd723f --- /dev/null +++ b/src/Flipdish/Model/RestApiResultClientDevice.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultClientDevice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultClientDevice() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultClientDevice(ClientDevice data = default(ClientDevice)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultClientDevice and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ClientDevice Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultClientDevice {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultClientDevice); + } + + /// + /// Returns true if RestApiResultClientDevice instances are equal + /// + /// Instance of RestApiResultClientDevice to be compared + /// Boolean + public bool Equals(RestApiResultClientDevice input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultClientDeviceEnrollmentResult.cs b/src/Flipdish/Model/RestApiResultClientDeviceEnrollmentResult.cs new file mode 100644 index 00000000..edad2ca1 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultClientDeviceEnrollmentResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultClientDeviceEnrollmentResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultClientDeviceEnrollmentResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultClientDeviceEnrollmentResult(ClientDeviceEnrollmentResult data = default(ClientDeviceEnrollmentResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultClientDeviceEnrollmentResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ClientDeviceEnrollmentResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultClientDeviceEnrollmentResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultClientDeviceEnrollmentResult); + } + + /// + /// Returns true if RestApiResultClientDeviceEnrollmentResult instances are equal + /// + /// Instance of RestApiResultClientDeviceEnrollmentResult to be compared + /// Boolean + public bool Equals(RestApiResultClientDeviceEnrollmentResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCoordinates.cs b/src/Flipdish/Model/RestApiResultCoordinates.cs new file mode 100644 index 00000000..d0c14330 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCoordinates.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCoordinates : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCoordinates() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCoordinates(Coordinates data = default(Coordinates)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCoordinates and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Coordinates Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCoordinates {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCoordinates); + } + + /// + /// Returns true if RestApiResultCoordinates instances are equal + /// + /// Instance of RestApiResultCoordinates to be compared + /// Boolean + public bool Equals(RestApiResultCoordinates input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCountryFormResponse.cs b/src/Flipdish/Model/RestApiResultCountryFormResponse.cs new file mode 100644 index 00000000..f0097aae --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCountryFormResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCountryFormResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCountryFormResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCountryFormResponse(CountryFormResponse data = default(CountryFormResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCountryFormResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public CountryFormResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCountryFormResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCountryFormResponse); + } + + /// + /// Returns true if RestApiResultCountryFormResponse instances are equal + /// + /// Instance of RestApiResultCountryFormResponse to be compared + /// Boolean + public bool Equals(RestApiResultCountryFormResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCreatedMenuSectionItems.cs b/src/Flipdish/Model/RestApiResultCreatedMenuSectionItems.cs new file mode 100644 index 00000000..145f7465 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCreatedMenuSectionItems.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCreatedMenuSectionItems : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCreatedMenuSectionItems() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCreatedMenuSectionItems(CreatedMenuSectionItems data = default(CreatedMenuSectionItems)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCreatedMenuSectionItems and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public CreatedMenuSectionItems Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCreatedMenuSectionItems {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCreatedMenuSectionItems); + } + + /// + /// Returns true if RestApiResultCreatedMenuSectionItems instances are equal + /// + /// Instance of RestApiResultCreatedMenuSectionItems to be compared + /// Boolean + public bool Equals(RestApiResultCreatedMenuSectionItems input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs b/src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs new file mode 100644 index 00000000..4e53c82a --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCrossSellMenuItems : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCrossSellMenuItems() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCrossSellMenuItems(CrossSellMenuItems data = default(CrossSellMenuItems)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCrossSellMenuItems and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public CrossSellMenuItems Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCrossSellMenuItems {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCrossSellMenuItems); + } + + /// + /// Returns true if RestApiResultCrossSellMenuItems instances are equal + /// + /// Instance of RestApiResultCrossSellMenuItems to be compared + /// Boolean + public bool Equals(RestApiResultCrossSellMenuItems input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCustomer.cs b/src/Flipdish/Model/RestApiResultCustomer.cs new file mode 100644 index 00000000..07ac7b62 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCustomer.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCustomer : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCustomer() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCustomer(Customer data = default(Customer)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCustomer and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Customer Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCustomer {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCustomer); + } + + /// + /// Returns true if RestApiResultCustomer instances are equal + /// + /// Instance of RestApiResultCustomer to be compared + /// Boolean + public bool Equals(RestApiResultCustomer input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultCustomers.cs b/src/Flipdish/Model/RestApiResultCustomers.cs new file mode 100644 index 00000000..501dc53a --- /dev/null +++ b/src/Flipdish/Model/RestApiResultCustomers.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultCustomers : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultCustomers() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultCustomers(Customers data = default(Customers)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultCustomers and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Customers Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultCustomers {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultCustomers); + } + + /// + /// Returns true if RestApiResultCustomers instances are equal + /// + /// Instance of RestApiResultCustomers to be compared + /// Boolean + public bool Equals(RestApiResultCustomers input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultDeliveryZone.cs b/src/Flipdish/Model/RestApiResultDeliveryZone.cs new file mode 100644 index 00000000..7bddf73e --- /dev/null +++ b/src/Flipdish/Model/RestApiResultDeliveryZone.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultDeliveryZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultDeliveryZone() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultDeliveryZone(DeliveryZone data = default(DeliveryZone)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultDeliveryZone and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public DeliveryZone Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultDeliveryZone {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultDeliveryZone); + } + + /// + /// Returns true if RestApiResultDeliveryZone instances are equal + /// + /// Instance of RestApiResultDeliveryZone to be compared + /// Boolean + public bool Equals(RestApiResultDeliveryZone input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultDnsRecordInformation.cs b/src/Flipdish/Model/RestApiResultDnsRecordInformation.cs new file mode 100644 index 00000000..76a1b96a --- /dev/null +++ b/src/Flipdish/Model/RestApiResultDnsRecordInformation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultDnsRecordInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultDnsRecordInformation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultDnsRecordInformation(DnsRecordInformation data = default(DnsRecordInformation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultDnsRecordInformation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public DnsRecordInformation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultDnsRecordInformation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultDnsRecordInformation); + } + + /// + /// Returns true if RestApiResultDnsRecordInformation instances are equal + /// + /// Instance of RestApiResultDnsRecordInformation to be compared + /// Boolean + public bool Equals(RestApiResultDnsRecordInformation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultEndUserFeeConfig.cs b/src/Flipdish/Model/RestApiResultEndUserFeeConfig.cs new file mode 100644 index 00000000..0489dd01 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultEndUserFeeConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultEndUserFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultEndUserFeeConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultEndUserFeeConfig(EndUserFeeConfig data = default(EndUserFeeConfig)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultEndUserFeeConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public EndUserFeeConfig Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultEndUserFeeConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultEndUserFeeConfig); + } + + /// + /// Returns true if RestApiResultEndUserFeeConfig instances are equal + /// + /// Instance of RestApiResultEndUserFeeConfig to be compared + /// Boolean + public bool Equals(RestApiResultEndUserFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultExecuteConfigurationActionResult.cs b/src/Flipdish/Model/RestApiResultExecuteConfigurationActionResult.cs new file mode 100644 index 00000000..fe8fe9a2 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultExecuteConfigurationActionResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultExecuteConfigurationActionResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultExecuteConfigurationActionResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultExecuteConfigurationActionResult(ExecuteConfigurationActionResult data = default(ExecuteConfigurationActionResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultExecuteConfigurationActionResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ExecuteConfigurationActionResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultExecuteConfigurationActionResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultExecuteConfigurationActionResult); + } + + /// + /// Returns true if RestApiResultExecuteConfigurationActionResult instances are equal + /// + /// Instance of RestApiResultExecuteConfigurationActionResult to be compared + /// Boolean + public bool Equals(RestApiResultExecuteConfigurationActionResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultFulfillmentStatesConfiguration.cs b/src/Flipdish/Model/RestApiResultFulfillmentStatesConfiguration.cs new file mode 100644 index 00000000..1421d1cf --- /dev/null +++ b/src/Flipdish/Model/RestApiResultFulfillmentStatesConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultFulfillmentStatesConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultFulfillmentStatesConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultFulfillmentStatesConfiguration(FulfillmentStatesConfiguration data = default(FulfillmentStatesConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultFulfillmentStatesConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public FulfillmentStatesConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultFulfillmentStatesConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultFulfillmentStatesConfiguration); + } + + /// + /// Returns true if RestApiResultFulfillmentStatesConfiguration instances are equal + /// + /// Instance of RestApiResultFulfillmentStatesConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultFulfillmentStatesConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultGetEndUserFeeConfigsResponse.cs b/src/Flipdish/Model/RestApiResultGetEndUserFeeConfigsResponse.cs new file mode 100644 index 00000000..7435aa04 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultGetEndUserFeeConfigsResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultGetEndUserFeeConfigsResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultGetEndUserFeeConfigsResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultGetEndUserFeeConfigsResponse(GetEndUserFeeConfigsResponse data = default(GetEndUserFeeConfigsResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultGetEndUserFeeConfigsResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public GetEndUserFeeConfigsResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultGetEndUserFeeConfigsResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultGetEndUserFeeConfigsResponse); + } + + /// + /// Returns true if RestApiResultGetEndUserFeeConfigsResponse instances are equal + /// + /// Instance of RestApiResultGetEndUserFeeConfigsResponse to be compared + /// Boolean + public bool Equals(RestApiResultGetEndUserFeeConfigsResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultGroup.cs b/src/Flipdish/Model/RestApiResultGroup.cs new file mode 100644 index 00000000..a3b21875 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultGroup.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultGroup(Group data = default(Group)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultGroup and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Group Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultGroup {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultGroup); + } + + /// + /// Returns true if RestApiResultGroup instances are equal + /// + /// Instance of RestApiResultGroup to be compared + /// Boolean + public bool Equals(RestApiResultGroup input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs b/src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs new file mode 100644 index 00000000..1768adc8 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultHasPaymentMethodResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultHasPaymentMethodResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultHasPaymentMethodResponse(HasPaymentMethodResponse data = default(HasPaymentMethodResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultHasPaymentMethodResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public HasPaymentMethodResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultHasPaymentMethodResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultHasPaymentMethodResponse); + } + + /// + /// Returns true if RestApiResultHasPaymentMethodResponse instances are equal + /// + /// Instance of RestApiResultHasPaymentMethodResponse to be compared + /// Boolean + public bool Equals(RestApiResultHasPaymentMethodResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultHomeStatistics.cs b/src/Flipdish/Model/RestApiResultHomeStatistics.cs new file mode 100644 index 00000000..f6966e63 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultHomeStatistics.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultHomeStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultHomeStatistics() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultHomeStatistics(HomeStatistics data = default(HomeStatistics)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultHomeStatistics and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public HomeStatistics Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultHomeStatistics {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultHomeStatistics); + } + + /// + /// Returns true if RestApiResultHomeStatistics instances are equal + /// + /// Instance of RestApiResultHomeStatistics to be compared + /// Boolean + public bool Equals(RestApiResultHomeStatistics input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultHydraConfig.cs b/src/Flipdish/Model/RestApiResultHydraConfig.cs new file mode 100644 index 00000000..d01bc0f4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultHydraConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultHydraConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultHydraConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultHydraConfig(HydraConfig data = default(HydraConfig)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultHydraConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public HydraConfig Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultHydraConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultHydraConfig); + } + + /// + /// Returns true if RestApiResultHydraConfig instances are equal + /// + /// Instance of RestApiResultHydraConfig to be compared + /// Boolean + public bool Equals(RestApiResultHydraConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultHydraDeviceDetails.cs b/src/Flipdish/Model/RestApiResultHydraDeviceDetails.cs new file mode 100644 index 00000000..d2288f11 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultHydraDeviceDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultHydraDeviceDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultHydraDeviceDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultHydraDeviceDetails(HydraDeviceDetails data = default(HydraDeviceDetails)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultHydraDeviceDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public HydraDeviceDetails Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultHydraDeviceDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultHydraDeviceDetails); + } + + /// + /// Returns true if RestApiResultHydraDeviceDetails instances are equal + /// + /// Instance of RestApiResultHydraDeviceDetails to be compared + /// Boolean + public bool Equals(RestApiResultHydraDeviceDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultHydraStatus.cs b/src/Flipdish/Model/RestApiResultHydraStatus.cs new file mode 100644 index 00000000..c2c9d086 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultHydraStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultHydraStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultHydraStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultHydraStatus(HydraStatus data = default(HydraStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultHydraStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public HydraStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultHydraStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultHydraStatus); + } + + /// + /// Returns true if RestApiResultHydraStatus instances are equal + /// + /// Instance of RestApiResultHydraStatus to be compared + /// Boolean + public bool Equals(RestApiResultHydraStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultIndexPage.cs b/src/Flipdish/Model/RestApiResultIndexPage.cs new file mode 100644 index 00000000..a9effea7 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultIndexPage.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultIndexPage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultIndexPage() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultIndexPage(IndexPage data = default(IndexPage)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultIndexPage and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public IndexPage Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultIndexPage {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultIndexPage); + } + + /// + /// Returns true if RestApiResultIndexPage instances are equal + /// + /// Instance of RestApiResultIndexPage to be compared + /// Boolean + public bool Equals(RestApiResultIndexPage input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultIndexPageBase.cs b/src/Flipdish/Model/RestApiResultIndexPageBase.cs new file mode 100644 index 00000000..218dabfc --- /dev/null +++ b/src/Flipdish/Model/RestApiResultIndexPageBase.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultIndexPageBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultIndexPageBase() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultIndexPageBase(IndexPageBase data = default(IndexPageBase)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultIndexPageBase and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public IndexPageBase Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultIndexPageBase {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultIndexPageBase); + } + + /// + /// Returns true if RestApiResultIndexPageBase instances are equal + /// + /// Instance of RestApiResultIndexPageBase to be compared + /// Boolean + public bool Equals(RestApiResultIndexPageBase input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultIntercomUserHash.cs b/src/Flipdish/Model/RestApiResultIntercomUserHash.cs new file mode 100644 index 00000000..71c2ddfd --- /dev/null +++ b/src/Flipdish/Model/RestApiResultIntercomUserHash.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultIntercomUserHash : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultIntercomUserHash() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultIntercomUserHash(IntercomUserHash data = default(IntercomUserHash)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultIntercomUserHash and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public IntercomUserHash Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultIntercomUserHash {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultIntercomUserHash); + } + + /// + /// Returns true if RestApiResultIntercomUserHash instances are equal + /// + /// Instance of RestApiResultIntercomUserHash to be compared + /// Boolean + public bool Equals(RestApiResultIntercomUserHash input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultJobResponse.cs b/src/Flipdish/Model/RestApiResultJobResponse.cs new file mode 100644 index 00000000..922c344c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultJobResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultJobResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultJobResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultJobResponse(JobResponse data = default(JobResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultJobResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public JobResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultJobResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultJobResponse); + } + + /// + /// Returns true if RestApiResultJobResponse instances are equal + /// + /// Instance of RestApiResultJobResponse to be compared + /// Boolean + public bool Equals(RestApiResultJobResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultKioskEntitlementsResult.cs b/src/Flipdish/Model/RestApiResultKioskEntitlementsResult.cs new file mode 100644 index 00000000..02a59d11 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultKioskEntitlementsResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultKioskEntitlementsResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultKioskEntitlementsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultKioskEntitlementsResult(KioskEntitlementsResult data = default(KioskEntitlementsResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultKioskEntitlementsResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public KioskEntitlementsResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultKioskEntitlementsResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultKioskEntitlementsResult); + } + + /// + /// Returns true if RestApiResultKioskEntitlementsResult instances are equal + /// + /// Instance of RestApiResultKioskEntitlementsResult to be compared + /// Boolean + public bool Equals(RestApiResultKioskEntitlementsResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultKioskIotConnectionParameters.cs b/src/Flipdish/Model/RestApiResultKioskIotConnectionParameters.cs new file mode 100644 index 00000000..a7296440 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultKioskIotConnectionParameters.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultKioskIotConnectionParameters : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultKioskIotConnectionParameters() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultKioskIotConnectionParameters(KioskIotConnectionParameters data = default(KioskIotConnectionParameters)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultKioskIotConnectionParameters and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public KioskIotConnectionParameters Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultKioskIotConnectionParameters {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultKioskIotConnectionParameters); + } + + /// + /// Returns true if RestApiResultKioskIotConnectionParameters instances are equal + /// + /// Instance of RestApiResultKioskIotConnectionParameters to be compared + /// Boolean + public bool Equals(RestApiResultKioskIotConnectionParameters input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultKioskSettings.cs b/src/Flipdish/Model/RestApiResultKioskSettings.cs new file mode 100644 index 00000000..0aa7f905 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultKioskSettings.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultKioskSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultKioskSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultKioskSettings(KioskSettings data = default(KioskSettings)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultKioskSettings and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public KioskSettings Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultKioskSettings {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultKioskSettings); + } + + /// + /// Returns true if RestApiResultKioskSettings instances are equal + /// + /// Instance of RestApiResultKioskSettings to be compared + /// Boolean + public bool Equals(RestApiResultKioskSettings input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultKioskStripeLocation.cs b/src/Flipdish/Model/RestApiResultKioskStripeLocation.cs new file mode 100644 index 00000000..33691184 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultKioskStripeLocation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultKioskStripeLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultKioskStripeLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultKioskStripeLocation(KioskStripeLocation data = default(KioskStripeLocation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultKioskStripeLocation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public KioskStripeLocation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultKioskStripeLocation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultKioskStripeLocation); + } + + /// + /// Returns true if RestApiResultKioskStripeLocation instances are equal + /// + /// Instance of RestApiResultKioskStripeLocation to be compared + /// Boolean + public bool Equals(RestApiResultKioskStripeLocation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultLightspeedSettings.cs b/src/Flipdish/Model/RestApiResultLightspeedSettings.cs new file mode 100644 index 00000000..4e7b02e8 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultLightspeedSettings.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultLightspeedSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultLightspeedSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultLightspeedSettings(LightspeedSettings data = default(LightspeedSettings)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultLightspeedSettings and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public LightspeedSettings Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultLightspeedSettings {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultLightspeedSettings); + } + + /// + /// Returns true if RestApiResultLightspeedSettings instances are equal + /// + /// Instance of RestApiResultLightspeedSettings to be compared + /// Boolean + public bool Equals(RestApiResultLightspeedSettings input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultLocationArea.cs b/src/Flipdish/Model/RestApiResultLocationArea.cs new file mode 100644 index 00000000..299733c6 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultLocationArea.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultLocationArea : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultLocationArea() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultLocationArea(LocationArea data = default(LocationArea)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultLocationArea and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public LocationArea Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultLocationArea {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultLocationArea); + } + + /// + /// Returns true if RestApiResultLocationArea instances are equal + /// + /// Instance of RestApiResultLocationArea to be compared + /// Boolean + public bool Equals(RestApiResultLocationArea input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultLocationAreaLocation.cs b/src/Flipdish/Model/RestApiResultLocationAreaLocation.cs new file mode 100644 index 00000000..f0acb891 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultLocationAreaLocation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultLocationAreaLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultLocationAreaLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultLocationAreaLocation(LocationAreaLocation data = default(LocationAreaLocation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultLocationAreaLocation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public LocationAreaLocation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultLocationAreaLocation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultLocationAreaLocation); + } + + /// + /// Returns true if RestApiResultLocationAreaLocation instances are equal + /// + /// Instance of RestApiResultLocationAreaLocation to be compared + /// Boolean + public bool Equals(RestApiResultLocationAreaLocation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultLocationAreaWithLocations.cs b/src/Flipdish/Model/RestApiResultLocationAreaWithLocations.cs new file mode 100644 index 00000000..6b542f7c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultLocationAreaWithLocations.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultLocationAreaWithLocations : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultLocationAreaWithLocations() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultLocationAreaWithLocations(LocationAreaWithLocations data = default(LocationAreaWithLocations)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultLocationAreaWithLocations and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public LocationAreaWithLocations Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultLocationAreaWithLocations {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultLocationAreaWithLocations); + } + + /// + /// Returns true if RestApiResultLocationAreaWithLocations instances are equal + /// + /// Instance of RestApiResultLocationAreaWithLocations to be compared + /// Boolean + public bool Equals(RestApiResultLocationAreaWithLocations input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultLoyaltyCampaign.cs b/src/Flipdish/Model/RestApiResultLoyaltyCampaign.cs new file mode 100644 index 00000000..4ad29c06 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultLoyaltyCampaign.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultLoyaltyCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultLoyaltyCampaign() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultLoyaltyCampaign(LoyaltyCampaign data = default(LoyaltyCampaign)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultLoyaltyCampaign and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public LoyaltyCampaign Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultLoyaltyCampaign {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultLoyaltyCampaign); + } + + /// + /// Returns true if RestApiResultLoyaltyCampaign instances are equal + /// + /// Instance of RestApiResultLoyaltyCampaign to be compared + /// Boolean + public bool Equals(RestApiResultLoyaltyCampaign input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMappedLocation.cs b/src/Flipdish/Model/RestApiResultMappedLocation.cs new file mode 100644 index 00000000..9a7c27ee --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMappedLocation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMappedLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMappedLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMappedLocation(MappedLocation data = default(MappedLocation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMappedLocation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MappedLocation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMappedLocation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMappedLocation); + } + + /// + /// Returns true if RestApiResultMappedLocation instances are equal + /// + /// Instance of RestApiResultMappedLocation to be compared + /// Boolean + public bool Equals(RestApiResultMappedLocation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenu.cs b/src/Flipdish/Model/RestApiResultMenu.cs new file mode 100644 index 00000000..f2b98531 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenu.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenu : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenu() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenu(Menu data = default(Menu)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenu and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Menu Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenu {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenu); + } + + /// + /// Returns true if RestApiResultMenu instances are equal + /// + /// Instance of RestApiResultMenu to be compared + /// Boolean + public bool Equals(RestApiResultMenu input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuItemOptionSet.cs b/src/Flipdish/Model/RestApiResultMenuItemOptionSet.cs new file mode 100644 index 00000000..343b4d09 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuItemOptionSet.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuItemOptionSet : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuItemOptionSet() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuItemOptionSet(MenuItemOptionSet data = default(MenuItemOptionSet)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuItemOptionSet and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuItemOptionSet Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuItemOptionSet {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuItemOptionSet); + } + + /// + /// Returns true if RestApiResultMenuItemOptionSet instances are equal + /// + /// Instance of RestApiResultMenuItemOptionSet to be compared + /// Boolean + public bool Equals(RestApiResultMenuItemOptionSet input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuItemOptionSetItem.cs b/src/Flipdish/Model/RestApiResultMenuItemOptionSetItem.cs new file mode 100644 index 00000000..4dcd97fa --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuItemOptionSetItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuItemOptionSetItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuItemOptionSetItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuItemOptionSetItem(MenuItemOptionSetItem data = default(MenuItemOptionSetItem)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuItemOptionSetItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuItemOptionSetItem Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuItemOptionSetItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuItemOptionSetItem); + } + + /// + /// Returns true if RestApiResultMenuItemOptionSetItem instances are equal + /// + /// Instance of RestApiResultMenuItemOptionSetItem to be compared + /// Boolean + public bool Equals(RestApiResultMenuItemOptionSetItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuNutritionInfoHeader.cs b/src/Flipdish/Model/RestApiResultMenuNutritionInfoHeader.cs new file mode 100644 index 00000000..b933a4a4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuNutritionInfoHeader.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuNutritionInfoHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuNutritionInfoHeader() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuNutritionInfoHeader(MenuNutritionInfoHeader data = default(MenuNutritionInfoHeader)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuNutritionInfoHeader and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuNutritionInfoHeader Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuNutritionInfoHeader {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuNutritionInfoHeader); + } + + /// + /// Returns true if RestApiResultMenuNutritionInfoHeader instances are equal + /// + /// Instance of RestApiResultMenuNutritionInfoHeader to be compared + /// Boolean + public bool Equals(RestApiResultMenuNutritionInfoHeader input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuSection.cs b/src/Flipdish/Model/RestApiResultMenuSection.cs new file mode 100644 index 00000000..a852346e --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuSection.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuSection : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuSection() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuSection(MenuSection data = default(MenuSection)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuSection and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuSection Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuSection {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuSection); + } + + /// + /// Returns true if RestApiResultMenuSection instances are equal + /// + /// Instance of RestApiResultMenuSection to be compared + /// Boolean + public bool Equals(RestApiResultMenuSection input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuSectionAvailability.cs b/src/Flipdish/Model/RestApiResultMenuSectionAvailability.cs new file mode 100644 index 00000000..f1015030 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuSectionAvailability.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuSectionAvailability : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuSectionAvailability() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuSectionAvailability(MenuSectionAvailability data = default(MenuSectionAvailability)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuSectionAvailability and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuSectionAvailability Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuSectionAvailability {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuSectionAvailability); + } + + /// + /// Returns true if RestApiResultMenuSectionAvailability instances are equal + /// + /// Instance of RestApiResultMenuSectionAvailability to be compared + /// Boolean + public bool Equals(RestApiResultMenuSectionAvailability input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuSectionItem.cs b/src/Flipdish/Model/RestApiResultMenuSectionItem.cs new file mode 100644 index 00000000..d2ea798b --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuSectionItem.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuSectionItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuSectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuSectionItem(MenuSectionItem data = default(MenuSectionItem)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuSectionItem and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuSectionItem Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuSectionItem {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuSectionItem); + } + + /// + /// Returns true if RestApiResultMenuSectionItem instances are equal + /// + /// Instance of RestApiResultMenuSectionItem to be compared + /// Boolean + public bool Equals(RestApiResultMenuSectionItem input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMenuZone.cs b/src/Flipdish/Model/RestApiResultMenuZone.cs new file mode 100644 index 00000000..c5cece70 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMenuZone.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMenuZone : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMenuZone() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMenuZone(MenuZone data = default(MenuZone)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMenuZone and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MenuZone Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMenuZone {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMenuZone); + } + + /// + /// Returns true if RestApiResultMenuZone instances are equal + /// + /// Instance of RestApiResultMenuZone to be compared + /// Boolean + public bool Equals(RestApiResultMenuZone input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMetadata.cs b/src/Flipdish/Model/RestApiResultMetadata.cs new file mode 100644 index 00000000..8ade16e9 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMetadata.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMetadata : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMetadata(Metadata data = default(Metadata)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMetadata and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Metadata Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMetadata {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMetadata); + } + + /// + /// Returns true if RestApiResultMetadata instances are equal + /// + /// Instance of RestApiResultMetadata to be compared + /// Boolean + public bool Equals(RestApiResultMetadata input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMetafieldDefinition.cs b/src/Flipdish/Model/RestApiResultMetafieldDefinition.cs new file mode 100644 index 00000000..9536319a --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMetafieldDefinition.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMetafieldDefinition : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMetafieldDefinition() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMetafieldDefinition(MetafieldDefinition data = default(MetafieldDefinition)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMetafieldDefinition and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MetafieldDefinition Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMetafieldDefinition {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMetafieldDefinition); + } + + /// + /// Returns true if RestApiResultMetafieldDefinition instances are equal + /// + /// Instance of RestApiResultMetafieldDefinition to be compared + /// Boolean + public bool Equals(RestApiResultMetafieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMobileAppsImage.cs b/src/Flipdish/Model/RestApiResultMobileAppsImage.cs new file mode 100644 index 00000000..aa6ff5aa --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMobileAppsImage.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMobileAppsImage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMobileAppsImage() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMobileAppsImage(MobileAppsImage data = default(MobileAppsImage)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMobileAppsImage and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MobileAppsImage Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMobileAppsImage {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMobileAppsImage); + } + + /// + /// Returns true if RestApiResultMobileAppsImage instances are equal + /// + /// Instance of RestApiResultMobileAppsImage to be compared + /// Boolean + public bool Equals(RestApiResultMobileAppsImage input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMobileAppsSubmission.cs b/src/Flipdish/Model/RestApiResultMobileAppsSubmission.cs new file mode 100644 index 00000000..c5a6c2d2 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMobileAppsSubmission.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMobileAppsSubmission : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMobileAppsSubmission() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMobileAppsSubmission(MobileAppsSubmission data = default(MobileAppsSubmission)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMobileAppsSubmission and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MobileAppsSubmission Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMobileAppsSubmission {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMobileAppsSubmission); + } + + /// + /// Returns true if RestApiResultMobileAppsSubmission instances are equal + /// + /// Instance of RestApiResultMobileAppsSubmission to be compared + /// Boolean + public bool Equals(RestApiResultMobileAppsSubmission input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMobileAppsSubmissionDetails.cs b/src/Flipdish/Model/RestApiResultMobileAppsSubmissionDetails.cs new file mode 100644 index 00000000..b671fdcb --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMobileAppsSubmissionDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMobileAppsSubmissionDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMobileAppsSubmissionDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMobileAppsSubmissionDetails(MobileAppsSubmissionDetails data = default(MobileAppsSubmissionDetails)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMobileAppsSubmissionDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MobileAppsSubmissionDetails Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMobileAppsSubmissionDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMobileAppsSubmissionDetails); + } + + /// + /// Returns true if RestApiResultMobileAppsSubmissionDetails instances are equal + /// + /// Instance of RestApiResultMobileAppsSubmissionDetails to be compared + /// Boolean + public bool Equals(RestApiResultMobileAppsSubmissionDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultMobileAppsSubmissionStatus.cs b/src/Flipdish/Model/RestApiResultMobileAppsSubmissionStatus.cs new file mode 100644 index 00000000..80e1a9de --- /dev/null +++ b/src/Flipdish/Model/RestApiResultMobileAppsSubmissionStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultMobileAppsSubmissionStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultMobileAppsSubmissionStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultMobileAppsSubmissionStatus(MobileAppsSubmissionStatus data = default(MobileAppsSubmissionStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultMobileAppsSubmissionStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public MobileAppsSubmissionStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultMobileAppsSubmissionStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultMobileAppsSubmissionStatus); + } + + /// + /// Returns true if RestApiResultMobileAppsSubmissionStatus instances are equal + /// + /// Instance of RestApiResultMobileAppsSubmissionStatus to be compared + /// Boolean + public bool Equals(RestApiResultMobileAppsSubmissionStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultModelBase.cs b/src/Flipdish/Model/RestApiResultModelBase.cs new file mode 100644 index 00000000..b8c50afe --- /dev/null +++ b/src/Flipdish/Model/RestApiResultModelBase.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultModelBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultModelBase() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultModelBase(ModelBase data = default(ModelBase)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultModelBase and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ModelBase Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultModelBase {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultModelBase); + } + + /// + /// Returns true if RestApiResultModelBase instances are equal + /// + /// Instance of RestApiResultModelBase to be compared + /// Boolean + public bool Equals(RestApiResultModelBase input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultNutritionInfo.cs b/src/Flipdish/Model/RestApiResultNutritionInfo.cs new file mode 100644 index 00000000..f3ab87fb --- /dev/null +++ b/src/Flipdish/Model/RestApiResultNutritionInfo.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultNutritionInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultNutritionInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultNutritionInfo(NutritionInfo data = default(NutritionInfo)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultNutritionInfo and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public NutritionInfo Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultNutritionInfo {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultNutritionInfo); + } + + /// + /// Returns true if RestApiResultNutritionInfo instances are equal + /// + /// Instance of RestApiResultNutritionInfo to be compared + /// Boolean + public bool Equals(RestApiResultNutritionInfo input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultNutritionInfoV2.cs b/src/Flipdish/Model/RestApiResultNutritionInfoV2.cs new file mode 100644 index 00000000..df62a5cc --- /dev/null +++ b/src/Flipdish/Model/RestApiResultNutritionInfoV2.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultNutritionInfoV2 : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultNutritionInfoV2() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultNutritionInfoV2(NutritionInfoV2 data = default(NutritionInfoV2)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultNutritionInfoV2 and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public NutritionInfoV2 Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultNutritionInfoV2 {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultNutritionInfoV2); + } + + /// + /// Returns true if RestApiResultNutritionInfoV2 instances are equal + /// + /// Instance of RestApiResultNutritionInfoV2 to be compared + /// Boolean + public bool Equals(RestApiResultNutritionInfoV2 input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOAuthApp.cs b/src/Flipdish/Model/RestApiResultOAuthApp.cs new file mode 100644 index 00000000..e647e8f0 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOAuthApp.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOAuthApp : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOAuthApp() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOAuthApp(OAuthApp data = default(OAuthApp)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOAuthApp and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OAuthApp Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOAuthApp {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOAuthApp); + } + + /// + /// Returns true if RestApiResultOAuthApp instances are equal + /// + /// Instance of RestApiResultOAuthApp to be compared + /// Boolean + public bool Equals(RestApiResultOAuthApp input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOauthClientRedirectUri.cs b/src/Flipdish/Model/RestApiResultOauthClientRedirectUri.cs new file mode 100644 index 00000000..db313dc8 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOauthClientRedirectUri.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOauthClientRedirectUri : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOauthClientRedirectUri() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOauthClientRedirectUri(OauthClientRedirectUri data = default(OauthClientRedirectUri)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOauthClientRedirectUri and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OauthClientRedirectUri Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOauthClientRedirectUri {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOauthClientRedirectUri); + } + + /// + /// Returns true if RestApiResultOauthClientRedirectUri instances are equal + /// + /// Instance of RestApiResultOauthClientRedirectUri to be compared + /// Boolean + public bool Equals(RestApiResultOauthClientRedirectUri input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOktaPortalFeatureFlag.cs b/src/Flipdish/Model/RestApiResultOktaPortalFeatureFlag.cs new file mode 100644 index 00000000..6b47ca8c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOktaPortalFeatureFlag.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOktaPortalFeatureFlag : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOktaPortalFeatureFlag() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOktaPortalFeatureFlag(OktaPortalFeatureFlag data = default(OktaPortalFeatureFlag)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOktaPortalFeatureFlag and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OktaPortalFeatureFlag Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOktaPortalFeatureFlag {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOktaPortalFeatureFlag); + } + + /// + /// Returns true if RestApiResultOktaPortalFeatureFlag instances are equal + /// + /// Instance of RestApiResultOktaPortalFeatureFlag to be compared + /// Boolean + public bool Equals(RestApiResultOktaPortalFeatureFlag input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrder.cs b/src/Flipdish/Model/RestApiResultOrder.cs new file mode 100644 index 00000000..de726fcc --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrder.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrder : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrder(Order data = default(Order)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrder and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Order Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrder {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrder); + } + + /// + /// Returns true if RestApiResultOrder instances are equal + /// + /// Instance of RestApiResultOrder to be compared + /// Boolean + public bool Equals(RestApiResultOrder input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderBatch.cs b/src/Flipdish/Model/RestApiResultOrderBatch.cs new file mode 100644 index 00000000..c70f194f --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderBatch.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderBatch : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderBatch() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderBatch(OrderBatch data = default(OrderBatch)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderBatch and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderBatch Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderBatch {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderBatch); + } + + /// + /// Returns true if RestApiResultOrderBatch instances are equal + /// + /// Instance of RestApiResultOrderBatch to be compared + /// Boolean + public bool Equals(RestApiResultOrderBatch input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderBatchingConfiguration.cs b/src/Flipdish/Model/RestApiResultOrderBatchingConfiguration.cs new file mode 100644 index 00000000..23686e1c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderBatchingConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderBatchingConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderBatchingConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderBatchingConfiguration(OrderBatchingConfiguration data = default(OrderBatchingConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderBatchingConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderBatchingConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderBatchingConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderBatchingConfiguration); + } + + /// + /// Returns true if RestApiResultOrderBatchingConfiguration instances are equal + /// + /// Instance of RestApiResultOrderBatchingConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultOrderBatchingConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderDeliveryInformation.cs b/src/Flipdish/Model/RestApiResultOrderDeliveryInformation.cs new file mode 100644 index 00000000..19805f62 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderDeliveryInformation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderDeliveryInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderDeliveryInformation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderDeliveryInformation(OrderDeliveryInformation data = default(OrderDeliveryInformation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderDeliveryInformation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderDeliveryInformation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderDeliveryInformation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderDeliveryInformation); + } + + /// + /// Returns true if RestApiResultOrderDeliveryInformation instances are equal + /// + /// Instance of RestApiResultOrderDeliveryInformation to be compared + /// Boolean + public bool Equals(RestApiResultOrderDeliveryInformation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderFulfillmentStatus.cs b/src/Flipdish/Model/RestApiResultOrderFulfillmentStatus.cs new file mode 100644 index 00000000..5400f320 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderFulfillmentStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderFulfillmentStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderFulfillmentStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderFulfillmentStatus(OrderFulfillmentStatus data = default(OrderFulfillmentStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderFulfillmentStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderFulfillmentStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderFulfillmentStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderFulfillmentStatus); + } + + /// + /// Returns true if RestApiResultOrderFulfillmentStatus instances are equal + /// + /// Instance of RestApiResultOrderFulfillmentStatus to be compared + /// Boolean + public bool Equals(RestApiResultOrderFulfillmentStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.cs b/src/Flipdish/Model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.cs new file mode 100644 index 00000000..0d99c098 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderFulfillmentStatusWithConfigurationActions : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderFulfillmentStatusWithConfigurationActions() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderFulfillmentStatusWithConfigurationActions(OrderFulfillmentStatusWithConfigurationActions data = default(OrderFulfillmentStatusWithConfigurationActions)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderFulfillmentStatusWithConfigurationActions and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderFulfillmentStatusWithConfigurationActions Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderFulfillmentStatusWithConfigurationActions {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderFulfillmentStatusWithConfigurationActions); + } + + /// + /// Returns true if RestApiResultOrderFulfillmentStatusWithConfigurationActions instances are equal + /// + /// Instance of RestApiResultOrderFulfillmentStatusWithConfigurationActions to be compared + /// Boolean + public bool Equals(RestApiResultOrderFulfillmentStatusWithConfigurationActions input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderLeadTimes.cs b/src/Flipdish/Model/RestApiResultOrderLeadTimes.cs new file mode 100644 index 00000000..feac3386 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderLeadTimes.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderLeadTimes : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderLeadTimes() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderLeadTimes(OrderLeadTimes data = default(OrderLeadTimes)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderLeadTimes and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderLeadTimes Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderLeadTimes {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderLeadTimes); + } + + /// + /// Returns true if RestApiResultOrderLeadTimes instances are equal + /// + /// Instance of RestApiResultOrderLeadTimes to be compared + /// Boolean + public bool Equals(RestApiResultOrderLeadTimes input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultOrderPaymentInformation.cs b/src/Flipdish/Model/RestApiResultOrderPaymentInformation.cs new file mode 100644 index 00000000..8ca63312 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultOrderPaymentInformation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultOrderPaymentInformation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultOrderPaymentInformation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultOrderPaymentInformation(OrderPaymentInformation data = default(OrderPaymentInformation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultOrderPaymentInformation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public OrderPaymentInformation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultOrderPaymentInformation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultOrderPaymentInformation); + } + + /// + /// Returns true if RestApiResultOrderPaymentInformation instances are equal + /// + /// Instance of RestApiResultOrderPaymentInformation to be compared + /// Boolean + public bool Equals(RestApiResultOrderPaymentInformation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPaymentIntent.cs b/src/Flipdish/Model/RestApiResultPaymentIntent.cs new file mode 100644 index 00000000..4de44dff --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPaymentIntent.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPaymentIntent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPaymentIntent() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPaymentIntent(PaymentIntent data = default(PaymentIntent)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPaymentIntent and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PaymentIntent Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPaymentIntent {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPaymentIntent); + } + + /// + /// Returns true if RestApiResultPaymentIntent instances are equal + /// + /// Instance of RestApiResultPaymentIntent to be compared + /// Boolean + public bool Equals(RestApiResultPaymentIntent input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPaymentTerminalDetails.cs b/src/Flipdish/Model/RestApiResultPaymentTerminalDetails.cs new file mode 100644 index 00000000..cd070321 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPaymentTerminalDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPaymentTerminalDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPaymentTerminalDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPaymentTerminalDetails(PaymentTerminalDetails data = default(PaymentTerminalDetails)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPaymentTerminalDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PaymentTerminalDetails Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPaymentTerminalDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPaymentTerminalDetails); + } + + /// + /// Returns true if RestApiResultPaymentTerminalDetails instances are equal + /// + /// Instance of RestApiResultPaymentTerminalDetails to be compared + /// Boolean + public bool Equals(RestApiResultPaymentTerminalDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPaymentTerminalTransactionDetails.cs b/src/Flipdish/Model/RestApiResultPaymentTerminalTransactionDetails.cs new file mode 100644 index 00000000..1cb9fe30 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPaymentTerminalTransactionDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPaymentTerminalTransactionDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPaymentTerminalTransactionDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPaymentTerminalTransactionDetails(PaymentTerminalTransactionDetails data = default(PaymentTerminalTransactionDetails)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPaymentTerminalTransactionDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PaymentTerminalTransactionDetails Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPaymentTerminalTransactionDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPaymentTerminalTransactionDetails); + } + + /// + /// Returns true if RestApiResultPaymentTerminalTransactionDetails instances are equal + /// + /// Instance of RestApiResultPaymentTerminalTransactionDetails to be compared + /// Boolean + public bool Equals(RestApiResultPaymentTerminalTransactionDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPayoutReport3Details.cs b/src/Flipdish/Model/RestApiResultPayoutReport3Details.cs new file mode 100644 index 00000000..faf764e7 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPayoutReport3Details.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPayoutReport3Details : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPayoutReport3Details() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPayoutReport3Details(PayoutReport3Details data = default(PayoutReport3Details)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPayoutReport3Details and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PayoutReport3Details Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPayoutReport3Details {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPayoutReport3Details); + } + + /// + /// Returns true if RestApiResultPayoutReport3Details instances are equal + /// + /// Instance of RestApiResultPayoutReport3Details to be compared + /// Boolean + public bool Equals(RestApiResultPayoutReport3Details input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPayoutReport3Overview.cs b/src/Flipdish/Model/RestApiResultPayoutReport3Overview.cs new file mode 100644 index 00000000..ed689c5c --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPayoutReport3Overview.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPayoutReport3Overview : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPayoutReport3Overview() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPayoutReport3Overview(PayoutReport3Overview data = default(PayoutReport3Overview)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPayoutReport3Overview and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PayoutReport3Overview Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPayoutReport3Overview {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPayoutReport3Overview); + } + + /// + /// Returns true if RestApiResultPayoutReport3Overview instances are equal + /// + /// Instance of RestApiResultPayoutReport3Overview to be compared + /// Boolean + public bool Equals(RestApiResultPayoutReport3Overview input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPayoutReport3PropertyDetails.cs b/src/Flipdish/Model/RestApiResultPayoutReport3PropertyDetails.cs new file mode 100644 index 00000000..a5b27295 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPayoutReport3PropertyDetails.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPayoutReport3PropertyDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPayoutReport3PropertyDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPayoutReport3PropertyDetails(PayoutReport3PropertyDetails data = default(PayoutReport3PropertyDetails)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPayoutReport3PropertyDetails and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PayoutReport3PropertyDetails Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPayoutReport3PropertyDetails {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPayoutReport3PropertyDetails); + } + + /// + /// Returns true if RestApiResultPayoutReport3PropertyDetails instances are equal + /// + /// Instance of RestApiResultPayoutReport3PropertyDetails to be compared + /// Boolean + public bool Equals(RestApiResultPayoutReport3PropertyDetails input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPayoutReport3StorePayouts.cs b/src/Flipdish/Model/RestApiResultPayoutReport3StorePayouts.cs new file mode 100644 index 00000000..0e74d314 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPayoutReport3StorePayouts.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPayoutReport3StorePayouts : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPayoutReport3StorePayouts() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPayoutReport3StorePayouts(PayoutReport3StorePayouts data = default(PayoutReport3StorePayouts)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPayoutReport3StorePayouts and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PayoutReport3StorePayouts Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPayoutReport3StorePayouts {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPayoutReport3StorePayouts); + } + + /// + /// Returns true if RestApiResultPayoutReport3StorePayouts instances are equal + /// + /// Instance of RestApiResultPayoutReport3StorePayouts to be compared + /// Boolean + public bool Equals(RestApiResultPayoutReport3StorePayouts input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPixelPointProductCatalogue.cs b/src/Flipdish/Model/RestApiResultPixelPointProductCatalogue.cs new file mode 100644 index 00000000..7137434b --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPixelPointProductCatalogue.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPixelPointProductCatalogue : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPixelPointProductCatalogue() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPixelPointProductCatalogue(PixelPointProductCatalogue data = default(PixelPointProductCatalogue)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPixelPointProductCatalogue and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PixelPointProductCatalogue Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPixelPointProductCatalogue {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPixelPointProductCatalogue); + } + + /// + /// Returns true if RestApiResultPixelPointProductCatalogue instances are equal + /// + /// Instance of RestApiResultPixelPointProductCatalogue to be compared + /// Boolean + public bool Equals(RestApiResultPixelPointProductCatalogue input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPlayStoreConfigModel.cs b/src/Flipdish/Model/RestApiResultPlayStoreConfigModel.cs new file mode 100644 index 00000000..a918317f --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPlayStoreConfigModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPlayStoreConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPlayStoreConfigModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPlayStoreConfigModel(PlayStoreConfigModel data = default(PlayStoreConfigModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPlayStoreConfigModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PlayStoreConfigModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPlayStoreConfigModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPlayStoreConfigModel); + } + + /// + /// Returns true if RestApiResultPlayStoreConfigModel instances are equal + /// + /// Instance of RestApiResultPlayStoreConfigModel to be compared + /// Boolean + public bool Equals(RestApiResultPlayStoreConfigModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPreOrderConfig.cs b/src/Flipdish/Model/RestApiResultPreOrderConfig.cs new file mode 100644 index 00000000..84e9f694 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPreOrderConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPreOrderConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPreOrderConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPreOrderConfig(PreOrderConfig data = default(PreOrderConfig)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPreOrderConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PreOrderConfig Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPreOrderConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPreOrderConfig); + } + + /// + /// Returns true if RestApiResultPreOrderConfig instances are equal + /// + /// Instance of RestApiResultPreOrderConfig to be compared + /// Boolean + public bool Equals(RestApiResultPreOrderConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultProcessingFeeConfig.cs b/src/Flipdish/Model/RestApiResultProcessingFeeConfig.cs new file mode 100644 index 00000000..a4a97baf --- /dev/null +++ b/src/Flipdish/Model/RestApiResultProcessingFeeConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultProcessingFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultProcessingFeeConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultProcessingFeeConfig(ProcessingFeeConfig data = default(ProcessingFeeConfig)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultProcessingFeeConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ProcessingFeeConfig Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultProcessingFeeConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultProcessingFeeConfig); + } + + /// + /// Returns true if RestApiResultProcessingFeeConfig instances are equal + /// + /// Instance of RestApiResultProcessingFeeConfig to be compared + /// Boolean + public bool Equals(RestApiResultProcessingFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultProduct.cs b/src/Flipdish/Model/RestApiResultProduct.cs new file mode 100644 index 00000000..aafe8ac1 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultProduct.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultProduct : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultProduct() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultProduct(Product data = default(Product)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultProduct and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Product Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultProduct {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultProduct); + } + + /// + /// Returns true if RestApiResultProduct instances are equal + /// + /// Instance of RestApiResultProduct to be compared + /// Boolean + public bool Equals(RestApiResultProduct input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultPushNotificationResponse.cs b/src/Flipdish/Model/RestApiResultPushNotificationResponse.cs new file mode 100644 index 00000000..3c32b434 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultPushNotificationResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultPushNotificationResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultPushNotificationResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultPushNotificationResponse(PushNotificationResponse data = default(PushNotificationResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultPushNotificationResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public PushNotificationResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultPushNotificationResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultPushNotificationResponse); + } + + /// + /// Returns true if RestApiResultPushNotificationResponse instances are equal + /// + /// Instance of RestApiResultPushNotificationResponse to be compared + /// Boolean + public bool Equals(RestApiResultPushNotificationResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRedeemInvitationResult.cs b/src/Flipdish/Model/RestApiResultRedeemInvitationResult.cs new file mode 100644 index 00000000..0839b663 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRedeemInvitationResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRedeemInvitationResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRedeemInvitationResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRedeemInvitationResult(RedeemInvitationResult data = default(RedeemInvitationResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRedeemInvitationResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RedeemInvitationResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRedeemInvitationResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRedeemInvitationResult); + } + + /// + /// Returns true if RestApiResultRedeemInvitationResult instances are equal + /// + /// Instance of RestApiResultRedeemInvitationResult to be compared + /// Boolean + public bool Equals(RestApiResultRedeemInvitationResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRestApiDefaultResponse.cs b/src/Flipdish/Model/RestApiResultRestApiDefaultResponse.cs new file mode 100644 index 00000000..58f00366 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRestApiDefaultResponse.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRestApiDefaultResponse : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRestApiDefaultResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRestApiDefaultResponse(RestApiDefaultResponse data = default(RestApiDefaultResponse)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRestApiDefaultResponse and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RestApiDefaultResponse Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRestApiDefaultResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRestApiDefaultResponse); + } + + /// + /// Returns true if RestApiResultRestApiDefaultResponse instances are equal + /// + /// Instance of RestApiResultRestApiDefaultResponse to be compared + /// Boolean + public bool Equals(RestApiResultRestApiDefaultResponse input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRestApiIntegerResult.cs b/src/Flipdish/Model/RestApiResultRestApiIntegerResult.cs new file mode 100644 index 00000000..b5baa854 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRestApiIntegerResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRestApiIntegerResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRestApiIntegerResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRestApiIntegerResult(RestApiIntegerResult data = default(RestApiIntegerResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRestApiIntegerResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RestApiIntegerResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRestApiIntegerResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRestApiIntegerResult); + } + + /// + /// Returns true if RestApiResultRestApiIntegerResult instances are equal + /// + /// Instance of RestApiResultRestApiIntegerResult to be compared + /// Boolean + public bool Equals(RestApiResultRestApiIntegerResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenConfiguration.cs b/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenConfiguration.cs new file mode 100644 index 00000000..d5ccc272 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRestaurantVoucherPayGreenConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRestaurantVoucherPayGreenConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRestaurantVoucherPayGreenConfiguration(RestaurantVoucherPayGreenConfiguration data = default(RestaurantVoucherPayGreenConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRestaurantVoucherPayGreenConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RestaurantVoucherPayGreenConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRestaurantVoucherPayGreenConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRestaurantVoucherPayGreenConfiguration); + } + + /// + /// Returns true if RestApiResultRestaurantVoucherPayGreenConfiguration instances are equal + /// + /// Instance of RestApiResultRestaurantVoucherPayGreenConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultRestaurantVoucherPayGreenConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.cs b/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.cs new file mode 100644 index 00000000..52bea6e6 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRestaurantVoucherPayGreenStoreConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRestaurantVoucherPayGreenStoreConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRestaurantVoucherPayGreenStoreConfiguration(RestaurantVoucherPayGreenStoreConfiguration data = default(RestaurantVoucherPayGreenStoreConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRestaurantVoucherPayGreenStoreConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RestaurantVoucherPayGreenStoreConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRestaurantVoucherPayGreenStoreConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRestaurantVoucherPayGreenStoreConfiguration); + } + + /// + /// Returns true if RestApiResultRestaurantVoucherPayGreenStoreConfiguration instances are equal + /// + /// Instance of RestApiResultRestaurantVoucherPayGreenStoreConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultRestaurantVoucherPayGreenStoreConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultRetentionCampaign.cs b/src/Flipdish/Model/RestApiResultRetentionCampaign.cs new file mode 100644 index 00000000..1a200453 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultRetentionCampaign.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultRetentionCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultRetentionCampaign() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultRetentionCampaign(RetentionCampaign data = default(RetentionCampaign)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultRetentionCampaign and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public RetentionCampaign Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultRetentionCampaign {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultRetentionCampaign); + } + + /// + /// Returns true if RestApiResultRetentionCampaign instances are equal + /// + /// Instance of RestApiResultRetentionCampaign to be compared + /// Boolean + public bool Equals(RestApiResultRetentionCampaign input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultServiceCharge.cs b/src/Flipdish/Model/RestApiResultServiceCharge.cs new file mode 100644 index 00000000..43cfd48a --- /dev/null +++ b/src/Flipdish/Model/RestApiResultServiceCharge.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultServiceCharge : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultServiceCharge() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultServiceCharge(ServiceCharge data = default(ServiceCharge)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultServiceCharge and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public ServiceCharge Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultServiceCharge {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultServiceCharge); + } + + /// + /// Returns true if RestApiResultServiceCharge instances are equal + /// + /// Instance of RestApiResultServiceCharge to be compared + /// Boolean + public bool Equals(RestApiResultServiceCharge input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultSetV2FeeCalculationRequest.cs b/src/Flipdish/Model/RestApiResultSetV2FeeCalculationRequest.cs new file mode 100644 index 00000000..c46d102e --- /dev/null +++ b/src/Flipdish/Model/RestApiResultSetV2FeeCalculationRequest.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultSetV2FeeCalculationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultSetV2FeeCalculationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultSetV2FeeCalculationRequest(SetV2FeeCalculationRequest data = default(SetV2FeeCalculationRequest)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultSetV2FeeCalculationRequest and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public SetV2FeeCalculationRequest Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultSetV2FeeCalculationRequest {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultSetV2FeeCalculationRequest); + } + + /// + /// Returns true if RestApiResultSetV2FeeCalculationRequest instances are equal + /// + /// Instance of RestApiResultSetV2FeeCalculationRequest to be compared + /// Boolean + public bool Equals(RestApiResultSetV2FeeCalculationRequest input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultSmsProviderCredential.cs b/src/Flipdish/Model/RestApiResultSmsProviderCredential.cs new file mode 100644 index 00000000..a3305171 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultSmsProviderCredential.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultSmsProviderCredential : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultSmsProviderCredential() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultSmsProviderCredential(SmsProviderCredential data = default(SmsProviderCredential)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultSmsProviderCredential and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public SmsProviderCredential Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultSmsProviderCredential {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultSmsProviderCredential); + } + + /// + /// Returns true if RestApiResultSmsProviderCredential instances are equal + /// + /// Instance of RestApiResultSmsProviderCredential to be compared + /// Boolean + public bool Equals(RestApiResultSmsProviderCredential input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStore.cs b/src/Flipdish/Model/RestApiResultStore.cs new file mode 100644 index 00000000..7a6f5cf3 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStore.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStore() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStore(Store data = default(Store)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStore and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Store Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStore {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStore); + } + + /// + /// Returns true if RestApiResultStore instances are equal + /// + /// Instance of RestApiResultStore to be compared + /// Boolean + public bool Equals(RestApiResultStore input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreAddress.cs b/src/Flipdish/Model/RestApiResultStoreAddress.cs new file mode 100644 index 00000000..90a334d5 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreAddress.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreAddress : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreAddress() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreAddress(StoreAddress data = default(StoreAddress)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreAddress and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreAddress Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreAddress {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreAddress); + } + + /// + /// Returns true if RestApiResultStoreAddress instances are equal + /// + /// Instance of RestApiResultStoreAddress to be compared + /// Boolean + public bool Equals(RestApiResultStoreAddress input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreChannelAssignment.cs b/src/Flipdish/Model/RestApiResultStoreChannelAssignment.cs new file mode 100644 index 00000000..af7bd71e --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreChannelAssignment.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreChannelAssignment : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreChannelAssignment() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreChannelAssignment(StoreChannelAssignment data = default(StoreChannelAssignment)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreChannelAssignment and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreChannelAssignment Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreChannelAssignment {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreChannelAssignment); + } + + /// + /// Returns true if RestApiResultStoreChannelAssignment instances are equal + /// + /// Instance of RestApiResultStoreChannelAssignment to be compared + /// Boolean + public bool Equals(RestApiResultStoreChannelAssignment input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreEndOfDayReport.cs b/src/Flipdish/Model/RestApiResultStoreEndOfDayReport.cs new file mode 100644 index 00000000..7ba9bed4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreEndOfDayReport.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreEndOfDayReport : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreEndOfDayReport() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreEndOfDayReport(StoreEndOfDayReport data = default(StoreEndOfDayReport)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreEndOfDayReport and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreEndOfDayReport Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreEndOfDayReport {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreEndOfDayReport); + } + + /// + /// Returns true if RestApiResultStoreEndOfDayReport instances are equal + /// + /// Instance of RestApiResultStoreEndOfDayReport to be compared + /// Boolean + public bool Equals(RestApiResultStoreEndOfDayReport input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreGroup.cs b/src/Flipdish/Model/RestApiResultStoreGroup.cs new file mode 100644 index 00000000..f81216e4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreGroup.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreGroup() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreGroup(StoreGroup data = default(StoreGroup)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreGroup and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreGroup Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreGroup {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreGroup); + } + + /// + /// Returns true if RestApiResultStoreGroup instances are equal + /// + /// Instance of RestApiResultStoreGroup to be compared + /// Boolean + public bool Equals(RestApiResultStoreGroup input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreGroupBase.cs b/src/Flipdish/Model/RestApiResultStoreGroupBase.cs new file mode 100644 index 00000000..88a17e75 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreGroupBase.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreGroupBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreGroupBase() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreGroupBase(StoreGroupBase data = default(StoreGroupBase)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreGroupBase and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreGroupBase Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreGroupBase {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreGroupBase); + } + + /// + /// Returns true if RestApiResultStoreGroupBase instances are equal + /// + /// Instance of RestApiResultStoreGroupBase to be compared + /// Boolean + public bool Equals(RestApiResultStoreGroupBase input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStoreOrderCapacityConfig.cs b/src/Flipdish/Model/RestApiResultStoreOrderCapacityConfig.cs new file mode 100644 index 00000000..c02d0672 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStoreOrderCapacityConfig.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStoreOrderCapacityConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStoreOrderCapacityConfig() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStoreOrderCapacityConfig(StoreOrderCapacityConfig data = default(StoreOrderCapacityConfig)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStoreOrderCapacityConfig and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StoreOrderCapacityConfig Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStoreOrderCapacityConfig {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStoreOrderCapacityConfig); + } + + /// + /// Returns true if RestApiResultStoreOrderCapacityConfig instances are equal + /// + /// Instance of RestApiResultStoreOrderCapacityConfig to be compared + /// Boolean + public bool Equals(RestApiResultStoreOrderCapacityConfig input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStripeConnectedAccount.cs b/src/Flipdish/Model/RestApiResultStripeConnectedAccount.cs new file mode 100644 index 00000000..8f908c15 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStripeConnectedAccount.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStripeConnectedAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStripeConnectedAccount() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStripeConnectedAccount(StripeConnectedAccount data = default(StripeConnectedAccount)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStripeConnectedAccount and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StripeConnectedAccount Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStripeConnectedAccount {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStripeConnectedAccount); + } + + /// + /// Returns true if RestApiResultStripeConnectedAccount instances are equal + /// + /// Instance of RestApiResultStripeConnectedAccount to be compared + /// Boolean + public bool Equals(RestApiResultStripeConnectedAccount input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStripeTerminalConnectionToken.cs b/src/Flipdish/Model/RestApiResultStripeTerminalConnectionToken.cs new file mode 100644 index 00000000..b322345f --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStripeTerminalConnectionToken.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStripeTerminalConnectionToken : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStripeTerminalConnectionToken() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStripeTerminalConnectionToken(StripeTerminalConnectionToken data = default(StripeTerminalConnectionToken)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStripeTerminalConnectionToken and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StripeTerminalConnectionToken Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStripeTerminalConnectionToken {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStripeTerminalConnectionToken); + } + + /// + /// Returns true if RestApiResultStripeTerminalConnectionToken instances are equal + /// + /// Instance of RestApiResultStripeTerminalConnectionToken to be compared + /// Boolean + public bool Equals(RestApiResultStripeTerminalConnectionToken input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStripeTerminalLocation.cs b/src/Flipdish/Model/RestApiResultStripeTerminalLocation.cs new file mode 100644 index 00000000..727f2760 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStripeTerminalLocation.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStripeTerminalLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStripeTerminalLocation() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStripeTerminalLocation(StripeTerminalLocation data = default(StripeTerminalLocation)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStripeTerminalLocation and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StripeTerminalLocation Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStripeTerminalLocation {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStripeTerminalLocation); + } + + /// + /// Returns true if RestApiResultStripeTerminalLocation instances are equal + /// + /// Instance of RestApiResultStripeTerminalLocation to be compared + /// Boolean + public bool Equals(RestApiResultStripeTerminalLocation input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultStuartSettings.cs b/src/Flipdish/Model/RestApiResultStuartSettings.cs new file mode 100644 index 00000000..39a1ae44 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultStuartSettings.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultStuartSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultStuartSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultStuartSettings(StuartSettings data = default(StuartSettings)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultStuartSettings and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public StuartSettings Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultStuartSettings {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultStuartSettings); + } + + /// + /// Returns true if RestApiResultStuartSettings instances are equal + /// + /// Instance of RestApiResultStuartSettings to be compared + /// Boolean + public bool Equals(RestApiResultStuartSettings input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultSubscription.cs b/src/Flipdish/Model/RestApiResultSubscription.cs new file mode 100644 index 00000000..c9038cb4 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultSubscription.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultSubscription : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultSubscription() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultSubscription(Subscription data = default(Subscription)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultSubscription and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Subscription Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultSubscription {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultSubscription); + } + + /// + /// Returns true if RestApiResultSubscription instances are equal + /// + /// Instance of RestApiResultSubscription to be compared + /// Boolean + public bool Equals(RestApiResultSubscription input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultTeammate.cs b/src/Flipdish/Model/RestApiResultTeammate.cs new file mode 100644 index 00000000..3a9660b0 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultTeammate.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultTeammate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultTeammate() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultTeammate(Teammate data = default(Teammate)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultTeammate and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Teammate Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultTeammate {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultTeammate); + } + + /// + /// Returns true if RestApiResultTeammate instances are equal + /// + /// Instance of RestApiResultTeammate to be compared + /// Boolean + public bool Equals(RestApiResultTeammate input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultTelemetrySeriesResult.cs b/src/Flipdish/Model/RestApiResultTelemetrySeriesResult.cs new file mode 100644 index 00000000..6feaad70 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultTelemetrySeriesResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultTelemetrySeriesResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultTelemetrySeriesResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultTelemetrySeriesResult(TelemetrySeriesResult data = default(TelemetrySeriesResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultTelemetrySeriesResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public TelemetrySeriesResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultTelemetrySeriesResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultTelemetrySeriesResult); + } + + /// + /// Returns true if RestApiResultTelemetrySeriesResult instances are equal + /// + /// Instance of RestApiResultTelemetrySeriesResult to be compared + /// Boolean + public bool Equals(RestApiResultTelemetrySeriesResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultTipConfiguration.cs b/src/Flipdish/Model/RestApiResultTipConfiguration.cs new file mode 100644 index 00000000..1ed39d09 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultTipConfiguration.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultTipConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultTipConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultTipConfiguration(TipConfiguration data = default(TipConfiguration)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultTipConfiguration and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public TipConfiguration Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultTipConfiguration {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultTipConfiguration); + } + + /// + /// Returns true if RestApiResultTipConfiguration instances are equal + /// + /// Instance of RestApiResultTipConfiguration to be compared + /// Boolean + public bool Equals(RestApiResultTipConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultUpdateMobileAppsSubmissionStatus.cs b/src/Flipdish/Model/RestApiResultUpdateMobileAppsSubmissionStatus.cs new file mode 100644 index 00000000..07018889 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultUpdateMobileAppsSubmissionStatus.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultUpdateMobileAppsSubmissionStatus : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultUpdateMobileAppsSubmissionStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultUpdateMobileAppsSubmissionStatus(UpdateMobileAppsSubmissionStatus data = default(UpdateMobileAppsSubmissionStatus)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultUpdateMobileAppsSubmissionStatus and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public UpdateMobileAppsSubmissionStatus Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultUpdateMobileAppsSubmissionStatus {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultUpdateMobileAppsSubmissionStatus); + } + + /// + /// Returns true if RestApiResultUpdateMobileAppsSubmissionStatus instances are equal + /// + /// Instance of RestApiResultUpdateMobileAppsSubmissionStatus to be compared + /// Boolean + public bool Equals(RestApiResultUpdateMobileAppsSubmissionStatus input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultUserInfo.cs b/src/Flipdish/Model/RestApiResultUserInfo.cs new file mode 100644 index 00000000..f7ee3586 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultUserInfo.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultUserInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultUserInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultUserInfo(UserInfo data = default(UserInfo)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultUserInfo and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public UserInfo Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultUserInfo {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultUserInfo); + } + + /// + /// Returns true if RestApiResultUserInfo instances are equal + /// + /// Instance of RestApiResultUserInfo to be compared + /// Boolean + public bool Equals(RestApiResultUserInfo input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs b/src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs new file mode 100644 index 00000000..aa68adee --- /dev/null +++ b/src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultUserPushNotificationSentResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultUserPushNotificationSentResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultUserPushNotificationSentResult(UserPushNotificationSentResult data = default(UserPushNotificationSentResult)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultUserPushNotificationSentResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public UserPushNotificationSentResult Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultUserPushNotificationSentResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultUserPushNotificationSentResult); + } + + /// + /// Returns true if RestApiResultUserPushNotificationSentResult instances are equal + /// + /// Instance of RestApiResultUserPushNotificationSentResult to be compared + /// Boolean + public bool Equals(RestApiResultUserPushNotificationSentResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultUserRole.cs b/src/Flipdish/Model/RestApiResultUserRole.cs new file mode 100644 index 00000000..4ac9d8b1 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultUserRole.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultUserRole : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultUserRole() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultUserRole(UserRole data = default(UserRole)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultUserRole and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public UserRole Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultUserRole {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultUserRole); + } + + /// + /// Returns true if RestApiResultUserRole instances are equal + /// + /// Instance of RestApiResultUserRole to be compared + /// Boolean + public bool Equals(RestApiResultUserRole input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultVoucher.cs b/src/Flipdish/Model/RestApiResultVoucher.cs new file mode 100644 index 00000000..d05f57cb --- /dev/null +++ b/src/Flipdish/Model/RestApiResultVoucher.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultVoucher : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultVoucher() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultVoucher(Voucher data = default(Voucher)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultVoucher and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public Voucher Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultVoucher {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultVoucher); + } + + /// + /// Returns true if RestApiResultVoucher instances are equal + /// + /// Instance of RestApiResultVoucher to be compared + /// Boolean + public bool Equals(RestApiResultVoucher input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultVoucherWithStats.cs b/src/Flipdish/Model/RestApiResultVoucherWithStats.cs new file mode 100644 index 00000000..395816c2 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultVoucherWithStats.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultVoucherWithStats : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultVoucherWithStats() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultVoucherWithStats(VoucherWithStats data = default(VoucherWithStats)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultVoucherWithStats and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public VoucherWithStats Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultVoucherWithStats {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultVoucherWithStats); + } + + /// + /// Returns true if RestApiResultVoucherWithStats instances are equal + /// + /// Instance of RestApiResultVoucherWithStats to be compared + /// Boolean + public bool Equals(RestApiResultVoucherWithStats input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultWebsiteImage.cs b/src/Flipdish/Model/RestApiResultWebsiteImage.cs new file mode 100644 index 00000000..e549e516 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultWebsiteImage.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultWebsiteImage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultWebsiteImage() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultWebsiteImage(WebsiteImage data = default(WebsiteImage)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultWebsiteImage and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public WebsiteImage Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultWebsiteImage {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultWebsiteImage); + } + + /// + /// Returns true if RestApiResultWebsiteImage instances are equal + /// + /// Instance of RestApiResultWebsiteImage to be compared + /// Boolean + public bool Equals(RestApiResultWebsiteImage input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultWebsiteTestimonial.cs b/src/Flipdish/Model/RestApiResultWebsiteTestimonial.cs new file mode 100644 index 00000000..c44d619b --- /dev/null +++ b/src/Flipdish/Model/RestApiResultWebsiteTestimonial.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultWebsiteTestimonial : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultWebsiteTestimonial() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultWebsiteTestimonial(WebsiteTestimonial data = default(WebsiteTestimonial)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultWebsiteTestimonial and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public WebsiteTestimonial Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultWebsiteTestimonial {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultWebsiteTestimonial); + } + + /// + /// Returns true if RestApiResultWebsiteTestimonial instances are equal + /// + /// Instance of RestApiResultWebsiteTestimonial to be compared + /// Boolean + public bool Equals(RestApiResultWebsiteTestimonial input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiResultWhiteLabelConfigModel.cs b/src/Flipdish/Model/RestApiResultWhiteLabelConfigModel.cs new file mode 100644 index 00000000..96870dd0 --- /dev/null +++ b/src/Flipdish/Model/RestApiResultWhiteLabelConfigModel.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api result + /// + [DataContract] + public partial class RestApiResultWhiteLabelConfigModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiResultWhiteLabelConfigModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Generic data object. (required). + public RestApiResultWhiteLabelConfigModel(WhiteLabelConfigModel data = default(WhiteLabelConfigModel)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiResultWhiteLabelConfigModel and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Generic data object. + /// + /// Generic data object. + [DataMember(Name="Data", EmitDefaultValue=false)] + public WhiteLabelConfigModel Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiResultWhiteLabelConfigModel {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiResultWhiteLabelConfigModel); + } + + /// + /// Returns true if RestApiResultWhiteLabelConfigModel instances are equal + /// + /// Instance of RestApiResultWhiteLabelConfigModel to be compared + /// Boolean + public bool Equals(RestApiResultWhiteLabelConfigModel input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiStringArrayResult.cs b/src/Flipdish/Model/RestApiStringArrayResult.cs new file mode 100644 index 00000000..15df8d1a --- /dev/null +++ b/src/Flipdish/Model/RestApiStringArrayResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api string array result + /// + [DataContract] + public partial class RestApiStringArrayResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiStringArrayResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Data string array (required). + public RestApiStringArrayResult(List data = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiStringArrayResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Data string array + /// + /// Data string array + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiStringArrayResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiStringArrayResult); + } + + /// + /// Returns true if RestApiStringArrayResult instances are equal + /// + /// Instance of RestApiStringArrayResult to be compared + /// Boolean + public bool Equals(RestApiStringArrayResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiStringResult.cs b/src/Flipdish/Model/RestApiStringResult.cs new file mode 100644 index 00000000..fcb42f57 --- /dev/null +++ b/src/Flipdish/Model/RestApiStringResult.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api string result + /// + [DataContract] + public partial class RestApiStringResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RestApiStringResult() { } + /// + /// Initializes a new instance of the class. + /// + /// Data string (required). + public RestApiStringResult(string data = default(string)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RestApiStringResult and cannot be null"); + } + else + { + this.Data = data; + } + } + + /// + /// Data string + /// + /// Data string + [DataMember(Name="Data", EmitDefaultValue=false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiStringResult {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiStringResult); + } + + /// + /// Returns true if RestApiStringResult instances are equal + /// + /// Instance of RestApiStringResult to be compared + /// Boolean + public bool Equals(RestApiStringResult input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestApiUnauthorizedResult.cs b/src/Flipdish/Model/RestApiUnauthorizedResult.cs new file mode 100644 index 00000000..d4e0e9cc --- /dev/null +++ b/src/Flipdish/Model/RestApiUnauthorizedResult.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Rest api unauthorized result + /// + [DataContract] + public partial class RestApiUnauthorizedResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public RestApiUnauthorizedResult() + { + } + + /// + /// Message + /// + /// Message + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestApiUnauthorizedResult {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestApiUnauthorizedResult); + } + + /// + /// Returns true if RestApiUnauthorizedResult instances are equal + /// + /// Instance of RestApiUnauthorizedResult to be compared + /// Boolean + public bool Equals(RestApiUnauthorizedResult input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Restaurant.cs b/src/Flipdish/Model/Restaurant.cs new file mode 100644 index 00000000..e9014743 --- /dev/null +++ b/src/Flipdish/Model/Restaurant.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Restaurant search result + /// + [DataContract] + public partial class Restaurant : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Collection of white label configurations. + /// Virtual restaurant identifier. + /// Virtual restaurant name. + /// Virtual restaurant URL. + /// Physical restaurant identifier. + /// Physical restaurant name. + /// Physical restaurant address. + /// Menu identifier. + /// Indicates if the restaurant is archived. + /// Indicates if the restaurant is published. + /// List of Flipdish Stripe custom connected account identifiers. + public Restaurant(List whiteLabelConfigs = default(List), int? virtualRestaurantId = default(int?), string virtualRestaurantName = default(string), string virtualRestaurantUrl = default(string), int? physicalRestaurantId = default(int?), string physicalRestaurantName = default(string), string physicalRestaurantAddress = default(string), int? menuId = default(int?), bool? isArchived = default(bool?), bool? isPublished = default(bool?), List flipdishStripeCustomConnectedAccounts = default(List)) + { + this.WhiteLabelConfigs = whiteLabelConfigs; + this.VirtualRestaurantId = virtualRestaurantId; + this.VirtualRestaurantName = virtualRestaurantName; + this.VirtualRestaurantUrl = virtualRestaurantUrl; + this.PhysicalRestaurantId = physicalRestaurantId; + this.PhysicalRestaurantName = physicalRestaurantName; + this.PhysicalRestaurantAddress = physicalRestaurantAddress; + this.MenuId = menuId; + this.IsArchived = isArchived; + this.IsPublished = isPublished; + this.FlipdishStripeCustomConnectedAccounts = flipdishStripeCustomConnectedAccounts; + } + + /// + /// Collection of white label configurations + /// + /// Collection of white label configurations + [DataMember(Name="WhiteLabelConfigs", EmitDefaultValue=false)] + public List WhiteLabelConfigs { get; set; } + + /// + /// Virtual restaurant identifier + /// + /// Virtual restaurant identifier + [DataMember(Name="VirtualRestaurantId", EmitDefaultValue=false)] + public int? VirtualRestaurantId { get; set; } + + /// + /// Virtual restaurant name + /// + /// Virtual restaurant name + [DataMember(Name="VirtualRestaurantName", EmitDefaultValue=false)] + public string VirtualRestaurantName { get; set; } + + /// + /// Virtual restaurant URL + /// + /// Virtual restaurant URL + [DataMember(Name="VirtualRestaurantUrl", EmitDefaultValue=false)] + public string VirtualRestaurantUrl { get; set; } + + /// + /// Physical restaurant identifier + /// + /// Physical restaurant identifier + [DataMember(Name="PhysicalRestaurantId", EmitDefaultValue=false)] + public int? PhysicalRestaurantId { get; set; } + + /// + /// Physical restaurant name + /// + /// Physical restaurant name + [DataMember(Name="PhysicalRestaurantName", EmitDefaultValue=false)] + public string PhysicalRestaurantName { get; set; } + + /// + /// Physical restaurant address + /// + /// Physical restaurant address + [DataMember(Name="PhysicalRestaurantAddress", EmitDefaultValue=false)] + public string PhysicalRestaurantAddress { get; set; } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Indicates if the restaurant is archived + /// + /// Indicates if the restaurant is archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Indicates if the restaurant is published + /// + /// Indicates if the restaurant is published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// List of Flipdish Stripe custom connected account identifiers + /// + /// List of Flipdish Stripe custom connected account identifiers + [DataMember(Name="FlipdishStripeCustomConnectedAccounts", EmitDefaultValue=false)] + public List FlipdishStripeCustomConnectedAccounts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Restaurant {\n"); + sb.Append(" WhiteLabelConfigs: ").Append(WhiteLabelConfigs).Append("\n"); + sb.Append(" VirtualRestaurantId: ").Append(VirtualRestaurantId).Append("\n"); + sb.Append(" VirtualRestaurantName: ").Append(VirtualRestaurantName).Append("\n"); + sb.Append(" VirtualRestaurantUrl: ").Append(VirtualRestaurantUrl).Append("\n"); + sb.Append(" PhysicalRestaurantId: ").Append(PhysicalRestaurantId).Append("\n"); + sb.Append(" PhysicalRestaurantName: ").Append(PhysicalRestaurantName).Append("\n"); + sb.Append(" PhysicalRestaurantAddress: ").Append(PhysicalRestaurantAddress).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append(" FlipdishStripeCustomConnectedAccounts: ").Append(FlipdishStripeCustomConnectedAccounts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Restaurant); + } + + /// + /// Returns true if Restaurant instances are equal + /// + /// Instance of Restaurant to be compared + /// Boolean + public bool Equals(Restaurant input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelConfigs == input.WhiteLabelConfigs || + this.WhiteLabelConfigs != null && + this.WhiteLabelConfigs.SequenceEqual(input.WhiteLabelConfigs) + ) && + ( + this.VirtualRestaurantId == input.VirtualRestaurantId || + (this.VirtualRestaurantId != null && + this.VirtualRestaurantId.Equals(input.VirtualRestaurantId)) + ) && + ( + this.VirtualRestaurantName == input.VirtualRestaurantName || + (this.VirtualRestaurantName != null && + this.VirtualRestaurantName.Equals(input.VirtualRestaurantName)) + ) && + ( + this.VirtualRestaurantUrl == input.VirtualRestaurantUrl || + (this.VirtualRestaurantUrl != null && + this.VirtualRestaurantUrl.Equals(input.VirtualRestaurantUrl)) + ) && + ( + this.PhysicalRestaurantId == input.PhysicalRestaurantId || + (this.PhysicalRestaurantId != null && + this.PhysicalRestaurantId.Equals(input.PhysicalRestaurantId)) + ) && + ( + this.PhysicalRestaurantName == input.PhysicalRestaurantName || + (this.PhysicalRestaurantName != null && + this.PhysicalRestaurantName.Equals(input.PhysicalRestaurantName)) + ) && + ( + this.PhysicalRestaurantAddress == input.PhysicalRestaurantAddress || + (this.PhysicalRestaurantAddress != null && + this.PhysicalRestaurantAddress.Equals(input.PhysicalRestaurantAddress)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ) && + ( + this.FlipdishStripeCustomConnectedAccounts == input.FlipdishStripeCustomConnectedAccounts || + this.FlipdishStripeCustomConnectedAccounts != null && + this.FlipdishStripeCustomConnectedAccounts.SequenceEqual(input.FlipdishStripeCustomConnectedAccounts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelConfigs != null) + hashCode = hashCode * 59 + this.WhiteLabelConfigs.GetHashCode(); + if (this.VirtualRestaurantId != null) + hashCode = hashCode * 59 + this.VirtualRestaurantId.GetHashCode(); + if (this.VirtualRestaurantName != null) + hashCode = hashCode * 59 + this.VirtualRestaurantName.GetHashCode(); + if (this.VirtualRestaurantUrl != null) + hashCode = hashCode * 59 + this.VirtualRestaurantUrl.GetHashCode(); + if (this.PhysicalRestaurantId != null) + hashCode = hashCode * 59 + this.PhysicalRestaurantId.GetHashCode(); + if (this.PhysicalRestaurantName != null) + hashCode = hashCode * 59 + this.PhysicalRestaurantName.GetHashCode(); + if (this.PhysicalRestaurantAddress != null) + hashCode = hashCode * 59 + this.PhysicalRestaurantAddress.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + if (this.FlipdishStripeCustomConnectedAccounts != null) + hashCode = hashCode * 59 + this.FlipdishStripeCustomConnectedAccounts.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestaurantVoucherAssignedStore.cs b/src/Flipdish/Model/RestaurantVoucherAssignedStore.cs new file mode 100644 index 00000000..67facaab --- /dev/null +++ b/src/Flipdish/Model/RestaurantVoucherAssignedStore.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestaurantVoucherAssignedStore. + /// + [DataContract] + public partial class RestaurantVoucherAssignedStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// StoreId.. + /// Name.. + /// Active.. + public RestaurantVoucherAssignedStore(int? storeId = default(int?), string name = default(string), bool? active = default(bool?)) + { + this.StoreId = storeId; + this.Name = name; + this.Active = active; + } + + /// + /// StoreId. + /// + /// StoreId. + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Active. + /// + /// Active. + [DataMember(Name="Active", EmitDefaultValue=false)] + public bool? Active { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestaurantVoucherAssignedStore {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestaurantVoucherAssignedStore); + } + + /// + /// Returns true if RestaurantVoucherAssignedStore instances are equal + /// + /// Instance of RestaurantVoucherAssignedStore to be compared + /// Boolean + public bool Equals(RestaurantVoucherAssignedStore input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Active == input.Active || + (this.Active != null && + this.Active.Equals(input.Active)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Active != null) + hashCode = hashCode * 59 + this.Active.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs b/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs new file mode 100644 index 00000000..284e7c20 --- /dev/null +++ b/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestaurantVoucherEligibleStore. + /// + [DataContract] + public partial class RestaurantVoucherEligibleStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// StoreId.. + /// Name.. + public RestaurantVoucherEligibleStore(int? storeId = default(int?), string name = default(string)) + { + this.StoreId = storeId; + this.Name = name; + } + + /// + /// StoreId. + /// + /// StoreId. + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestaurantVoucherEligibleStore {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestaurantVoucherEligibleStore); + } + + /// + /// Returns true if RestaurantVoucherEligibleStore instances are equal + /// + /// Instance of RestaurantVoucherEligibleStore to be compared + /// Boolean + public bool Equals(RestaurantVoucherEligibleStore input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs new file mode 100644 index 00000000..88d46225 --- /dev/null +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestaurantVoucherPayGreenConfiguration. + /// + [DataContract] + public partial class RestaurantVoucherPayGreenConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// PayGreenId.. + /// PayGreenConfigurationId.. + /// AssignedStores.. + public RestaurantVoucherPayGreenConfiguration(string name = default(string), string payGreenId = default(string), int? payGreenConfigurationId = default(int?), List assignedStores = default(List)) + { + this.Name = name; + this.PayGreenId = payGreenId; + this.PayGreenConfigurationId = payGreenConfigurationId; + this.AssignedStores = assignedStores; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// PayGreenId. + /// + /// PayGreenId. + [DataMember(Name="PayGreenId", EmitDefaultValue=false)] + public string PayGreenId { get; set; } + + /// + /// PayGreenConfigurationId. + /// + /// PayGreenConfigurationId. + [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] + public int? PayGreenConfigurationId { get; set; } + + /// + /// AssignedStores. + /// + /// AssignedStores. + [DataMember(Name="AssignedStores", EmitDefaultValue=false)] + public List AssignedStores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestaurantVoucherPayGreenConfiguration {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PayGreenId: ").Append(PayGreenId).Append("\n"); + sb.Append(" PayGreenConfigurationId: ").Append(PayGreenConfigurationId).Append("\n"); + sb.Append(" AssignedStores: ").Append(AssignedStores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestaurantVoucherPayGreenConfiguration); + } + + /// + /// Returns true if RestaurantVoucherPayGreenConfiguration instances are equal + /// + /// Instance of RestaurantVoucherPayGreenConfiguration to be compared + /// Boolean + public bool Equals(RestaurantVoucherPayGreenConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PayGreenId == input.PayGreenId || + (this.PayGreenId != null && + this.PayGreenId.Equals(input.PayGreenId)) + ) && + ( + this.PayGreenConfigurationId == input.PayGreenConfigurationId || + (this.PayGreenConfigurationId != null && + this.PayGreenConfigurationId.Equals(input.PayGreenConfigurationId)) + ) && + ( + this.AssignedStores == input.AssignedStores || + this.AssignedStores != null && + this.AssignedStores.SequenceEqual(input.AssignedStores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PayGreenId != null) + hashCode = hashCode * 59 + this.PayGreenId.GetHashCode(); + if (this.PayGreenConfigurationId != null) + hashCode = hashCode * 59 + this.PayGreenConfigurationId.GetHashCode(); + if (this.AssignedStores != null) + hashCode = hashCode * 59 + this.AssignedStores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs new file mode 100644 index 00000000..7a1bfa77 --- /dev/null +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestaurantVoucherPayGreenConfigurationSummary. + /// + [DataContract] + public partial class RestaurantVoucherPayGreenConfigurationSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// PayGreenConfigurationId.. + public RestaurantVoucherPayGreenConfigurationSummary(string name = default(string), int? payGreenConfigurationId = default(int?)) + { + this.Name = name; + this.PayGreenConfigurationId = payGreenConfigurationId; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// PayGreenConfigurationId. + /// + /// PayGreenConfigurationId. + [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] + public int? PayGreenConfigurationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestaurantVoucherPayGreenConfigurationSummary {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PayGreenConfigurationId: ").Append(PayGreenConfigurationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestaurantVoucherPayGreenConfigurationSummary); + } + + /// + /// Returns true if RestaurantVoucherPayGreenConfigurationSummary instances are equal + /// + /// Instance of RestaurantVoucherPayGreenConfigurationSummary to be compared + /// Boolean + public bool Equals(RestaurantVoucherPayGreenConfigurationSummary input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PayGreenConfigurationId == input.PayGreenConfigurationId || + (this.PayGreenConfigurationId != null && + this.PayGreenConfigurationId.Equals(input.PayGreenConfigurationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PayGreenConfigurationId != null) + hashCode = hashCode * 59 + this.PayGreenConfigurationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs new file mode 100644 index 00000000..f70537f3 --- /dev/null +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// RestaurantVoucherPayGreenStoreConfiguration. + /// + [DataContract] + public partial class RestaurantVoucherPayGreenStoreConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// Active.. + /// PayGreenId.. + /// PayGreenConfigurationId.. + public RestaurantVoucherPayGreenStoreConfiguration(string name = default(string), bool? active = default(bool?), string payGreenId = default(string), int? payGreenConfigurationId = default(int?)) + { + this.Name = name; + this.Active = active; + this.PayGreenId = payGreenId; + this.PayGreenConfigurationId = payGreenConfigurationId; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Active. + /// + /// Active. + [DataMember(Name="Active", EmitDefaultValue=false)] + public bool? Active { get; set; } + + /// + /// PayGreenId. + /// + /// PayGreenId. + [DataMember(Name="PayGreenId", EmitDefaultValue=false)] + public string PayGreenId { get; set; } + + /// + /// PayGreenConfigurationId. + /// + /// PayGreenConfigurationId. + [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] + public int? PayGreenConfigurationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RestaurantVoucherPayGreenStoreConfiguration {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" PayGreenId: ").Append(PayGreenId).Append("\n"); + sb.Append(" PayGreenConfigurationId: ").Append(PayGreenConfigurationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RestaurantVoucherPayGreenStoreConfiguration); + } + + /// + /// Returns true if RestaurantVoucherPayGreenStoreConfiguration instances are equal + /// + /// Instance of RestaurantVoucherPayGreenStoreConfiguration to be compared + /// Boolean + public bool Equals(RestaurantVoucherPayGreenStoreConfiguration input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Active == input.Active || + (this.Active != null && + this.Active.Equals(input.Active)) + ) && + ( + this.PayGreenId == input.PayGreenId || + (this.PayGreenId != null && + this.PayGreenId.Equals(input.PayGreenId)) + ) && + ( + this.PayGreenConfigurationId == input.PayGreenConfigurationId || + (this.PayGreenConfigurationId != null && + this.PayGreenConfigurationId.Equals(input.PayGreenConfigurationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Active != null) + hashCode = hashCode * 59 + this.Active.GetHashCode(); + if (this.PayGreenId != null) + hashCode = hashCode * 59 + this.PayGreenId.GetHashCode(); + if (this.PayGreenConfigurationId != null) + hashCode = hashCode * 59 + this.PayGreenConfigurationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RetentionCampaign.cs b/src/Flipdish/Model/RetentionCampaign.cs new file mode 100644 index 00000000..e3fe40b0 --- /dev/null +++ b/src/Flipdish/Model/RetentionCampaign.cs @@ -0,0 +1,368 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Retention campaign + /// + [DataContract] + public partial class RetentionCampaign : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of campaign. + /// Statistics of campaign. + /// Stores this campaign applies to with campaign start time in Utc. + /// Permanent reference to the item.. + /// Time in minutes, after which customer will receive retention voucher if he/she does not order. + /// Discount amount in percents. + /// Maximum discount for percentage discounts. + /// Discount amount in sum of money. + /// Number of days for which the voucher will be valid.. + /// Discount will include delivery fee. + /// Automatically apply resulting vouchers. + /// Campaign will apply to existing orders. + /// Is campaign enabled. + /// Ids of stores this campaign applies to. + /// The app that this campaign belongs to.. + /// Controls whether the voucher generated from this campaign will override discount exclusions. + public RetentionCampaign(int? campaignId = default(int?), CampaignStatistics statistics = default(CampaignStatistics), List stores = default(List), Guid? publicId = default(Guid?), int? notifyCustomerAfterMinutes = default(int?), int? percentDiscountAmount = default(int?), double? maxDiscount = default(double?), double? lumpDiscountAmount = default(double?), int? voucherValidPeriodDays = default(int?), bool? includeDeliveryFee = default(bool?), bool? autoApplyResultingVouchers = default(bool?), bool? includeExistingOrders = default(bool?), bool? isEnabled = default(bool?), List storeIds = default(List), string appId = default(string), bool? forceDiscount = default(bool?)) + { + this.CampaignId = campaignId; + this.Statistics = statistics; + this.Stores = stores; + this.PublicId = publicId; + this.NotifyCustomerAfterMinutes = notifyCustomerAfterMinutes; + this.PercentDiscountAmount = percentDiscountAmount; + this.MaxDiscount = maxDiscount; + this.LumpDiscountAmount = lumpDiscountAmount; + this.VoucherValidPeriodDays = voucherValidPeriodDays; + this.IncludeDeliveryFee = includeDeliveryFee; + this.AutoApplyResultingVouchers = autoApplyResultingVouchers; + this.IncludeExistingOrders = includeExistingOrders; + this.IsEnabled = isEnabled; + this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; + } + + /// + /// Id of campaign + /// + /// Id of campaign + [DataMember(Name="CampaignId", EmitDefaultValue=false)] + public int? CampaignId { get; set; } + + /// + /// Statistics of campaign + /// + /// Statistics of campaign + [DataMember(Name="Statistics", EmitDefaultValue=false)] + public CampaignStatistics Statistics { get; set; } + + /// + /// Stores this campaign applies to with campaign start time in Utc + /// + /// Stores this campaign applies to with campaign start time in Utc + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Permanent reference to the item. + /// + /// Permanent reference to the item. + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } + + /// + /// Time in minutes, after which customer will receive retention voucher if he/she does not order + /// + /// Time in minutes, after which customer will receive retention voucher if he/she does not order + [DataMember(Name="NotifyCustomerAfterMinutes", EmitDefaultValue=false)] + public int? NotifyCustomerAfterMinutes { get; set; } + + /// + /// Discount amount in percents + /// + /// Discount amount in percents + [DataMember(Name="PercentDiscountAmount", EmitDefaultValue=false)] + public int? PercentDiscountAmount { get; set; } + + /// + /// Maximum discount for percentage discounts + /// + /// Maximum discount for percentage discounts + [DataMember(Name="MaxDiscount", EmitDefaultValue=false)] + public double? MaxDiscount { get; set; } + + /// + /// Discount amount in sum of money + /// + /// Discount amount in sum of money + [DataMember(Name="LumpDiscountAmount", EmitDefaultValue=false)] + public double? LumpDiscountAmount { get; set; } + + /// + /// Number of days for which the voucher will be valid. + /// + /// Number of days for which the voucher will be valid. + [DataMember(Name="VoucherValidPeriodDays", EmitDefaultValue=false)] + public int? VoucherValidPeriodDays { get; set; } + + /// + /// Discount will include delivery fee + /// + /// Discount will include delivery fee + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Automatically apply resulting vouchers + /// + /// Automatically apply resulting vouchers + [DataMember(Name="AutoApplyResultingVouchers", EmitDefaultValue=false)] + public bool? AutoApplyResultingVouchers { get; set; } + + /// + /// Campaign will apply to existing orders + /// + /// Campaign will apply to existing orders + [DataMember(Name="IncludeExistingOrders", EmitDefaultValue=false)] + public bool? IncludeExistingOrders { get; set; } + + /// + /// Is campaign enabled + /// + /// Is campaign enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Ids of stores this campaign applies to + /// + /// Ids of stores this campaign applies to + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The app that this campaign belongs to. + /// + /// The app that this campaign belongs to. + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RetentionCampaign {\n"); + sb.Append(" CampaignId: ").Append(CampaignId).Append("\n"); + sb.Append(" Statistics: ").Append(Statistics).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" PublicId: ").Append(PublicId).Append("\n"); + sb.Append(" NotifyCustomerAfterMinutes: ").Append(NotifyCustomerAfterMinutes).Append("\n"); + sb.Append(" PercentDiscountAmount: ").Append(PercentDiscountAmount).Append("\n"); + sb.Append(" MaxDiscount: ").Append(MaxDiscount).Append("\n"); + sb.Append(" LumpDiscountAmount: ").Append(LumpDiscountAmount).Append("\n"); + sb.Append(" VoucherValidPeriodDays: ").Append(VoucherValidPeriodDays).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" AutoApplyResultingVouchers: ").Append(AutoApplyResultingVouchers).Append("\n"); + sb.Append(" IncludeExistingOrders: ").Append(IncludeExistingOrders).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RetentionCampaign); + } + + /// + /// Returns true if RetentionCampaign instances are equal + /// + /// Instance of RetentionCampaign to be compared + /// Boolean + public bool Equals(RetentionCampaign input) + { + if (input == null) + return false; + + return + ( + this.CampaignId == input.CampaignId || + (this.CampaignId != null && + this.CampaignId.Equals(input.CampaignId)) + ) && + ( + this.Statistics == input.Statistics || + (this.Statistics != null && + this.Statistics.Equals(input.Statistics)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) + ) && + ( + this.NotifyCustomerAfterMinutes == input.NotifyCustomerAfterMinutes || + (this.NotifyCustomerAfterMinutes != null && + this.NotifyCustomerAfterMinutes.Equals(input.NotifyCustomerAfterMinutes)) + ) && + ( + this.PercentDiscountAmount == input.PercentDiscountAmount || + (this.PercentDiscountAmount != null && + this.PercentDiscountAmount.Equals(input.PercentDiscountAmount)) + ) && + ( + this.MaxDiscount == input.MaxDiscount || + (this.MaxDiscount != null && + this.MaxDiscount.Equals(input.MaxDiscount)) + ) && + ( + this.LumpDiscountAmount == input.LumpDiscountAmount || + (this.LumpDiscountAmount != null && + this.LumpDiscountAmount.Equals(input.LumpDiscountAmount)) + ) && + ( + this.VoucherValidPeriodDays == input.VoucherValidPeriodDays || + (this.VoucherValidPeriodDays != null && + this.VoucherValidPeriodDays.Equals(input.VoucherValidPeriodDays)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.AutoApplyResultingVouchers == input.AutoApplyResultingVouchers || + (this.AutoApplyResultingVouchers != null && + this.AutoApplyResultingVouchers.Equals(input.AutoApplyResultingVouchers)) + ) && + ( + this.IncludeExistingOrders == input.IncludeExistingOrders || + (this.IncludeExistingOrders != null && + this.IncludeExistingOrders.Equals(input.IncludeExistingOrders)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CampaignId != null) + hashCode = hashCode * 59 + this.CampaignId.GetHashCode(); + if (this.Statistics != null) + hashCode = hashCode * 59 + this.Statistics.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.PublicId != null) + hashCode = hashCode * 59 + this.PublicId.GetHashCode(); + if (this.NotifyCustomerAfterMinutes != null) + hashCode = hashCode * 59 + this.NotifyCustomerAfterMinutes.GetHashCode(); + if (this.PercentDiscountAmount != null) + hashCode = hashCode * 59 + this.PercentDiscountAmount.GetHashCode(); + if (this.MaxDiscount != null) + hashCode = hashCode * 59 + this.MaxDiscount.GetHashCode(); + if (this.LumpDiscountAmount != null) + hashCode = hashCode * 59 + this.LumpDiscountAmount.GetHashCode(); + if (this.VoucherValidPeriodDays != null) + hashCode = hashCode * 59 + this.VoucherValidPeriodDays.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.AutoApplyResultingVouchers != null) + hashCode = hashCode * 59 + this.AutoApplyResultingVouchers.GetHashCode(); + if (this.IncludeExistingOrders != null) + hashCode = hashCode * 59 + this.IncludeExistingOrders.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RetentionCampaignBase.cs b/src/Flipdish/Model/RetentionCampaignBase.cs new file mode 100644 index 00000000..4a0b3dfa --- /dev/null +++ b/src/Flipdish/Model/RetentionCampaignBase.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Retention campaign base + /// + [DataContract] + public partial class RetentionCampaignBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Time in minutes, after which customer will receive retention voucher if he/she does not order. + /// Discount amount in percents. + /// Maximum discount for percentage discounts. + /// Discount amount in sum of money. + /// Number of days for which the voucher will be valid.. + /// Discount will include delivery fee. + /// Automatically apply resulting vouchers. + /// Campaign will apply to existing orders. + /// Is campaign enabled. + /// Ids of stores this campaign applies to. + /// The app that this campaign belongs to.. + /// Controls whether the voucher generated from this campaign will override discount exclusions. + public RetentionCampaignBase(int? notifyCustomerAfterMinutes = default(int?), int? percentDiscountAmount = default(int?), double? maxDiscount = default(double?), double? lumpDiscountAmount = default(double?), int? voucherValidPeriodDays = default(int?), bool? includeDeliveryFee = default(bool?), bool? autoApplyResultingVouchers = default(bool?), bool? includeExistingOrders = default(bool?), bool? isEnabled = default(bool?), List storeIds = default(List), string appId = default(string), bool? forceDiscount = default(bool?)) + { + this.NotifyCustomerAfterMinutes = notifyCustomerAfterMinutes; + this.PercentDiscountAmount = percentDiscountAmount; + this.MaxDiscount = maxDiscount; + this.LumpDiscountAmount = lumpDiscountAmount; + this.VoucherValidPeriodDays = voucherValidPeriodDays; + this.IncludeDeliveryFee = includeDeliveryFee; + this.AutoApplyResultingVouchers = autoApplyResultingVouchers; + this.IncludeExistingOrders = includeExistingOrders; + this.IsEnabled = isEnabled; + this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; + } + + /// + /// Time in minutes, after which customer will receive retention voucher if he/she does not order + /// + /// Time in minutes, after which customer will receive retention voucher if he/she does not order + [DataMember(Name="NotifyCustomerAfterMinutes", EmitDefaultValue=false)] + public int? NotifyCustomerAfterMinutes { get; set; } + + /// + /// Discount amount in percents + /// + /// Discount amount in percents + [DataMember(Name="PercentDiscountAmount", EmitDefaultValue=false)] + public int? PercentDiscountAmount { get; set; } + + /// + /// Maximum discount for percentage discounts + /// + /// Maximum discount for percentage discounts + [DataMember(Name="MaxDiscount", EmitDefaultValue=false)] + public double? MaxDiscount { get; set; } + + /// + /// Discount amount in sum of money + /// + /// Discount amount in sum of money + [DataMember(Name="LumpDiscountAmount", EmitDefaultValue=false)] + public double? LumpDiscountAmount { get; set; } + + /// + /// Number of days for which the voucher will be valid. + /// + /// Number of days for which the voucher will be valid. + [DataMember(Name="VoucherValidPeriodDays", EmitDefaultValue=false)] + public int? VoucherValidPeriodDays { get; set; } + + /// + /// Discount will include delivery fee + /// + /// Discount will include delivery fee + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Automatically apply resulting vouchers + /// + /// Automatically apply resulting vouchers + [DataMember(Name="AutoApplyResultingVouchers", EmitDefaultValue=false)] + public bool? AutoApplyResultingVouchers { get; set; } + + /// + /// Campaign will apply to existing orders + /// + /// Campaign will apply to existing orders + [DataMember(Name="IncludeExistingOrders", EmitDefaultValue=false)] + public bool? IncludeExistingOrders { get; set; } + + /// + /// Is campaign enabled + /// + /// Is campaign enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Ids of stores this campaign applies to + /// + /// Ids of stores this campaign applies to + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// The app that this campaign belongs to. + /// + /// The app that this campaign belongs to. + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + /// + /// Controls whether the voucher generated from this campaign will override discount exclusions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RetentionCampaignBase {\n"); + sb.Append(" NotifyCustomerAfterMinutes: ").Append(NotifyCustomerAfterMinutes).Append("\n"); + sb.Append(" PercentDiscountAmount: ").Append(PercentDiscountAmount).Append("\n"); + sb.Append(" MaxDiscount: ").Append(MaxDiscount).Append("\n"); + sb.Append(" LumpDiscountAmount: ").Append(LumpDiscountAmount).Append("\n"); + sb.Append(" VoucherValidPeriodDays: ").Append(VoucherValidPeriodDays).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" AutoApplyResultingVouchers: ").Append(AutoApplyResultingVouchers).Append("\n"); + sb.Append(" IncludeExistingOrders: ").Append(IncludeExistingOrders).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RetentionCampaignBase); + } + + /// + /// Returns true if RetentionCampaignBase instances are equal + /// + /// Instance of RetentionCampaignBase to be compared + /// Boolean + public bool Equals(RetentionCampaignBase input) + { + if (input == null) + return false; + + return + ( + this.NotifyCustomerAfterMinutes == input.NotifyCustomerAfterMinutes || + (this.NotifyCustomerAfterMinutes != null && + this.NotifyCustomerAfterMinutes.Equals(input.NotifyCustomerAfterMinutes)) + ) && + ( + this.PercentDiscountAmount == input.PercentDiscountAmount || + (this.PercentDiscountAmount != null && + this.PercentDiscountAmount.Equals(input.PercentDiscountAmount)) + ) && + ( + this.MaxDiscount == input.MaxDiscount || + (this.MaxDiscount != null && + this.MaxDiscount.Equals(input.MaxDiscount)) + ) && + ( + this.LumpDiscountAmount == input.LumpDiscountAmount || + (this.LumpDiscountAmount != null && + this.LumpDiscountAmount.Equals(input.LumpDiscountAmount)) + ) && + ( + this.VoucherValidPeriodDays == input.VoucherValidPeriodDays || + (this.VoucherValidPeriodDays != null && + this.VoucherValidPeriodDays.Equals(input.VoucherValidPeriodDays)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.AutoApplyResultingVouchers == input.AutoApplyResultingVouchers || + (this.AutoApplyResultingVouchers != null && + this.AutoApplyResultingVouchers.Equals(input.AutoApplyResultingVouchers)) + ) && + ( + this.IncludeExistingOrders == input.IncludeExistingOrders || + (this.IncludeExistingOrders != null && + this.IncludeExistingOrders.Equals(input.IncludeExistingOrders)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NotifyCustomerAfterMinutes != null) + hashCode = hashCode * 59 + this.NotifyCustomerAfterMinutes.GetHashCode(); + if (this.PercentDiscountAmount != null) + hashCode = hashCode * 59 + this.PercentDiscountAmount.GetHashCode(); + if (this.MaxDiscount != null) + hashCode = hashCode * 59 + this.MaxDiscount.GetHashCode(); + if (this.LumpDiscountAmount != null) + hashCode = hashCode * 59 + this.LumpDiscountAmount.GetHashCode(); + if (this.VoucherValidPeriodDays != null) + hashCode = hashCode * 59 + this.VoucherValidPeriodDays.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.AutoApplyResultingVouchers != null) + hashCode = hashCode * 59 + this.AutoApplyResultingVouchers.GetHashCode(); + if (this.IncludeExistingOrders != null) + hashCode = hashCode * 59 + this.IncludeExistingOrders.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RetentionCampaignCreatedEvent.cs b/src/Flipdish/Model/RetentionCampaignCreatedEvent.cs new file mode 100644 index 00000000..c3bd82f7 --- /dev/null +++ b/src/Flipdish/Model/RetentionCampaignCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Retention campaign created event + /// + [DataContract] + public partial class RetentionCampaignCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The retention campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public RetentionCampaignCreatedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), RetentionCampaign retentionCampaign = default(RetentionCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.RetentionCampaign = retentionCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The retention campaign + /// + /// The retention campaign + [DataMember(Name="RetentionCampaign", EmitDefaultValue=false)] + public RetentionCampaign RetentionCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RetentionCampaignCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" RetentionCampaign: ").Append(RetentionCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RetentionCampaignCreatedEvent); + } + + /// + /// Returns true if RetentionCampaignCreatedEvent instances are equal + /// + /// Instance of RetentionCampaignCreatedEvent to be compared + /// Boolean + public bool Equals(RetentionCampaignCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.RetentionCampaign == input.RetentionCampaign || + (this.RetentionCampaign != null && + this.RetentionCampaign.Equals(input.RetentionCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.RetentionCampaign != null) + hashCode = hashCode * 59 + this.RetentionCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RetentionCampaignDeletedEvent.cs b/src/Flipdish/Model/RetentionCampaignDeletedEvent.cs new file mode 100644 index 00000000..f872e54d --- /dev/null +++ b/src/Flipdish/Model/RetentionCampaignDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Retention campaign deleted event + /// + [DataContract] + public partial class RetentionCampaignDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The retention campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public RetentionCampaignDeletedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), RetentionCampaign retentionCampaign = default(RetentionCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.RetentionCampaign = retentionCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The retention campaign + /// + /// The retention campaign + [DataMember(Name="RetentionCampaign", EmitDefaultValue=false)] + public RetentionCampaign RetentionCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RetentionCampaignDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" RetentionCampaign: ").Append(RetentionCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RetentionCampaignDeletedEvent); + } + + /// + /// Returns true if RetentionCampaignDeletedEvent instances are equal + /// + /// Instance of RetentionCampaignDeletedEvent to be compared + /// Boolean + public bool Equals(RetentionCampaignDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.RetentionCampaign == input.RetentionCampaign || + (this.RetentionCampaign != null && + this.RetentionCampaign.Equals(input.RetentionCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.RetentionCampaign != null) + hashCode = hashCode * 59 + this.RetentionCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RetentionCampaignUpdatedEvent.cs b/src/Flipdish/Model/RetentionCampaignUpdatedEvent.cs new file mode 100644 index 00000000..58fcef0f --- /dev/null +++ b/src/Flipdish/Model/RetentionCampaignUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Retention campaign updated event + /// + [DataContract] + public partial class RetentionCampaignUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// Info User. + /// The retention campaign. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public RetentionCampaignUpdatedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), RetentionCampaign retentionCampaign = default(RetentionCampaign), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.User = user; + this.RetentionCampaign = retentionCampaign; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Info User + /// + /// Info User + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The retention campaign + /// + /// The retention campaign + [DataMember(Name="RetentionCampaign", EmitDefaultValue=false)] + public RetentionCampaign RetentionCampaign { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RetentionCampaignUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" RetentionCampaign: ").Append(RetentionCampaign).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RetentionCampaignUpdatedEvent); + } + + /// + /// Returns true if RetentionCampaignUpdatedEvent instances are equal + /// + /// Instance of RetentionCampaignUpdatedEvent to be compared + /// Boolean + public bool Equals(RetentionCampaignUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.RetentionCampaign == input.RetentionCampaign || + (this.RetentionCampaign != null && + this.RetentionCampaign.Equals(input.RetentionCampaign)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.RetentionCampaign != null) + hashCode = hashCode * 59 + this.RetentionCampaign.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RevenueAdjustmentsDetails.cs b/src/Flipdish/Model/RevenueAdjustmentsDetails.cs new file mode 100644 index 00000000..50117679 --- /dev/null +++ b/src/Flipdish/Model/RevenueAdjustmentsDetails.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Revenue Adjustments breakdown + /// + [DataContract] + public partial class RevenueAdjustmentsDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Online sales refunds. + /// POS Online sales refunds. + /// Cash sales refunds. + /// Customer cash fees. + /// Number of refunds. + /// PayGreen sales. + /// PayGreen processing fees charged to end-user. + /// Total revenue adjustments. + public RevenueAdjustmentsDetails(double? onlineSalesRefundedAmount = default(double?), double? posSalesRefundedAmount = default(double?), double? cashSalesRefundedAmount = default(double?), double? customerCashFees = default(double?), int? refundsCount = default(int?), double? payGreenSalesAmount = default(double?), double? payGreenProcessingFees = default(double?), double? totalOnlineRevenueAdjustments = default(double?)) + { + this.OnlineSalesRefundedAmount = onlineSalesRefundedAmount; + this.PosSalesRefundedAmount = posSalesRefundedAmount; + this.CashSalesRefundedAmount = cashSalesRefundedAmount; + this.CustomerCashFees = customerCashFees; + this.RefundsCount = refundsCount; + this.PayGreenSalesAmount = payGreenSalesAmount; + this.PayGreenProcessingFees = payGreenProcessingFees; + this.TotalOnlineRevenueAdjustments = totalOnlineRevenueAdjustments; + } + + /// + /// Online sales refunds + /// + /// Online sales refunds + [DataMember(Name="OnlineSalesRefundedAmount", EmitDefaultValue=false)] + public double? OnlineSalesRefundedAmount { get; set; } + + /// + /// POS Online sales refunds + /// + /// POS Online sales refunds + [DataMember(Name="PosSalesRefundedAmount", EmitDefaultValue=false)] + public double? PosSalesRefundedAmount { get; set; } + + /// + /// Cash sales refunds + /// + /// Cash sales refunds + [DataMember(Name="CashSalesRefundedAmount", EmitDefaultValue=false)] + public double? CashSalesRefundedAmount { get; set; } + + /// + /// Customer cash fees + /// + /// Customer cash fees + [DataMember(Name="CustomerCashFees", EmitDefaultValue=false)] + public double? CustomerCashFees { get; set; } + + /// + /// Number of refunds + /// + /// Number of refunds + [DataMember(Name="RefundsCount", EmitDefaultValue=false)] + public int? RefundsCount { get; set; } + + /// + /// PayGreen sales + /// + /// PayGreen sales + [DataMember(Name="PayGreenSalesAmount", EmitDefaultValue=false)] + public double? PayGreenSalesAmount { get; set; } + + /// + /// PayGreen processing fees charged to end-user + /// + /// PayGreen processing fees charged to end-user + [DataMember(Name="PayGreenProcessingFees", EmitDefaultValue=false)] + public double? PayGreenProcessingFees { get; set; } + + /// + /// Total revenue adjustments + /// + /// Total revenue adjustments + [DataMember(Name="TotalOnlineRevenueAdjustments", EmitDefaultValue=false)] + public double? TotalOnlineRevenueAdjustments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RevenueAdjustmentsDetails {\n"); + sb.Append(" OnlineSalesRefundedAmount: ").Append(OnlineSalesRefundedAmount).Append("\n"); + sb.Append(" PosSalesRefundedAmount: ").Append(PosSalesRefundedAmount).Append("\n"); + sb.Append(" CashSalesRefundedAmount: ").Append(CashSalesRefundedAmount).Append("\n"); + sb.Append(" CustomerCashFees: ").Append(CustomerCashFees).Append("\n"); + sb.Append(" RefundsCount: ").Append(RefundsCount).Append("\n"); + sb.Append(" PayGreenSalesAmount: ").Append(PayGreenSalesAmount).Append("\n"); + sb.Append(" PayGreenProcessingFees: ").Append(PayGreenProcessingFees).Append("\n"); + sb.Append(" TotalOnlineRevenueAdjustments: ").Append(TotalOnlineRevenueAdjustments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RevenueAdjustmentsDetails); + } + + /// + /// Returns true if RevenueAdjustmentsDetails instances are equal + /// + /// Instance of RevenueAdjustmentsDetails to be compared + /// Boolean + public bool Equals(RevenueAdjustmentsDetails input) + { + if (input == null) + return false; + + return + ( + this.OnlineSalesRefundedAmount == input.OnlineSalesRefundedAmount || + (this.OnlineSalesRefundedAmount != null && + this.OnlineSalesRefundedAmount.Equals(input.OnlineSalesRefundedAmount)) + ) && + ( + this.PosSalesRefundedAmount == input.PosSalesRefundedAmount || + (this.PosSalesRefundedAmount != null && + this.PosSalesRefundedAmount.Equals(input.PosSalesRefundedAmount)) + ) && + ( + this.CashSalesRefundedAmount == input.CashSalesRefundedAmount || + (this.CashSalesRefundedAmount != null && + this.CashSalesRefundedAmount.Equals(input.CashSalesRefundedAmount)) + ) && + ( + this.CustomerCashFees == input.CustomerCashFees || + (this.CustomerCashFees != null && + this.CustomerCashFees.Equals(input.CustomerCashFees)) + ) && + ( + this.RefundsCount == input.RefundsCount || + (this.RefundsCount != null && + this.RefundsCount.Equals(input.RefundsCount)) + ) && + ( + this.PayGreenSalesAmount == input.PayGreenSalesAmount || + (this.PayGreenSalesAmount != null && + this.PayGreenSalesAmount.Equals(input.PayGreenSalesAmount)) + ) && + ( + this.PayGreenProcessingFees == input.PayGreenProcessingFees || + (this.PayGreenProcessingFees != null && + this.PayGreenProcessingFees.Equals(input.PayGreenProcessingFees)) + ) && + ( + this.TotalOnlineRevenueAdjustments == input.TotalOnlineRevenueAdjustments || + (this.TotalOnlineRevenueAdjustments != null && + this.TotalOnlineRevenueAdjustments.Equals(input.TotalOnlineRevenueAdjustments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OnlineSalesRefundedAmount != null) + hashCode = hashCode * 59 + this.OnlineSalesRefundedAmount.GetHashCode(); + if (this.PosSalesRefundedAmount != null) + hashCode = hashCode * 59 + this.PosSalesRefundedAmount.GetHashCode(); + if (this.CashSalesRefundedAmount != null) + hashCode = hashCode * 59 + this.CashSalesRefundedAmount.GetHashCode(); + if (this.CustomerCashFees != null) + hashCode = hashCode * 59 + this.CustomerCashFees.GetHashCode(); + if (this.RefundsCount != null) + hashCode = hashCode * 59 + this.RefundsCount.GetHashCode(); + if (this.PayGreenSalesAmount != null) + hashCode = hashCode * 59 + this.PayGreenSalesAmount.GetHashCode(); + if (this.PayGreenProcessingFees != null) + hashCode = hashCode * 59 + this.PayGreenProcessingFees.GetHashCode(); + if (this.TotalOnlineRevenueAdjustments != null) + hashCode = hashCode * 59 + this.TotalOnlineRevenueAdjustments.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/RevenueDetail.cs b/src/Flipdish/Model/RevenueDetail.cs new file mode 100644 index 00000000..db7ad2b3 --- /dev/null +++ b/src/Flipdish/Model/RevenueDetail.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Sales information + /// + [DataContract] + public partial class RevenueDetail : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Online sales amount. + /// Online sales tax. + /// Online sales amount plus online sales tax. + /// Online sales base amount to calculate fees. + /// Cash sales amount. + /// Cash sales tax. + /// Cash sales amount plus online sales tax. + /// Online sales base amount to calculate fees. + /// Total Sales (online and cash) including tax. + /// Delivery charges on online sales. + /// Tips for online sales. + /// Online sales plus online delivery charges and tips. + /// Service charge on online sales. + public RevenueDetail(double? onlineSalesAmount = default(double?), double? onlineSalesTax = default(double?), double? onlineSalesIncludingTax = default(double?), double? onlineSalesFeesBaseAmount = default(double?), double? cashSalesAmount = default(double?), double? cashSalesTax = default(double?), double? cashSalesIncludingTax = default(double?), double? cashSalesFeesBaseAmount = default(double?), double? totalSalesIncludingTax = default(double?), double? onlineSalesDeliveryCharges = default(double?), double? onlineSalesTips = default(double?), double? totalOnlineRevenue = default(double?), double? onlineSalesServiceCharges = default(double?)) + { + this.OnlineSalesAmount = onlineSalesAmount; + this.OnlineSalesTax = onlineSalesTax; + this.OnlineSalesIncludingTax = onlineSalesIncludingTax; + this.OnlineSalesFeesBaseAmount = onlineSalesFeesBaseAmount; + this.CashSalesAmount = cashSalesAmount; + this.CashSalesTax = cashSalesTax; + this.CashSalesIncludingTax = cashSalesIncludingTax; + this.CashSalesFeesBaseAmount = cashSalesFeesBaseAmount; + this.TotalSalesIncludingTax = totalSalesIncludingTax; + this.OnlineSalesDeliveryCharges = onlineSalesDeliveryCharges; + this.OnlineSalesTips = onlineSalesTips; + this.TotalOnlineRevenue = totalOnlineRevenue; + this.OnlineSalesServiceCharges = onlineSalesServiceCharges; + } + + /// + /// Online sales amount + /// + /// Online sales amount + [DataMember(Name="OnlineSalesAmount", EmitDefaultValue=false)] + public double? OnlineSalesAmount { get; set; } + + /// + /// Online sales tax + /// + /// Online sales tax + [DataMember(Name="OnlineSalesTax", EmitDefaultValue=false)] + public double? OnlineSalesTax { get; set; } + + /// + /// Online sales amount plus online sales tax + /// + /// Online sales amount plus online sales tax + [DataMember(Name="OnlineSalesIncludingTax", EmitDefaultValue=false)] + public double? OnlineSalesIncludingTax { get; set; } + + /// + /// Online sales base amount to calculate fees + /// + /// Online sales base amount to calculate fees + [DataMember(Name="OnlineSalesFeesBaseAmount", EmitDefaultValue=false)] + public double? OnlineSalesFeesBaseAmount { get; set; } + + /// + /// Cash sales amount + /// + /// Cash sales amount + [DataMember(Name="CashSalesAmount", EmitDefaultValue=false)] + public double? CashSalesAmount { get; set; } + + /// + /// Cash sales tax + /// + /// Cash sales tax + [DataMember(Name="CashSalesTax", EmitDefaultValue=false)] + public double? CashSalesTax { get; set; } + + /// + /// Cash sales amount plus online sales tax + /// + /// Cash sales amount plus online sales tax + [DataMember(Name="CashSalesIncludingTax", EmitDefaultValue=false)] + public double? CashSalesIncludingTax { get; set; } + + /// + /// Online sales base amount to calculate fees + /// + /// Online sales base amount to calculate fees + [DataMember(Name="CashSalesFeesBaseAmount", EmitDefaultValue=false)] + public double? CashSalesFeesBaseAmount { get; set; } + + /// + /// Total Sales (online and cash) including tax + /// + /// Total Sales (online and cash) including tax + [DataMember(Name="TotalSalesIncludingTax", EmitDefaultValue=false)] + public double? TotalSalesIncludingTax { get; set; } + + /// + /// Delivery charges on online sales + /// + /// Delivery charges on online sales + [DataMember(Name="OnlineSalesDeliveryCharges", EmitDefaultValue=false)] + public double? OnlineSalesDeliveryCharges { get; set; } + + /// + /// Tips for online sales + /// + /// Tips for online sales + [DataMember(Name="OnlineSalesTips", EmitDefaultValue=false)] + public double? OnlineSalesTips { get; set; } + + /// + /// Online sales plus online delivery charges and tips + /// + /// Online sales plus online delivery charges and tips + [DataMember(Name="TotalOnlineRevenue", EmitDefaultValue=false)] + public double? TotalOnlineRevenue { get; set; } + + /// + /// Service charge on online sales + /// + /// Service charge on online sales + [DataMember(Name="OnlineSalesServiceCharges", EmitDefaultValue=false)] + public double? OnlineSalesServiceCharges { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RevenueDetail {\n"); + sb.Append(" OnlineSalesAmount: ").Append(OnlineSalesAmount).Append("\n"); + sb.Append(" OnlineSalesTax: ").Append(OnlineSalesTax).Append("\n"); + sb.Append(" OnlineSalesIncludingTax: ").Append(OnlineSalesIncludingTax).Append("\n"); + sb.Append(" OnlineSalesFeesBaseAmount: ").Append(OnlineSalesFeesBaseAmount).Append("\n"); + sb.Append(" CashSalesAmount: ").Append(CashSalesAmount).Append("\n"); + sb.Append(" CashSalesTax: ").Append(CashSalesTax).Append("\n"); + sb.Append(" CashSalesIncludingTax: ").Append(CashSalesIncludingTax).Append("\n"); + sb.Append(" CashSalesFeesBaseAmount: ").Append(CashSalesFeesBaseAmount).Append("\n"); + sb.Append(" TotalSalesIncludingTax: ").Append(TotalSalesIncludingTax).Append("\n"); + sb.Append(" OnlineSalesDeliveryCharges: ").Append(OnlineSalesDeliveryCharges).Append("\n"); + sb.Append(" OnlineSalesTips: ").Append(OnlineSalesTips).Append("\n"); + sb.Append(" TotalOnlineRevenue: ").Append(TotalOnlineRevenue).Append("\n"); + sb.Append(" OnlineSalesServiceCharges: ").Append(OnlineSalesServiceCharges).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RevenueDetail); + } + + /// + /// Returns true if RevenueDetail instances are equal + /// + /// Instance of RevenueDetail to be compared + /// Boolean + public bool Equals(RevenueDetail input) + { + if (input == null) + return false; + + return + ( + this.OnlineSalesAmount == input.OnlineSalesAmount || + (this.OnlineSalesAmount != null && + this.OnlineSalesAmount.Equals(input.OnlineSalesAmount)) + ) && + ( + this.OnlineSalesTax == input.OnlineSalesTax || + (this.OnlineSalesTax != null && + this.OnlineSalesTax.Equals(input.OnlineSalesTax)) + ) && + ( + this.OnlineSalesIncludingTax == input.OnlineSalesIncludingTax || + (this.OnlineSalesIncludingTax != null && + this.OnlineSalesIncludingTax.Equals(input.OnlineSalesIncludingTax)) + ) && + ( + this.OnlineSalesFeesBaseAmount == input.OnlineSalesFeesBaseAmount || + (this.OnlineSalesFeesBaseAmount != null && + this.OnlineSalesFeesBaseAmount.Equals(input.OnlineSalesFeesBaseAmount)) + ) && + ( + this.CashSalesAmount == input.CashSalesAmount || + (this.CashSalesAmount != null && + this.CashSalesAmount.Equals(input.CashSalesAmount)) + ) && + ( + this.CashSalesTax == input.CashSalesTax || + (this.CashSalesTax != null && + this.CashSalesTax.Equals(input.CashSalesTax)) + ) && + ( + this.CashSalesIncludingTax == input.CashSalesIncludingTax || + (this.CashSalesIncludingTax != null && + this.CashSalesIncludingTax.Equals(input.CashSalesIncludingTax)) + ) && + ( + this.CashSalesFeesBaseAmount == input.CashSalesFeesBaseAmount || + (this.CashSalesFeesBaseAmount != null && + this.CashSalesFeesBaseAmount.Equals(input.CashSalesFeesBaseAmount)) + ) && + ( + this.TotalSalesIncludingTax == input.TotalSalesIncludingTax || + (this.TotalSalesIncludingTax != null && + this.TotalSalesIncludingTax.Equals(input.TotalSalesIncludingTax)) + ) && + ( + this.OnlineSalesDeliveryCharges == input.OnlineSalesDeliveryCharges || + (this.OnlineSalesDeliveryCharges != null && + this.OnlineSalesDeliveryCharges.Equals(input.OnlineSalesDeliveryCharges)) + ) && + ( + this.OnlineSalesTips == input.OnlineSalesTips || + (this.OnlineSalesTips != null && + this.OnlineSalesTips.Equals(input.OnlineSalesTips)) + ) && + ( + this.TotalOnlineRevenue == input.TotalOnlineRevenue || + (this.TotalOnlineRevenue != null && + this.TotalOnlineRevenue.Equals(input.TotalOnlineRevenue)) + ) && + ( + this.OnlineSalesServiceCharges == input.OnlineSalesServiceCharges || + (this.OnlineSalesServiceCharges != null && + this.OnlineSalesServiceCharges.Equals(input.OnlineSalesServiceCharges)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OnlineSalesAmount != null) + hashCode = hashCode * 59 + this.OnlineSalesAmount.GetHashCode(); + if (this.OnlineSalesTax != null) + hashCode = hashCode * 59 + this.OnlineSalesTax.GetHashCode(); + if (this.OnlineSalesIncludingTax != null) + hashCode = hashCode * 59 + this.OnlineSalesIncludingTax.GetHashCode(); + if (this.OnlineSalesFeesBaseAmount != null) + hashCode = hashCode * 59 + this.OnlineSalesFeesBaseAmount.GetHashCode(); + if (this.CashSalesAmount != null) + hashCode = hashCode * 59 + this.CashSalesAmount.GetHashCode(); + if (this.CashSalesTax != null) + hashCode = hashCode * 59 + this.CashSalesTax.GetHashCode(); + if (this.CashSalesIncludingTax != null) + hashCode = hashCode * 59 + this.CashSalesIncludingTax.GetHashCode(); + if (this.CashSalesFeesBaseAmount != null) + hashCode = hashCode * 59 + this.CashSalesFeesBaseAmount.GetHashCode(); + if (this.TotalSalesIncludingTax != null) + hashCode = hashCode * 59 + this.TotalSalesIncludingTax.GetHashCode(); + if (this.OnlineSalesDeliveryCharges != null) + hashCode = hashCode * 59 + this.OnlineSalesDeliveryCharges.GetHashCode(); + if (this.OnlineSalesTips != null) + hashCode = hashCode * 59 + this.OnlineSalesTips.GetHashCode(); + if (this.TotalOnlineRevenue != null) + hashCode = hashCode * 59 + this.TotalOnlineRevenue.GetHashCode(); + if (this.OnlineSalesServiceCharges != null) + hashCode = hashCode * 59 + this.OnlineSalesServiceCharges.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SafeWaitHandle.cs b/src/Flipdish/Model/SafeWaitHandle.cs new file mode 100644 index 00000000..012e7e33 --- /dev/null +++ b/src/Flipdish/Model/SafeWaitHandle.cs @@ -0,0 +1,125 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// SafeWaitHandle + /// + [DataContract] + public partial class SafeWaitHandle : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public SafeWaitHandle() + { + } + + /// + /// Gets or Sets IsInvalid + /// + [DataMember(Name="IsInvalid", EmitDefaultValue=false)] + public bool? IsInvalid { get; private set; } + + /// + /// Gets or Sets IsClosed + /// + [DataMember(Name="IsClosed", EmitDefaultValue=false)] + public bool? IsClosed { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SafeWaitHandle {\n"); + sb.Append(" IsInvalid: ").Append(IsInvalid).Append("\n"); + sb.Append(" IsClosed: ").Append(IsClosed).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SafeWaitHandle); + } + + /// + /// Returns true if SafeWaitHandle instances are equal + /// + /// Instance of SafeWaitHandle to be compared + /// Boolean + public bool Equals(SafeWaitHandle input) + { + if (input == null) + return false; + + return + ( + this.IsInvalid == input.IsInvalid || + (this.IsInvalid != null && + this.IsInvalid.Equals(input.IsInvalid)) + ) && + ( + this.IsClosed == input.IsClosed || + (this.IsClosed != null && + this.IsClosed.Equals(input.IsClosed)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsInvalid != null) + hashCode = hashCode * 59 + this.IsInvalid.GetHashCode(); + if (this.IsClosed != null) + hashCode = hashCode * 59 + this.IsClosed.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SearchCriteria.cs b/src/Flipdish/Model/SearchCriteria.cs new file mode 100644 index 00000000..c73e8cef --- /dev/null +++ b/src/Flipdish/Model/SearchCriteria.cs @@ -0,0 +1,368 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Search Criteria for Audit Logs + /// + [DataContract] + public partial class SearchCriteria : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The maximum elements to return. + /// The index of the page to return, starting by 1. + /// Start date. + /// End date. + /// Events that have Order Id. + /// Events that have Store Id. + /// Events that have Store Id List. + /// Events that have Store Group Id. + /// Events that have User Id. + /// Events that have Menu Id. + /// Events that have Campaign Id. + /// Events that have User Email. + /// Events that have User Name. + /// Events that have voucher code. + /// Events that have event type\\s. + /// Unique Identifier of Event, if this is specified, all other criteria are ignored.. + public SearchCriteria(int? limit = default(int?), int? page = default(int?), DateTime? start = default(DateTime?), DateTime? end = default(DateTime?), int? orderId = default(int?), int? storeId = default(int?), List storeIdList = default(List), int? storeGroupId = default(int?), int? userId = default(int?), int? menuId = default(int?), int? campaignId = default(int?), string userEmail = default(string), string userName = default(string), string voucherCode = default(string), List eventType = default(List), string flipdishEventId = default(string)) + { + this.Limit = limit; + this.Page = page; + this.Start = start; + this.End = end; + this.OrderId = orderId; + this.StoreId = storeId; + this.StoreIdList = storeIdList; + this.StoreGroupId = storeGroupId; + this.UserId = userId; + this.MenuId = menuId; + this.CampaignId = campaignId; + this.UserEmail = userEmail; + this.UserName = userName; + this.VoucherCode = voucherCode; + this.EventType = eventType; + this.FlipdishEventId = flipdishEventId; + } + + /// + /// The maximum elements to return + /// + /// The maximum elements to return + [DataMember(Name="Limit", EmitDefaultValue=false)] + public int? Limit { get; set; } + + /// + /// The index of the page to return, starting by 1 + /// + /// The index of the page to return, starting by 1 + [DataMember(Name="Page", EmitDefaultValue=false)] + public int? Page { get; set; } + + /// + /// Start date + /// + /// Start date + [DataMember(Name="Start", EmitDefaultValue=false)] + public DateTime? Start { get; set; } + + /// + /// End date + /// + /// End date + [DataMember(Name="End", EmitDefaultValue=false)] + public DateTime? End { get; set; } + + /// + /// Events that have Order Id + /// + /// Events that have Order Id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// Events that have Store Id + /// + /// Events that have Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Events that have Store Id List + /// + /// Events that have Store Id List + [DataMember(Name="StoreIdList", EmitDefaultValue=false)] + public List StoreIdList { get; set; } + + /// + /// Events that have Store Group Id + /// + /// Events that have Store Group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Events that have User Id + /// + /// Events that have User Id + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Events that have Menu Id + /// + /// Events that have Menu Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Events that have Campaign Id + /// + /// Events that have Campaign Id + [DataMember(Name="CampaignId", EmitDefaultValue=false)] + public int? CampaignId { get; set; } + + /// + /// Events that have User Email + /// + /// Events that have User Email + [DataMember(Name="UserEmail", EmitDefaultValue=false)] + public string UserEmail { get; set; } + + /// + /// Events that have User Name + /// + /// Events that have User Name + [DataMember(Name="UserName", EmitDefaultValue=false)] + public string UserName { get; set; } + + /// + /// Events that have voucher code + /// + /// Events that have voucher code + [DataMember(Name="VoucherCode", EmitDefaultValue=false)] + public string VoucherCode { get; set; } + + /// + /// Events that have event type\\s + /// + /// Events that have event type\\s + [DataMember(Name="EventType", EmitDefaultValue=false)] + public List EventType { get; set; } + + /// + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. + /// + /// Unique Identifier of Event, if this is specified, all other criteria are ignored. + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public string FlipdishEventId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SearchCriteria {\n"); + sb.Append(" Limit: ").Append(Limit).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append(" End: ").Append(End).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreIdList: ").Append(StoreIdList).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" CampaignId: ").Append(CampaignId).Append("\n"); + sb.Append(" UserEmail: ").Append(UserEmail).Append("\n"); + sb.Append(" UserName: ").Append(UserName).Append("\n"); + sb.Append(" VoucherCode: ").Append(VoucherCode).Append("\n"); + sb.Append(" EventType: ").Append(EventType).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchCriteria); + } + + /// + /// Returns true if SearchCriteria instances are equal + /// + /// Instance of SearchCriteria to be compared + /// Boolean + public bool Equals(SearchCriteria input) + { + if (input == null) + return false; + + return + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Start == input.Start || + (this.Start != null && + this.Start.Equals(input.Start)) + ) && + ( + this.End == input.End || + (this.End != null && + this.End.Equals(input.End)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreIdList == input.StoreIdList || + this.StoreIdList != null && + this.StoreIdList.SequenceEqual(input.StoreIdList) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.CampaignId == input.CampaignId || + (this.CampaignId != null && + this.CampaignId.Equals(input.CampaignId)) + ) && + ( + this.UserEmail == input.UserEmail || + (this.UserEmail != null && + this.UserEmail.Equals(input.UserEmail)) + ) && + ( + this.UserName == input.UserName || + (this.UserName != null && + this.UserName.Equals(input.UserName)) + ) && + ( + this.VoucherCode == input.VoucherCode || + (this.VoucherCode != null && + this.VoucherCode.Equals(input.VoucherCode)) + ) && + ( + this.EventType == input.EventType || + this.EventType != null && + this.EventType.SequenceEqual(input.EventType) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Start != null) + hashCode = hashCode * 59 + this.Start.GetHashCode(); + if (this.End != null) + hashCode = hashCode * 59 + this.End.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreIdList != null) + hashCode = hashCode * 59 + this.StoreIdList.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.CampaignId != null) + hashCode = hashCode * 59 + this.CampaignId.GetHashCode(); + if (this.UserEmail != null) + hashCode = hashCode * 59 + this.UserEmail.GetHashCode(); + if (this.UserName != null) + hashCode = hashCode * 59 + this.UserName.GetHashCode(); + if (this.VoucherCode != null) + hashCode = hashCode * 59 + this.VoucherCode.GetHashCode(); + if (this.EventType != null) + hashCode = hashCode * 59 + this.EventType.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SendUserPushNotificationRequest.cs b/src/Flipdish/Model/SendUserPushNotificationRequest.cs new file mode 100644 index 00000000..8ea2919f --- /dev/null +++ b/src/Flipdish/Model/SendUserPushNotificationRequest.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Send a push notification to a user. + /// + [DataContract] + public partial class SendUserPushNotificationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// WhiteLabelId.. + /// Message.. + public SendUserPushNotificationRequest(int? whiteLabelId = default(int?), string message = default(string)) + { + this.WhiteLabelId = whiteLabelId; + this.Message = message; + } + + /// + /// WhiteLabelId. + /// + /// WhiteLabelId. + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// Message. + /// + /// Message. + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SendUserPushNotificationRequest {\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendUserPushNotificationRequest); + } + + /// + /// Returns true if SendUserPushNotificationRequest instances are equal + /// + /// Instance of SendUserPushNotificationRequest to be compared + /// Boolean + public bool Equals(SendUserPushNotificationRequest input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SendUserSmsRequest.cs b/src/Flipdish/Model/SendUserSmsRequest.cs new file mode 100644 index 00000000..67f766a8 --- /dev/null +++ b/src/Flipdish/Model/SendUserSmsRequest.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Send an SMS to a user from admin. + /// + [DataContract] + public partial class SendUserSmsRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Message.. + /// WhiteLabelId.. + /// FromNumber.. + public SendUserSmsRequest(string message = default(string), int? whiteLabelId = default(int?), string fromNumber = default(string)) + { + this.Message = message; + this.WhiteLabelId = whiteLabelId; + this.FromNumber = fromNumber; + } + + /// + /// Message. + /// + /// Message. + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// WhiteLabelId. + /// + /// WhiteLabelId. + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// FromNumber. + /// + /// FromNumber. + [DataMember(Name="FromNumber", EmitDefaultValue=false)] + public string FromNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SendUserSmsRequest {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" FromNumber: ").Append(FromNumber).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SendUserSmsRequest); + } + + /// + /// Returns true if SendUserSmsRequest instances are equal + /// + /// Instance of SendUserSmsRequest to be compared + /// Boolean + public bool Equals(SendUserSmsRequest input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.FromNumber == input.FromNumber || + (this.FromNumber != null && + this.FromNumber.Equals(input.FromNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.FromNumber != null) + hashCode = hashCode * 59 + this.FromNumber.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ServiceCharge.cs b/src/Flipdish/Model/ServiceCharge.cs new file mode 100644 index 00000000..b08dd85e --- /dev/null +++ b/src/Flipdish/Model/ServiceCharge.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Service Charge + /// + [DataContract] + public partial class ServiceCharge : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// The Default Service Charge Value. + /// Enable Service Charge for store true(on) / false(off). + /// Sets the service charge to be optional. + /// Display service charge together with processing fee. + /// If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E. + public ServiceCharge(int? storeId = default(int?), double? percentageValue = default(double?), bool? enabled = default(bool?), bool? isOptional = default(bool?), bool? displayWithProcessingFee = default(bool?), bool? includesVouchers = default(bool?)) + { + this.StoreId = storeId; + this.PercentageValue = percentageValue; + this.Enabled = enabled; + this.IsOptional = isOptional; + this.DisplayWithProcessingFee = displayWithProcessingFee; + this.IncludesVouchers = includesVouchers; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// The Default Service Charge Value + /// + /// The Default Service Charge Value + [DataMember(Name="PercentageValue", EmitDefaultValue=false)] + public double? PercentageValue { get; set; } + + /// + /// Enable Service Charge for store true(on) / false(off) + /// + /// Enable Service Charge for store true(on) / false(off) + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Sets the service charge to be optional + /// + /// Sets the service charge to be optional + [DataMember(Name="IsOptional", EmitDefaultValue=false)] + public bool? IsOptional { get; set; } + + /// + /// Display service charge together with processing fee + /// + /// Display service charge together with processing fee + [DataMember(Name="DisplayWithProcessingFee", EmitDefaultValue=false)] + public bool? DisplayWithProcessingFee { get; set; } + + /// + /// If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E + /// + /// If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E + [DataMember(Name="IncludesVouchers", EmitDefaultValue=false)] + public bool? IncludesVouchers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ServiceCharge {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" PercentageValue: ").Append(PercentageValue).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" IsOptional: ").Append(IsOptional).Append("\n"); + sb.Append(" DisplayWithProcessingFee: ").Append(DisplayWithProcessingFee).Append("\n"); + sb.Append(" IncludesVouchers: ").Append(IncludesVouchers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServiceCharge); + } + + /// + /// Returns true if ServiceCharge instances are equal + /// + /// Instance of ServiceCharge to be compared + /// Boolean + public bool Equals(ServiceCharge input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.PercentageValue == input.PercentageValue || + (this.PercentageValue != null && + this.PercentageValue.Equals(input.PercentageValue)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.IsOptional == input.IsOptional || + (this.IsOptional != null && + this.IsOptional.Equals(input.IsOptional)) + ) && + ( + this.DisplayWithProcessingFee == input.DisplayWithProcessingFee || + (this.DisplayWithProcessingFee != null && + this.DisplayWithProcessingFee.Equals(input.DisplayWithProcessingFee)) + ) && + ( + this.IncludesVouchers == input.IncludesVouchers || + (this.IncludesVouchers != null && + this.IncludesVouchers.Equals(input.IncludesVouchers)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.PercentageValue != null) + hashCode = hashCode * 59 + this.PercentageValue.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.IsOptional != null) + hashCode = hashCode * 59 + this.IsOptional.GetHashCode(); + if (this.DisplayWithProcessingFee != null) + hashCode = hashCode * 59 + this.DisplayWithProcessingFee.GetHashCode(); + if (this.IncludesVouchers != null) + hashCode = hashCode * 59 + this.IncludesVouchers.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SetOrderBatchingConfiguration.cs b/src/Flipdish/Model/SetOrderBatchingConfiguration.cs new file mode 100644 index 00000000..c876f7f8 --- /dev/null +++ b/src/Flipdish/Model/SetOrderBatchingConfiguration.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes the configuration of OrderBatching + /// + [DataContract] + public partial class SetOrderBatchingConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Batch sending interval in seconds. + /// OrderBatching is enabled or not. + public SetOrderBatchingConfiguration(int? batchIntervalInSeconds = default(int?), bool? enabled = default(bool?)) + { + this.BatchIntervalInSeconds = batchIntervalInSeconds; + this.Enabled = enabled; + } + + /// + /// Batch sending interval in seconds + /// + /// Batch sending interval in seconds + [DataMember(Name="BatchIntervalInSeconds", EmitDefaultValue=false)] + public int? BatchIntervalInSeconds { get; set; } + + /// + /// OrderBatching is enabled or not + /// + /// OrderBatching is enabled or not + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SetOrderBatchingConfiguration {\n"); + sb.Append(" BatchIntervalInSeconds: ").Append(BatchIntervalInSeconds).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetOrderBatchingConfiguration); + } + + /// + /// Returns true if SetOrderBatchingConfiguration instances are equal + /// + /// Instance of SetOrderBatchingConfiguration to be compared + /// Boolean + public bool Equals(SetOrderBatchingConfiguration input) + { + if (input == null) + return false; + + return + ( + this.BatchIntervalInSeconds == input.BatchIntervalInSeconds || + (this.BatchIntervalInSeconds != null && + this.BatchIntervalInSeconds.Equals(input.BatchIntervalInSeconds)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BatchIntervalInSeconds != null) + hashCode = hashCode * 59 + this.BatchIntervalInSeconds.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SetUserDeliveryLocationCoordinatesRequest.cs b/src/Flipdish/Model/SetUserDeliveryLocationCoordinatesRequest.cs new file mode 100644 index 00000000..e759af65 --- /dev/null +++ b/src/Flipdish/Model/SetUserDeliveryLocationCoordinatesRequest.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Set delivery location coordinates. + /// + [DataContract] + public partial class SetUserDeliveryLocationCoordinatesRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Latitude.. + /// Longitude.. + public SetUserDeliveryLocationCoordinatesRequest(double? latitude = default(double?), double? longitude = default(double?)) + { + this.Latitude = latitude; + this.Longitude = longitude; + } + + /// + /// Latitude. + /// + /// Latitude. + [DataMember(Name="Latitude", EmitDefaultValue=false)] + public double? Latitude { get; set; } + + /// + /// Longitude. + /// + /// Longitude. + [DataMember(Name="Longitude", EmitDefaultValue=false)] + public double? Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SetUserDeliveryLocationCoordinatesRequest {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetUserDeliveryLocationCoordinatesRequest); + } + + /// + /// Returns true if SetUserDeliveryLocationCoordinatesRequest instances are equal + /// + /// Instance of SetUserDeliveryLocationCoordinatesRequest to be compared + /// Boolean + public bool Equals(SetUserDeliveryLocationCoordinatesRequest input) + { + if (input == null) + return false; + + return + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SetUserDeliveryLocationFieldRequest.cs b/src/Flipdish/Model/SetUserDeliveryLocationFieldRequest.cs new file mode 100644 index 00000000..dc34b889 --- /dev/null +++ b/src/Flipdish/Model/SetUserDeliveryLocationFieldRequest.cs @@ -0,0 +1,169 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update a single delivery location field (matches legacy SetDeliveryLocationInfo names). + /// + [DataContract] + public partial class SetUserDeliveryLocationFieldRequest : IEquatable + { + /// + /// Which field to update. Omit or set to null for a validation error. + /// + /// Which field to update. Omit or set to null for a validation error. + [JsonConverter(typeof(StringEnumConverter))] + public enum FieldEnum + { + + /// + /// Enum DeliveryInstructions for value: DeliveryInstructions + /// + [EnumMember(Value = "DeliveryInstructions")] + DeliveryInstructions = 1, + + /// + /// Enum IsDisplayed for value: IsDisplayed + /// + [EnumMember(Value = "IsDisplayed")] + IsDisplayed = 2, + + /// + /// Enum BuildingString for value: BuildingString + /// + [EnumMember(Value = "BuildingString")] + BuildingString = 3, + + /// + /// Enum StreetString for value: StreetString + /// + [EnumMember(Value = "StreetString")] + StreetString = 4, + + /// + /// Enum TownString for value: TownString + /// + [EnumMember(Value = "TownString")] + TownString = 5 + } + + /// + /// Which field to update. Omit or set to null for a validation error. + /// + /// Which field to update. Omit or set to null for a validation error. + [DataMember(Name="Field", EmitDefaultValue=false)] + public FieldEnum? Field { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Which field to update. Omit or set to null for a validation error.. + /// Value.. + public SetUserDeliveryLocationFieldRequest(FieldEnum? field = default(FieldEnum?), string value = default(string)) + { + this.Field = field; + this.Value = value; + } + + + /// + /// Value. + /// + /// Value. + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SetUserDeliveryLocationFieldRequest {\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetUserDeliveryLocationFieldRequest); + } + + /// + /// Returns true if SetUserDeliveryLocationFieldRequest instances are equal + /// + /// Instance of SetUserDeliveryLocationFieldRequest to be compared + /// Boolean + public bool Equals(SetUserDeliveryLocationFieldRequest input) + { + if (input == null) + return false; + + return + ( + this.Field == input.Field || + (this.Field != null && + this.Field.Equals(input.Field)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Field != null) + hashCode = hashCode * 59 + this.Field.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SetV2FeeCalculationRequest.cs b/src/Flipdish/Model/SetV2FeeCalculationRequest.cs new file mode 100644 index 00000000..fa1d220a --- /dev/null +++ b/src/Flipdish/Model/SetV2FeeCalculationRequest.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Input model for setting whether the V2 (tiered) fee calculation is enabled for a Store + /// + [DataContract] + public partial class SetV2FeeCalculationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Whether the V2 (tiered) fee calculation should be enabled for this Store. Required.. + public SetV2FeeCalculationRequest(bool? isEnabled = default(bool?)) + { + this.IsEnabled = isEnabled; + } + + /// + /// Whether the V2 (tiered) fee calculation should be enabled for this Store. Required. + /// + /// Whether the V2 (tiered) fee calculation should be enabled for this Store. Required. + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SetV2FeeCalculationRequest {\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetV2FeeCalculationRequest); + } + + /// + /// Returns true if SetV2FeeCalculationRequest instances are equal + /// + /// Instance of SetV2FeeCalculationRequest to be compared + /// Boolean + public bool Equals(SetV2FeeCalculationRequest input) + { + if (input == null) + return false; + + return + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SetVoucherValidityPeriodsSimplifiedRequest.cs b/src/Flipdish/Model/SetVoucherValidityPeriodsSimplifiedRequest.cs new file mode 100644 index 00000000..73331688 --- /dev/null +++ b/src/Flipdish/Model/SetVoucherValidityPeriodsSimplifiedRequest.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Set the validity periods of a voucher. + /// + [DataContract] + public partial class SetVoucherValidityPeriodsSimplifiedRequest : IEquatable + { + /// + /// Defines DaysOfWeek + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DaysOfWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + + /// + /// Days of week when the voucher is valid + /// + /// Days of week when the voucher is valid + [DataMember(Name="DaysOfWeek", EmitDefaultValue=false)] + public List DaysOfWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Days of week when the voucher is valid. + /// Start time of the day when the voucher is valid. + /// End time of the day when the voucher is valid. If the end time is before the start time, the end time is assumed to be the next day.. + public SetVoucherValidityPeriodsSimplifiedRequest(List daysOfWeek = default(List), string startTime = default(string), string endTime = default(string)) + { + this.DaysOfWeek = daysOfWeek; + this.StartTime = startTime; + this.EndTime = endTime; + } + + + /// + /// Start time of the day when the voucher is valid + /// + /// Start time of the day when the voucher is valid + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public string StartTime { get; set; } + + /// + /// End time of the day when the voucher is valid. If the end time is before the start time, the end time is assumed to be the next day. + /// + /// End time of the day when the voucher is valid. If the end time is before the start time, the end time is assumed to be the next day. + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public string EndTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SetVoucherValidityPeriodsSimplifiedRequest {\n"); + sb.Append(" DaysOfWeek: ").Append(DaysOfWeek).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetVoucherValidityPeriodsSimplifiedRequest); + } + + /// + /// Returns true if SetVoucherValidityPeriodsSimplifiedRequest instances are equal + /// + /// Instance of SetVoucherValidityPeriodsSimplifiedRequest to be compared + /// Boolean + public bool Equals(SetVoucherValidityPeriodsSimplifiedRequest input) + { + if (input == null) + return false; + + return + ( + this.DaysOfWeek == input.DaysOfWeek || + this.DaysOfWeek != null && + this.DaysOfWeek.SequenceEqual(input.DaysOfWeek) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DaysOfWeek != null) + hashCode = hashCode * 59 + this.DaysOfWeek.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Setting.cs b/src/Flipdish/Model/Setting.cs new file mode 100644 index 00000000..6bf5d03c --- /dev/null +++ b/src/Flipdish/Model/Setting.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Setting + /// + [DataContract] + public partial class Setting : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// key. + /// value. + public Setting(string key = default(string), string value = default(string)) + { + this.Key = key; + this.Value = value; + } + + /// + /// Gets or Sets Key + /// + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name="Value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Setting {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Setting); + } + + /// + /// Returns true if Setting instances are equal + /// + /// Instance of Setting to be compared + /// Boolean + public bool Equals(Setting input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SignupStep.cs b/src/Flipdish/Model/SignupStep.cs new file mode 100644 index 00000000..a8f80048 --- /dev/null +++ b/src/Flipdish/Model/SignupStep.cs @@ -0,0 +1,180 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// SignupStep + /// + [DataContract] + public partial class SignupStep : IEquatable + { + /// + /// Action needs to take + /// + /// Action needs to take + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + + /// + /// Enum Question for value: Question + /// + [EnumMember(Value = "Question")] + Question = 1, + + /// + /// Enum StoreLocation for value: StoreLocation + /// + [EnumMember(Value = "StoreLocation")] + StoreLocation = 2, + + /// + /// Enum PaymentSubscription for value: PaymentSubscription + /// + [EnumMember(Value = "PaymentSubscription")] + PaymentSubscription = 3, + + /// + /// Enum StoreName for value: StoreName + /// + [EnumMember(Value = "StoreName")] + StoreName = 4 + } + + /// + /// Action needs to take + /// + /// Action needs to take + [DataMember(Name="Action", EmitDefaultValue=false)] + public ActionEnum? Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Action needs to take. + /// Question in case Action == Question. + /// Predefined answer in case Action == Question. + public SignupStep(ActionEnum? action = default(ActionEnum?), string question = default(string), List predefinedAnswers = default(List)) + { + this.Action = action; + this.Question = question; + this.PredefinedAnswers = predefinedAnswers; + } + + + /// + /// Question in case Action == Question + /// + /// Question in case Action == Question + [DataMember(Name="Question", EmitDefaultValue=false)] + public string Question { get; set; } + + /// + /// Predefined answer in case Action == Question + /// + /// Predefined answer in case Action == Question + [DataMember(Name="PredefinedAnswers", EmitDefaultValue=false)] + public List PredefinedAnswers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SignupStep {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Question: ").Append(Question).Append("\n"); + sb.Append(" PredefinedAnswers: ").Append(PredefinedAnswers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SignupStep); + } + + /// + /// Returns true if SignupStep instances are equal + /// + /// Instance of SignupStep to be compared + /// Boolean + public bool Equals(SignupStep input) + { + if (input == null) + return false; + + return + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.Question == input.Question || + (this.Question != null && + this.Question.Equals(input.Question)) + ) && + ( + this.PredefinedAnswers == input.PredefinedAnswers || + this.PredefinedAnswers != null && + this.PredefinedAnswers.SequenceEqual(input.PredefinedAnswers) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.Question != null) + hashCode = hashCode * 59 + this.Question.GetHashCode(); + if (this.PredefinedAnswers != null) + hashCode = hashCode * 59 + this.PredefinedAnswers.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SmsInfo.cs b/src/Flipdish/Model/SmsInfo.cs new file mode 100644 index 00000000..dd79b557 --- /dev/null +++ b/src/Flipdish/Model/SmsInfo.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Sms Info + /// + [DataContract] + public partial class SmsInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Origin phone number. + /// Destination phone number. + /// Text message. + public SmsInfo(string from = default(string), string to = default(string), string text = default(string)) + { + this.From = from; + this.To = to; + this.Text = text; + } + + /// + /// Origin phone number + /// + /// Origin phone number + [DataMember(Name="From", EmitDefaultValue=false)] + public string From { get; set; } + + /// + /// Destination phone number + /// + /// Destination phone number + [DataMember(Name="To", EmitDefaultValue=false)] + public string To { get; set; } + + /// + /// Text message + /// + /// Text message + [DataMember(Name="Text", EmitDefaultValue=false)] + public string Text { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SmsInfo {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsInfo); + } + + /// + /// Returns true if SmsInfo instances are equal + /// + /// Instance of SmsInfo to be compared + /// Boolean + public bool Equals(SmsInfo input) + { + if (input == null) + return false; + + return + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.To == input.To || + (this.To != null && + this.To.Equals(input.To)) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.From != null) + hashCode = hashCode * 59 + this.From.GetHashCode(); + if (this.To != null) + hashCode = hashCode * 59 + this.To.GetHashCode(); + if (this.Text != null) + hashCode = hashCode * 59 + this.Text.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SmsProviderCredential.cs b/src/Flipdish/Model/SmsProviderCredential.cs new file mode 100644 index 00000000..2c456381 --- /dev/null +++ b/src/Flipdish/Model/SmsProviderCredential.cs @@ -0,0 +1,237 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// SmsProviderCredential. + /// + [DataContract] + public partial class SmsProviderCredential : IEquatable + { + /// + /// SmsServiceType. + /// + /// SmsServiceType. + [JsonConverter(typeof(StringEnumConverter))] + public enum SmsServiceTypeEnum + { + + /// + /// Enum Nexmo for value: Nexmo + /// + [EnumMember(Value = "Nexmo")] + Nexmo = 1, + + /// + /// Enum Twilio for value: Twilio + /// + [EnumMember(Value = "Twilio")] + Twilio = 2, + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 3, + + /// + /// Enum MessageBird for value: MessageBird + /// + [EnumMember(Value = "MessageBird")] + MessageBird = 4, + + /// + /// Enum CommunicationService for value: CommunicationService + /// + [EnumMember(Value = "CommunicationService")] + CommunicationService = 5 + } + + /// + /// SmsServiceType. + /// + /// SmsServiceType. + [DataMember(Name="SmsServiceType", EmitDefaultValue=false)] + public SmsServiceTypeEnum? SmsServiceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// OrgId.. + /// BrandId.. + /// SmsServiceType.. + /// SenderId.. + /// Username.. + /// AuthToken.. + public SmsProviderCredential(string orgId = default(string), string brandId = default(string), SmsServiceTypeEnum? smsServiceType = default(SmsServiceTypeEnum?), string senderId = default(string), string username = default(string), string authToken = default(string)) + { + this.OrgId = orgId; + this.BrandId = brandId; + this.SmsServiceType = smsServiceType; + this.SenderId = senderId; + this.Username = username; + this.AuthToken = authToken; + } + + /// + /// OrgId. + /// + /// OrgId. + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// BrandId. + /// + /// BrandId. + [DataMember(Name="BrandId", EmitDefaultValue=false)] + public string BrandId { get; set; } + + + /// + /// SenderId. + /// + /// SenderId. + [DataMember(Name="SenderId", EmitDefaultValue=false)] + public string SenderId { get; set; } + + /// + /// Username. + /// + /// Username. + [DataMember(Name="Username", EmitDefaultValue=false)] + public string Username { get; set; } + + /// + /// AuthToken. + /// + /// AuthToken. + [DataMember(Name="AuthToken", EmitDefaultValue=false)] + public string AuthToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SmsProviderCredential {\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" BrandId: ").Append(BrandId).Append("\n"); + sb.Append(" SmsServiceType: ").Append(SmsServiceType).Append("\n"); + sb.Append(" SenderId: ").Append(SenderId).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" AuthToken: ").Append(AuthToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsProviderCredential); + } + + /// + /// Returns true if SmsProviderCredential instances are equal + /// + /// Instance of SmsProviderCredential to be compared + /// Boolean + public bool Equals(SmsProviderCredential input) + { + if (input == null) + return false; + + return + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.BrandId == input.BrandId || + (this.BrandId != null && + this.BrandId.Equals(input.BrandId)) + ) && + ( + this.SmsServiceType == input.SmsServiceType || + (this.SmsServiceType != null && + this.SmsServiceType.Equals(input.SmsServiceType)) + ) && + ( + this.SenderId == input.SenderId || + (this.SenderId != null && + this.SenderId.Equals(input.SenderId)) + ) && + ( + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) + ) && + ( + this.AuthToken == input.AuthToken || + (this.AuthToken != null && + this.AuthToken.Equals(input.AuthToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.BrandId != null) + hashCode = hashCode * 59 + this.BrandId.GetHashCode(); + if (this.SmsServiceType != null) + hashCode = hashCode * 59 + this.SmsServiceType.GetHashCode(); + if (this.SenderId != null) + hashCode = hashCode * 59 + this.SenderId.GetHashCode(); + if (this.Username != null) + hashCode = hashCode * 59 + this.Username.GetHashCode(); + if (this.AuthToken != null) + hashCode = hashCode * 59 + this.AuthToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SmsProviderCredentialUpdateRequest.cs b/src/Flipdish/Model/SmsProviderCredentialUpdateRequest.cs new file mode 100644 index 00000000..8d589c0c --- /dev/null +++ b/src/Flipdish/Model/SmsProviderCredentialUpdateRequest.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// SmsProviderCredentialUpdateRequest. + /// + [DataContract] + public partial class SmsProviderCredentialUpdateRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// SenderId.. + /// Username.. + /// AuthToken.. + public SmsProviderCredentialUpdateRequest(string senderId = default(string), string username = default(string), string authToken = default(string)) + { + this.SenderId = senderId; + this.Username = username; + this.AuthToken = authToken; + } + + /// + /// SenderId. + /// + /// SenderId. + [DataMember(Name="SenderId", EmitDefaultValue=false)] + public string SenderId { get; set; } + + /// + /// Username. + /// + /// Username. + [DataMember(Name="Username", EmitDefaultValue=false)] + public string Username { get; set; } + + /// + /// AuthToken. + /// + /// AuthToken. + [DataMember(Name="AuthToken", EmitDefaultValue=false)] + public string AuthToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SmsProviderCredentialUpdateRequest {\n"); + sb.Append(" SenderId: ").Append(SenderId).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" AuthToken: ").Append(AuthToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsProviderCredentialUpdateRequest); + } + + /// + /// Returns true if SmsProviderCredentialUpdateRequest instances are equal + /// + /// Instance of SmsProviderCredentialUpdateRequest to be compared + /// Boolean + public bool Equals(SmsProviderCredentialUpdateRequest input) + { + if (input == null) + return false; + + return + ( + this.SenderId == input.SenderId || + (this.SenderId != null && + this.SenderId.Equals(input.SenderId)) + ) && + ( + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) + ) && + ( + this.AuthToken == input.AuthToken || + (this.AuthToken != null && + this.AuthToken.Equals(input.AuthToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SenderId != null) + hashCode = hashCode * 59 + this.SenderId.GetHashCode(); + if (this.Username != null) + hashCode = hashCode * 59 + this.Username.GetHashCode(); + if (this.AuthToken != null) + hashCode = hashCode * 59 + this.AuthToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SmsReceivedEvent.cs b/src/Flipdish/Model/SmsReceivedEvent.cs new file mode 100644 index 00000000..9a9a4a6c --- /dev/null +++ b/src/Flipdish/Model/SmsReceivedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Sms received event + /// + [DataContract] + public partial class SmsReceivedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The sms info. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public SmsReceivedEvent(string eventName = default(string), string description = default(string), SmsInfo smsInfo = default(SmsInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.SmsInfo = smsInfo; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The sms info + /// + /// The sms info + [DataMember(Name="SmsInfo", EmitDefaultValue=false)] + public SmsInfo SmsInfo { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SmsReceivedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" SmsInfo: ").Append(SmsInfo).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SmsReceivedEvent); + } + + /// + /// Returns true if SmsReceivedEvent instances are equal + /// + /// Instance of SmsReceivedEvent to be compared + /// Boolean + public bool Equals(SmsReceivedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SmsInfo == input.SmsInfo || + (this.SmsInfo != null && + this.SmsInfo.Equals(input.SmsInfo)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SmsInfo != null) + hashCode = hashCode * 59 + this.SmsInfo.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StatisticsCurrencyDataPoint.cs b/src/Flipdish/Model/StatisticsCurrencyDataPoint.cs new file mode 100644 index 00000000..fafac7ae --- /dev/null +++ b/src/Flipdish/Model/StatisticsCurrencyDataPoint.cs @@ -0,0 +1,851 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A single currency data point, with no date + /// + [DataContract] + public partial class StatisticsCurrencyDataPoint : IEquatable + { + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Currency. + /// Amount of users for this currency. + /// Amount of orders for this currency. + /// Value of orders for this currency. + public StatisticsCurrencyDataPoint(CurrencyEnum? currency = default(CurrencyEnum?), int? userCount = default(int?), int? orderCount = default(int?), double? orderValue = default(double?)) + { + this.Currency = currency; + this.UserCount = userCount; + this.OrderCount = orderCount; + this.OrderValue = orderValue; + } + + + /// + /// Amount of users for this currency + /// + /// Amount of users for this currency + [DataMember(Name="UserCount", EmitDefaultValue=false)] + public int? UserCount { get; set; } + + /// + /// Amount of orders for this currency + /// + /// Amount of orders for this currency + [DataMember(Name="OrderCount", EmitDefaultValue=false)] + public int? OrderCount { get; set; } + + /// + /// Value of orders for this currency + /// + /// Value of orders for this currency + [DataMember(Name="OrderValue", EmitDefaultValue=false)] + public double? OrderValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StatisticsCurrencyDataPoint {\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" UserCount: ").Append(UserCount).Append("\n"); + sb.Append(" OrderCount: ").Append(OrderCount).Append("\n"); + sb.Append(" OrderValue: ").Append(OrderValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StatisticsCurrencyDataPoint); + } + + /// + /// Returns true if StatisticsCurrencyDataPoint instances are equal + /// + /// Instance of StatisticsCurrencyDataPoint to be compared + /// Boolean + public bool Equals(StatisticsCurrencyDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.UserCount == input.UserCount || + (this.UserCount != null && + this.UserCount.Equals(input.UserCount)) + ) && + ( + this.OrderCount == input.OrderCount || + (this.OrderCount != null && + this.OrderCount.Equals(input.OrderCount)) + ) && + ( + this.OrderValue == input.OrderValue || + (this.OrderValue != null && + this.OrderValue.Equals(input.OrderValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.UserCount != null) + hashCode = hashCode * 59 + this.UserCount.GetHashCode(); + if (this.OrderCount != null) + hashCode = hashCode * 59 + this.OrderCount.GetHashCode(); + if (this.OrderValue != null) + hashCode = hashCode * 59 + this.OrderValue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Store.cs b/src/Flipdish/Model/Store.cs new file mode 100644 index 00000000..21116460 --- /dev/null +++ b/src/Flipdish/Model/Store.cs @@ -0,0 +1,1760 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store + /// + [DataContract] + public partial class Store : IEquatable + { + /// + /// Printout layout + /// + /// Printout layout + [JsonConverter(typeof(StringEnumConverter))] + public enum PrintoutLayoutTypeEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum Centra for value: Centra + /// + [EnumMember(Value = "Centra")] + Centra = 2, + + /// + /// Enum SmallChefNotes for value: SmallChefNotes + /// + [EnumMember(Value = "SmallChefNotes")] + SmallChefNotes = 3, + + /// + /// Enum SmallChefNotesAndCentra for value: SmallChefNotesAndCentra + /// + [EnumMember(Value = "SmallChefNotesAndCentra")] + SmallChefNotesAndCentra = 4 + } + + /// + /// Printout layout + /// + /// Printout layout + [DataMember(Name="PrintoutLayoutType", EmitDefaultValue=false)] + public PrintoutLayoutTypeEnum? PrintoutLayoutType { get; set; } + /// + /// Currency (derived from Store Group) + /// + /// Currency (derived from Store Group) + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency (derived from Store Group) + /// + /// Currency (derived from Store Group) + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Defines SalesChannelTypes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SalesChannelTypesEnum + { + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 1, + + /// + /// Enum App for value: App + /// + [EnumMember(Value = "App")] + App = 2, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 3, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 4, + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 5, + + /// + /// Enum PhoneAgent for value: PhoneAgent + /// + [EnumMember(Value = "PhoneAgent")] + PhoneAgent = 6 + } + + + /// + /// Sales Channel Types + /// + /// Sales Channel Types + [DataMember(Name="SalesChannelTypes", EmitDefaultValue=false)] + public List SalesChannelTypes { get; set; } + /// + /// Defines InheritanceConfigTypes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum InheritanceConfigTypesEnum + { + + /// + /// Enum CollectionSettings for value: CollectionSettings + /// + [EnumMember(Value = "CollectionSettings")] + CollectionSettings = 1 + } + + + /// + /// Inheritance Config Types + /// + /// Inheritance Config Types + [DataMember(Name="InheritanceConfigTypes", EmitDefaultValue=false)] + public List InheritanceConfigTypes { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Store group id to which this store belongs. + /// Store address. + /// Delivery zones. + /// Automated Phone Marketing number. + /// Pickup hours. + /// Delivery hours. + /// Menu identifier. + /// Overridden confirmation message for delivery orders. + /// Overridden confirmation message for pickup orders. + /// Printout layout. + /// Store notes. + /// Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change). + /// IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change). + /// Currency (derived from Store Group). + /// Is PerOrder Enabled for Delivery. + /// Is PerOrder Enabled for Pickup. + /// Url for logo image. + /// Fraud Prevention Strategy. + /// Store's app ids. + /// Property Id. + /// Phone number. + /// True if the store always appears open. + /// True if the store accepts pre-orders. + /// True if the store accepts take-out orders. + /// True if the store has table service. + /// True if the store accepts dine-in orders. + /// True if both pre-orders and talbe service can be enabled. + /// True if the store accepts pickup orders. + /// True if the store accepts delivery orders. + /// True if the store accepts card payment for delivery orders. + /// True if the store accepts cash payment for delivery orders. + /// True if the store accepts card payment for pickup orders. + /// True if the store accepts cash payment for pickup orders. + /// True if the store accepts tips. + /// True if the stores orders are automatically accepted in Flipdish. + /// True if the store is open for delivery. + /// True if the store is open for pickup. + /// Minimum pickup order amount. + /// True if customer name required for pickup orders. + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed.. + /// True if customer name required for delivery orders. + /// True if the customer is allowed enter custom notes with their orders. + /// True if order confirmation sms includes estimated time when order will be ready for collection. + /// True if order confirmation sms includes estimated time when order will delivered. + /// Is the Store Archived. + /// Is the Store Published. + /// Name. + /// Email address (visible to customers). + /// Staff Language (used for communication with the staff) Emails, Printouts etc. + /// Sales Channel Types. + /// Inheritance Config Types. + public Store(int? storeId = default(int?), int? storeGroupId = default(int?), StoreAddress address = default(StoreAddress), List deliveryZones = default(List), string apmPhoneNumber = default(string), List pickupHours = default(List), List deliveryHours = default(List), int? menuId = default(int?), string orderConfirmationMessageOverrideDelivery = default(string), string orderConfirmationMessageOverridePickup = default(string), PrintoutLayoutTypeEnum? printoutLayoutType = default(PrintoutLayoutTypeEnum?), List storeNotes = default(List), string microsoftTimeZone = default(string), string ianaTimeZone = default(string), CurrencyEnum? currency = default(CurrencyEnum?), bool? preOrderDeliveryEnabled = default(bool?), bool? preOrderPickupEnabled = default(bool?), string logoUrl = default(string), string fraudPreventionStrategy = default(string), List appIds = default(List), string propertyId = default(string), string phoneNumber = default(string), bool? alwaysAppearOpen = default(bool?), bool? preOrderEnabled = default(bool?), bool? takeOutEnabled = default(bool?), bool? tableServiceEnabled = default(bool?), bool? dineInEnabled = default(bool?), bool? allowPreOrdersAndTableService = default(bool?), bool? pickupEnabled = default(bool?), bool? deliveryEnabled = default(bool?), bool? cardOrderDeliveryEnabled = default(bool?), bool? cashOrdersDeliveryEnabled = default(bool?), bool? cardOrdersPickupEnabled = default(bool?), bool? cashOrdersPickupEnabled = default(bool?), bool? tipsEnabled = default(bool?), bool? automaticallyAcceptOrders = default(bool?), bool? openForDelivery = default(bool?), bool? openForPickup = default(bool?), double? minimumPickupOrderAmount = default(double?), bool? requireCustomerNameForPickup = default(bool?), bool? gdprCustomerPhoneNumbers = default(bool?), bool? requireCustomerNameForDelivery = default(bool?), bool? allowChefNotes = default(bool?), bool? etaInPickupConfirmationSmsEnabled = default(bool?), bool? etaInDeliveryConfirmationSmsEnabled = default(bool?), bool? isArchived = default(bool?), bool? isPublished = default(bool?), string name = default(string), string emailAddress = default(string), string staffLanguage = default(string), List salesChannelTypes = default(List), List inheritanceConfigTypes = default(List)) + { + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.Address = address; + this.DeliveryZones = deliveryZones; + this.ApmPhoneNumber = apmPhoneNumber; + this.PickupHours = pickupHours; + this.DeliveryHours = deliveryHours; + this.MenuId = menuId; + this.OrderConfirmationMessageOverrideDelivery = orderConfirmationMessageOverrideDelivery; + this.OrderConfirmationMessageOverridePickup = orderConfirmationMessageOverridePickup; + this.PrintoutLayoutType = printoutLayoutType; + this.StoreNotes = storeNotes; + this.MicrosoftTimeZone = microsoftTimeZone; + this.IanaTimeZone = ianaTimeZone; + this.Currency = currency; + this.PreOrderDeliveryEnabled = preOrderDeliveryEnabled; + this.PreOrderPickupEnabled = preOrderPickupEnabled; + this.LogoUrl = logoUrl; + this.FraudPreventionStrategy = fraudPreventionStrategy; + this.AppIds = appIds; + this.PropertyId = propertyId; + this.PhoneNumber = phoneNumber; + this.AlwaysAppearOpen = alwaysAppearOpen; + this.PreOrderEnabled = preOrderEnabled; + this.TakeOutEnabled = takeOutEnabled; + this.TableServiceEnabled = tableServiceEnabled; + this.DineInEnabled = dineInEnabled; + this.AllowPreOrdersAndTableService = allowPreOrdersAndTableService; + this.PickupEnabled = pickupEnabled; + this.DeliveryEnabled = deliveryEnabled; + this.CardOrderDeliveryEnabled = cardOrderDeliveryEnabled; + this.CashOrdersDeliveryEnabled = cashOrdersDeliveryEnabled; + this.CardOrdersPickupEnabled = cardOrdersPickupEnabled; + this.CashOrdersPickupEnabled = cashOrdersPickupEnabled; + this.TipsEnabled = tipsEnabled; + this.AutomaticallyAcceptOrders = automaticallyAcceptOrders; + this.OpenForDelivery = openForDelivery; + this.OpenForPickup = openForPickup; + this.MinimumPickupOrderAmount = minimumPickupOrderAmount; + this.RequireCustomerNameForPickup = requireCustomerNameForPickup; + this.GdprCustomerPhoneNumbers = gdprCustomerPhoneNumbers; + this.RequireCustomerNameForDelivery = requireCustomerNameForDelivery; + this.AllowChefNotes = allowChefNotes; + this.EtaInPickupConfirmationSmsEnabled = etaInPickupConfirmationSmsEnabled; + this.EtaInDeliveryConfirmationSmsEnabled = etaInDeliveryConfirmationSmsEnabled; + this.IsArchived = isArchived; + this.IsPublished = isPublished; + this.Name = name; + this.EmailAddress = emailAddress; + this.StaffLanguage = staffLanguage; + this.SalesChannelTypes = salesChannelTypes; + this.InheritanceConfigTypes = inheritanceConfigTypes; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group id to which this store belongs + /// + /// Store group id to which this store belongs + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Store address + /// + /// Store address + [DataMember(Name="Address", EmitDefaultValue=false)] + public StoreAddress Address { get; set; } + + /// + /// Delivery zones + /// + /// Delivery zones + [DataMember(Name="DeliveryZones", EmitDefaultValue=false)] + public List DeliveryZones { get; set; } + + /// + /// Automated Phone Marketing number + /// + /// Automated Phone Marketing number + [DataMember(Name="ApmPhoneNumber", EmitDefaultValue=false)] + public string ApmPhoneNumber { get; set; } + + /// + /// Pickup hours + /// + /// Pickup hours + [DataMember(Name="PickupHours", EmitDefaultValue=false)] + public List PickupHours { get; set; } + + /// + /// Delivery hours + /// + /// Delivery hours + [DataMember(Name="DeliveryHours", EmitDefaultValue=false)] + public List DeliveryHours { get; set; } + + /// + /// Menu identifier + /// + /// Menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Overridden confirmation message for delivery orders + /// + /// Overridden confirmation message for delivery orders + [DataMember(Name="OrderConfirmationMessageOverrideDelivery", EmitDefaultValue=false)] + public string OrderConfirmationMessageOverrideDelivery { get; set; } + + /// + /// Overridden confirmation message for pickup orders + /// + /// Overridden confirmation message for pickup orders + [DataMember(Name="OrderConfirmationMessageOverridePickup", EmitDefaultValue=false)] + public string OrderConfirmationMessageOverridePickup { get; set; } + + + /// + /// Store notes + /// + /// Store notes + [DataMember(Name="StoreNotes", EmitDefaultValue=false)] + public List StoreNotes { get; set; } + + /// + /// Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) + /// + /// Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) + [DataMember(Name="MicrosoftTimeZone", EmitDefaultValue=false)] + public string MicrosoftTimeZone { get; set; } + + /// + /// IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) + /// + /// IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) + [DataMember(Name="IanaTimeZone", EmitDefaultValue=false)] + public string IanaTimeZone { get; set; } + + + /// + /// Is PerOrder Enabled for Delivery + /// + /// Is PerOrder Enabled for Delivery + [DataMember(Name="PreOrderDeliveryEnabled", EmitDefaultValue=false)] + public bool? PreOrderDeliveryEnabled { get; set; } + + /// + /// Is PerOrder Enabled for Pickup + /// + /// Is PerOrder Enabled for Pickup + [DataMember(Name="PreOrderPickupEnabled", EmitDefaultValue=false)] + public bool? PreOrderPickupEnabled { get; set; } + + /// + /// Url for logo image + /// + /// Url for logo image + [DataMember(Name="LogoUrl", EmitDefaultValue=false)] + public string LogoUrl { get; set; } + + /// + /// Fraud Prevention Strategy + /// + /// Fraud Prevention Strategy + [DataMember(Name="FraudPreventionStrategy", EmitDefaultValue=false)] + public string FraudPreventionStrategy { get; set; } + + /// + /// Store's app ids + /// + /// Store's app ids + [DataMember(Name="AppIds", EmitDefaultValue=false)] + public List AppIds { get; set; } + + /// + /// Property Id + /// + /// Property Id + [DataMember(Name="PropertyId", EmitDefaultValue=false)] + public string PropertyId { get; set; } + + /// + /// Phone number + /// + /// Phone number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// True if the store always appears open + /// + /// True if the store always appears open + [DataMember(Name="AlwaysAppearOpen", EmitDefaultValue=false)] + public bool? AlwaysAppearOpen { get; set; } + + /// + /// True if the store accepts pre-orders + /// + /// True if the store accepts pre-orders + [DataMember(Name="PreOrderEnabled", EmitDefaultValue=false)] + public bool? PreOrderEnabled { get; set; } + + /// + /// True if the store accepts take-out orders + /// + /// True if the store accepts take-out orders + [DataMember(Name="TakeOutEnabled", EmitDefaultValue=false)] + public bool? TakeOutEnabled { get; set; } + + /// + /// True if the store has table service + /// + /// True if the store has table service + [DataMember(Name="TableServiceEnabled", EmitDefaultValue=false)] + public bool? TableServiceEnabled { get; set; } + + /// + /// True if the store accepts dine-in orders + /// + /// True if the store accepts dine-in orders + [DataMember(Name="DineInEnabled", EmitDefaultValue=false)] + public bool? DineInEnabled { get; set; } + + /// + /// True if both pre-orders and talbe service can be enabled + /// + /// True if both pre-orders and talbe service can be enabled + [DataMember(Name="AllowPreOrdersAndTableService", EmitDefaultValue=false)] + public bool? AllowPreOrdersAndTableService { get; set; } + + /// + /// True if the store accepts pickup orders + /// + /// True if the store accepts pickup orders + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// True if the store accepts delivery orders + /// + /// True if the store accepts delivery orders + [DataMember(Name="DeliveryEnabled", EmitDefaultValue=false)] + public bool? DeliveryEnabled { get; set; } + + /// + /// True if the store accepts card payment for delivery orders + /// + /// True if the store accepts card payment for delivery orders + [DataMember(Name="CardOrderDeliveryEnabled", EmitDefaultValue=false)] + public bool? CardOrderDeliveryEnabled { get; set; } + + /// + /// True if the store accepts cash payment for delivery orders + /// + /// True if the store accepts cash payment for delivery orders + [DataMember(Name="CashOrdersDeliveryEnabled", EmitDefaultValue=false)] + public bool? CashOrdersDeliveryEnabled { get; set; } + + /// + /// True if the store accepts card payment for pickup orders + /// + /// True if the store accepts card payment for pickup orders + [DataMember(Name="CardOrdersPickupEnabled", EmitDefaultValue=false)] + public bool? CardOrdersPickupEnabled { get; set; } + + /// + /// True if the store accepts cash payment for pickup orders + /// + /// True if the store accepts cash payment for pickup orders + [DataMember(Name="CashOrdersPickupEnabled", EmitDefaultValue=false)] + public bool? CashOrdersPickupEnabled { get; set; } + + /// + /// True if the store accepts tips + /// + /// True if the store accepts tips + [DataMember(Name="TipsEnabled", EmitDefaultValue=false)] + public bool? TipsEnabled { get; set; } + + /// + /// True if the stores orders are automatically accepted in Flipdish + /// + /// True if the stores orders are automatically accepted in Flipdish + [DataMember(Name="AutomaticallyAcceptOrders", EmitDefaultValue=false)] + public bool? AutomaticallyAcceptOrders { get; set; } + + /// + /// True if the store is open for delivery + /// + /// True if the store is open for delivery + [DataMember(Name="OpenForDelivery", EmitDefaultValue=false)] + public bool? OpenForDelivery { get; set; } + + /// + /// True if the store is open for pickup + /// + /// True if the store is open for pickup + [DataMember(Name="OpenForPickup", EmitDefaultValue=false)] + public bool? OpenForPickup { get; set; } + + /// + /// Minimum pickup order amount + /// + /// Minimum pickup order amount + [DataMember(Name="MinimumPickupOrderAmount", EmitDefaultValue=false)] + public double? MinimumPickupOrderAmount { get; set; } + + /// + /// True if customer name required for pickup orders + /// + /// True if customer name required for pickup orders + [DataMember(Name="RequireCustomerNameForPickup", EmitDefaultValue=false)] + public bool? RequireCustomerNameForPickup { get; set; } + + /// + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + /// + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + [DataMember(Name="GdprCustomerPhoneNumbers", EmitDefaultValue=false)] + public bool? GdprCustomerPhoneNumbers { get; set; } + + /// + /// True if customer name required for delivery orders + /// + /// True if customer name required for delivery orders + [DataMember(Name="RequireCustomerNameForDelivery", EmitDefaultValue=false)] + public bool? RequireCustomerNameForDelivery { get; set; } + + /// + /// True if the customer is allowed enter custom notes with their orders + /// + /// True if the customer is allowed enter custom notes with their orders + [DataMember(Name="AllowChefNotes", EmitDefaultValue=false)] + public bool? AllowChefNotes { get; set; } + + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + [DataMember(Name="EtaInPickupConfirmationSmsEnabled", EmitDefaultValue=false)] + public bool? EtaInPickupConfirmationSmsEnabled { get; set; } + + /// + /// True if order confirmation sms includes estimated time when order will delivered + /// + /// True if order confirmation sms includes estimated time when order will delivered + [DataMember(Name="EtaInDeliveryConfirmationSmsEnabled", EmitDefaultValue=false)] + public bool? EtaInDeliveryConfirmationSmsEnabled { get; set; } + + /// + /// Is the Store Archived + /// + /// Is the Store Archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Is the Store Published + /// + /// Is the Store Published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Email address (visible to customers) + /// + /// Email address (visible to customers) + [DataMember(Name="EmailAddress", EmitDefaultValue=false)] + public string EmailAddress { get; set; } + + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + [DataMember(Name="StaffLanguage", EmitDefaultValue=false)] + public string StaffLanguage { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Store {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" DeliveryZones: ").Append(DeliveryZones).Append("\n"); + sb.Append(" ApmPhoneNumber: ").Append(ApmPhoneNumber).Append("\n"); + sb.Append(" PickupHours: ").Append(PickupHours).Append("\n"); + sb.Append(" DeliveryHours: ").Append(DeliveryHours).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" OrderConfirmationMessageOverrideDelivery: ").Append(OrderConfirmationMessageOverrideDelivery).Append("\n"); + sb.Append(" OrderConfirmationMessageOverridePickup: ").Append(OrderConfirmationMessageOverridePickup).Append("\n"); + sb.Append(" PrintoutLayoutType: ").Append(PrintoutLayoutType).Append("\n"); + sb.Append(" StoreNotes: ").Append(StoreNotes).Append("\n"); + sb.Append(" MicrosoftTimeZone: ").Append(MicrosoftTimeZone).Append("\n"); + sb.Append(" IanaTimeZone: ").Append(IanaTimeZone).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" PreOrderDeliveryEnabled: ").Append(PreOrderDeliveryEnabled).Append("\n"); + sb.Append(" PreOrderPickupEnabled: ").Append(PreOrderPickupEnabled).Append("\n"); + sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); + sb.Append(" FraudPreventionStrategy: ").Append(FraudPreventionStrategy).Append("\n"); + sb.Append(" AppIds: ").Append(AppIds).Append("\n"); + sb.Append(" PropertyId: ").Append(PropertyId).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" AlwaysAppearOpen: ").Append(AlwaysAppearOpen).Append("\n"); + sb.Append(" PreOrderEnabled: ").Append(PreOrderEnabled).Append("\n"); + sb.Append(" TakeOutEnabled: ").Append(TakeOutEnabled).Append("\n"); + sb.Append(" TableServiceEnabled: ").Append(TableServiceEnabled).Append("\n"); + sb.Append(" DineInEnabled: ").Append(DineInEnabled).Append("\n"); + sb.Append(" AllowPreOrdersAndTableService: ").Append(AllowPreOrdersAndTableService).Append("\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" DeliveryEnabled: ").Append(DeliveryEnabled).Append("\n"); + sb.Append(" CardOrderDeliveryEnabled: ").Append(CardOrderDeliveryEnabled).Append("\n"); + sb.Append(" CashOrdersDeliveryEnabled: ").Append(CashOrdersDeliveryEnabled).Append("\n"); + sb.Append(" CardOrdersPickupEnabled: ").Append(CardOrdersPickupEnabled).Append("\n"); + sb.Append(" CashOrdersPickupEnabled: ").Append(CashOrdersPickupEnabled).Append("\n"); + sb.Append(" TipsEnabled: ").Append(TipsEnabled).Append("\n"); + sb.Append(" AutomaticallyAcceptOrders: ").Append(AutomaticallyAcceptOrders).Append("\n"); + sb.Append(" OpenForDelivery: ").Append(OpenForDelivery).Append("\n"); + sb.Append(" OpenForPickup: ").Append(OpenForPickup).Append("\n"); + sb.Append(" MinimumPickupOrderAmount: ").Append(MinimumPickupOrderAmount).Append("\n"); + sb.Append(" RequireCustomerNameForPickup: ").Append(RequireCustomerNameForPickup).Append("\n"); + sb.Append(" GdprCustomerPhoneNumbers: ").Append(GdprCustomerPhoneNumbers).Append("\n"); + sb.Append(" RequireCustomerNameForDelivery: ").Append(RequireCustomerNameForDelivery).Append("\n"); + sb.Append(" AllowChefNotes: ").Append(AllowChefNotes).Append("\n"); + sb.Append(" EtaInPickupConfirmationSmsEnabled: ").Append(EtaInPickupConfirmationSmsEnabled).Append("\n"); + sb.Append(" EtaInDeliveryConfirmationSmsEnabled: ").Append(EtaInDeliveryConfirmationSmsEnabled).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" StaffLanguage: ").Append(StaffLanguage).Append("\n"); + sb.Append(" SalesChannelTypes: ").Append(SalesChannelTypes).Append("\n"); + sb.Append(" InheritanceConfigTypes: ").Append(InheritanceConfigTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Store); + } + + /// + /// Returns true if Store instances are equal + /// + /// Instance of Store to be compared + /// Boolean + public bool Equals(Store input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.DeliveryZones == input.DeliveryZones || + this.DeliveryZones != null && + this.DeliveryZones.SequenceEqual(input.DeliveryZones) + ) && + ( + this.ApmPhoneNumber == input.ApmPhoneNumber || + (this.ApmPhoneNumber != null && + this.ApmPhoneNumber.Equals(input.ApmPhoneNumber)) + ) && + ( + this.PickupHours == input.PickupHours || + this.PickupHours != null && + this.PickupHours.SequenceEqual(input.PickupHours) + ) && + ( + this.DeliveryHours == input.DeliveryHours || + this.DeliveryHours != null && + this.DeliveryHours.SequenceEqual(input.DeliveryHours) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.OrderConfirmationMessageOverrideDelivery == input.OrderConfirmationMessageOverrideDelivery || + (this.OrderConfirmationMessageOverrideDelivery != null && + this.OrderConfirmationMessageOverrideDelivery.Equals(input.OrderConfirmationMessageOverrideDelivery)) + ) && + ( + this.OrderConfirmationMessageOverridePickup == input.OrderConfirmationMessageOverridePickup || + (this.OrderConfirmationMessageOverridePickup != null && + this.OrderConfirmationMessageOverridePickup.Equals(input.OrderConfirmationMessageOverridePickup)) + ) && + ( + this.PrintoutLayoutType == input.PrintoutLayoutType || + (this.PrintoutLayoutType != null && + this.PrintoutLayoutType.Equals(input.PrintoutLayoutType)) + ) && + ( + this.StoreNotes == input.StoreNotes || + this.StoreNotes != null && + this.StoreNotes.SequenceEqual(input.StoreNotes) + ) && + ( + this.MicrosoftTimeZone == input.MicrosoftTimeZone || + (this.MicrosoftTimeZone != null && + this.MicrosoftTimeZone.Equals(input.MicrosoftTimeZone)) + ) && + ( + this.IanaTimeZone == input.IanaTimeZone || + (this.IanaTimeZone != null && + this.IanaTimeZone.Equals(input.IanaTimeZone)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.PreOrderDeliveryEnabled == input.PreOrderDeliveryEnabled || + (this.PreOrderDeliveryEnabled != null && + this.PreOrderDeliveryEnabled.Equals(input.PreOrderDeliveryEnabled)) + ) && + ( + this.PreOrderPickupEnabled == input.PreOrderPickupEnabled || + (this.PreOrderPickupEnabled != null && + this.PreOrderPickupEnabled.Equals(input.PreOrderPickupEnabled)) + ) && + ( + this.LogoUrl == input.LogoUrl || + (this.LogoUrl != null && + this.LogoUrl.Equals(input.LogoUrl)) + ) && + ( + this.FraudPreventionStrategy == input.FraudPreventionStrategy || + (this.FraudPreventionStrategy != null && + this.FraudPreventionStrategy.Equals(input.FraudPreventionStrategy)) + ) && + ( + this.AppIds == input.AppIds || + this.AppIds != null && + this.AppIds.SequenceEqual(input.AppIds) + ) && + ( + this.PropertyId == input.PropertyId || + (this.PropertyId != null && + this.PropertyId.Equals(input.PropertyId)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.AlwaysAppearOpen == input.AlwaysAppearOpen || + (this.AlwaysAppearOpen != null && + this.AlwaysAppearOpen.Equals(input.AlwaysAppearOpen)) + ) && + ( + this.PreOrderEnabled == input.PreOrderEnabled || + (this.PreOrderEnabled != null && + this.PreOrderEnabled.Equals(input.PreOrderEnabled)) + ) && + ( + this.TakeOutEnabled == input.TakeOutEnabled || + (this.TakeOutEnabled != null && + this.TakeOutEnabled.Equals(input.TakeOutEnabled)) + ) && + ( + this.TableServiceEnabled == input.TableServiceEnabled || + (this.TableServiceEnabled != null && + this.TableServiceEnabled.Equals(input.TableServiceEnabled)) + ) && + ( + this.DineInEnabled == input.DineInEnabled || + (this.DineInEnabled != null && + this.DineInEnabled.Equals(input.DineInEnabled)) + ) && + ( + this.AllowPreOrdersAndTableService == input.AllowPreOrdersAndTableService || + (this.AllowPreOrdersAndTableService != null && + this.AllowPreOrdersAndTableService.Equals(input.AllowPreOrdersAndTableService)) + ) && + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.DeliveryEnabled == input.DeliveryEnabled || + (this.DeliveryEnabled != null && + this.DeliveryEnabled.Equals(input.DeliveryEnabled)) + ) && + ( + this.CardOrderDeliveryEnabled == input.CardOrderDeliveryEnabled || + (this.CardOrderDeliveryEnabled != null && + this.CardOrderDeliveryEnabled.Equals(input.CardOrderDeliveryEnabled)) + ) && + ( + this.CashOrdersDeliveryEnabled == input.CashOrdersDeliveryEnabled || + (this.CashOrdersDeliveryEnabled != null && + this.CashOrdersDeliveryEnabled.Equals(input.CashOrdersDeliveryEnabled)) + ) && + ( + this.CardOrdersPickupEnabled == input.CardOrdersPickupEnabled || + (this.CardOrdersPickupEnabled != null && + this.CardOrdersPickupEnabled.Equals(input.CardOrdersPickupEnabled)) + ) && + ( + this.CashOrdersPickupEnabled == input.CashOrdersPickupEnabled || + (this.CashOrdersPickupEnabled != null && + this.CashOrdersPickupEnabled.Equals(input.CashOrdersPickupEnabled)) + ) && + ( + this.TipsEnabled == input.TipsEnabled || + (this.TipsEnabled != null && + this.TipsEnabled.Equals(input.TipsEnabled)) + ) && + ( + this.AutomaticallyAcceptOrders == input.AutomaticallyAcceptOrders || + (this.AutomaticallyAcceptOrders != null && + this.AutomaticallyAcceptOrders.Equals(input.AutomaticallyAcceptOrders)) + ) && + ( + this.OpenForDelivery == input.OpenForDelivery || + (this.OpenForDelivery != null && + this.OpenForDelivery.Equals(input.OpenForDelivery)) + ) && + ( + this.OpenForPickup == input.OpenForPickup || + (this.OpenForPickup != null && + this.OpenForPickup.Equals(input.OpenForPickup)) + ) && + ( + this.MinimumPickupOrderAmount == input.MinimumPickupOrderAmount || + (this.MinimumPickupOrderAmount != null && + this.MinimumPickupOrderAmount.Equals(input.MinimumPickupOrderAmount)) + ) && + ( + this.RequireCustomerNameForPickup == input.RequireCustomerNameForPickup || + (this.RequireCustomerNameForPickup != null && + this.RequireCustomerNameForPickup.Equals(input.RequireCustomerNameForPickup)) + ) && + ( + this.GdprCustomerPhoneNumbers == input.GdprCustomerPhoneNumbers || + (this.GdprCustomerPhoneNumbers != null && + this.GdprCustomerPhoneNumbers.Equals(input.GdprCustomerPhoneNumbers)) + ) && + ( + this.RequireCustomerNameForDelivery == input.RequireCustomerNameForDelivery || + (this.RequireCustomerNameForDelivery != null && + this.RequireCustomerNameForDelivery.Equals(input.RequireCustomerNameForDelivery)) + ) && + ( + this.AllowChefNotes == input.AllowChefNotes || + (this.AllowChefNotes != null && + this.AllowChefNotes.Equals(input.AllowChefNotes)) + ) && + ( + this.EtaInPickupConfirmationSmsEnabled == input.EtaInPickupConfirmationSmsEnabled || + (this.EtaInPickupConfirmationSmsEnabled != null && + this.EtaInPickupConfirmationSmsEnabled.Equals(input.EtaInPickupConfirmationSmsEnabled)) + ) && + ( + this.EtaInDeliveryConfirmationSmsEnabled == input.EtaInDeliveryConfirmationSmsEnabled || + (this.EtaInDeliveryConfirmationSmsEnabled != null && + this.EtaInDeliveryConfirmationSmsEnabled.Equals(input.EtaInDeliveryConfirmationSmsEnabled)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.StaffLanguage == input.StaffLanguage || + (this.StaffLanguage != null && + this.StaffLanguage.Equals(input.StaffLanguage)) + ) && + ( + this.SalesChannelTypes == input.SalesChannelTypes || + this.SalesChannelTypes != null && + this.SalesChannelTypes.SequenceEqual(input.SalesChannelTypes) + ) && + ( + this.InheritanceConfigTypes == input.InheritanceConfigTypes || + this.InheritanceConfigTypes != null && + this.InheritanceConfigTypes.SequenceEqual(input.InheritanceConfigTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.DeliveryZones != null) + hashCode = hashCode * 59 + this.DeliveryZones.GetHashCode(); + if (this.ApmPhoneNumber != null) + hashCode = hashCode * 59 + this.ApmPhoneNumber.GetHashCode(); + if (this.PickupHours != null) + hashCode = hashCode * 59 + this.PickupHours.GetHashCode(); + if (this.DeliveryHours != null) + hashCode = hashCode * 59 + this.DeliveryHours.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.OrderConfirmationMessageOverrideDelivery != null) + hashCode = hashCode * 59 + this.OrderConfirmationMessageOverrideDelivery.GetHashCode(); + if (this.OrderConfirmationMessageOverridePickup != null) + hashCode = hashCode * 59 + this.OrderConfirmationMessageOverridePickup.GetHashCode(); + if (this.PrintoutLayoutType != null) + hashCode = hashCode * 59 + this.PrintoutLayoutType.GetHashCode(); + if (this.StoreNotes != null) + hashCode = hashCode * 59 + this.StoreNotes.GetHashCode(); + if (this.MicrosoftTimeZone != null) + hashCode = hashCode * 59 + this.MicrosoftTimeZone.GetHashCode(); + if (this.IanaTimeZone != null) + hashCode = hashCode * 59 + this.IanaTimeZone.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.PreOrderDeliveryEnabled != null) + hashCode = hashCode * 59 + this.PreOrderDeliveryEnabled.GetHashCode(); + if (this.PreOrderPickupEnabled != null) + hashCode = hashCode * 59 + this.PreOrderPickupEnabled.GetHashCode(); + if (this.LogoUrl != null) + hashCode = hashCode * 59 + this.LogoUrl.GetHashCode(); + if (this.FraudPreventionStrategy != null) + hashCode = hashCode * 59 + this.FraudPreventionStrategy.GetHashCode(); + if (this.AppIds != null) + hashCode = hashCode * 59 + this.AppIds.GetHashCode(); + if (this.PropertyId != null) + hashCode = hashCode * 59 + this.PropertyId.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.AlwaysAppearOpen != null) + hashCode = hashCode * 59 + this.AlwaysAppearOpen.GetHashCode(); + if (this.PreOrderEnabled != null) + hashCode = hashCode * 59 + this.PreOrderEnabled.GetHashCode(); + if (this.TakeOutEnabled != null) + hashCode = hashCode * 59 + this.TakeOutEnabled.GetHashCode(); + if (this.TableServiceEnabled != null) + hashCode = hashCode * 59 + this.TableServiceEnabled.GetHashCode(); + if (this.DineInEnabled != null) + hashCode = hashCode * 59 + this.DineInEnabled.GetHashCode(); + if (this.AllowPreOrdersAndTableService != null) + hashCode = hashCode * 59 + this.AllowPreOrdersAndTableService.GetHashCode(); + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.DeliveryEnabled != null) + hashCode = hashCode * 59 + this.DeliveryEnabled.GetHashCode(); + if (this.CardOrderDeliveryEnabled != null) + hashCode = hashCode * 59 + this.CardOrderDeliveryEnabled.GetHashCode(); + if (this.CashOrdersDeliveryEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersDeliveryEnabled.GetHashCode(); + if (this.CardOrdersPickupEnabled != null) + hashCode = hashCode * 59 + this.CardOrdersPickupEnabled.GetHashCode(); + if (this.CashOrdersPickupEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersPickupEnabled.GetHashCode(); + if (this.TipsEnabled != null) + hashCode = hashCode * 59 + this.TipsEnabled.GetHashCode(); + if (this.AutomaticallyAcceptOrders != null) + hashCode = hashCode * 59 + this.AutomaticallyAcceptOrders.GetHashCode(); + if (this.OpenForDelivery != null) + hashCode = hashCode * 59 + this.OpenForDelivery.GetHashCode(); + if (this.OpenForPickup != null) + hashCode = hashCode * 59 + this.OpenForPickup.GetHashCode(); + if (this.MinimumPickupOrderAmount != null) + hashCode = hashCode * 59 + this.MinimumPickupOrderAmount.GetHashCode(); + if (this.RequireCustomerNameForPickup != null) + hashCode = hashCode * 59 + this.RequireCustomerNameForPickup.GetHashCode(); + if (this.GdprCustomerPhoneNumbers != null) + hashCode = hashCode * 59 + this.GdprCustomerPhoneNumbers.GetHashCode(); + if (this.RequireCustomerNameForDelivery != null) + hashCode = hashCode * 59 + this.RequireCustomerNameForDelivery.GetHashCode(); + if (this.AllowChefNotes != null) + hashCode = hashCode * 59 + this.AllowChefNotes.GetHashCode(); + if (this.EtaInPickupConfirmationSmsEnabled != null) + hashCode = hashCode * 59 + this.EtaInPickupConfirmationSmsEnabled.GetHashCode(); + if (this.EtaInDeliveryConfirmationSmsEnabled != null) + hashCode = hashCode * 59 + this.EtaInDeliveryConfirmationSmsEnabled.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.EmailAddress != null) + hashCode = hashCode * 59 + this.EmailAddress.GetHashCode(); + if (this.StaffLanguage != null) + hashCode = hashCode * 59 + this.StaffLanguage.GetHashCode(); + if (this.SalesChannelTypes != null) + hashCode = hashCode * 59 + this.SalesChannelTypes.GetHashCode(); + if (this.InheritanceConfigTypes != null) + hashCode = hashCode * 59 + this.InheritanceConfigTypes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreAddress.cs b/src/Flipdish/Model/StoreAddress.cs new file mode 100644 index 00000000..3ea6e662 --- /dev/null +++ b/src/Flipdish/Model/StoreAddress.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store address + /// + [DataContract] + public partial class StoreAddress : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Address identifier. + /// Coordinate. + /// Address line 1. + /// Postcode. + /// City. + /// Country code (ISO-alpha2). + /// Display for customer. + /// Dyanmic field/value pairs, defined by the form assigned to the given country code.. + /// Single line display i18n, may be empty for not supported countries. + /// Two line display i18n, may be empty for not supported countries. + public StoreAddress(int? addressId = default(int?), Coordinates coordinates = default(Coordinates), string line1 = default(string), string postcode = default(string), string city = default(string), string countryCode = default(string), string displayForCustomer = default(string), Dictionary addressFields = default(Dictionary), string singleLineDisplay = default(string), List twoLinesDisplay = default(List)) + { + this.AddressId = addressId; + this.Coordinates = coordinates; + this.Line1 = line1; + this.Postcode = postcode; + this.City = city; + this.CountryCode = countryCode; + this.DisplayForCustomer = displayForCustomer; + this.AddressFields = addressFields; + this.SingleLineDisplay = singleLineDisplay; + this.TwoLinesDisplay = twoLinesDisplay; + } + + /// + /// Address identifier + /// + /// Address identifier + [DataMember(Name="AddressId", EmitDefaultValue=false)] + public int? AddressId { get; set; } + + /// + /// Coordinate + /// + /// Coordinate + [DataMember(Name="Coordinates", EmitDefaultValue=false)] + public Coordinates Coordinates { get; set; } + + /// + /// Address line 1 + /// + /// Address line 1 + [DataMember(Name="Line1", EmitDefaultValue=false)] + public string Line1 { get; set; } + + /// + /// Postcode + /// + /// Postcode + [DataMember(Name="Postcode", EmitDefaultValue=false)] + public string Postcode { get; set; } + + /// + /// City + /// + /// City + [DataMember(Name="City", EmitDefaultValue=false)] + public string City { get; set; } + + /// + /// Country code (ISO-alpha2) + /// + /// Country code (ISO-alpha2) + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Display for customer + /// + /// Display for customer + [DataMember(Name="DisplayForCustomer", EmitDefaultValue=false)] + public string DisplayForCustomer { get; set; } + + /// + /// Dyanmic field/value pairs, defined by the form assigned to the given country code. + /// + /// Dyanmic field/value pairs, defined by the form assigned to the given country code. + [DataMember(Name="AddressFields", EmitDefaultValue=false)] + public Dictionary AddressFields { get; set; } + + /// + /// Single line display i18n, may be empty for not supported countries + /// + /// Single line display i18n, may be empty for not supported countries + [DataMember(Name="SingleLineDisplay", EmitDefaultValue=false)] + public string SingleLineDisplay { get; set; } + + /// + /// Two line display i18n, may be empty for not supported countries + /// + /// Two line display i18n, may be empty for not supported countries + [DataMember(Name="TwoLinesDisplay", EmitDefaultValue=false)] + public List TwoLinesDisplay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreAddress {\n"); + sb.Append(" AddressId: ").Append(AddressId).Append("\n"); + sb.Append(" Coordinates: ").Append(Coordinates).Append("\n"); + sb.Append(" Line1: ").Append(Line1).Append("\n"); + sb.Append(" Postcode: ").Append(Postcode).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" DisplayForCustomer: ").Append(DisplayForCustomer).Append("\n"); + sb.Append(" AddressFields: ").Append(AddressFields).Append("\n"); + sb.Append(" SingleLineDisplay: ").Append(SingleLineDisplay).Append("\n"); + sb.Append(" TwoLinesDisplay: ").Append(TwoLinesDisplay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreAddress); + } + + /// + /// Returns true if StoreAddress instances are equal + /// + /// Instance of StoreAddress to be compared + /// Boolean + public bool Equals(StoreAddress input) + { + if (input == null) + return false; + + return + ( + this.AddressId == input.AddressId || + (this.AddressId != null && + this.AddressId.Equals(input.AddressId)) + ) && + ( + this.Coordinates == input.Coordinates || + (this.Coordinates != null && + this.Coordinates.Equals(input.Coordinates)) + ) && + ( + this.Line1 == input.Line1 || + (this.Line1 != null && + this.Line1.Equals(input.Line1)) + ) && + ( + this.Postcode == input.Postcode || + (this.Postcode != null && + this.Postcode.Equals(input.Postcode)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.DisplayForCustomer == input.DisplayForCustomer || + (this.DisplayForCustomer != null && + this.DisplayForCustomer.Equals(input.DisplayForCustomer)) + ) && + ( + this.AddressFields == input.AddressFields || + this.AddressFields != null && + this.AddressFields.SequenceEqual(input.AddressFields) + ) && + ( + this.SingleLineDisplay == input.SingleLineDisplay || + (this.SingleLineDisplay != null && + this.SingleLineDisplay.Equals(input.SingleLineDisplay)) + ) && + ( + this.TwoLinesDisplay == input.TwoLinesDisplay || + this.TwoLinesDisplay != null && + this.TwoLinesDisplay.SequenceEqual(input.TwoLinesDisplay) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AddressId != null) + hashCode = hashCode * 59 + this.AddressId.GetHashCode(); + if (this.Coordinates != null) + hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); + if (this.Line1 != null) + hashCode = hashCode * 59 + this.Line1.GetHashCode(); + if (this.Postcode != null) + hashCode = hashCode * 59 + this.Postcode.GetHashCode(); + if (this.City != null) + hashCode = hashCode * 59 + this.City.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.DisplayForCustomer != null) + hashCode = hashCode * 59 + this.DisplayForCustomer.GetHashCode(); + if (this.AddressFields != null) + hashCode = hashCode * 59 + this.AddressFields.GetHashCode(); + if (this.SingleLineDisplay != null) + hashCode = hashCode * 59 + this.SingleLineDisplay.GetHashCode(); + if (this.TwoLinesDisplay != null) + hashCode = hashCode * 59 + this.TwoLinesDisplay.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreAddressBase.cs b/src/Flipdish/Model/StoreAddressBase.cs new file mode 100644 index 00000000..24e8bc92 --- /dev/null +++ b/src/Flipdish/Model/StoreAddressBase.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store address base + /// + [DataContract] + public partial class StoreAddressBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Address line 1. + /// Postcode. + /// City. + /// Country code (ISO-alpha2). + /// Display for customer. + /// Dyanmic field/value pairs, defined by the form assigned to the given country code.. + /// Single line display i18n, may be empty for not supported countries. + /// Two line display i18n, may be empty for not supported countries. + public StoreAddressBase(string line1 = default(string), string postcode = default(string), string city = default(string), string countryCode = default(string), string displayForCustomer = default(string), Dictionary addressFields = default(Dictionary), string singleLineDisplay = default(string), List twoLinesDisplay = default(List)) + { + this.Line1 = line1; + this.Postcode = postcode; + this.City = city; + this.CountryCode = countryCode; + this.DisplayForCustomer = displayForCustomer; + this.AddressFields = addressFields; + this.SingleLineDisplay = singleLineDisplay; + this.TwoLinesDisplay = twoLinesDisplay; + } + + /// + /// Address line 1 + /// + /// Address line 1 + [DataMember(Name="Line1", EmitDefaultValue=false)] + public string Line1 { get; set; } + + /// + /// Postcode + /// + /// Postcode + [DataMember(Name="Postcode", EmitDefaultValue=false)] + public string Postcode { get; set; } + + /// + /// City + /// + /// City + [DataMember(Name="City", EmitDefaultValue=false)] + public string City { get; set; } + + /// + /// Country code (ISO-alpha2) + /// + /// Country code (ISO-alpha2) + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Display for customer + /// + /// Display for customer + [DataMember(Name="DisplayForCustomer", EmitDefaultValue=false)] + public string DisplayForCustomer { get; set; } + + /// + /// Dyanmic field/value pairs, defined by the form assigned to the given country code. + /// + /// Dyanmic field/value pairs, defined by the form assigned to the given country code. + [DataMember(Name="AddressFields", EmitDefaultValue=false)] + public Dictionary AddressFields { get; set; } + + /// + /// Single line display i18n, may be empty for not supported countries + /// + /// Single line display i18n, may be empty for not supported countries + [DataMember(Name="SingleLineDisplay", EmitDefaultValue=false)] + public string SingleLineDisplay { get; set; } + + /// + /// Two line display i18n, may be empty for not supported countries + /// + /// Two line display i18n, may be empty for not supported countries + [DataMember(Name="TwoLinesDisplay", EmitDefaultValue=false)] + public List TwoLinesDisplay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreAddressBase {\n"); + sb.Append(" Line1: ").Append(Line1).Append("\n"); + sb.Append(" Postcode: ").Append(Postcode).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" DisplayForCustomer: ").Append(DisplayForCustomer).Append("\n"); + sb.Append(" AddressFields: ").Append(AddressFields).Append("\n"); + sb.Append(" SingleLineDisplay: ").Append(SingleLineDisplay).Append("\n"); + sb.Append(" TwoLinesDisplay: ").Append(TwoLinesDisplay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreAddressBase); + } + + /// + /// Returns true if StoreAddressBase instances are equal + /// + /// Instance of StoreAddressBase to be compared + /// Boolean + public bool Equals(StoreAddressBase input) + { + if (input == null) + return false; + + return + ( + this.Line1 == input.Line1 || + (this.Line1 != null && + this.Line1.Equals(input.Line1)) + ) && + ( + this.Postcode == input.Postcode || + (this.Postcode != null && + this.Postcode.Equals(input.Postcode)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.DisplayForCustomer == input.DisplayForCustomer || + (this.DisplayForCustomer != null && + this.DisplayForCustomer.Equals(input.DisplayForCustomer)) + ) && + ( + this.AddressFields == input.AddressFields || + this.AddressFields != null && + this.AddressFields.SequenceEqual(input.AddressFields) + ) && + ( + this.SingleLineDisplay == input.SingleLineDisplay || + (this.SingleLineDisplay != null && + this.SingleLineDisplay.Equals(input.SingleLineDisplay)) + ) && + ( + this.TwoLinesDisplay == input.TwoLinesDisplay || + this.TwoLinesDisplay != null && + this.TwoLinesDisplay.SequenceEqual(input.TwoLinesDisplay) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Line1 != null) + hashCode = hashCode * 59 + this.Line1.GetHashCode(); + if (this.Postcode != null) + hashCode = hashCode * 59 + this.Postcode.GetHashCode(); + if (this.City != null) + hashCode = hashCode * 59 + this.City.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.DisplayForCustomer != null) + hashCode = hashCode * 59 + this.DisplayForCustomer.GetHashCode(); + if (this.AddressFields != null) + hashCode = hashCode * 59 + this.AddressFields.GetHashCode(); + if (this.SingleLineDisplay != null) + hashCode = hashCode * 59 + this.SingleLineDisplay.GetHashCode(); + if (this.TwoLinesDisplay != null) + hashCode = hashCode * 59 + this.TwoLinesDisplay.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreAddressForm.cs b/src/Flipdish/Model/StoreAddressForm.cs new file mode 100644 index 00000000..88c21660 --- /dev/null +++ b/src/Flipdish/Model/StoreAddressForm.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Address form payload. + /// + [DataContract] + public partial class StoreAddressForm : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StoreAddressForm() { } + /// + /// Initializes a new instance of the class. + /// + /// The dynamic fields generated by the address form. (required). + /// ISO 2 letters code for the country, should be the same as the form that generates the fields. (required). + public StoreAddressForm(Dictionary addressFields = default(Dictionary), string countryCode = default(string)) + { + // to ensure "addressFields" is required (not null) + if (addressFields == null) + { + throw new InvalidDataException("addressFields is a required property for StoreAddressForm and cannot be null"); + } + else + { + this.AddressFields = addressFields; + } + // to ensure "countryCode" is required (not null) + if (countryCode == null) + { + throw new InvalidDataException("countryCode is a required property for StoreAddressForm and cannot be null"); + } + else + { + this.CountryCode = countryCode; + } + } + + /// + /// The dynamic fields generated by the address form. + /// + /// The dynamic fields generated by the address form. + [DataMember(Name="AddressFields", EmitDefaultValue=false)] + public Dictionary AddressFields { get; set; } + + /// + /// ISO 2 letters code for the country, should be the same as the form that generates the fields. + /// + /// ISO 2 letters code for the country, should be the same as the form that generates the fields. + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreAddressForm {\n"); + sb.Append(" AddressFields: ").Append(AddressFields).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreAddressForm); + } + + /// + /// Returns true if StoreAddressForm instances are equal + /// + /// Instance of StoreAddressForm to be compared + /// Boolean + public bool Equals(StoreAddressForm input) + { + if (input == null) + return false; + + return + ( + this.AddressFields == input.AddressFields || + this.AddressFields != null && + this.AddressFields.SequenceEqual(input.AddressFields) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AddressFields != null) + hashCode = hashCode * 59 + this.AddressFields.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreAddressUpdatedEvent.cs b/src/Flipdish/Model/StoreAddressUpdatedEvent.cs new file mode 100644 index 00000000..aacddc35 --- /dev/null +++ b/src/Flipdish/Model/StoreAddressUpdatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Address Updated Event + /// + [DataContract] + public partial class StoreAddressUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Store Id. + /// Store group Id. + /// User which updated this store address. + /// Description. + /// Updated store address. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreAddressUpdatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreAddress storeAddress = default(StoreAddress), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.StoreAddress = storeAddress; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which updated this store address + /// + /// User which updated this store address + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated store address + /// + /// Updated store address + [DataMember(Name="StoreAddress", EmitDefaultValue=false)] + public StoreAddress StoreAddress { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreAddressUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreAddress: ").Append(StoreAddress).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreAddressUpdatedEvent); + } + + /// + /// Returns true if StoreAddressUpdatedEvent instances are equal + /// + /// Instance of StoreAddressUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreAddressUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreAddress == input.StoreAddress || + (this.StoreAddress != null && + this.StoreAddress.Equals(input.StoreAddress)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreAddress != null) + hashCode = hashCode * 59 + this.StoreAddress.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreArchivedEvent.cs b/src/Flipdish/Model/StoreArchivedEvent.cs new file mode 100644 index 00000000..3962f3ac --- /dev/null +++ b/src/Flipdish/Model/StoreArchivedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Archived Event + /// + [DataContract] + public partial class StoreArchivedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which archived this store. + /// Description. + /// Archived Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreArchivedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which archived this store + /// + /// User which archived this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Archived Store + /// + /// Archived Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreArchivedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreArchivedEvent); + } + + /// + /// Returns true if StoreArchivedEvent instances are equal + /// + /// Instance of StoreArchivedEvent to be compared + /// Boolean + public bool Equals(StoreArchivedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreBase.cs b/src/Flipdish/Model/StoreBase.cs new file mode 100644 index 00000000..b88923dd --- /dev/null +++ b/src/Flipdish/Model/StoreBase.cs @@ -0,0 +1,683 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Base + /// + [DataContract] + public partial class StoreBase : IEquatable + { + /// + /// Defines SalesChannelTypes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SalesChannelTypesEnum + { + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 1, + + /// + /// Enum App for value: App + /// + [EnumMember(Value = "App")] + App = 2, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 3, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 4, + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 5, + + /// + /// Enum PhoneAgent for value: PhoneAgent + /// + [EnumMember(Value = "PhoneAgent")] + PhoneAgent = 6 + } + + + /// + /// Sales Channel Types + /// + /// Sales Channel Types + [DataMember(Name="SalesChannelTypes", EmitDefaultValue=false)] + public List SalesChannelTypes { get; set; } + /// + /// Defines InheritanceConfigTypes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum InheritanceConfigTypesEnum + { + + /// + /// Enum CollectionSettings for value: CollectionSettings + /// + [EnumMember(Value = "CollectionSettings")] + CollectionSettings = 1 + } + + + /// + /// Inheritance Config Types + /// + /// Inheritance Config Types + [DataMember(Name="InheritanceConfigTypes", EmitDefaultValue=false)] + public List InheritanceConfigTypes { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Phone number. + /// True if the store always appears open. + /// True if the store accepts pre-orders. + /// True if the store accepts take-out orders. + /// True if the store has table service. + /// True if the store accepts dine-in orders. + /// True if both pre-orders and talbe service can be enabled. + /// True if the store accepts pickup orders. + /// True if the store accepts delivery orders. + /// True if the store accepts card payment for delivery orders. + /// True if the store accepts cash payment for delivery orders. + /// True if the store accepts card payment for pickup orders. + /// True if the store accepts cash payment for pickup orders. + /// True if the store accepts tips. + /// True if the stores orders are automatically accepted in Flipdish. + /// True if the store is open for delivery. + /// True if the store is open for pickup. + /// Minimum pickup order amount. + /// True if customer name required for pickup orders. + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed.. + /// True if customer name required for delivery orders. + /// True if the customer is allowed enter custom notes with their orders. + /// True if order confirmation sms includes estimated time when order will be ready for collection. + /// True if order confirmation sms includes estimated time when order will delivered. + /// Is the Store Archived. + /// Is the Store Published. + /// Name. + /// Email address (visible to customers). + /// Staff Language (used for communication with the staff) Emails, Printouts etc. + /// Sales Channel Types. + /// Inheritance Config Types. + public StoreBase(string phoneNumber = default(string), bool? alwaysAppearOpen = default(bool?), bool? preOrderEnabled = default(bool?), bool? takeOutEnabled = default(bool?), bool? tableServiceEnabled = default(bool?), bool? dineInEnabled = default(bool?), bool? allowPreOrdersAndTableService = default(bool?), bool? pickupEnabled = default(bool?), bool? deliveryEnabled = default(bool?), bool? cardOrderDeliveryEnabled = default(bool?), bool? cashOrdersDeliveryEnabled = default(bool?), bool? cardOrdersPickupEnabled = default(bool?), bool? cashOrdersPickupEnabled = default(bool?), bool? tipsEnabled = default(bool?), bool? automaticallyAcceptOrders = default(bool?), bool? openForDelivery = default(bool?), bool? openForPickup = default(bool?), double? minimumPickupOrderAmount = default(double?), bool? requireCustomerNameForPickup = default(bool?), bool? gdprCustomerPhoneNumbers = default(bool?), bool? requireCustomerNameForDelivery = default(bool?), bool? allowChefNotes = default(bool?), bool? etaInPickupConfirmationSmsEnabled = default(bool?), bool? etaInDeliveryConfirmationSmsEnabled = default(bool?), bool? isArchived = default(bool?), bool? isPublished = default(bool?), string name = default(string), string emailAddress = default(string), string staffLanguage = default(string), List salesChannelTypes = default(List), List inheritanceConfigTypes = default(List)) + { + this.PhoneNumber = phoneNumber; + this.AlwaysAppearOpen = alwaysAppearOpen; + this.PreOrderEnabled = preOrderEnabled; + this.TakeOutEnabled = takeOutEnabled; + this.TableServiceEnabled = tableServiceEnabled; + this.DineInEnabled = dineInEnabled; + this.AllowPreOrdersAndTableService = allowPreOrdersAndTableService; + this.PickupEnabled = pickupEnabled; + this.DeliveryEnabled = deliveryEnabled; + this.CardOrderDeliveryEnabled = cardOrderDeliveryEnabled; + this.CashOrdersDeliveryEnabled = cashOrdersDeliveryEnabled; + this.CardOrdersPickupEnabled = cardOrdersPickupEnabled; + this.CashOrdersPickupEnabled = cashOrdersPickupEnabled; + this.TipsEnabled = tipsEnabled; + this.AutomaticallyAcceptOrders = automaticallyAcceptOrders; + this.OpenForDelivery = openForDelivery; + this.OpenForPickup = openForPickup; + this.MinimumPickupOrderAmount = minimumPickupOrderAmount; + this.RequireCustomerNameForPickup = requireCustomerNameForPickup; + this.GdprCustomerPhoneNumbers = gdprCustomerPhoneNumbers; + this.RequireCustomerNameForDelivery = requireCustomerNameForDelivery; + this.AllowChefNotes = allowChefNotes; + this.EtaInPickupConfirmationSmsEnabled = etaInPickupConfirmationSmsEnabled; + this.EtaInDeliveryConfirmationSmsEnabled = etaInDeliveryConfirmationSmsEnabled; + this.IsArchived = isArchived; + this.IsPublished = isPublished; + this.Name = name; + this.EmailAddress = emailAddress; + this.StaffLanguage = staffLanguage; + this.SalesChannelTypes = salesChannelTypes; + this.InheritanceConfigTypes = inheritanceConfigTypes; + } + + /// + /// Phone number + /// + /// Phone number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// True if the store always appears open + /// + /// True if the store always appears open + [DataMember(Name="AlwaysAppearOpen", EmitDefaultValue=false)] + public bool? AlwaysAppearOpen { get; set; } + + /// + /// True if the store accepts pre-orders + /// + /// True if the store accepts pre-orders + [DataMember(Name="PreOrderEnabled", EmitDefaultValue=false)] + public bool? PreOrderEnabled { get; set; } + + /// + /// True if the store accepts take-out orders + /// + /// True if the store accepts take-out orders + [DataMember(Name="TakeOutEnabled", EmitDefaultValue=false)] + public bool? TakeOutEnabled { get; set; } + + /// + /// True if the store has table service + /// + /// True if the store has table service + [DataMember(Name="TableServiceEnabled", EmitDefaultValue=false)] + public bool? TableServiceEnabled { get; set; } + + /// + /// True if the store accepts dine-in orders + /// + /// True if the store accepts dine-in orders + [DataMember(Name="DineInEnabled", EmitDefaultValue=false)] + public bool? DineInEnabled { get; set; } + + /// + /// True if both pre-orders and talbe service can be enabled + /// + /// True if both pre-orders and talbe service can be enabled + [DataMember(Name="AllowPreOrdersAndTableService", EmitDefaultValue=false)] + public bool? AllowPreOrdersAndTableService { get; set; } + + /// + /// True if the store accepts pickup orders + /// + /// True if the store accepts pickup orders + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// True if the store accepts delivery orders + /// + /// True if the store accepts delivery orders + [DataMember(Name="DeliveryEnabled", EmitDefaultValue=false)] + public bool? DeliveryEnabled { get; set; } + + /// + /// True if the store accepts card payment for delivery orders + /// + /// True if the store accepts card payment for delivery orders + [DataMember(Name="CardOrderDeliveryEnabled", EmitDefaultValue=false)] + public bool? CardOrderDeliveryEnabled { get; set; } + + /// + /// True if the store accepts cash payment for delivery orders + /// + /// True if the store accepts cash payment for delivery orders + [DataMember(Name="CashOrdersDeliveryEnabled", EmitDefaultValue=false)] + public bool? CashOrdersDeliveryEnabled { get; set; } + + /// + /// True if the store accepts card payment for pickup orders + /// + /// True if the store accepts card payment for pickup orders + [DataMember(Name="CardOrdersPickupEnabled", EmitDefaultValue=false)] + public bool? CardOrdersPickupEnabled { get; set; } + + /// + /// True if the store accepts cash payment for pickup orders + /// + /// True if the store accepts cash payment for pickup orders + [DataMember(Name="CashOrdersPickupEnabled", EmitDefaultValue=false)] + public bool? CashOrdersPickupEnabled { get; set; } + + /// + /// True if the store accepts tips + /// + /// True if the store accepts tips + [DataMember(Name="TipsEnabled", EmitDefaultValue=false)] + public bool? TipsEnabled { get; set; } + + /// + /// True if the stores orders are automatically accepted in Flipdish + /// + /// True if the stores orders are automatically accepted in Flipdish + [DataMember(Name="AutomaticallyAcceptOrders", EmitDefaultValue=false)] + public bool? AutomaticallyAcceptOrders { get; set; } + + /// + /// True if the store is open for delivery + /// + /// True if the store is open for delivery + [DataMember(Name="OpenForDelivery", EmitDefaultValue=false)] + public bool? OpenForDelivery { get; set; } + + /// + /// True if the store is open for pickup + /// + /// True if the store is open for pickup + [DataMember(Name="OpenForPickup", EmitDefaultValue=false)] + public bool? OpenForPickup { get; set; } + + /// + /// Minimum pickup order amount + /// + /// Minimum pickup order amount + [DataMember(Name="MinimumPickupOrderAmount", EmitDefaultValue=false)] + public double? MinimumPickupOrderAmount { get; set; } + + /// + /// True if customer name required for pickup orders + /// + /// True if customer name required for pickup orders + [DataMember(Name="RequireCustomerNameForPickup", EmitDefaultValue=false)] + public bool? RequireCustomerNameForPickup { get; set; } + + /// + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + /// + /// Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + [DataMember(Name="GdprCustomerPhoneNumbers", EmitDefaultValue=false)] + public bool? GdprCustomerPhoneNumbers { get; set; } + + /// + /// True if customer name required for delivery orders + /// + /// True if customer name required for delivery orders + [DataMember(Name="RequireCustomerNameForDelivery", EmitDefaultValue=false)] + public bool? RequireCustomerNameForDelivery { get; set; } + + /// + /// True if the customer is allowed enter custom notes with their orders + /// + /// True if the customer is allowed enter custom notes with their orders + [DataMember(Name="AllowChefNotes", EmitDefaultValue=false)] + public bool? AllowChefNotes { get; set; } + + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + [DataMember(Name="EtaInPickupConfirmationSmsEnabled", EmitDefaultValue=false)] + public bool? EtaInPickupConfirmationSmsEnabled { get; set; } + + /// + /// True if order confirmation sms includes estimated time when order will delivered + /// + /// True if order confirmation sms includes estimated time when order will delivered + [DataMember(Name="EtaInDeliveryConfirmationSmsEnabled", EmitDefaultValue=false)] + public bool? EtaInDeliveryConfirmationSmsEnabled { get; set; } + + /// + /// Is the Store Archived + /// + /// Is the Store Archived + [DataMember(Name="IsArchived", EmitDefaultValue=false)] + public bool? IsArchived { get; set; } + + /// + /// Is the Store Published + /// + /// Is the Store Published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Email address (visible to customers) + /// + /// Email address (visible to customers) + [DataMember(Name="EmailAddress", EmitDefaultValue=false)] + public string EmailAddress { get; set; } + + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + [DataMember(Name="StaffLanguage", EmitDefaultValue=false)] + public string StaffLanguage { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreBase {\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" AlwaysAppearOpen: ").Append(AlwaysAppearOpen).Append("\n"); + sb.Append(" PreOrderEnabled: ").Append(PreOrderEnabled).Append("\n"); + sb.Append(" TakeOutEnabled: ").Append(TakeOutEnabled).Append("\n"); + sb.Append(" TableServiceEnabled: ").Append(TableServiceEnabled).Append("\n"); + sb.Append(" DineInEnabled: ").Append(DineInEnabled).Append("\n"); + sb.Append(" AllowPreOrdersAndTableService: ").Append(AllowPreOrdersAndTableService).Append("\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" DeliveryEnabled: ").Append(DeliveryEnabled).Append("\n"); + sb.Append(" CardOrderDeliveryEnabled: ").Append(CardOrderDeliveryEnabled).Append("\n"); + sb.Append(" CashOrdersDeliveryEnabled: ").Append(CashOrdersDeliveryEnabled).Append("\n"); + sb.Append(" CardOrdersPickupEnabled: ").Append(CardOrdersPickupEnabled).Append("\n"); + sb.Append(" CashOrdersPickupEnabled: ").Append(CashOrdersPickupEnabled).Append("\n"); + sb.Append(" TipsEnabled: ").Append(TipsEnabled).Append("\n"); + sb.Append(" AutomaticallyAcceptOrders: ").Append(AutomaticallyAcceptOrders).Append("\n"); + sb.Append(" OpenForDelivery: ").Append(OpenForDelivery).Append("\n"); + sb.Append(" OpenForPickup: ").Append(OpenForPickup).Append("\n"); + sb.Append(" MinimumPickupOrderAmount: ").Append(MinimumPickupOrderAmount).Append("\n"); + sb.Append(" RequireCustomerNameForPickup: ").Append(RequireCustomerNameForPickup).Append("\n"); + sb.Append(" GdprCustomerPhoneNumbers: ").Append(GdprCustomerPhoneNumbers).Append("\n"); + sb.Append(" RequireCustomerNameForDelivery: ").Append(RequireCustomerNameForDelivery).Append("\n"); + sb.Append(" AllowChefNotes: ").Append(AllowChefNotes).Append("\n"); + sb.Append(" EtaInPickupConfirmationSmsEnabled: ").Append(EtaInPickupConfirmationSmsEnabled).Append("\n"); + sb.Append(" EtaInDeliveryConfirmationSmsEnabled: ").Append(EtaInDeliveryConfirmationSmsEnabled).Append("\n"); + sb.Append(" IsArchived: ").Append(IsArchived).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" StaffLanguage: ").Append(StaffLanguage).Append("\n"); + sb.Append(" SalesChannelTypes: ").Append(SalesChannelTypes).Append("\n"); + sb.Append(" InheritanceConfigTypes: ").Append(InheritanceConfigTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreBase); + } + + /// + /// Returns true if StoreBase instances are equal + /// + /// Instance of StoreBase to be compared + /// Boolean + public bool Equals(StoreBase input) + { + if (input == null) + return false; + + return + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.AlwaysAppearOpen == input.AlwaysAppearOpen || + (this.AlwaysAppearOpen != null && + this.AlwaysAppearOpen.Equals(input.AlwaysAppearOpen)) + ) && + ( + this.PreOrderEnabled == input.PreOrderEnabled || + (this.PreOrderEnabled != null && + this.PreOrderEnabled.Equals(input.PreOrderEnabled)) + ) && + ( + this.TakeOutEnabled == input.TakeOutEnabled || + (this.TakeOutEnabled != null && + this.TakeOutEnabled.Equals(input.TakeOutEnabled)) + ) && + ( + this.TableServiceEnabled == input.TableServiceEnabled || + (this.TableServiceEnabled != null && + this.TableServiceEnabled.Equals(input.TableServiceEnabled)) + ) && + ( + this.DineInEnabled == input.DineInEnabled || + (this.DineInEnabled != null && + this.DineInEnabled.Equals(input.DineInEnabled)) + ) && + ( + this.AllowPreOrdersAndTableService == input.AllowPreOrdersAndTableService || + (this.AllowPreOrdersAndTableService != null && + this.AllowPreOrdersAndTableService.Equals(input.AllowPreOrdersAndTableService)) + ) && + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.DeliveryEnabled == input.DeliveryEnabled || + (this.DeliveryEnabled != null && + this.DeliveryEnabled.Equals(input.DeliveryEnabled)) + ) && + ( + this.CardOrderDeliveryEnabled == input.CardOrderDeliveryEnabled || + (this.CardOrderDeliveryEnabled != null && + this.CardOrderDeliveryEnabled.Equals(input.CardOrderDeliveryEnabled)) + ) && + ( + this.CashOrdersDeliveryEnabled == input.CashOrdersDeliveryEnabled || + (this.CashOrdersDeliveryEnabled != null && + this.CashOrdersDeliveryEnabled.Equals(input.CashOrdersDeliveryEnabled)) + ) && + ( + this.CardOrdersPickupEnabled == input.CardOrdersPickupEnabled || + (this.CardOrdersPickupEnabled != null && + this.CardOrdersPickupEnabled.Equals(input.CardOrdersPickupEnabled)) + ) && + ( + this.CashOrdersPickupEnabled == input.CashOrdersPickupEnabled || + (this.CashOrdersPickupEnabled != null && + this.CashOrdersPickupEnabled.Equals(input.CashOrdersPickupEnabled)) + ) && + ( + this.TipsEnabled == input.TipsEnabled || + (this.TipsEnabled != null && + this.TipsEnabled.Equals(input.TipsEnabled)) + ) && + ( + this.AutomaticallyAcceptOrders == input.AutomaticallyAcceptOrders || + (this.AutomaticallyAcceptOrders != null && + this.AutomaticallyAcceptOrders.Equals(input.AutomaticallyAcceptOrders)) + ) && + ( + this.OpenForDelivery == input.OpenForDelivery || + (this.OpenForDelivery != null && + this.OpenForDelivery.Equals(input.OpenForDelivery)) + ) && + ( + this.OpenForPickup == input.OpenForPickup || + (this.OpenForPickup != null && + this.OpenForPickup.Equals(input.OpenForPickup)) + ) && + ( + this.MinimumPickupOrderAmount == input.MinimumPickupOrderAmount || + (this.MinimumPickupOrderAmount != null && + this.MinimumPickupOrderAmount.Equals(input.MinimumPickupOrderAmount)) + ) && + ( + this.RequireCustomerNameForPickup == input.RequireCustomerNameForPickup || + (this.RequireCustomerNameForPickup != null && + this.RequireCustomerNameForPickup.Equals(input.RequireCustomerNameForPickup)) + ) && + ( + this.GdprCustomerPhoneNumbers == input.GdprCustomerPhoneNumbers || + (this.GdprCustomerPhoneNumbers != null && + this.GdprCustomerPhoneNumbers.Equals(input.GdprCustomerPhoneNumbers)) + ) && + ( + this.RequireCustomerNameForDelivery == input.RequireCustomerNameForDelivery || + (this.RequireCustomerNameForDelivery != null && + this.RequireCustomerNameForDelivery.Equals(input.RequireCustomerNameForDelivery)) + ) && + ( + this.AllowChefNotes == input.AllowChefNotes || + (this.AllowChefNotes != null && + this.AllowChefNotes.Equals(input.AllowChefNotes)) + ) && + ( + this.EtaInPickupConfirmationSmsEnabled == input.EtaInPickupConfirmationSmsEnabled || + (this.EtaInPickupConfirmationSmsEnabled != null && + this.EtaInPickupConfirmationSmsEnabled.Equals(input.EtaInPickupConfirmationSmsEnabled)) + ) && + ( + this.EtaInDeliveryConfirmationSmsEnabled == input.EtaInDeliveryConfirmationSmsEnabled || + (this.EtaInDeliveryConfirmationSmsEnabled != null && + this.EtaInDeliveryConfirmationSmsEnabled.Equals(input.EtaInDeliveryConfirmationSmsEnabled)) + ) && + ( + this.IsArchived == input.IsArchived || + (this.IsArchived != null && + this.IsArchived.Equals(input.IsArchived)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.StaffLanguage == input.StaffLanguage || + (this.StaffLanguage != null && + this.StaffLanguage.Equals(input.StaffLanguage)) + ) && + ( + this.SalesChannelTypes == input.SalesChannelTypes || + this.SalesChannelTypes != null && + this.SalesChannelTypes.SequenceEqual(input.SalesChannelTypes) + ) && + ( + this.InheritanceConfigTypes == input.InheritanceConfigTypes || + this.InheritanceConfigTypes != null && + this.InheritanceConfigTypes.SequenceEqual(input.InheritanceConfigTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.AlwaysAppearOpen != null) + hashCode = hashCode * 59 + this.AlwaysAppearOpen.GetHashCode(); + if (this.PreOrderEnabled != null) + hashCode = hashCode * 59 + this.PreOrderEnabled.GetHashCode(); + if (this.TakeOutEnabled != null) + hashCode = hashCode * 59 + this.TakeOutEnabled.GetHashCode(); + if (this.TableServiceEnabled != null) + hashCode = hashCode * 59 + this.TableServiceEnabled.GetHashCode(); + if (this.DineInEnabled != null) + hashCode = hashCode * 59 + this.DineInEnabled.GetHashCode(); + if (this.AllowPreOrdersAndTableService != null) + hashCode = hashCode * 59 + this.AllowPreOrdersAndTableService.GetHashCode(); + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.DeliveryEnabled != null) + hashCode = hashCode * 59 + this.DeliveryEnabled.GetHashCode(); + if (this.CardOrderDeliveryEnabled != null) + hashCode = hashCode * 59 + this.CardOrderDeliveryEnabled.GetHashCode(); + if (this.CashOrdersDeliveryEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersDeliveryEnabled.GetHashCode(); + if (this.CardOrdersPickupEnabled != null) + hashCode = hashCode * 59 + this.CardOrdersPickupEnabled.GetHashCode(); + if (this.CashOrdersPickupEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersPickupEnabled.GetHashCode(); + if (this.TipsEnabled != null) + hashCode = hashCode * 59 + this.TipsEnabled.GetHashCode(); + if (this.AutomaticallyAcceptOrders != null) + hashCode = hashCode * 59 + this.AutomaticallyAcceptOrders.GetHashCode(); + if (this.OpenForDelivery != null) + hashCode = hashCode * 59 + this.OpenForDelivery.GetHashCode(); + if (this.OpenForPickup != null) + hashCode = hashCode * 59 + this.OpenForPickup.GetHashCode(); + if (this.MinimumPickupOrderAmount != null) + hashCode = hashCode * 59 + this.MinimumPickupOrderAmount.GetHashCode(); + if (this.RequireCustomerNameForPickup != null) + hashCode = hashCode * 59 + this.RequireCustomerNameForPickup.GetHashCode(); + if (this.GdprCustomerPhoneNumbers != null) + hashCode = hashCode * 59 + this.GdprCustomerPhoneNumbers.GetHashCode(); + if (this.RequireCustomerNameForDelivery != null) + hashCode = hashCode * 59 + this.RequireCustomerNameForDelivery.GetHashCode(); + if (this.AllowChefNotes != null) + hashCode = hashCode * 59 + this.AllowChefNotes.GetHashCode(); + if (this.EtaInPickupConfirmationSmsEnabled != null) + hashCode = hashCode * 59 + this.EtaInPickupConfirmationSmsEnabled.GetHashCode(); + if (this.EtaInDeliveryConfirmationSmsEnabled != null) + hashCode = hashCode * 59 + this.EtaInDeliveryConfirmationSmsEnabled.GetHashCode(); + if (this.IsArchived != null) + hashCode = hashCode * 59 + this.IsArchived.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.EmailAddress != null) + hashCode = hashCode * 59 + this.EmailAddress.GetHashCode(); + if (this.StaffLanguage != null) + hashCode = hashCode * 59 + this.StaffLanguage.GetHashCode(); + if (this.SalesChannelTypes != null) + hashCode = hashCode * 59 + this.SalesChannelTypes.GetHashCode(); + if (this.InheritanceConfigTypes != null) + hashCode = hashCode * 59 + this.InheritanceConfigTypes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreBusinessHoursOverrideCreatedEvent.cs b/src/Flipdish/Model/StoreBusinessHoursOverrideCreatedEvent.cs new file mode 100644 index 00000000..7a70634d --- /dev/null +++ b/src/Flipdish/Model/StoreBusinessHoursOverrideCreatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Business Hours Override Created + /// + [DataContract] + public partial class StoreBusinessHoursOverrideCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which deleted delivery zone for this store. + /// Description. + /// Business Hours Override. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreBusinessHoursOverrideCreatedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), BusinessHoursOverride businessHoursOverride = default(BusinessHoursOverride), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.BusinessHoursOverride = businessHoursOverride; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which deleted delivery zone for this store + /// + /// User which deleted delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Business Hours Override + /// + /// Business Hours Override + [DataMember(Name="BusinessHoursOverride", EmitDefaultValue=false)] + public BusinessHoursOverride BusinessHoursOverride { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreBusinessHoursOverrideCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" BusinessHoursOverride: ").Append(BusinessHoursOverride).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreBusinessHoursOverrideCreatedEvent); + } + + /// + /// Returns true if StoreBusinessHoursOverrideCreatedEvent instances are equal + /// + /// Instance of StoreBusinessHoursOverrideCreatedEvent to be compared + /// Boolean + public bool Equals(StoreBusinessHoursOverrideCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.BusinessHoursOverride == input.BusinessHoursOverride || + (this.BusinessHoursOverride != null && + this.BusinessHoursOverride.Equals(input.BusinessHoursOverride)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.BusinessHoursOverride != null) + hashCode = hashCode * 59 + this.BusinessHoursOverride.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreBusinessHoursOverrideDeletedEvent.cs b/src/Flipdish/Model/StoreBusinessHoursOverrideDeletedEvent.cs new file mode 100644 index 00000000..cc4fd572 --- /dev/null +++ b/src/Flipdish/Model/StoreBusinessHoursOverrideDeletedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Business Hours Override Deleted + /// + [DataContract] + public partial class StoreBusinessHoursOverrideDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which deleted delivery zone for this store. + /// Description. + /// Business Hours Override. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreBusinessHoursOverrideDeletedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), BusinessHoursOverride businessHoursOverride = default(BusinessHoursOverride), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.BusinessHoursOverride = businessHoursOverride; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which deleted delivery zone for this store + /// + /// User which deleted delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Business Hours Override + /// + /// Business Hours Override + [DataMember(Name="BusinessHoursOverride", EmitDefaultValue=false)] + public BusinessHoursOverride BusinessHoursOverride { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreBusinessHoursOverrideDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" BusinessHoursOverride: ").Append(BusinessHoursOverride).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreBusinessHoursOverrideDeletedEvent); + } + + /// + /// Returns true if StoreBusinessHoursOverrideDeletedEvent instances are equal + /// + /// Instance of StoreBusinessHoursOverrideDeletedEvent to be compared + /// Boolean + public bool Equals(StoreBusinessHoursOverrideDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.BusinessHoursOverride == input.BusinessHoursOverride || + (this.BusinessHoursOverride != null && + this.BusinessHoursOverride.Equals(input.BusinessHoursOverride)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.BusinessHoursOverride != null) + hashCode = hashCode * 59 + this.BusinessHoursOverride.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreCampaignStartTime.cs b/src/Flipdish/Model/StoreCampaignStartTime.cs new file mode 100644 index 00000000..acef2a56 --- /dev/null +++ b/src/Flipdish/Model/StoreCampaignStartTime.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store campaign start time + /// + [DataContract] + public partial class StoreCampaignStartTime : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store Id. + /// Campaign start time in Utc. + public StoreCampaignStartTime(int? storeId = default(int?), DateTime? tsStart = default(DateTime?)) + { + this.StoreId = storeId; + this.TsStart = tsStart; + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Campaign start time in Utc + /// + /// Campaign start time in Utc + [DataMember(Name="TsStart", EmitDefaultValue=false)] + public DateTime? TsStart { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreCampaignStartTime {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" TsStart: ").Append(TsStart).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreCampaignStartTime); + } + + /// + /// Returns true if StoreCampaignStartTime instances are equal + /// + /// Instance of StoreCampaignStartTime to be compared + /// Boolean + public bool Equals(StoreCampaignStartTime input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.TsStart == input.TsStart || + (this.TsStart != null && + this.TsStart.Equals(input.TsStart)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.TsStart != null) + hashCode = hashCode * 59 + this.TsStart.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreChannelAssignment.cs b/src/Flipdish/Model/StoreChannelAssignment.cs new file mode 100644 index 00000000..89e074e4 --- /dev/null +++ b/src/Flipdish/Model/StoreChannelAssignment.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a store that is assigned to a Sales Channel + /// + [DataContract] + public partial class StoreChannelAssignment : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Channel ID. + /// Store ID. + /// Store Name. + public StoreChannelAssignment(int? channelId = default(int?), int? storeId = default(int?), string storeName = default(string)) + { + this.ChannelId = channelId; + this.StoreId = storeId; + this.StoreName = storeName; + } + + /// + /// Channel ID + /// + /// Channel ID + [DataMember(Name="ChannelId", EmitDefaultValue=false)] + public int? ChannelId { get; set; } + + /// + /// Store ID + /// + /// Store ID + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store Name + /// + /// Store Name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreChannelAssignment {\n"); + sb.Append(" ChannelId: ").Append(ChannelId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreChannelAssignment); + } + + /// + /// Returns true if StoreChannelAssignment instances are equal + /// + /// Instance of StoreChannelAssignment to be compared + /// Boolean + public bool Equals(StoreChannelAssignment input) + { + if (input == null) + return false; + + return + ( + this.ChannelId == input.ChannelId || + (this.ChannelId != null && + this.ChannelId.Equals(input.ChannelId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChannelId != null) + hashCode = hashCode * 59 + this.ChannelId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreCloneSettings.cs b/src/Flipdish/Model/StoreCloneSettings.cs new file mode 100644 index 00000000..cbb9ffbd --- /dev/null +++ b/src/Flipdish/Model/StoreCloneSettings.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Settings for cloning a store + /// + [DataContract] + public partial class StoreCloneSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned. + public StoreCloneSettings(int? targetStoreGroupId = default(int?)) + { + this.TargetStoreGroupId = targetStoreGroupId; + } + + /// + /// If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned + /// + /// If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned + [DataMember(Name="TargetStoreGroupId", EmitDefaultValue=false)] + public int? TargetStoreGroupId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreCloneSettings {\n"); + sb.Append(" TargetStoreGroupId: ").Append(TargetStoreGroupId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreCloneSettings); + } + + /// + /// Returns true if StoreCloneSettings instances are equal + /// + /// Instance of StoreCloneSettings to be compared + /// Boolean + public bool Equals(StoreCloneSettings input) + { + if (input == null) + return false; + + return + ( + this.TargetStoreGroupId == input.TargetStoreGroupId || + (this.TargetStoreGroupId != null && + this.TargetStoreGroupId.Equals(input.TargetStoreGroupId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TargetStoreGroupId != null) + hashCode = hashCode * 59 + this.TargetStoreGroupId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreCollectionSettings.cs b/src/Flipdish/Model/StoreCollectionSettings.cs new file mode 100644 index 00000000..533c44b1 --- /dev/null +++ b/src/Flipdish/Model/StoreCollectionSettings.cs @@ -0,0 +1,251 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Collection Settings + /// + [DataContract] + public partial class StoreCollectionSettings : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StoreCollectionSettings() { } + /// + /// Initializes a new instance of the class. + /// + /// True if the store accepts pickup orders (required). + /// Minimum pickup order amount (required). + /// True if customer name required for pickup orders (required). + /// True if the store accepts cash payment for pickup orders (required). + /// Auto accept lead time for collection orders (required). + /// True if order confirmation sms includes estimated time when order will be ready for collection (required). + public StoreCollectionSettings(bool? pickupEnabled = default(bool?), double? minimumPickupOrderAmount = default(double?), bool? requireCustomerNameForPickup = default(bool?), bool? cashOrdersPickupEnabled = default(bool?), int? leadTimeMinutes = default(int?), bool? etaInPickupConfirmationSmsEnabled = default(bool?)) + { + // to ensure "pickupEnabled" is required (not null) + if (pickupEnabled == null) + { + throw new InvalidDataException("pickupEnabled is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.PickupEnabled = pickupEnabled; + } + // to ensure "minimumPickupOrderAmount" is required (not null) + if (minimumPickupOrderAmount == null) + { + throw new InvalidDataException("minimumPickupOrderAmount is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.MinimumPickupOrderAmount = minimumPickupOrderAmount; + } + // to ensure "requireCustomerNameForPickup" is required (not null) + if (requireCustomerNameForPickup == null) + { + throw new InvalidDataException("requireCustomerNameForPickup is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.RequireCustomerNameForPickup = requireCustomerNameForPickup; + } + // to ensure "cashOrdersPickupEnabled" is required (not null) + if (cashOrdersPickupEnabled == null) + { + throw new InvalidDataException("cashOrdersPickupEnabled is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.CashOrdersPickupEnabled = cashOrdersPickupEnabled; + } + // to ensure "leadTimeMinutes" is required (not null) + if (leadTimeMinutes == null) + { + throw new InvalidDataException("leadTimeMinutes is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.LeadTimeMinutes = leadTimeMinutes; + } + // to ensure "etaInPickupConfirmationSmsEnabled" is required (not null) + if (etaInPickupConfirmationSmsEnabled == null) + { + throw new InvalidDataException("etaInPickupConfirmationSmsEnabled is a required property for StoreCollectionSettings and cannot be null"); + } + else + { + this.EtaInPickupConfirmationSmsEnabled = etaInPickupConfirmationSmsEnabled; + } + } + + /// + /// True if the store accepts pickup orders + /// + /// True if the store accepts pickup orders + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// Minimum pickup order amount + /// + /// Minimum pickup order amount + [DataMember(Name="MinimumPickupOrderAmount", EmitDefaultValue=false)] + public double? MinimumPickupOrderAmount { get; set; } + + /// + /// True if customer name required for pickup orders + /// + /// True if customer name required for pickup orders + [DataMember(Name="RequireCustomerNameForPickup", EmitDefaultValue=false)] + public bool? RequireCustomerNameForPickup { get; set; } + + /// + /// True if the store accepts cash payment for pickup orders + /// + /// True if the store accepts cash payment for pickup orders + [DataMember(Name="CashOrdersPickupEnabled", EmitDefaultValue=false)] + public bool? CashOrdersPickupEnabled { get; set; } + + /// + /// Auto accept lead time for collection orders + /// + /// Auto accept lead time for collection orders + [DataMember(Name="LeadTimeMinutes", EmitDefaultValue=false)] + public int? LeadTimeMinutes { get; set; } + + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + /// + /// True if order confirmation sms includes estimated time when order will be ready for collection + [DataMember(Name="EtaInPickupConfirmationSmsEnabled", EmitDefaultValue=false)] + public bool? EtaInPickupConfirmationSmsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreCollectionSettings {\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" MinimumPickupOrderAmount: ").Append(MinimumPickupOrderAmount).Append("\n"); + sb.Append(" RequireCustomerNameForPickup: ").Append(RequireCustomerNameForPickup).Append("\n"); + sb.Append(" CashOrdersPickupEnabled: ").Append(CashOrdersPickupEnabled).Append("\n"); + sb.Append(" LeadTimeMinutes: ").Append(LeadTimeMinutes).Append("\n"); + sb.Append(" EtaInPickupConfirmationSmsEnabled: ").Append(EtaInPickupConfirmationSmsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreCollectionSettings); + } + + /// + /// Returns true if StoreCollectionSettings instances are equal + /// + /// Instance of StoreCollectionSettings to be compared + /// Boolean + public bool Equals(StoreCollectionSettings input) + { + if (input == null) + return false; + + return + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.MinimumPickupOrderAmount == input.MinimumPickupOrderAmount || + (this.MinimumPickupOrderAmount != null && + this.MinimumPickupOrderAmount.Equals(input.MinimumPickupOrderAmount)) + ) && + ( + this.RequireCustomerNameForPickup == input.RequireCustomerNameForPickup || + (this.RequireCustomerNameForPickup != null && + this.RequireCustomerNameForPickup.Equals(input.RequireCustomerNameForPickup)) + ) && + ( + this.CashOrdersPickupEnabled == input.CashOrdersPickupEnabled || + (this.CashOrdersPickupEnabled != null && + this.CashOrdersPickupEnabled.Equals(input.CashOrdersPickupEnabled)) + ) && + ( + this.LeadTimeMinutes == input.LeadTimeMinutes || + (this.LeadTimeMinutes != null && + this.LeadTimeMinutes.Equals(input.LeadTimeMinutes)) + ) && + ( + this.EtaInPickupConfirmationSmsEnabled == input.EtaInPickupConfirmationSmsEnabled || + (this.EtaInPickupConfirmationSmsEnabled != null && + this.EtaInPickupConfirmationSmsEnabled.Equals(input.EtaInPickupConfirmationSmsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.MinimumPickupOrderAmount != null) + hashCode = hashCode * 59 + this.MinimumPickupOrderAmount.GetHashCode(); + if (this.RequireCustomerNameForPickup != null) + hashCode = hashCode * 59 + this.RequireCustomerNameForPickup.GetHashCode(); + if (this.CashOrdersPickupEnabled != null) + hashCode = hashCode * 59 + this.CashOrdersPickupEnabled.GetHashCode(); + if (this.LeadTimeMinutes != null) + hashCode = hashCode * 59 + this.LeadTimeMinutes.GetHashCode(); + if (this.EtaInPickupConfirmationSmsEnabled != null) + hashCode = hashCode * 59 + this.EtaInPickupConfirmationSmsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreConfig.cs b/src/Flipdish/Model/StoreConfig.cs new file mode 100644 index 00000000..9c785c6a --- /dev/null +++ b/src/Flipdish/Model/StoreConfig.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// StoreConfig. + /// + [DataContract] + public partial class StoreConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// True if the store accepts pickup orders. + /// True if the store has a Bank Account attached. + /// True if the store is assigned to a Menu. + /// True if the store has a valid Address. + /// True if the store has Pickup hours. + /// Is the Store Published. + public StoreConfig(bool? pickupEnabled = default(bool?), bool? bankAccountAttached = default(bool?), bool? menuAssigned = default(bool?), bool? hasFullAddress = default(bool?), bool? pickupHours = default(bool?), bool? isPublished = default(bool?)) + { + this.PickupEnabled = pickupEnabled; + this.BankAccountAttached = bankAccountAttached; + this.MenuAssigned = menuAssigned; + this.HasFullAddress = hasFullAddress; + this.PickupHours = pickupHours; + this.IsPublished = isPublished; + } + + /// + /// True if the store accepts pickup orders + /// + /// True if the store accepts pickup orders + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// True if the store has a Bank Account attached + /// + /// True if the store has a Bank Account attached + [DataMember(Name="BankAccountAttached", EmitDefaultValue=false)] + public bool? BankAccountAttached { get; set; } + + /// + /// True if the store is assigned to a Menu + /// + /// True if the store is assigned to a Menu + [DataMember(Name="MenuAssigned", EmitDefaultValue=false)] + public bool? MenuAssigned { get; set; } + + /// + /// True if the store has a valid Address + /// + /// True if the store has a valid Address + [DataMember(Name="HasFullAddress", EmitDefaultValue=false)] + public bool? HasFullAddress { get; set; } + + /// + /// True if the store has Pickup hours + /// + /// True if the store has Pickup hours + [DataMember(Name="PickupHours", EmitDefaultValue=false)] + public bool? PickupHours { get; set; } + + /// + /// Is the Store Published + /// + /// Is the Store Published + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreConfig {\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" BankAccountAttached: ").Append(BankAccountAttached).Append("\n"); + sb.Append(" MenuAssigned: ").Append(MenuAssigned).Append("\n"); + sb.Append(" HasFullAddress: ").Append(HasFullAddress).Append("\n"); + sb.Append(" PickupHours: ").Append(PickupHours).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreConfig); + } + + /// + /// Returns true if StoreConfig instances are equal + /// + /// Instance of StoreConfig to be compared + /// Boolean + public bool Equals(StoreConfig input) + { + if (input == null) + return false; + + return + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.BankAccountAttached == input.BankAccountAttached || + (this.BankAccountAttached != null && + this.BankAccountAttached.Equals(input.BankAccountAttached)) + ) && + ( + this.MenuAssigned == input.MenuAssigned || + (this.MenuAssigned != null && + this.MenuAssigned.Equals(input.MenuAssigned)) + ) && + ( + this.HasFullAddress == input.HasFullAddress || + (this.HasFullAddress != null && + this.HasFullAddress.Equals(input.HasFullAddress)) + ) && + ( + this.PickupHours == input.PickupHours || + (this.PickupHours != null && + this.PickupHours.Equals(input.PickupHours)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.BankAccountAttached != null) + hashCode = hashCode * 59 + this.BankAccountAttached.GetHashCode(); + if (this.MenuAssigned != null) + hashCode = hashCode * 59 + this.MenuAssigned.GetHashCode(); + if (this.HasFullAddress != null) + hashCode = hashCode * 59 + this.HasFullAddress.GetHashCode(); + if (this.PickupHours != null) + hashCode = hashCode * 59 + this.PickupHours.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreCreateBase.cs b/src/Flipdish/Model/StoreCreateBase.cs new file mode 100644 index 00000000..3add7a9f --- /dev/null +++ b/src/Flipdish/Model/StoreCreateBase.cs @@ -0,0 +1,226 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Create Base + /// + [DataContract] + public partial class StoreCreateBase : IEquatable + { + /// + /// Sales Channel Type + /// + /// Sales Channel Type + [JsonConverter(typeof(StringEnumConverter))] + public enum SalesChannelTypeEnum + { + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 1, + + /// + /// Enum App for value: App + /// + [EnumMember(Value = "App")] + App = 2, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 3, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 4, + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 5, + + /// + /// Enum PhoneAgent for value: PhoneAgent + /// + [EnumMember(Value = "PhoneAgent")] + PhoneAgent = 6 + } + + /// + /// Sales Channel Type + /// + /// Sales Channel Type + [DataMember(Name="SalesChannelType", EmitDefaultValue=false)] + public SalesChannelTypeEnum? SalesChannelType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Name. + /// Email address (visible to customers). + /// Staff Language (used for communication with the staff) Emails, Printouts etc. + /// Sales Channel Type. + /// Phone Number. + public StoreCreateBase(string name = default(string), string emailAddress = default(string), string staffLanguage = default(string), SalesChannelTypeEnum? salesChannelType = default(SalesChannelTypeEnum?), string phoneNumber = default(string)) + { + this.Name = name; + this.EmailAddress = emailAddress; + this.StaffLanguage = staffLanguage; + this.SalesChannelType = salesChannelType; + this.PhoneNumber = phoneNumber; + } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Email address (visible to customers) + /// + /// Email address (visible to customers) + [DataMember(Name="EmailAddress", EmitDefaultValue=false)] + public string EmailAddress { get; set; } + + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + /// + /// Staff Language (used for communication with the staff) Emails, Printouts etc + [DataMember(Name="StaffLanguage", EmitDefaultValue=false)] + public string StaffLanguage { get; set; } + + + /// + /// Phone Number + /// + /// Phone Number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreCreateBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n"); + sb.Append(" StaffLanguage: ").Append(StaffLanguage).Append("\n"); + sb.Append(" SalesChannelType: ").Append(SalesChannelType).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreCreateBase); + } + + /// + /// Returns true if StoreCreateBase instances are equal + /// + /// Instance of StoreCreateBase to be compared + /// Boolean + public bool Equals(StoreCreateBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.EmailAddress == input.EmailAddress || + (this.EmailAddress != null && + this.EmailAddress.Equals(input.EmailAddress)) + ) && + ( + this.StaffLanguage == input.StaffLanguage || + (this.StaffLanguage != null && + this.StaffLanguage.Equals(input.StaffLanguage)) + ) && + ( + this.SalesChannelType == input.SalesChannelType || + (this.SalesChannelType != null && + this.SalesChannelType.Equals(input.SalesChannelType)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.EmailAddress != null) + hashCode = hashCode * 59 + this.EmailAddress.GetHashCode(); + if (this.StaffLanguage != null) + hashCode = hashCode * 59 + this.StaffLanguage.GetHashCode(); + if (this.SalesChannelType != null) + hashCode = hashCode * 59 + this.SalesChannelType.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreCreatedEvent.cs b/src/Flipdish/Model/StoreCreatedEvent.cs new file mode 100644 index 00000000..60d7ddd7 --- /dev/null +++ b/src/Flipdish/Model/StoreCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Created Event + /// + [DataContract] + public partial class StoreCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Store Id. + /// User which created this store. + /// Description. + /// Created Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreCreatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which created this store + /// + /// User which created this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Created Store + /// + /// Created Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreCreatedEvent); + } + + /// + /// Returns true if StoreCreatedEvent instances are equal + /// + /// Instance of StoreCreatedEvent to be compared + /// Boolean + public bool Equals(StoreCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreDataPoint.cs b/src/Flipdish/Model/StoreDataPoint.cs new file mode 100644 index 00000000..b0d2495e --- /dev/null +++ b/src/Flipdish/Model/StoreDataPoint.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Data Point + /// + [DataContract] + public partial class StoreDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Day. + /// Value for the day. + public StoreDataPoint(DateTime? day = default(DateTime?), double? value = default(double?)) + { + this.Day = day; + this.Value = value; + } + + /// + /// Day + /// + /// Day + [DataMember(Name="Day", EmitDefaultValue=false)] + public DateTime? Day { get; set; } + + /// + /// Value for the day + /// + /// Value for the day + [DataMember(Name="Value", EmitDefaultValue=false)] + public double? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreDataPoint {\n"); + sb.Append(" Day: ").Append(Day).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreDataPoint); + } + + /// + /// Returns true if StoreDataPoint instances are equal + /// + /// Instance of StoreDataPoint to be compared + /// Boolean + public bool Equals(StoreDataPoint input) + { + if (input == null) + return false; + + return + ( + this.Day == input.Day || + (this.Day != null && + this.Day.Equals(input.Day)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Day != null) + hashCode = hashCode * 59 + this.Day.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreDeletedEvent.cs b/src/Flipdish/Model/StoreDeletedEvent.cs new file mode 100644 index 00000000..b17693c7 --- /dev/null +++ b/src/Flipdish/Model/StoreDeletedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Deleted Event + /// + [DataContract] + public partial class StoreDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which deleted this store. + /// Description. + /// Deleted Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreDeletedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which deleted this store + /// + /// User which deleted this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Deleted Store + /// + /// Deleted Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreDeletedEvent); + } + + /// + /// Returns true if StoreDeletedEvent instances are equal + /// + /// Instance of StoreDeletedEvent to be compared + /// Boolean + public bool Equals(StoreDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreDeliveryZoneFeeConfig.cs b/src/Flipdish/Model/StoreDeliveryZoneFeeConfig.cs new file mode 100644 index 00000000..bfbd652c --- /dev/null +++ b/src/Flipdish/Model/StoreDeliveryZoneFeeConfig.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store delivery zone fee config + /// + [DataContract] + public partial class StoreDeliveryZoneFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// ID of the delivery zone this fee corresponds to. + /// Fee for delivery within this zone. + public StoreDeliveryZoneFeeConfig(int? deliveryZoneId = default(int?), double? fee = default(double?)) + { + this.DeliveryZoneId = deliveryZoneId; + this.Fee = fee; + } + + /// + /// ID of the delivery zone this fee corresponds to + /// + /// ID of the delivery zone this fee corresponds to + [DataMember(Name="DeliveryZoneId", EmitDefaultValue=false)] + public int? DeliveryZoneId { get; set; } + + /// + /// Fee for delivery within this zone + /// + /// Fee for delivery within this zone + [DataMember(Name="Fee", EmitDefaultValue=false)] + public double? Fee { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreDeliveryZoneFeeConfig {\n"); + sb.Append(" DeliveryZoneId: ").Append(DeliveryZoneId).Append("\n"); + sb.Append(" Fee: ").Append(Fee).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreDeliveryZoneFeeConfig); + } + + /// + /// Returns true if StoreDeliveryZoneFeeConfig instances are equal + /// + /// Instance of StoreDeliveryZoneFeeConfig to be compared + /// Boolean + public bool Equals(StoreDeliveryZoneFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.DeliveryZoneId == input.DeliveryZoneId || + (this.DeliveryZoneId != null && + this.DeliveryZoneId.Equals(input.DeliveryZoneId)) + ) && + ( + this.Fee == input.Fee || + (this.Fee != null && + this.Fee.Equals(input.Fee)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryZoneId != null) + hashCode = hashCode * 59 + this.DeliveryZoneId.GetHashCode(); + if (this.Fee != null) + hashCode = hashCode * 59 + this.Fee.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreDeliveryZoneFeeConfigUpdateRequest.cs b/src/Flipdish/Model/StoreDeliveryZoneFeeConfigUpdateRequest.cs new file mode 100644 index 00000000..61239fa0 --- /dev/null +++ b/src/Flipdish/Model/StoreDeliveryZoneFeeConfigUpdateRequest.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Request to update store delivery zone fee config + /// + [DataContract] + public partial class StoreDeliveryZoneFeeConfigUpdateRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Delivery zone fees to update. + public StoreDeliveryZoneFeeConfigUpdateRequest(List deliveryZoneFees = default(List)) + { + this.DeliveryZoneFees = deliveryZoneFees; + } + + /// + /// Delivery zone fees to update + /// + /// Delivery zone fees to update + [DataMember(Name="DeliveryZoneFees", EmitDefaultValue=false)] + public List DeliveryZoneFees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreDeliveryZoneFeeConfigUpdateRequest {\n"); + sb.Append(" DeliveryZoneFees: ").Append(DeliveryZoneFees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreDeliveryZoneFeeConfigUpdateRequest); + } + + /// + /// Returns true if StoreDeliveryZoneFeeConfigUpdateRequest instances are equal + /// + /// Instance of StoreDeliveryZoneFeeConfigUpdateRequest to be compared + /// Boolean + public bool Equals(StoreDeliveryZoneFeeConfigUpdateRequest input) + { + if (input == null) + return false; + + return + ( + this.DeliveryZoneFees == input.DeliveryZoneFees || + this.DeliveryZoneFees != null && + this.DeliveryZoneFees.SequenceEqual(input.DeliveryZoneFees) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryZoneFees != null) + hashCode = hashCode * 59 + this.DeliveryZoneFees.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreEndOfDayReport.cs b/src/Flipdish/Model/StoreEndOfDayReport.cs new file mode 100644 index 00000000..acadb5df --- /dev/null +++ b/src/Flipdish/Model/StoreEndOfDayReport.cs @@ -0,0 +1,1225 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store end of day report + /// + [DataContract] + public partial class StoreEndOfDayReport : IEquatable + { + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store Id. + /// Store name. + /// Currency. + /// Order Count. + /// Order Value. + /// Order Value Excluding Delivery Fees. + /// Collection Order Count. + /// Collection Cash Order Count. + /// Collection Paid Online Order Count. + /// Collection Order Value. + /// Collection Cash Order Value. + /// Collection Paid Online Order Value. + /// Delivery Order Count. + /// Delivery Cash Order Count. + /// Delivery Paid Online Order Count. + /// Delivery Order Value. + /// Delivery Cash Order Value. + /// Delivery Paid Online Order Value. + /// Paid Online Order Count. + /// Cash Order Count. + /// Paid Online Order Value. + /// Cash Order Value. + /// Paid Online Order Value Excluding Delivery Fees. + /// Cash Order Value Excluding Delivery Fees. + /// Start Time. + /// End Time. + public StoreEndOfDayReport(int? storeId = default(int?), string storeName = default(string), CurrencyEnum? currency = default(CurrencyEnum?), int? orderCount = default(int?), double? orderValue = default(double?), double? orderValueExcludingDeliveryFees = default(double?), int? collectionOrderCount = default(int?), int? collectionCashOrderCount = default(int?), int? collectionPaidOnlineOrderCount = default(int?), double? collectionOrderValue = default(double?), double? collectionCashOrderValue = default(double?), double? collectionPaidOnlineOrderValue = default(double?), int? deliveryOrderCount = default(int?), int? deliveryCashOrderCount = default(int?), int? deliveryPaidOnlineOrderCount = default(int?), double? deliveryOrderValue = default(double?), double? deliveryCashOrderValue = default(double?), double? deliveryPaidOnlineOrderValue = default(double?), int? paidOnlineOrderCount = default(int?), int? cashOrderCount = default(int?), double? paidOnlineOrderValue = default(double?), double? cashOrderValue = default(double?), double? paidOnlineOrderValueExcludingDeliveryFees = default(double?), double? cashOrderValueExcludingDeliveryFees = default(double?), DateTime? startTime = default(DateTime?), DateTime? endTime = default(DateTime?)) + { + this.StoreId = storeId; + this.StoreName = storeName; + this.Currency = currency; + this.OrderCount = orderCount; + this.OrderValue = orderValue; + this.OrderValueExcludingDeliveryFees = orderValueExcludingDeliveryFees; + this.CollectionOrderCount = collectionOrderCount; + this.CollectionCashOrderCount = collectionCashOrderCount; + this.CollectionPaidOnlineOrderCount = collectionPaidOnlineOrderCount; + this.CollectionOrderValue = collectionOrderValue; + this.CollectionCashOrderValue = collectionCashOrderValue; + this.CollectionPaidOnlineOrderValue = collectionPaidOnlineOrderValue; + this.DeliveryOrderCount = deliveryOrderCount; + this.DeliveryCashOrderCount = deliveryCashOrderCount; + this.DeliveryPaidOnlineOrderCount = deliveryPaidOnlineOrderCount; + this.DeliveryOrderValue = deliveryOrderValue; + this.DeliveryCashOrderValue = deliveryCashOrderValue; + this.DeliveryPaidOnlineOrderValue = deliveryPaidOnlineOrderValue; + this.PaidOnlineOrderCount = paidOnlineOrderCount; + this.CashOrderCount = cashOrderCount; + this.PaidOnlineOrderValue = paidOnlineOrderValue; + this.CashOrderValue = cashOrderValue; + this.PaidOnlineOrderValueExcludingDeliveryFees = paidOnlineOrderValueExcludingDeliveryFees; + this.CashOrderValueExcludingDeliveryFees = cashOrderValueExcludingDeliveryFees; + this.StartTime = startTime; + this.EndTime = endTime; + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store name + /// + /// Store name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + + /// + /// Order Count + /// + /// Order Count + [DataMember(Name="OrderCount", EmitDefaultValue=false)] + public int? OrderCount { get; set; } + + /// + /// Order Value + /// + /// Order Value + [DataMember(Name="OrderValue", EmitDefaultValue=false)] + public double? OrderValue { get; set; } + + /// + /// Order Value Excluding Delivery Fees + /// + /// Order Value Excluding Delivery Fees + [DataMember(Name="OrderValueExcludingDeliveryFees", EmitDefaultValue=false)] + public double? OrderValueExcludingDeliveryFees { get; set; } + + /// + /// Collection Order Count + /// + /// Collection Order Count + [DataMember(Name="CollectionOrderCount", EmitDefaultValue=false)] + public int? CollectionOrderCount { get; set; } + + /// + /// Collection Cash Order Count + /// + /// Collection Cash Order Count + [DataMember(Name="CollectionCashOrderCount", EmitDefaultValue=false)] + public int? CollectionCashOrderCount { get; set; } + + /// + /// Collection Paid Online Order Count + /// + /// Collection Paid Online Order Count + [DataMember(Name="CollectionPaidOnlineOrderCount", EmitDefaultValue=false)] + public int? CollectionPaidOnlineOrderCount { get; set; } + + /// + /// Collection Order Value + /// + /// Collection Order Value + [DataMember(Name="CollectionOrderValue", EmitDefaultValue=false)] + public double? CollectionOrderValue { get; set; } + + /// + /// Collection Cash Order Value + /// + /// Collection Cash Order Value + [DataMember(Name="CollectionCashOrderValue", EmitDefaultValue=false)] + public double? CollectionCashOrderValue { get; set; } + + /// + /// Collection Paid Online Order Value + /// + /// Collection Paid Online Order Value + [DataMember(Name="CollectionPaidOnlineOrderValue", EmitDefaultValue=false)] + public double? CollectionPaidOnlineOrderValue { get; set; } + + /// + /// Delivery Order Count + /// + /// Delivery Order Count + [DataMember(Name="DeliveryOrderCount", EmitDefaultValue=false)] + public int? DeliveryOrderCount { get; set; } + + /// + /// Delivery Cash Order Count + /// + /// Delivery Cash Order Count + [DataMember(Name="DeliveryCashOrderCount", EmitDefaultValue=false)] + public int? DeliveryCashOrderCount { get; set; } + + /// + /// Delivery Paid Online Order Count + /// + /// Delivery Paid Online Order Count + [DataMember(Name="DeliveryPaidOnlineOrderCount", EmitDefaultValue=false)] + public int? DeliveryPaidOnlineOrderCount { get; set; } + + /// + /// Delivery Order Value + /// + /// Delivery Order Value + [DataMember(Name="DeliveryOrderValue", EmitDefaultValue=false)] + public double? DeliveryOrderValue { get; set; } + + /// + /// Delivery Cash Order Value + /// + /// Delivery Cash Order Value + [DataMember(Name="DeliveryCashOrderValue", EmitDefaultValue=false)] + public double? DeliveryCashOrderValue { get; set; } + + /// + /// Delivery Paid Online Order Value + /// + /// Delivery Paid Online Order Value + [DataMember(Name="DeliveryPaidOnlineOrderValue", EmitDefaultValue=false)] + public double? DeliveryPaidOnlineOrderValue { get; set; } + + /// + /// Paid Online Order Count + /// + /// Paid Online Order Count + [DataMember(Name="PaidOnlineOrderCount", EmitDefaultValue=false)] + public int? PaidOnlineOrderCount { get; set; } + + /// + /// Cash Order Count + /// + /// Cash Order Count + [DataMember(Name="CashOrderCount", EmitDefaultValue=false)] + public int? CashOrderCount { get; set; } + + /// + /// Paid Online Order Value + /// + /// Paid Online Order Value + [DataMember(Name="PaidOnlineOrderValue", EmitDefaultValue=false)] + public double? PaidOnlineOrderValue { get; set; } + + /// + /// Cash Order Value + /// + /// Cash Order Value + [DataMember(Name="CashOrderValue", EmitDefaultValue=false)] + public double? CashOrderValue { get; set; } + + /// + /// Paid Online Order Value Excluding Delivery Fees + /// + /// Paid Online Order Value Excluding Delivery Fees + [DataMember(Name="PaidOnlineOrderValueExcludingDeliveryFees", EmitDefaultValue=false)] + public double? PaidOnlineOrderValueExcludingDeliveryFees { get; set; } + + /// + /// Cash Order Value Excluding Delivery Fees + /// + /// Cash Order Value Excluding Delivery Fees + [DataMember(Name="CashOrderValueExcludingDeliveryFees", EmitDefaultValue=false)] + public double? CashOrderValueExcludingDeliveryFees { get; set; } + + /// + /// Start Time + /// + /// Start Time + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// End Time + /// + /// End Time + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreEndOfDayReport {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" OrderCount: ").Append(OrderCount).Append("\n"); + sb.Append(" OrderValue: ").Append(OrderValue).Append("\n"); + sb.Append(" OrderValueExcludingDeliveryFees: ").Append(OrderValueExcludingDeliveryFees).Append("\n"); + sb.Append(" CollectionOrderCount: ").Append(CollectionOrderCount).Append("\n"); + sb.Append(" CollectionCashOrderCount: ").Append(CollectionCashOrderCount).Append("\n"); + sb.Append(" CollectionPaidOnlineOrderCount: ").Append(CollectionPaidOnlineOrderCount).Append("\n"); + sb.Append(" CollectionOrderValue: ").Append(CollectionOrderValue).Append("\n"); + sb.Append(" CollectionCashOrderValue: ").Append(CollectionCashOrderValue).Append("\n"); + sb.Append(" CollectionPaidOnlineOrderValue: ").Append(CollectionPaidOnlineOrderValue).Append("\n"); + sb.Append(" DeliveryOrderCount: ").Append(DeliveryOrderCount).Append("\n"); + sb.Append(" DeliveryCashOrderCount: ").Append(DeliveryCashOrderCount).Append("\n"); + sb.Append(" DeliveryPaidOnlineOrderCount: ").Append(DeliveryPaidOnlineOrderCount).Append("\n"); + sb.Append(" DeliveryOrderValue: ").Append(DeliveryOrderValue).Append("\n"); + sb.Append(" DeliveryCashOrderValue: ").Append(DeliveryCashOrderValue).Append("\n"); + sb.Append(" DeliveryPaidOnlineOrderValue: ").Append(DeliveryPaidOnlineOrderValue).Append("\n"); + sb.Append(" PaidOnlineOrderCount: ").Append(PaidOnlineOrderCount).Append("\n"); + sb.Append(" CashOrderCount: ").Append(CashOrderCount).Append("\n"); + sb.Append(" PaidOnlineOrderValue: ").Append(PaidOnlineOrderValue).Append("\n"); + sb.Append(" CashOrderValue: ").Append(CashOrderValue).Append("\n"); + sb.Append(" PaidOnlineOrderValueExcludingDeliveryFees: ").Append(PaidOnlineOrderValueExcludingDeliveryFees).Append("\n"); + sb.Append(" CashOrderValueExcludingDeliveryFees: ").Append(CashOrderValueExcludingDeliveryFees).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreEndOfDayReport); + } + + /// + /// Returns true if StoreEndOfDayReport instances are equal + /// + /// Instance of StoreEndOfDayReport to be compared + /// Boolean + public bool Equals(StoreEndOfDayReport input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.OrderCount == input.OrderCount || + (this.OrderCount != null && + this.OrderCount.Equals(input.OrderCount)) + ) && + ( + this.OrderValue == input.OrderValue || + (this.OrderValue != null && + this.OrderValue.Equals(input.OrderValue)) + ) && + ( + this.OrderValueExcludingDeliveryFees == input.OrderValueExcludingDeliveryFees || + (this.OrderValueExcludingDeliveryFees != null && + this.OrderValueExcludingDeliveryFees.Equals(input.OrderValueExcludingDeliveryFees)) + ) && + ( + this.CollectionOrderCount == input.CollectionOrderCount || + (this.CollectionOrderCount != null && + this.CollectionOrderCount.Equals(input.CollectionOrderCount)) + ) && + ( + this.CollectionCashOrderCount == input.CollectionCashOrderCount || + (this.CollectionCashOrderCount != null && + this.CollectionCashOrderCount.Equals(input.CollectionCashOrderCount)) + ) && + ( + this.CollectionPaidOnlineOrderCount == input.CollectionPaidOnlineOrderCount || + (this.CollectionPaidOnlineOrderCount != null && + this.CollectionPaidOnlineOrderCount.Equals(input.CollectionPaidOnlineOrderCount)) + ) && + ( + this.CollectionOrderValue == input.CollectionOrderValue || + (this.CollectionOrderValue != null && + this.CollectionOrderValue.Equals(input.CollectionOrderValue)) + ) && + ( + this.CollectionCashOrderValue == input.CollectionCashOrderValue || + (this.CollectionCashOrderValue != null && + this.CollectionCashOrderValue.Equals(input.CollectionCashOrderValue)) + ) && + ( + this.CollectionPaidOnlineOrderValue == input.CollectionPaidOnlineOrderValue || + (this.CollectionPaidOnlineOrderValue != null && + this.CollectionPaidOnlineOrderValue.Equals(input.CollectionPaidOnlineOrderValue)) + ) && + ( + this.DeliveryOrderCount == input.DeliveryOrderCount || + (this.DeliveryOrderCount != null && + this.DeliveryOrderCount.Equals(input.DeliveryOrderCount)) + ) && + ( + this.DeliveryCashOrderCount == input.DeliveryCashOrderCount || + (this.DeliveryCashOrderCount != null && + this.DeliveryCashOrderCount.Equals(input.DeliveryCashOrderCount)) + ) && + ( + this.DeliveryPaidOnlineOrderCount == input.DeliveryPaidOnlineOrderCount || + (this.DeliveryPaidOnlineOrderCount != null && + this.DeliveryPaidOnlineOrderCount.Equals(input.DeliveryPaidOnlineOrderCount)) + ) && + ( + this.DeliveryOrderValue == input.DeliveryOrderValue || + (this.DeliveryOrderValue != null && + this.DeliveryOrderValue.Equals(input.DeliveryOrderValue)) + ) && + ( + this.DeliveryCashOrderValue == input.DeliveryCashOrderValue || + (this.DeliveryCashOrderValue != null && + this.DeliveryCashOrderValue.Equals(input.DeliveryCashOrderValue)) + ) && + ( + this.DeliveryPaidOnlineOrderValue == input.DeliveryPaidOnlineOrderValue || + (this.DeliveryPaidOnlineOrderValue != null && + this.DeliveryPaidOnlineOrderValue.Equals(input.DeliveryPaidOnlineOrderValue)) + ) && + ( + this.PaidOnlineOrderCount == input.PaidOnlineOrderCount || + (this.PaidOnlineOrderCount != null && + this.PaidOnlineOrderCount.Equals(input.PaidOnlineOrderCount)) + ) && + ( + this.CashOrderCount == input.CashOrderCount || + (this.CashOrderCount != null && + this.CashOrderCount.Equals(input.CashOrderCount)) + ) && + ( + this.PaidOnlineOrderValue == input.PaidOnlineOrderValue || + (this.PaidOnlineOrderValue != null && + this.PaidOnlineOrderValue.Equals(input.PaidOnlineOrderValue)) + ) && + ( + this.CashOrderValue == input.CashOrderValue || + (this.CashOrderValue != null && + this.CashOrderValue.Equals(input.CashOrderValue)) + ) && + ( + this.PaidOnlineOrderValueExcludingDeliveryFees == input.PaidOnlineOrderValueExcludingDeliveryFees || + (this.PaidOnlineOrderValueExcludingDeliveryFees != null && + this.PaidOnlineOrderValueExcludingDeliveryFees.Equals(input.PaidOnlineOrderValueExcludingDeliveryFees)) + ) && + ( + this.CashOrderValueExcludingDeliveryFees == input.CashOrderValueExcludingDeliveryFees || + (this.CashOrderValueExcludingDeliveryFees != null && + this.CashOrderValueExcludingDeliveryFees.Equals(input.CashOrderValueExcludingDeliveryFees)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.OrderCount != null) + hashCode = hashCode * 59 + this.OrderCount.GetHashCode(); + if (this.OrderValue != null) + hashCode = hashCode * 59 + this.OrderValue.GetHashCode(); + if (this.OrderValueExcludingDeliveryFees != null) + hashCode = hashCode * 59 + this.OrderValueExcludingDeliveryFees.GetHashCode(); + if (this.CollectionOrderCount != null) + hashCode = hashCode * 59 + this.CollectionOrderCount.GetHashCode(); + if (this.CollectionCashOrderCount != null) + hashCode = hashCode * 59 + this.CollectionCashOrderCount.GetHashCode(); + if (this.CollectionPaidOnlineOrderCount != null) + hashCode = hashCode * 59 + this.CollectionPaidOnlineOrderCount.GetHashCode(); + if (this.CollectionOrderValue != null) + hashCode = hashCode * 59 + this.CollectionOrderValue.GetHashCode(); + if (this.CollectionCashOrderValue != null) + hashCode = hashCode * 59 + this.CollectionCashOrderValue.GetHashCode(); + if (this.CollectionPaidOnlineOrderValue != null) + hashCode = hashCode * 59 + this.CollectionPaidOnlineOrderValue.GetHashCode(); + if (this.DeliveryOrderCount != null) + hashCode = hashCode * 59 + this.DeliveryOrderCount.GetHashCode(); + if (this.DeliveryCashOrderCount != null) + hashCode = hashCode * 59 + this.DeliveryCashOrderCount.GetHashCode(); + if (this.DeliveryPaidOnlineOrderCount != null) + hashCode = hashCode * 59 + this.DeliveryPaidOnlineOrderCount.GetHashCode(); + if (this.DeliveryOrderValue != null) + hashCode = hashCode * 59 + this.DeliveryOrderValue.GetHashCode(); + if (this.DeliveryCashOrderValue != null) + hashCode = hashCode * 59 + this.DeliveryCashOrderValue.GetHashCode(); + if (this.DeliveryPaidOnlineOrderValue != null) + hashCode = hashCode * 59 + this.DeliveryPaidOnlineOrderValue.GetHashCode(); + if (this.PaidOnlineOrderCount != null) + hashCode = hashCode * 59 + this.PaidOnlineOrderCount.GetHashCode(); + if (this.CashOrderCount != null) + hashCode = hashCode * 59 + this.CashOrderCount.GetHashCode(); + if (this.PaidOnlineOrderValue != null) + hashCode = hashCode * 59 + this.PaidOnlineOrderValue.GetHashCode(); + if (this.CashOrderValue != null) + hashCode = hashCode * 59 + this.CashOrderValue.GetHashCode(); + if (this.PaidOnlineOrderValueExcludingDeliveryFees != null) + hashCode = hashCode * 59 + this.PaidOnlineOrderValueExcludingDeliveryFees.GetHashCode(); + if (this.CashOrderValueExcludingDeliveryFees != null) + hashCode = hashCode * 59 + this.CashOrderValueExcludingDeliveryFees.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreFeeConfig.cs b/src/Flipdish/Model/StoreFeeConfig.cs new file mode 100644 index 00000000..7e2c1662 --- /dev/null +++ b/src/Flipdish/Model/StoreFeeConfig.cs @@ -0,0 +1,976 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// StoreFeeConfig + /// + [DataContract] + public partial class StoreFeeConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// feeConfigId. + /// storeId. + /// startTime. + /// percentFeeCardOrders. + /// percentFeeCashOrders. + /// percentFeeCardOrdersWeb. + /// percentFeeCashOrdersWeb. + /// percentFeeCardOrdersKiosk. + /// percentFeeCashOrdersKiosk. + /// fixedFeeCardOrdersKiosk. + /// fixedFeeCashOrdersKiosk. + /// percentFeeCardOrdersKioskChargedToCustomerIncludingVat. + /// fixedFeeCardOrdersKioskChargedToCustomerIncludingVat. + /// percentFeeCashOrdersKioskChargedToCustomerIncludingVat. + /// fixedFeeCashOrdersKioskChargedToCustomerIncludingVat. + /// fixedFeeCardOrders. + /// fixedFeeCashOrders. + /// percentFeeCardOrdersChargedToCustomerIncludingVat. + /// fixedFeeCardOrdersChargedToCustomerIncludingVat. + /// percentFeeCashOrdersChargedToCustomerIncludingVat. + /// fixedFeeCashOrdersChargedToCustomerIncludingVat. + /// Gets or sets the percent fee tips.. + /// Gets or sets the percent fee tips for collection.. + /// Gets or sets the percent fee tips for delivery.. + /// Gets or sets the tax rate percent.. + /// Gets or sets the percent fee card orders location service.. + /// Gets or sets the percent fee cash orders location service.. + /// Gets or sets the fixed fee card orders location service.. + /// Gets or sets the fixed fee cash orders location service.. + /// Gets or sets the percent fee card orders location service charged to customer including vat.. + /// Gets or sets the percent fee cash orders location service charged to customer including vat.. + /// Gets or sets the fixed fee card orders location service charged to customer including vat.. + /// Gets or sets the fixed fee cash orders location service charged to customer including vat.. + /// Gets or sets the percent fee card orders ingest.. + /// Gets or sets the percent fee cash orders ingest.. + /// Gets or sets the fixed fee card orders ingest.. + /// Gets or sets the fixed fee cash orders ingest.. + /// Gets or sets the percent fee for delivery orders.. + /// Gets or sets the fixed fee for delivery orders.. + /// Gets or sets the percent fee for POS transactions.. + /// Gets or sets the fixed fee for POS transactions.. + /// Additional percentage fee charged on orders submitted through Order With Google. + /// Additional fixed fee charged on orders submitted through Order With Google. + /// Should not auto increase fees before this date. + /// Reason for the last fee change (optional). + /// Gets or sets the percent fee card orders phone agent.. + /// Gets or sets the percent fee cash orders phone agent.. + /// Gets or sets the fixed fee card orders phone agent.. + /// Gets or sets the fixed fee cash orders phone agent.. + /// Gets or sets the percent fee card orders phone agent charged to customer including vat.. + /// Gets or sets the percent fee cash orders phone agent charged to customer including vat.. + /// Gets or sets the fixed fee card orders phone agent charged to customer including vat.. + /// Gets or sets the fixed fee cash orders phone agent charged to customer including vat.. + public StoreFeeConfig(int? feeConfigId = default(int?), int? storeId = default(int?), DateTime? startTime = default(DateTime?), double? percentFeeCardOrders = default(double?), double? percentFeeCashOrders = default(double?), double? percentFeeCardOrdersWeb = default(double?), double? percentFeeCashOrdersWeb = default(double?), double? percentFeeCardOrdersKiosk = default(double?), double? percentFeeCashOrdersKiosk = default(double?), double? fixedFeeCardOrdersKiosk = default(double?), double? fixedFeeCashOrdersKiosk = default(double?), double? percentFeeCardOrdersKioskChargedToCustomerIncludingVat = default(double?), double? fixedFeeCardOrdersKioskChargedToCustomerIncludingVat = default(double?), double? percentFeeCashOrdersKioskChargedToCustomerIncludingVat = default(double?), double? fixedFeeCashOrdersKioskChargedToCustomerIncludingVat = default(double?), double? fixedFeeCardOrders = default(double?), double? fixedFeeCashOrders = default(double?), double? percentFeeCardOrdersChargedToCustomerIncludingVat = default(double?), double? fixedFeeCardOrdersChargedToCustomerIncludingVat = default(double?), double? percentFeeCashOrdersChargedToCustomerIncludingVat = default(double?), double? fixedFeeCashOrdersChargedToCustomerIncludingVat = default(double?), double? percentFeeTips = default(double?), double? percentFeeTipsCollection = default(double?), double? percentFeeTipsDelivery = default(double?), double? taxRatePercent = default(double?), double? percentFeeCardOrdersLocationService = default(double?), double? percentFeeCashOrdersLocationService = default(double?), double? fixedFeeCardOrdersLocationService = default(double?), double? fixedFeeCashOrdersLocationService = default(double?), double? percentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat = default(double?), double? percentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat = default(double?), double? fixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat = default(double?), double? fixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat = default(double?), double? percentFeeCardOrdersIngest = default(double?), double? percentFeeCashOrdersIngest = default(double?), double? fixedFeeCardOrdersIngest = default(double?), double? fixedFeeCashOrdersIngest = default(double?), double? percentFeeDelivery = default(double?), double? fixedFeeDelivery = default(double?), double? percentFeeCardPosTransaction = default(double?), double? fixedFeeCardPosTransaction = default(double?), double? percentFeeOrderWithGoogle = default(double?), double? fixedFeeOrderWithGoogle = default(double?), DateTime? shouldNotAutoIncreaseBefore = default(DateTime?), string reason = default(string), double? percentFeeCardOrdersPhoneAgent = default(double?), double? percentFeeCashOrdersPhoneAgent = default(double?), double? fixedFeeCardOrdersPhoneAgent = default(double?), double? fixedFeeCashOrdersPhoneAgent = default(double?), double? percentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat = default(double?), double? percentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat = default(double?), double? fixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat = default(double?), double? fixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat = default(double?)) + { + this.FeeConfigId = feeConfigId; + this.StoreId = storeId; + this.StartTime = startTime; + this.PercentFeeCardOrders = percentFeeCardOrders; + this.PercentFeeCashOrders = percentFeeCashOrders; + this.PercentFeeCardOrdersWeb = percentFeeCardOrdersWeb; + this.PercentFeeCashOrdersWeb = percentFeeCashOrdersWeb; + this.PercentFeeCardOrdersKiosk = percentFeeCardOrdersKiosk; + this.PercentFeeCashOrdersKiosk = percentFeeCashOrdersKiosk; + this.FixedFeeCardOrdersKiosk = fixedFeeCardOrdersKiosk; + this.FixedFeeCashOrdersKiosk = fixedFeeCashOrdersKiosk; + this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat = percentFeeCardOrdersKioskChargedToCustomerIncludingVat; + this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat = fixedFeeCardOrdersKioskChargedToCustomerIncludingVat; + this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat = percentFeeCashOrdersKioskChargedToCustomerIncludingVat; + this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat = fixedFeeCashOrdersKioskChargedToCustomerIncludingVat; + this.FixedFeeCardOrders = fixedFeeCardOrders; + this.FixedFeeCashOrders = fixedFeeCashOrders; + this.PercentFeeCardOrdersChargedToCustomerIncludingVat = percentFeeCardOrdersChargedToCustomerIncludingVat; + this.FixedFeeCardOrdersChargedToCustomerIncludingVat = fixedFeeCardOrdersChargedToCustomerIncludingVat; + this.PercentFeeCashOrdersChargedToCustomerIncludingVat = percentFeeCashOrdersChargedToCustomerIncludingVat; + this.FixedFeeCashOrdersChargedToCustomerIncludingVat = fixedFeeCashOrdersChargedToCustomerIncludingVat; + this.PercentFeeTips = percentFeeTips; + this.PercentFeeTipsCollection = percentFeeTipsCollection; + this.PercentFeeTipsDelivery = percentFeeTipsDelivery; + this.TaxRatePercent = taxRatePercent; + this.PercentFeeCardOrdersLocationService = percentFeeCardOrdersLocationService; + this.PercentFeeCashOrdersLocationService = percentFeeCashOrdersLocationService; + this.FixedFeeCardOrdersLocationService = fixedFeeCardOrdersLocationService; + this.FixedFeeCashOrdersLocationService = fixedFeeCashOrdersLocationService; + this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat = percentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat; + this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat = percentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat; + this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat = fixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat; + this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat = fixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat; + this.PercentFeeCardOrdersIngest = percentFeeCardOrdersIngest; + this.PercentFeeCashOrdersIngest = percentFeeCashOrdersIngest; + this.FixedFeeCardOrdersIngest = fixedFeeCardOrdersIngest; + this.FixedFeeCashOrdersIngest = fixedFeeCashOrdersIngest; + this.PercentFeeDelivery = percentFeeDelivery; + this.FixedFeeDelivery = fixedFeeDelivery; + this.PercentFeeCardPosTransaction = percentFeeCardPosTransaction; + this.FixedFeeCardPosTransaction = fixedFeeCardPosTransaction; + this.PercentFeeOrderWithGoogle = percentFeeOrderWithGoogle; + this.FixedFeeOrderWithGoogle = fixedFeeOrderWithGoogle; + this.ShouldNotAutoIncreaseBefore = shouldNotAutoIncreaseBefore; + this.Reason = reason; + this.PercentFeeCardOrdersPhoneAgent = percentFeeCardOrdersPhoneAgent; + this.PercentFeeCashOrdersPhoneAgent = percentFeeCashOrdersPhoneAgent; + this.FixedFeeCardOrdersPhoneAgent = fixedFeeCardOrdersPhoneAgent; + this.FixedFeeCashOrdersPhoneAgent = fixedFeeCashOrdersPhoneAgent; + this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat = percentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat; + this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat = percentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat; + this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat = fixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat; + this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat = fixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat; + } + + /// + /// Gets or Sets FeeConfigId + /// + [DataMember(Name="FeeConfigId", EmitDefaultValue=false)] + public int? FeeConfigId { get; set; } + + /// + /// Gets or Sets StoreId + /// + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Gets or Sets StartTime + /// + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Gets or Sets PercentFeeCardOrders + /// + [DataMember(Name="PercentFeeCardOrders", EmitDefaultValue=false)] + public double? PercentFeeCardOrders { get; set; } + + /// + /// Gets or Sets PercentFeeCashOrders + /// + [DataMember(Name="PercentFeeCashOrders", EmitDefaultValue=false)] + public double? PercentFeeCashOrders { get; set; } + + /// + /// Gets or Sets PercentFeeCardOrdersWeb + /// + [DataMember(Name="PercentFeeCardOrdersWeb", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersWeb { get; set; } + + /// + /// Gets or Sets PercentFeeCashOrdersWeb + /// + [DataMember(Name="PercentFeeCashOrdersWeb", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersWeb { get; set; } + + /// + /// Gets or Sets PercentFeeCardOrdersKiosk + /// + [DataMember(Name="PercentFeeCardOrdersKiosk", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersKiosk { get; set; } + + /// + /// Gets or Sets PercentFeeCashOrdersKiosk + /// + [DataMember(Name="PercentFeeCashOrdersKiosk", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersKiosk { get; set; } + + /// + /// Gets or Sets FixedFeeCardOrdersKiosk + /// + [DataMember(Name="FixedFeeCardOrdersKiosk", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersKiosk { get; set; } + + /// + /// Gets or Sets FixedFeeCashOrdersKiosk + /// + [DataMember(Name="FixedFeeCashOrdersKiosk", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersKiosk { get; set; } + + /// + /// Gets or Sets PercentFeeCardOrdersKioskChargedToCustomerIncludingVat + /// + [DataMember(Name="PercentFeeCardOrdersKioskChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersKioskChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets FixedFeeCardOrdersKioskChargedToCustomerIncludingVat + /// + [DataMember(Name="FixedFeeCardOrdersKioskChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersKioskChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets PercentFeeCashOrdersKioskChargedToCustomerIncludingVat + /// + [DataMember(Name="PercentFeeCashOrdersKioskChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersKioskChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets FixedFeeCashOrdersKioskChargedToCustomerIncludingVat + /// + [DataMember(Name="FixedFeeCashOrdersKioskChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersKioskChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets FixedFeeCardOrders + /// + [DataMember(Name="FixedFeeCardOrders", EmitDefaultValue=false)] + public double? FixedFeeCardOrders { get; set; } + + /// + /// Gets or Sets FixedFeeCashOrders + /// + [DataMember(Name="FixedFeeCashOrders", EmitDefaultValue=false)] + public double? FixedFeeCashOrders { get; set; } + + /// + /// Gets or Sets PercentFeeCardOrdersChargedToCustomerIncludingVat + /// + [DataMember(Name="PercentFeeCardOrdersChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets FixedFeeCardOrdersChargedToCustomerIncludingVat + /// + [DataMember(Name="FixedFeeCardOrdersChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets PercentFeeCashOrdersChargedToCustomerIncludingVat + /// + [DataMember(Name="PercentFeeCashOrdersChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or Sets FixedFeeCashOrdersChargedToCustomerIncludingVat + /// + [DataMember(Name="FixedFeeCashOrdersChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the percent fee tips. + /// + /// Gets or sets the percent fee tips. + [DataMember(Name="PercentFeeTips", EmitDefaultValue=false)] + public double? PercentFeeTips { get; set; } + + /// + /// Gets or sets the percent fee tips for collection. + /// + /// Gets or sets the percent fee tips for collection. + [DataMember(Name="PercentFeeTipsCollection", EmitDefaultValue=false)] + public double? PercentFeeTipsCollection { get; set; } + + /// + /// Gets or sets the percent fee tips for delivery. + /// + /// Gets or sets the percent fee tips for delivery. + [DataMember(Name="PercentFeeTipsDelivery", EmitDefaultValue=false)] + public double? PercentFeeTipsDelivery { get; set; } + + /// + /// Gets or sets the tax rate percent. + /// + /// Gets or sets the tax rate percent. + [DataMember(Name="TaxRatePercent", EmitDefaultValue=false)] + public double? TaxRatePercent { get; set; } + + /// + /// Gets or sets the percent fee card orders location service. + /// + /// Gets or sets the percent fee card orders location service. + [DataMember(Name="PercentFeeCardOrdersLocationService", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersLocationService { get; set; } + + /// + /// Gets or sets the percent fee cash orders location service. + /// + /// Gets or sets the percent fee cash orders location service. + [DataMember(Name="PercentFeeCashOrdersLocationService", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersLocationService { get; set; } + + /// + /// Gets or sets the fixed fee card orders location service. + /// + /// Gets or sets the fixed fee card orders location service. + [DataMember(Name="FixedFeeCardOrdersLocationService", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersLocationService { get; set; } + + /// + /// Gets or sets the fixed fee cash orders location service. + /// + /// Gets or sets the fixed fee cash orders location service. + [DataMember(Name="FixedFeeCashOrdersLocationService", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersLocationService { get; set; } + + /// + /// Gets or sets the percent fee card orders location service charged to customer including vat. + /// + /// Gets or sets the percent fee card orders location service charged to customer including vat. + [DataMember(Name="PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the percent fee cash orders location service charged to customer including vat. + /// + /// Gets or sets the percent fee cash orders location service charged to customer including vat. + [DataMember(Name="PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the fixed fee card orders location service charged to customer including vat. + /// + /// Gets or sets the fixed fee card orders location service charged to customer including vat. + [DataMember(Name="FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the fixed fee cash orders location service charged to customer including vat. + /// + /// Gets or sets the fixed fee cash orders location service charged to customer including vat. + [DataMember(Name="FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the percent fee card orders ingest. + /// + /// Gets or sets the percent fee card orders ingest. + [DataMember(Name="PercentFeeCardOrdersIngest", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersIngest { get; set; } + + /// + /// Gets or sets the percent fee cash orders ingest. + /// + /// Gets or sets the percent fee cash orders ingest. + [DataMember(Name="PercentFeeCashOrdersIngest", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersIngest { get; set; } + + /// + /// Gets or sets the fixed fee card orders ingest. + /// + /// Gets or sets the fixed fee card orders ingest. + [DataMember(Name="FixedFeeCardOrdersIngest", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersIngest { get; set; } + + /// + /// Gets or sets the fixed fee cash orders ingest. + /// + /// Gets or sets the fixed fee cash orders ingest. + [DataMember(Name="FixedFeeCashOrdersIngest", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersIngest { get; set; } + + /// + /// Gets or sets the percent fee for delivery orders. + /// + /// Gets or sets the percent fee for delivery orders. + [DataMember(Name="PercentFeeDelivery", EmitDefaultValue=false)] + public double? PercentFeeDelivery { get; set; } + + /// + /// Gets or sets the fixed fee for delivery orders. + /// + /// Gets or sets the fixed fee for delivery orders. + [DataMember(Name="FixedFeeDelivery", EmitDefaultValue=false)] + public double? FixedFeeDelivery { get; set; } + + /// + /// Gets or sets the percent fee for POS transactions. + /// + /// Gets or sets the percent fee for POS transactions. + [DataMember(Name="PercentFeeCardPosTransaction", EmitDefaultValue=false)] + public double? PercentFeeCardPosTransaction { get; set; } + + /// + /// Gets or sets the fixed fee for POS transactions. + /// + /// Gets or sets the fixed fee for POS transactions. + [DataMember(Name="FixedFeeCardPosTransaction", EmitDefaultValue=false)] + public double? FixedFeeCardPosTransaction { get; set; } + + /// + /// Additional percentage fee charged on orders submitted through Order With Google + /// + /// Additional percentage fee charged on orders submitted through Order With Google + [DataMember(Name="PercentFeeOrderWithGoogle", EmitDefaultValue=false)] + public double? PercentFeeOrderWithGoogle { get; set; } + + /// + /// Additional fixed fee charged on orders submitted through Order With Google + /// + /// Additional fixed fee charged on orders submitted through Order With Google + [DataMember(Name="FixedFeeOrderWithGoogle", EmitDefaultValue=false)] + public double? FixedFeeOrderWithGoogle { get; set; } + + /// + /// Should not auto increase fees before this date + /// + /// Should not auto increase fees before this date + [DataMember(Name="ShouldNotAutoIncreaseBefore", EmitDefaultValue=false)] + public DateTime? ShouldNotAutoIncreaseBefore { get; set; } + + /// + /// Reason for the last fee change (optional) + /// + /// Reason for the last fee change (optional) + [DataMember(Name="Reason", EmitDefaultValue=false)] + public string Reason { get; set; } + + /// + /// Gets or sets the percent fee card orders phone agent. + /// + /// Gets or sets the percent fee card orders phone agent. + [DataMember(Name="PercentFeeCardOrdersPhoneAgent", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersPhoneAgent { get; set; } + + /// + /// Gets or sets the percent fee cash orders phone agent. + /// + /// Gets or sets the percent fee cash orders phone agent. + [DataMember(Name="PercentFeeCashOrdersPhoneAgent", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersPhoneAgent { get; set; } + + /// + /// Gets or sets the fixed fee card orders phone agent. + /// + /// Gets or sets the fixed fee card orders phone agent. + [DataMember(Name="FixedFeeCardOrdersPhoneAgent", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersPhoneAgent { get; set; } + + /// + /// Gets or sets the fixed fee cash orders phone agent. + /// + /// Gets or sets the fixed fee cash orders phone agent. + [DataMember(Name="FixedFeeCashOrdersPhoneAgent", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersPhoneAgent { get; set; } + + /// + /// Gets or sets the percent fee card orders phone agent charged to customer including vat. + /// + /// Gets or sets the percent fee card orders phone agent charged to customer including vat. + [DataMember(Name="PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the percent fee cash orders phone agent charged to customer including vat. + /// + /// Gets or sets the percent fee cash orders phone agent charged to customer including vat. + [DataMember(Name="PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the fixed fee card orders phone agent charged to customer including vat. + /// + /// Gets or sets the fixed fee card orders phone agent charged to customer including vat. + [DataMember(Name="FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat { get; set; } + + /// + /// Gets or sets the fixed fee cash orders phone agent charged to customer including vat. + /// + /// Gets or sets the fixed fee cash orders phone agent charged to customer including vat. + [DataMember(Name="FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat", EmitDefaultValue=false)] + public double? FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreFeeConfig {\n"); + sb.Append(" FeeConfigId: ").Append(FeeConfigId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" PercentFeeCardOrders: ").Append(PercentFeeCardOrders).Append("\n"); + sb.Append(" PercentFeeCashOrders: ").Append(PercentFeeCashOrders).Append("\n"); + sb.Append(" PercentFeeCardOrdersWeb: ").Append(PercentFeeCardOrdersWeb).Append("\n"); + sb.Append(" PercentFeeCashOrdersWeb: ").Append(PercentFeeCashOrdersWeb).Append("\n"); + sb.Append(" PercentFeeCardOrdersKiosk: ").Append(PercentFeeCardOrdersKiosk).Append("\n"); + sb.Append(" PercentFeeCashOrdersKiosk: ").Append(PercentFeeCashOrdersKiosk).Append("\n"); + sb.Append(" FixedFeeCardOrdersKiosk: ").Append(FixedFeeCardOrdersKiosk).Append("\n"); + sb.Append(" FixedFeeCashOrdersKiosk: ").Append(FixedFeeCashOrdersKiosk).Append("\n"); + sb.Append(" PercentFeeCardOrdersKioskChargedToCustomerIncludingVat: ").Append(PercentFeeCardOrdersKioskChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCardOrdersKioskChargedToCustomerIncludingVat: ").Append(FixedFeeCardOrdersKioskChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeCashOrdersKioskChargedToCustomerIncludingVat: ").Append(PercentFeeCashOrdersKioskChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCashOrdersKioskChargedToCustomerIncludingVat: ").Append(FixedFeeCashOrdersKioskChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCardOrders: ").Append(FixedFeeCardOrders).Append("\n"); + sb.Append(" FixedFeeCashOrders: ").Append(FixedFeeCashOrders).Append("\n"); + sb.Append(" PercentFeeCardOrdersChargedToCustomerIncludingVat: ").Append(PercentFeeCardOrdersChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCardOrdersChargedToCustomerIncludingVat: ").Append(FixedFeeCardOrdersChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeCashOrdersChargedToCustomerIncludingVat: ").Append(PercentFeeCashOrdersChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCashOrdersChargedToCustomerIncludingVat: ").Append(FixedFeeCashOrdersChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeTips: ").Append(PercentFeeTips).Append("\n"); + sb.Append(" PercentFeeTipsCollection: ").Append(PercentFeeTipsCollection).Append("\n"); + sb.Append(" PercentFeeTipsDelivery: ").Append(PercentFeeTipsDelivery).Append("\n"); + sb.Append(" TaxRatePercent: ").Append(TaxRatePercent).Append("\n"); + sb.Append(" PercentFeeCardOrdersLocationService: ").Append(PercentFeeCardOrdersLocationService).Append("\n"); + sb.Append(" PercentFeeCashOrdersLocationService: ").Append(PercentFeeCashOrdersLocationService).Append("\n"); + sb.Append(" FixedFeeCardOrdersLocationService: ").Append(FixedFeeCardOrdersLocationService).Append("\n"); + sb.Append(" FixedFeeCashOrdersLocationService: ").Append(FixedFeeCashOrdersLocationService).Append("\n"); + sb.Append(" PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat: ").Append(PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat: ").Append(PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat: ").Append(FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat: ").Append(FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeCardOrdersIngest: ").Append(PercentFeeCardOrdersIngest).Append("\n"); + sb.Append(" PercentFeeCashOrdersIngest: ").Append(PercentFeeCashOrdersIngest).Append("\n"); + sb.Append(" FixedFeeCardOrdersIngest: ").Append(FixedFeeCardOrdersIngest).Append("\n"); + sb.Append(" FixedFeeCashOrdersIngest: ").Append(FixedFeeCashOrdersIngest).Append("\n"); + sb.Append(" PercentFeeDelivery: ").Append(PercentFeeDelivery).Append("\n"); + sb.Append(" FixedFeeDelivery: ").Append(FixedFeeDelivery).Append("\n"); + sb.Append(" PercentFeeCardPosTransaction: ").Append(PercentFeeCardPosTransaction).Append("\n"); + sb.Append(" FixedFeeCardPosTransaction: ").Append(FixedFeeCardPosTransaction).Append("\n"); + sb.Append(" PercentFeeOrderWithGoogle: ").Append(PercentFeeOrderWithGoogle).Append("\n"); + sb.Append(" FixedFeeOrderWithGoogle: ").Append(FixedFeeOrderWithGoogle).Append("\n"); + sb.Append(" ShouldNotAutoIncreaseBefore: ").Append(ShouldNotAutoIncreaseBefore).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append(" PercentFeeCardOrdersPhoneAgent: ").Append(PercentFeeCardOrdersPhoneAgent).Append("\n"); + sb.Append(" PercentFeeCashOrdersPhoneAgent: ").Append(PercentFeeCashOrdersPhoneAgent).Append("\n"); + sb.Append(" FixedFeeCardOrdersPhoneAgent: ").Append(FixedFeeCardOrdersPhoneAgent).Append("\n"); + sb.Append(" FixedFeeCashOrdersPhoneAgent: ").Append(FixedFeeCashOrdersPhoneAgent).Append("\n"); + sb.Append(" PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat: ").Append(PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat: ").Append(PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat: ").Append(FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat).Append("\n"); + sb.Append(" FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat: ").Append(FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreFeeConfig); + } + + /// + /// Returns true if StoreFeeConfig instances are equal + /// + /// Instance of StoreFeeConfig to be compared + /// Boolean + public bool Equals(StoreFeeConfig input) + { + if (input == null) + return false; + + return + ( + this.FeeConfigId == input.FeeConfigId || + (this.FeeConfigId != null && + this.FeeConfigId.Equals(input.FeeConfigId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.PercentFeeCardOrders == input.PercentFeeCardOrders || + (this.PercentFeeCardOrders != null && + this.PercentFeeCardOrders.Equals(input.PercentFeeCardOrders)) + ) && + ( + this.PercentFeeCashOrders == input.PercentFeeCashOrders || + (this.PercentFeeCashOrders != null && + this.PercentFeeCashOrders.Equals(input.PercentFeeCashOrders)) + ) && + ( + this.PercentFeeCardOrdersWeb == input.PercentFeeCardOrdersWeb || + (this.PercentFeeCardOrdersWeb != null && + this.PercentFeeCardOrdersWeb.Equals(input.PercentFeeCardOrdersWeb)) + ) && + ( + this.PercentFeeCashOrdersWeb == input.PercentFeeCashOrdersWeb || + (this.PercentFeeCashOrdersWeb != null && + this.PercentFeeCashOrdersWeb.Equals(input.PercentFeeCashOrdersWeb)) + ) && + ( + this.PercentFeeCardOrdersKiosk == input.PercentFeeCardOrdersKiosk || + (this.PercentFeeCardOrdersKiosk != null && + this.PercentFeeCardOrdersKiosk.Equals(input.PercentFeeCardOrdersKiosk)) + ) && + ( + this.PercentFeeCashOrdersKiosk == input.PercentFeeCashOrdersKiosk || + (this.PercentFeeCashOrdersKiosk != null && + this.PercentFeeCashOrdersKiosk.Equals(input.PercentFeeCashOrdersKiosk)) + ) && + ( + this.FixedFeeCardOrdersKiosk == input.FixedFeeCardOrdersKiosk || + (this.FixedFeeCardOrdersKiosk != null && + this.FixedFeeCardOrdersKiosk.Equals(input.FixedFeeCardOrdersKiosk)) + ) && + ( + this.FixedFeeCashOrdersKiosk == input.FixedFeeCashOrdersKiosk || + (this.FixedFeeCashOrdersKiosk != null && + this.FixedFeeCashOrdersKiosk.Equals(input.FixedFeeCashOrdersKiosk)) + ) && + ( + this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat == input.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat || + (this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat != null && + this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat.Equals(input.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat == input.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat || + (this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat != null && + this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat.Equals(input.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat == input.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat || + (this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat != null && + this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat.Equals(input.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat == input.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat || + (this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat != null && + this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat.Equals(input.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCardOrders == input.FixedFeeCardOrders || + (this.FixedFeeCardOrders != null && + this.FixedFeeCardOrders.Equals(input.FixedFeeCardOrders)) + ) && + ( + this.FixedFeeCashOrders == input.FixedFeeCashOrders || + (this.FixedFeeCashOrders != null && + this.FixedFeeCashOrders.Equals(input.FixedFeeCashOrders)) + ) && + ( + this.PercentFeeCardOrdersChargedToCustomerIncludingVat == input.PercentFeeCardOrdersChargedToCustomerIncludingVat || + (this.PercentFeeCardOrdersChargedToCustomerIncludingVat != null && + this.PercentFeeCardOrdersChargedToCustomerIncludingVat.Equals(input.PercentFeeCardOrdersChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCardOrdersChargedToCustomerIncludingVat == input.FixedFeeCardOrdersChargedToCustomerIncludingVat || + (this.FixedFeeCardOrdersChargedToCustomerIncludingVat != null && + this.FixedFeeCardOrdersChargedToCustomerIncludingVat.Equals(input.FixedFeeCardOrdersChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeCashOrdersChargedToCustomerIncludingVat == input.PercentFeeCashOrdersChargedToCustomerIncludingVat || + (this.PercentFeeCashOrdersChargedToCustomerIncludingVat != null && + this.PercentFeeCashOrdersChargedToCustomerIncludingVat.Equals(input.PercentFeeCashOrdersChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCashOrdersChargedToCustomerIncludingVat == input.FixedFeeCashOrdersChargedToCustomerIncludingVat || + (this.FixedFeeCashOrdersChargedToCustomerIncludingVat != null && + this.FixedFeeCashOrdersChargedToCustomerIncludingVat.Equals(input.FixedFeeCashOrdersChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeTips == input.PercentFeeTips || + (this.PercentFeeTips != null && + this.PercentFeeTips.Equals(input.PercentFeeTips)) + ) && + ( + this.PercentFeeTipsCollection == input.PercentFeeTipsCollection || + (this.PercentFeeTipsCollection != null && + this.PercentFeeTipsCollection.Equals(input.PercentFeeTipsCollection)) + ) && + ( + this.PercentFeeTipsDelivery == input.PercentFeeTipsDelivery || + (this.PercentFeeTipsDelivery != null && + this.PercentFeeTipsDelivery.Equals(input.PercentFeeTipsDelivery)) + ) && + ( + this.TaxRatePercent == input.TaxRatePercent || + (this.TaxRatePercent != null && + this.TaxRatePercent.Equals(input.TaxRatePercent)) + ) && + ( + this.PercentFeeCardOrdersLocationService == input.PercentFeeCardOrdersLocationService || + (this.PercentFeeCardOrdersLocationService != null && + this.PercentFeeCardOrdersLocationService.Equals(input.PercentFeeCardOrdersLocationService)) + ) && + ( + this.PercentFeeCashOrdersLocationService == input.PercentFeeCashOrdersLocationService || + (this.PercentFeeCashOrdersLocationService != null && + this.PercentFeeCashOrdersLocationService.Equals(input.PercentFeeCashOrdersLocationService)) + ) && + ( + this.FixedFeeCardOrdersLocationService == input.FixedFeeCardOrdersLocationService || + (this.FixedFeeCardOrdersLocationService != null && + this.FixedFeeCardOrdersLocationService.Equals(input.FixedFeeCardOrdersLocationService)) + ) && + ( + this.FixedFeeCashOrdersLocationService == input.FixedFeeCashOrdersLocationService || + (this.FixedFeeCashOrdersLocationService != null && + this.FixedFeeCashOrdersLocationService.Equals(input.FixedFeeCashOrdersLocationService)) + ) && + ( + this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat == input.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat || + (this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat != null && + this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat.Equals(input.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat == input.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat || + (this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat != null && + this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat.Equals(input.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat == input.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat || + (this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat != null && + this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat.Equals(input.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat == input.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat || + (this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat != null && + this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat.Equals(input.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeCardOrdersIngest == input.PercentFeeCardOrdersIngest || + (this.PercentFeeCardOrdersIngest != null && + this.PercentFeeCardOrdersIngest.Equals(input.PercentFeeCardOrdersIngest)) + ) && + ( + this.PercentFeeCashOrdersIngest == input.PercentFeeCashOrdersIngest || + (this.PercentFeeCashOrdersIngest != null && + this.PercentFeeCashOrdersIngest.Equals(input.PercentFeeCashOrdersIngest)) + ) && + ( + this.FixedFeeCardOrdersIngest == input.FixedFeeCardOrdersIngest || + (this.FixedFeeCardOrdersIngest != null && + this.FixedFeeCardOrdersIngest.Equals(input.FixedFeeCardOrdersIngest)) + ) && + ( + this.FixedFeeCashOrdersIngest == input.FixedFeeCashOrdersIngest || + (this.FixedFeeCashOrdersIngest != null && + this.FixedFeeCashOrdersIngest.Equals(input.FixedFeeCashOrdersIngest)) + ) && + ( + this.PercentFeeDelivery == input.PercentFeeDelivery || + (this.PercentFeeDelivery != null && + this.PercentFeeDelivery.Equals(input.PercentFeeDelivery)) + ) && + ( + this.FixedFeeDelivery == input.FixedFeeDelivery || + (this.FixedFeeDelivery != null && + this.FixedFeeDelivery.Equals(input.FixedFeeDelivery)) + ) && + ( + this.PercentFeeCardPosTransaction == input.PercentFeeCardPosTransaction || + (this.PercentFeeCardPosTransaction != null && + this.PercentFeeCardPosTransaction.Equals(input.PercentFeeCardPosTransaction)) + ) && + ( + this.FixedFeeCardPosTransaction == input.FixedFeeCardPosTransaction || + (this.FixedFeeCardPosTransaction != null && + this.FixedFeeCardPosTransaction.Equals(input.FixedFeeCardPosTransaction)) + ) && + ( + this.PercentFeeOrderWithGoogle == input.PercentFeeOrderWithGoogle || + (this.PercentFeeOrderWithGoogle != null && + this.PercentFeeOrderWithGoogle.Equals(input.PercentFeeOrderWithGoogle)) + ) && + ( + this.FixedFeeOrderWithGoogle == input.FixedFeeOrderWithGoogle || + (this.FixedFeeOrderWithGoogle != null && + this.FixedFeeOrderWithGoogle.Equals(input.FixedFeeOrderWithGoogle)) + ) && + ( + this.ShouldNotAutoIncreaseBefore == input.ShouldNotAutoIncreaseBefore || + (this.ShouldNotAutoIncreaseBefore != null && + this.ShouldNotAutoIncreaseBefore.Equals(input.ShouldNotAutoIncreaseBefore)) + ) && + ( + this.Reason == input.Reason || + (this.Reason != null && + this.Reason.Equals(input.Reason)) + ) && + ( + this.PercentFeeCardOrdersPhoneAgent == input.PercentFeeCardOrdersPhoneAgent || + (this.PercentFeeCardOrdersPhoneAgent != null && + this.PercentFeeCardOrdersPhoneAgent.Equals(input.PercentFeeCardOrdersPhoneAgent)) + ) && + ( + this.PercentFeeCashOrdersPhoneAgent == input.PercentFeeCashOrdersPhoneAgent || + (this.PercentFeeCashOrdersPhoneAgent != null && + this.PercentFeeCashOrdersPhoneAgent.Equals(input.PercentFeeCashOrdersPhoneAgent)) + ) && + ( + this.FixedFeeCardOrdersPhoneAgent == input.FixedFeeCardOrdersPhoneAgent || + (this.FixedFeeCardOrdersPhoneAgent != null && + this.FixedFeeCardOrdersPhoneAgent.Equals(input.FixedFeeCardOrdersPhoneAgent)) + ) && + ( + this.FixedFeeCashOrdersPhoneAgent == input.FixedFeeCashOrdersPhoneAgent || + (this.FixedFeeCashOrdersPhoneAgent != null && + this.FixedFeeCashOrdersPhoneAgent.Equals(input.FixedFeeCashOrdersPhoneAgent)) + ) && + ( + this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat == input.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat || + (this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat != null && + this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat.Equals(input.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat)) + ) && + ( + this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat == input.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat || + (this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat != null && + this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat.Equals(input.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat == input.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat || + (this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat != null && + this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat.Equals(input.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat)) + ) && + ( + this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat == input.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat || + (this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat != null && + this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat.Equals(input.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FeeConfigId != null) + hashCode = hashCode * 59 + this.FeeConfigId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.PercentFeeCardOrders != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrders.GetHashCode(); + if (this.PercentFeeCashOrders != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrders.GetHashCode(); + if (this.PercentFeeCardOrdersWeb != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersWeb.GetHashCode(); + if (this.PercentFeeCashOrdersWeb != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersWeb.GetHashCode(); + if (this.PercentFeeCardOrdersKiosk != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersKiosk.GetHashCode(); + if (this.PercentFeeCashOrdersKiosk != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersKiosk.GetHashCode(); + if (this.FixedFeeCardOrdersKiosk != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersKiosk.GetHashCode(); + if (this.FixedFeeCashOrdersKiosk != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersKiosk.GetHashCode(); + if (this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersKioskChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersKioskChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersKioskChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersKioskChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCardOrders != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrders.GetHashCode(); + if (this.FixedFeeCashOrders != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrders.GetHashCode(); + if (this.PercentFeeCardOrdersChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCardOrdersChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeCashOrdersChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCashOrdersChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeTips != null) + hashCode = hashCode * 59 + this.PercentFeeTips.GetHashCode(); + if (this.PercentFeeTipsCollection != null) + hashCode = hashCode * 59 + this.PercentFeeTipsCollection.GetHashCode(); + if (this.PercentFeeTipsDelivery != null) + hashCode = hashCode * 59 + this.PercentFeeTipsDelivery.GetHashCode(); + if (this.TaxRatePercent != null) + hashCode = hashCode * 59 + this.TaxRatePercent.GetHashCode(); + if (this.PercentFeeCardOrdersLocationService != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersLocationService.GetHashCode(); + if (this.PercentFeeCashOrdersLocationService != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersLocationService.GetHashCode(); + if (this.FixedFeeCardOrdersLocationService != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersLocationService.GetHashCode(); + if (this.FixedFeeCashOrdersLocationService != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersLocationService.GetHashCode(); + if (this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeCardOrdersIngest != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersIngest.GetHashCode(); + if (this.PercentFeeCashOrdersIngest != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersIngest.GetHashCode(); + if (this.FixedFeeCardOrdersIngest != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersIngest.GetHashCode(); + if (this.FixedFeeCashOrdersIngest != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersIngest.GetHashCode(); + if (this.PercentFeeDelivery != null) + hashCode = hashCode * 59 + this.PercentFeeDelivery.GetHashCode(); + if (this.FixedFeeDelivery != null) + hashCode = hashCode * 59 + this.FixedFeeDelivery.GetHashCode(); + if (this.PercentFeeCardPosTransaction != null) + hashCode = hashCode * 59 + this.PercentFeeCardPosTransaction.GetHashCode(); + if (this.FixedFeeCardPosTransaction != null) + hashCode = hashCode * 59 + this.FixedFeeCardPosTransaction.GetHashCode(); + if (this.PercentFeeOrderWithGoogle != null) + hashCode = hashCode * 59 + this.PercentFeeOrderWithGoogle.GetHashCode(); + if (this.FixedFeeOrderWithGoogle != null) + hashCode = hashCode * 59 + this.FixedFeeOrderWithGoogle.GetHashCode(); + if (this.ShouldNotAutoIncreaseBefore != null) + hashCode = hashCode * 59 + this.ShouldNotAutoIncreaseBefore.GetHashCode(); + if (this.Reason != null) + hashCode = hashCode * 59 + this.Reason.GetHashCode(); + if (this.PercentFeeCardOrdersPhoneAgent != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersPhoneAgent.GetHashCode(); + if (this.PercentFeeCashOrdersPhoneAgent != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersPhoneAgent.GetHashCode(); + if (this.FixedFeeCardOrdersPhoneAgent != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersPhoneAgent.GetHashCode(); + if (this.FixedFeeCashOrdersPhoneAgent != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersPhoneAgent.GetHashCode(); + if (this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat.GetHashCode(); + if (this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.PercentFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCardOrdersPhoneAgentChargedToCustomerIncludingVat.GetHashCode(); + if (this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat != null) + hashCode = hashCode * 59 + this.FixedFeeCashOrdersPhoneAgentChargedToCustomerIncludingVat.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreFeeConfigUpdatedEvent.cs b/src/Flipdish/Model/StoreFeeConfigUpdatedEvent.cs new file mode 100644 index 00000000..a1ef9e36 --- /dev/null +++ b/src/Flipdish/Model/StoreFeeConfigUpdatedEvent.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Fee Config Updated Event + /// + [DataContract] + public partial class StoreFeeConfigUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// Store group Id. + /// User which updated this store address. + /// Description. + /// Diff between before and after. + /// Store fee config. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreFeeConfigUpdatedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), string changes = default(string), StoreFeeConfig storeFeeConfig = default(StoreFeeConfig), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.Changes = changes; + this.StoreFeeConfig = storeFeeConfig; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which updated this store address + /// + /// User which updated this store address + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Diff between before and after + /// + /// Diff between before and after + [DataMember(Name="Changes", EmitDefaultValue=false)] + public string Changes { get; set; } + + /// + /// Store fee config + /// + /// Store fee config + [DataMember(Name="StoreFeeConfig", EmitDefaultValue=false)] + public StoreFeeConfig StoreFeeConfig { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreFeeConfigUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Changes: ").Append(Changes).Append("\n"); + sb.Append(" StoreFeeConfig: ").Append(StoreFeeConfig).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreFeeConfigUpdatedEvent); + } + + /// + /// Returns true if StoreFeeConfigUpdatedEvent instances are equal + /// + /// Instance of StoreFeeConfigUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreFeeConfigUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Changes == input.Changes || + (this.Changes != null && + this.Changes.Equals(input.Changes)) + ) && + ( + this.StoreFeeConfig == input.StoreFeeConfig || + (this.StoreFeeConfig != null && + this.StoreFeeConfig.Equals(input.StoreFeeConfig)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Changes != null) + hashCode = hashCode * 59 + this.Changes.GetHashCode(); + if (this.StoreFeeConfig != null) + hashCode = hashCode * 59 + this.StoreFeeConfig.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroup.cs b/src/Flipdish/Model/StoreGroup.cs new file mode 100644 index 00000000..9511c1ce --- /dev/null +++ b/src/Flipdish/Model/StoreGroup.cs @@ -0,0 +1,919 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Group + /// + [DataContract] + public partial class StoreGroup : IEquatable + { + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Unique Store Group Identifier. + /// Store Group rating. + /// Store Group rating count. + /// Delivery menu message. + /// Pickup menu message. + /// List of brand ids (AppIds) that are associated with this store group. + /// Store Group Name. + /// Currency used by the stores in this group. + public StoreGroup(int? storeGroupId = default(int?), double? generalRating = default(double?), int? generalRatingCount = default(int?), string deliveryMenuMessage = default(string), string pickupMenuMessage = default(string), List brandIds = default(List), string name = default(string), CurrencyEnum? currency = default(CurrencyEnum?)) + { + this.StoreGroupId = storeGroupId; + this.GeneralRating = generalRating; + this.GeneralRatingCount = generalRatingCount; + this.DeliveryMenuMessage = deliveryMenuMessage; + this.PickupMenuMessage = pickupMenuMessage; + this.BrandIds = brandIds; + this.Name = name; + this.Currency = currency; + } + + /// + /// Unique Store Group Identifier + /// + /// Unique Store Group Identifier + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Store Group rating + /// + /// Store Group rating + [DataMember(Name="GeneralRating", EmitDefaultValue=false)] + public double? GeneralRating { get; set; } + + /// + /// Store Group rating count + /// + /// Store Group rating count + [DataMember(Name="GeneralRatingCount", EmitDefaultValue=false)] + public int? GeneralRatingCount { get; set; } + + /// + /// Delivery menu message + /// + /// Delivery menu message + [DataMember(Name="DeliveryMenuMessage", EmitDefaultValue=false)] + public string DeliveryMenuMessage { get; set; } + + /// + /// Pickup menu message + /// + /// Pickup menu message + [DataMember(Name="PickupMenuMessage", EmitDefaultValue=false)] + public string PickupMenuMessage { get; set; } + + /// + /// List of brand ids (AppIds) that are associated with this store group + /// + /// List of brand ids (AppIds) that are associated with this store group + [DataMember(Name="BrandIds", EmitDefaultValue=false)] + public List BrandIds { get; set; } + + /// + /// Store Group Name + /// + /// Store Group Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroup {\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" GeneralRating: ").Append(GeneralRating).Append("\n"); + sb.Append(" GeneralRatingCount: ").Append(GeneralRatingCount).Append("\n"); + sb.Append(" DeliveryMenuMessage: ").Append(DeliveryMenuMessage).Append("\n"); + sb.Append(" PickupMenuMessage: ").Append(PickupMenuMessage).Append("\n"); + sb.Append(" BrandIds: ").Append(BrandIds).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroup); + } + + /// + /// Returns true if StoreGroup instances are equal + /// + /// Instance of StoreGroup to be compared + /// Boolean + public bool Equals(StoreGroup input) + { + if (input == null) + return false; + + return + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.GeneralRating == input.GeneralRating || + (this.GeneralRating != null && + this.GeneralRating.Equals(input.GeneralRating)) + ) && + ( + this.GeneralRatingCount == input.GeneralRatingCount || + (this.GeneralRatingCount != null && + this.GeneralRatingCount.Equals(input.GeneralRatingCount)) + ) && + ( + this.DeliveryMenuMessage == input.DeliveryMenuMessage || + (this.DeliveryMenuMessage != null && + this.DeliveryMenuMessage.Equals(input.DeliveryMenuMessage)) + ) && + ( + this.PickupMenuMessage == input.PickupMenuMessage || + (this.PickupMenuMessage != null && + this.PickupMenuMessage.Equals(input.PickupMenuMessage)) + ) && + ( + this.BrandIds == input.BrandIds || + this.BrandIds != null && + this.BrandIds.SequenceEqual(input.BrandIds) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.GeneralRating != null) + hashCode = hashCode * 59 + this.GeneralRating.GetHashCode(); + if (this.GeneralRatingCount != null) + hashCode = hashCode * 59 + this.GeneralRatingCount.GetHashCode(); + if (this.DeliveryMenuMessage != null) + hashCode = hashCode * 59 + this.DeliveryMenuMessage.GetHashCode(); + if (this.PickupMenuMessage != null) + hashCode = hashCode * 59 + this.PickupMenuMessage.GetHashCode(); + if (this.BrandIds != null) + hashCode = hashCode * 59 + this.BrandIds.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroupBase.cs b/src/Flipdish/Model/StoreGroupBase.cs new file mode 100644 index 00000000..942ebfda --- /dev/null +++ b/src/Flipdish/Model/StoreGroupBase.cs @@ -0,0 +1,817 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Store Group + /// + [DataContract] + public partial class StoreGroupBase : IEquatable + { + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store Group Name. + /// Currency used by the stores in this group. + public StoreGroupBase(string name = default(string), CurrencyEnum? currency = default(CurrencyEnum?)) + { + this.Name = name; + this.Currency = currency; + } + + /// + /// Store Group Name + /// + /// Store Group Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroupBase {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroupBase); + } + + /// + /// Returns true if StoreGroupBase instances are equal + /// + /// Instance of StoreGroupBase to be compared + /// Boolean + public bool Equals(StoreGroupBase input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroupCreatedEvent.cs b/src/Flipdish/Model/StoreGroupCreatedEvent.cs new file mode 100644 index 00000000..8b566750 --- /dev/null +++ b/src/Flipdish/Model/StoreGroupCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Group Created Event + /// + [DataContract] + public partial class StoreGroupCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Group Id. + /// User which created this store group. + /// Description. + /// Created store group. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreGroupCreatedEvent(string eventName = default(string), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreGroup storeGroup = default(StoreGroup), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.StoreGroup = storeGroup; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Group Id + /// + /// Store Group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which created this store group + /// + /// User which created this store group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Created store group + /// + /// Created store group + [DataMember(Name="StoreGroup", EmitDefaultValue=false)] + public StoreGroup StoreGroup { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroupCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreGroup: ").Append(StoreGroup).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroupCreatedEvent); + } + + /// + /// Returns true if StoreGroupCreatedEvent instances are equal + /// + /// Instance of StoreGroupCreatedEvent to be compared + /// Boolean + public bool Equals(StoreGroupCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreGroup == input.StoreGroup || + (this.StoreGroup != null && + this.StoreGroup.Equals(input.StoreGroup)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreGroup != null) + hashCode = hashCode * 59 + this.StoreGroup.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroupDeletedEvent.cs b/src/Flipdish/Model/StoreGroupDeletedEvent.cs new file mode 100644 index 00000000..83c5ac51 --- /dev/null +++ b/src/Flipdish/Model/StoreGroupDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Group Deleted Event + /// + [DataContract] + public partial class StoreGroupDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Group Id. + /// User which deleted this store group. + /// Description. + /// Deleted store group. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreGroupDeletedEvent(string eventName = default(string), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreGroup storeGroup = default(StoreGroup), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.StoreGroup = storeGroup; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Group Id + /// + /// Store Group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which deleted this store group + /// + /// User which deleted this store group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Deleted store group + /// + /// Deleted store group + [DataMember(Name="StoreGroup", EmitDefaultValue=false)] + public StoreGroup StoreGroup { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroupDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreGroup: ").Append(StoreGroup).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroupDeletedEvent); + } + + /// + /// Returns true if StoreGroupDeletedEvent instances are equal + /// + /// Instance of StoreGroupDeletedEvent to be compared + /// Boolean + public bool Equals(StoreGroupDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreGroup == input.StoreGroup || + (this.StoreGroup != null && + this.StoreGroup.Equals(input.StoreGroup)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreGroup != null) + hashCode = hashCode * 59 + this.StoreGroup.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroupExtended.cs b/src/Flipdish/Model/StoreGroupExtended.cs new file mode 100644 index 00000000..a04c5b82 --- /dev/null +++ b/src/Flipdish/Model/StoreGroupExtended.cs @@ -0,0 +1,970 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Group Extended + /// + [DataContract] + public partial class StoreGroupExtended : IEquatable + { + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency used by the stores in this group + /// + /// Currency used by the stores in this group + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Total Amount of Stores. + /// Grouped store coordinates. + /// Store Headers associated with Store Group. + /// Unique Store Group Identifier. + /// Store Group rating. + /// Store Group rating count. + /// Delivery menu message. + /// Pickup menu message. + /// List of brand ids (AppIds) that are associated with this store group. + /// Store Group Name. + /// Currency used by the stores in this group. + public StoreGroupExtended(int? totalStores = default(int?), List groupedCoordinates = default(List), List storeHeaders = default(List), int? storeGroupId = default(int?), double? generalRating = default(double?), int? generalRatingCount = default(int?), string deliveryMenuMessage = default(string), string pickupMenuMessage = default(string), List brandIds = default(List), string name = default(string), CurrencyEnum? currency = default(CurrencyEnum?)) + { + this.TotalStores = totalStores; + this.GroupedCoordinates = groupedCoordinates; + this.StoreHeaders = storeHeaders; + this.StoreGroupId = storeGroupId; + this.GeneralRating = generalRating; + this.GeneralRatingCount = generalRatingCount; + this.DeliveryMenuMessage = deliveryMenuMessage; + this.PickupMenuMessage = pickupMenuMessage; + this.BrandIds = brandIds; + this.Name = name; + this.Currency = currency; + } + + /// + /// Total Amount of Stores + /// + /// Total Amount of Stores + [DataMember(Name="TotalStores", EmitDefaultValue=false)] + public int? TotalStores { get; set; } + + /// + /// Grouped store coordinates + /// + /// Grouped store coordinates + [DataMember(Name="GroupedCoordinates", EmitDefaultValue=false)] + public List GroupedCoordinates { get; set; } + + /// + /// Store Headers associated with Store Group + /// + /// Store Headers associated with Store Group + [DataMember(Name="StoreHeaders", EmitDefaultValue=false)] + public List StoreHeaders { get; set; } + + /// + /// Unique Store Group Identifier + /// + /// Unique Store Group Identifier + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Store Group rating + /// + /// Store Group rating + [DataMember(Name="GeneralRating", EmitDefaultValue=false)] + public double? GeneralRating { get; set; } + + /// + /// Store Group rating count + /// + /// Store Group rating count + [DataMember(Name="GeneralRatingCount", EmitDefaultValue=false)] + public int? GeneralRatingCount { get; set; } + + /// + /// Delivery menu message + /// + /// Delivery menu message + [DataMember(Name="DeliveryMenuMessage", EmitDefaultValue=false)] + public string DeliveryMenuMessage { get; set; } + + /// + /// Pickup menu message + /// + /// Pickup menu message + [DataMember(Name="PickupMenuMessage", EmitDefaultValue=false)] + public string PickupMenuMessage { get; set; } + + /// + /// List of brand ids (AppIds) that are associated with this store group + /// + /// List of brand ids (AppIds) that are associated with this store group + [DataMember(Name="BrandIds", EmitDefaultValue=false)] + public List BrandIds { get; set; } + + /// + /// Store Group Name + /// + /// Store Group Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroupExtended {\n"); + sb.Append(" TotalStores: ").Append(TotalStores).Append("\n"); + sb.Append(" GroupedCoordinates: ").Append(GroupedCoordinates).Append("\n"); + sb.Append(" StoreHeaders: ").Append(StoreHeaders).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" GeneralRating: ").Append(GeneralRating).Append("\n"); + sb.Append(" GeneralRatingCount: ").Append(GeneralRatingCount).Append("\n"); + sb.Append(" DeliveryMenuMessage: ").Append(DeliveryMenuMessage).Append("\n"); + sb.Append(" PickupMenuMessage: ").Append(PickupMenuMessage).Append("\n"); + sb.Append(" BrandIds: ").Append(BrandIds).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroupExtended); + } + + /// + /// Returns true if StoreGroupExtended instances are equal + /// + /// Instance of StoreGroupExtended to be compared + /// Boolean + public bool Equals(StoreGroupExtended input) + { + if (input == null) + return false; + + return + ( + this.TotalStores == input.TotalStores || + (this.TotalStores != null && + this.TotalStores.Equals(input.TotalStores)) + ) && + ( + this.GroupedCoordinates == input.GroupedCoordinates || + this.GroupedCoordinates != null && + this.GroupedCoordinates.SequenceEqual(input.GroupedCoordinates) + ) && + ( + this.StoreHeaders == input.StoreHeaders || + this.StoreHeaders != null && + this.StoreHeaders.SequenceEqual(input.StoreHeaders) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.GeneralRating == input.GeneralRating || + (this.GeneralRating != null && + this.GeneralRating.Equals(input.GeneralRating)) + ) && + ( + this.GeneralRatingCount == input.GeneralRatingCount || + (this.GeneralRatingCount != null && + this.GeneralRatingCount.Equals(input.GeneralRatingCount)) + ) && + ( + this.DeliveryMenuMessage == input.DeliveryMenuMessage || + (this.DeliveryMenuMessage != null && + this.DeliveryMenuMessage.Equals(input.DeliveryMenuMessage)) + ) && + ( + this.PickupMenuMessage == input.PickupMenuMessage || + (this.PickupMenuMessage != null && + this.PickupMenuMessage.Equals(input.PickupMenuMessage)) + ) && + ( + this.BrandIds == input.BrandIds || + this.BrandIds != null && + this.BrandIds.SequenceEqual(input.BrandIds) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TotalStores != null) + hashCode = hashCode * 59 + this.TotalStores.GetHashCode(); + if (this.GroupedCoordinates != null) + hashCode = hashCode * 59 + this.GroupedCoordinates.GetHashCode(); + if (this.StoreHeaders != null) + hashCode = hashCode * 59 + this.StoreHeaders.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.GeneralRating != null) + hashCode = hashCode * 59 + this.GeneralRating.GetHashCode(); + if (this.GeneralRatingCount != null) + hashCode = hashCode * 59 + this.GeneralRatingCount.GetHashCode(); + if (this.DeliveryMenuMessage != null) + hashCode = hashCode * 59 + this.DeliveryMenuMessage.GetHashCode(); + if (this.PickupMenuMessage != null) + hashCode = hashCode * 59 + this.PickupMenuMessage.GetHashCode(); + if (this.BrandIds != null) + hashCode = hashCode * 59 + this.BrandIds.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreGroupUpdatedEvent.cs b/src/Flipdish/Model/StoreGroupUpdatedEvent.cs new file mode 100644 index 00000000..00390f9f --- /dev/null +++ b/src/Flipdish/Model/StoreGroupUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Group Updated Event + /// + [DataContract] + public partial class StoreGroupUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Group Id. + /// User which updated this store group. + /// Description. + /// Updated store group. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreGroupUpdatedEvent(string eventName = default(string), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreGroup storeGroup = default(StoreGroup), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreGroupId = storeGroupId; + this.User = user; + this.Description = description; + this.StoreGroup = storeGroup; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Group Id + /// + /// Store Group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which updated this store group + /// + /// User which updated this store group + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated store group + /// + /// Updated store group + [DataMember(Name="StoreGroup", EmitDefaultValue=false)] + public StoreGroup StoreGroup { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreGroupUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreGroup: ").Append(StoreGroup).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreGroupUpdatedEvent); + } + + /// + /// Returns true if StoreGroupUpdatedEvent instances are equal + /// + /// Instance of StoreGroupUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreGroupUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreGroup == input.StoreGroup || + (this.StoreGroup != null && + this.StoreGroup.Equals(input.StoreGroup)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreGroup != null) + hashCode = hashCode * 59 + this.StoreGroup.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreHeader.cs b/src/Flipdish/Model/StoreHeader.cs new file mode 100644 index 00000000..139d30a9 --- /dev/null +++ b/src/Flipdish/Model/StoreHeader.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents the most basic store information, used mostly for searches + /// + [DataContract] + public partial class StoreHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Name. + /// Name. + public StoreHeader(int? storeId = default(int?), string name = default(string), string category = default(string)) + { + this.StoreId = storeId; + this.Name = name; + this.Category = category; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Category", EmitDefaultValue=false)] + public string Category { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreHeader {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreHeader); + } + + /// + /// Returns true if StoreHeader instances are equal + /// + /// Instance of StoreHeader to be compared + /// Boolean + public bool Equals(StoreHeader input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreItemHeader.cs b/src/Flipdish/Model/StoreItemHeader.cs new file mode 100644 index 00000000..a45d5cba --- /dev/null +++ b/src/Flipdish/Model/StoreItemHeader.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// StoreItemHeader + /// + [DataContract] + public partial class StoreItemHeader : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// storeId. + /// name. + public StoreItemHeader(int? storeId = default(int?), string name = default(string)) + { + this.StoreId = storeId; + this.Name = name; + } + + /// + /// Gets or Sets StoreId + /// + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreItemHeader {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreItemHeader); + } + + /// + /// Returns true if StoreItemHeader instances are equal + /// + /// Instance of StoreItemHeader to be compared + /// Boolean + public bool Equals(StoreItemHeader input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreKioskSetting.cs b/src/Flipdish/Model/StoreKioskSetting.cs new file mode 100644 index 00000000..021942a9 --- /dev/null +++ b/src/Flipdish/Model/StoreKioskSetting.cs @@ -0,0 +1,249 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Kiosk Settings + /// + [DataContract] + public partial class StoreKioskSetting : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Kiosk setting id. + /// Store kiosk name. + /// Require customer name flag. + /// Require customer phone number flag. + /// Request customer phone number flag (Option to Skip). + /// Request table number flag. + /// Offer Dine-In/Takeaway option flag. + /// Physical restaurant id. + /// Hydra config id. + public StoreKioskSetting(int? kioskSettingId = default(int?), string kioskName = default(string), bool? requireCustomerName = default(bool?), bool? requireCustomerPhoneNumber = default(bool?), bool? requestCustomerPhoneNumber = default(bool?), bool? requestTableNumber = default(bool?), bool? offerDineInOrTakeawayOption = default(bool?), int? physicalRestaurantId = default(int?), int? hydraConfigId = default(int?)) + { + this.KioskSettingId = kioskSettingId; + this.KioskName = kioskName; + this.RequireCustomerName = requireCustomerName; + this.RequireCustomerPhoneNumber = requireCustomerPhoneNumber; + this.RequestCustomerPhoneNumber = requestCustomerPhoneNumber; + this.RequestTableNumber = requestTableNumber; + this.OfferDineInOrTakeawayOption = offerDineInOrTakeawayOption; + this.PhysicalRestaurantId = physicalRestaurantId; + this.HydraConfigId = hydraConfigId; + } + + /// + /// Kiosk setting id + /// + /// Kiosk setting id + [DataMember(Name="KioskSettingId", EmitDefaultValue=false)] + public int? KioskSettingId { get; set; } + + /// + /// Store kiosk name + /// + /// Store kiosk name + [DataMember(Name="KioskName", EmitDefaultValue=false)] + public string KioskName { get; set; } + + /// + /// Require customer name flag + /// + /// Require customer name flag + [DataMember(Name="RequireCustomerName", EmitDefaultValue=false)] + public bool? RequireCustomerName { get; set; } + + /// + /// Require customer phone number flag + /// + /// Require customer phone number flag + [DataMember(Name="RequireCustomerPhoneNumber", EmitDefaultValue=false)] + public bool? RequireCustomerPhoneNumber { get; set; } + + /// + /// Request customer phone number flag (Option to Skip) + /// + /// Request customer phone number flag (Option to Skip) + [DataMember(Name="RequestCustomerPhoneNumber", EmitDefaultValue=false)] + public bool? RequestCustomerPhoneNumber { get; set; } + + /// + /// Request table number flag + /// + /// Request table number flag + [DataMember(Name="RequestTableNumber", EmitDefaultValue=false)] + public bool? RequestTableNumber { get; set; } + + /// + /// Offer Dine-In/Takeaway option flag + /// + /// Offer Dine-In/Takeaway option flag + [DataMember(Name="OfferDineInOrTakeawayOption", EmitDefaultValue=false)] + public bool? OfferDineInOrTakeawayOption { get; set; } + + /// + /// Physical restaurant id + /// + /// Physical restaurant id + [DataMember(Name="PhysicalRestaurantId", EmitDefaultValue=false)] + public int? PhysicalRestaurantId { get; set; } + + /// + /// Hydra config id + /// + /// Hydra config id + [DataMember(Name="HydraConfigId", EmitDefaultValue=false)] + public int? HydraConfigId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreKioskSetting {\n"); + sb.Append(" KioskSettingId: ").Append(KioskSettingId).Append("\n"); + sb.Append(" KioskName: ").Append(KioskName).Append("\n"); + sb.Append(" RequireCustomerName: ").Append(RequireCustomerName).Append("\n"); + sb.Append(" RequireCustomerPhoneNumber: ").Append(RequireCustomerPhoneNumber).Append("\n"); + sb.Append(" RequestCustomerPhoneNumber: ").Append(RequestCustomerPhoneNumber).Append("\n"); + sb.Append(" RequestTableNumber: ").Append(RequestTableNumber).Append("\n"); + sb.Append(" OfferDineInOrTakeawayOption: ").Append(OfferDineInOrTakeawayOption).Append("\n"); + sb.Append(" PhysicalRestaurantId: ").Append(PhysicalRestaurantId).Append("\n"); + sb.Append(" HydraConfigId: ").Append(HydraConfigId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreKioskSetting); + } + + /// + /// Returns true if StoreKioskSetting instances are equal + /// + /// Instance of StoreKioskSetting to be compared + /// Boolean + public bool Equals(StoreKioskSetting input) + { + if (input == null) + return false; + + return + ( + this.KioskSettingId == input.KioskSettingId || + (this.KioskSettingId != null && + this.KioskSettingId.Equals(input.KioskSettingId)) + ) && + ( + this.KioskName == input.KioskName || + (this.KioskName != null && + this.KioskName.Equals(input.KioskName)) + ) && + ( + this.RequireCustomerName == input.RequireCustomerName || + (this.RequireCustomerName != null && + this.RequireCustomerName.Equals(input.RequireCustomerName)) + ) && + ( + this.RequireCustomerPhoneNumber == input.RequireCustomerPhoneNumber || + (this.RequireCustomerPhoneNumber != null && + this.RequireCustomerPhoneNumber.Equals(input.RequireCustomerPhoneNumber)) + ) && + ( + this.RequestCustomerPhoneNumber == input.RequestCustomerPhoneNumber || + (this.RequestCustomerPhoneNumber != null && + this.RequestCustomerPhoneNumber.Equals(input.RequestCustomerPhoneNumber)) + ) && + ( + this.RequestTableNumber == input.RequestTableNumber || + (this.RequestTableNumber != null && + this.RequestTableNumber.Equals(input.RequestTableNumber)) + ) && + ( + this.OfferDineInOrTakeawayOption == input.OfferDineInOrTakeawayOption || + (this.OfferDineInOrTakeawayOption != null && + this.OfferDineInOrTakeawayOption.Equals(input.OfferDineInOrTakeawayOption)) + ) && + ( + this.PhysicalRestaurantId == input.PhysicalRestaurantId || + (this.PhysicalRestaurantId != null && + this.PhysicalRestaurantId.Equals(input.PhysicalRestaurantId)) + ) && + ( + this.HydraConfigId == input.HydraConfigId || + (this.HydraConfigId != null && + this.HydraConfigId.Equals(input.HydraConfigId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.KioskSettingId != null) + hashCode = hashCode * 59 + this.KioskSettingId.GetHashCode(); + if (this.KioskName != null) + hashCode = hashCode * 59 + this.KioskName.GetHashCode(); + if (this.RequireCustomerName != null) + hashCode = hashCode * 59 + this.RequireCustomerName.GetHashCode(); + if (this.RequireCustomerPhoneNumber != null) + hashCode = hashCode * 59 + this.RequireCustomerPhoneNumber.GetHashCode(); + if (this.RequestCustomerPhoneNumber != null) + hashCode = hashCode * 59 + this.RequestCustomerPhoneNumber.GetHashCode(); + if (this.RequestTableNumber != null) + hashCode = hashCode * 59 + this.RequestTableNumber.GetHashCode(); + if (this.OfferDineInOrTakeawayOption != null) + hashCode = hashCode * 59 + this.OfferDineInOrTakeawayOption.GetHashCode(); + if (this.PhysicalRestaurantId != null) + hashCode = hashCode * 59 + this.PhysicalRestaurantId.GetHashCode(); + if (this.HydraConfigId != null) + hashCode = hashCode * 59 + this.HydraConfigId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs b/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs new file mode 100644 index 00000000..ed631aea --- /dev/null +++ b/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store kiosk setting updated + /// + [DataContract] + public partial class StoreKioskSettingUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which deleted delivery zone for this store. + /// Description. + /// Store kiosk settings. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreKioskSettingUpdatedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreKioskSetting storeKioskSetting = default(StoreKioskSetting), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.StoreKioskSetting = storeKioskSetting; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which deleted delivery zone for this store + /// + /// User which deleted delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store kiosk settings + /// + /// Store kiosk settings + [DataMember(Name="StoreKioskSetting", EmitDefaultValue=false)] + public StoreKioskSetting StoreKioskSetting { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreKioskSettingUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreKioskSetting: ").Append(StoreKioskSetting).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreKioskSettingUpdatedEvent); + } + + /// + /// Returns true if StoreKioskSettingUpdatedEvent instances are equal + /// + /// Instance of StoreKioskSettingUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreKioskSettingUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreKioskSetting == input.StoreKioskSetting || + (this.StoreKioskSetting != null && + this.StoreKioskSetting.Equals(input.StoreKioskSetting)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreKioskSetting != null) + hashCode = hashCode * 59 + this.StoreKioskSetting.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreListItem.cs b/src/Flipdish/Model/StoreListItem.cs new file mode 100644 index 00000000..fbecff80 --- /dev/null +++ b/src/Flipdish/Model/StoreListItem.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store id and name + /// + [DataContract] + public partial class StoreListItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store Id. + /// Store Name. + /// Store Group Id. + /// Store Group Name. + /// Store has loyalty campaign. + /// Store has retention campaign. + /// Is Published store. + public StoreListItem(int? storeId = default(int?), string storeName = default(string), int? storeGroupId = default(int?), string storeGroupName = default(string), bool? hasLoyaltyCampaign = default(bool?), bool? hasRetentionCampaign = default(bool?), bool? isPublished = default(bool?)) + { + this.StoreId = storeId; + this.StoreName = storeName; + this.StoreGroupId = storeGroupId; + this.StoreGroupName = storeGroupName; + this.HasLoyaltyCampaign = hasLoyaltyCampaign; + this.HasRetentionCampaign = hasRetentionCampaign; + this.IsPublished = isPublished; + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store Name + /// + /// Store Name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Store Group Id + /// + /// Store Group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Store Group Name + /// + /// Store Group Name + [DataMember(Name="StoreGroupName", EmitDefaultValue=false)] + public string StoreGroupName { get; set; } + + /// + /// Store has loyalty campaign + /// + /// Store has loyalty campaign + [DataMember(Name="HasLoyaltyCampaign", EmitDefaultValue=false)] + public bool? HasLoyaltyCampaign { get; set; } + + /// + /// Store has retention campaign + /// + /// Store has retention campaign + [DataMember(Name="HasRetentionCampaign", EmitDefaultValue=false)] + public bool? HasRetentionCampaign { get; set; } + + /// + /// Is Published store + /// + /// Is Published store + [DataMember(Name="IsPublished", EmitDefaultValue=false)] + public bool? IsPublished { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreListItem {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" StoreGroupName: ").Append(StoreGroupName).Append("\n"); + sb.Append(" HasLoyaltyCampaign: ").Append(HasLoyaltyCampaign).Append("\n"); + sb.Append(" HasRetentionCampaign: ").Append(HasRetentionCampaign).Append("\n"); + sb.Append(" IsPublished: ").Append(IsPublished).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreListItem); + } + + /// + /// Returns true if StoreListItem instances are equal + /// + /// Instance of StoreListItem to be compared + /// Boolean + public bool Equals(StoreListItem input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.StoreGroupName == input.StoreGroupName || + (this.StoreGroupName != null && + this.StoreGroupName.Equals(input.StoreGroupName)) + ) && + ( + this.HasLoyaltyCampaign == input.HasLoyaltyCampaign || + (this.HasLoyaltyCampaign != null && + this.HasLoyaltyCampaign.Equals(input.HasLoyaltyCampaign)) + ) && + ( + this.HasRetentionCampaign == input.HasRetentionCampaign || + (this.HasRetentionCampaign != null && + this.HasRetentionCampaign.Equals(input.HasRetentionCampaign)) + ) && + ( + this.IsPublished == input.IsPublished || + (this.IsPublished != null && + this.IsPublished.Equals(input.IsPublished)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.StoreGroupName != null) + hashCode = hashCode * 59 + this.StoreGroupName.GetHashCode(); + if (this.HasLoyaltyCampaign != null) + hashCode = hashCode * 59 + this.HasLoyaltyCampaign.GetHashCode(); + if (this.HasRetentionCampaign != null) + hashCode = hashCode * 59 + this.HasRetentionCampaign.GetHashCode(); + if (this.IsPublished != null) + hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreLogoCreatedEvent.cs b/src/Flipdish/Model/StoreLogoCreatedEvent.cs new file mode 100644 index 00000000..367cb464 --- /dev/null +++ b/src/Flipdish/Model/StoreLogoCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store logo created + /// + [DataContract] + public partial class StoreLogoCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// ID of store that the logo has been added to. + /// Url of logo. + /// Description. + /// User who added the logo. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreLogoCreatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), string logoUrl = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.LogoUrl = logoUrl; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// ID of store that the logo has been added to + /// + /// ID of store that the logo has been added to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Url of logo + /// + /// Url of logo + [DataMember(Name="LogoUrl", EmitDefaultValue=false)] + public string LogoUrl { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who added the logo + /// + /// User who added the logo + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreLogoCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreLogoCreatedEvent); + } + + /// + /// Returns true if StoreLogoCreatedEvent instances are equal + /// + /// Instance of StoreLogoCreatedEvent to be compared + /// Boolean + public bool Equals(StoreLogoCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.LogoUrl == input.LogoUrl || + (this.LogoUrl != null && + this.LogoUrl.Equals(input.LogoUrl)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.LogoUrl != null) + hashCode = hashCode * 59 + this.LogoUrl.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreLogoDeletedEvent.cs b/src/Flipdish/Model/StoreLogoDeletedEvent.cs new file mode 100644 index 00000000..0a117b78 --- /dev/null +++ b/src/Flipdish/Model/StoreLogoDeletedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store logo deleted + /// + [DataContract] + public partial class StoreLogoDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// ID of store that the logo has been added to. + /// Description. + /// User who removed the logo. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreLogoDeletedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// ID of store that the logo has been added to + /// + /// ID of store that the logo has been added to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who removed the logo + /// + /// User who removed the logo + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreLogoDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreLogoDeletedEvent); + } + + /// + /// Returns true if StoreLogoDeletedEvent instances are equal + /// + /// Instance of StoreLogoDeletedEvent to be compared + /// Boolean + public bool Equals(StoreLogoDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreLogoUpdatedEvent.cs b/src/Flipdish/Model/StoreLogoUpdatedEvent.cs new file mode 100644 index 00000000..b0edf441 --- /dev/null +++ b/src/Flipdish/Model/StoreLogoUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store logo updated + /// + [DataContract] + public partial class StoreLogoUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// ID of store that the logo has been added to. + /// Url of logo. + /// Description. + /// User who updated the logo. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreLogoUpdatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), string logoUrl = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.LogoUrl = logoUrl; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// ID of store that the logo has been added to + /// + /// ID of store that the logo has been added to + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Url of logo + /// + /// Url of logo + [DataMember(Name="LogoUrl", EmitDefaultValue=false)] + public string LogoUrl { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who updated the logo + /// + /// User who updated the logo + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreLogoUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreLogoUpdatedEvent); + } + + /// + /// Returns true if StoreLogoUpdatedEvent instances are equal + /// + /// Instance of StoreLogoUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreLogoUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.LogoUrl == input.LogoUrl || + (this.LogoUrl != null && + this.LogoUrl.Equals(input.LogoUrl)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.LogoUrl != null) + hashCode = hashCode * 59 + this.LogoUrl.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreMenuAssignedEvent.cs b/src/Flipdish/Model/StoreMenuAssignedEvent.cs new file mode 100644 index 00000000..7e5f340e --- /dev/null +++ b/src/Flipdish/Model/StoreMenuAssignedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Menu Assigned To Store Event + /// + [DataContract] + public partial class StoreMenuAssignedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// MenuId Id. + /// User who assigned the menu to the store. + /// Description. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreMenuAssignedEvent(string eventName = default(string), int? storeId = default(int?), int? menuId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.MenuId = menuId; + this.User = user; + this.Description = description; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// MenuId Id + /// + /// MenuId Id + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// User who assigned the menu to the store + /// + /// User who assigned the menu to the store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreMenuAssignedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreMenuAssignedEvent); + } + + /// + /// Returns true if StoreMenuAssignedEvent instances are equal + /// + /// Instance of StoreMenuAssignedEvent to be compared + /// Boolean + public bool Equals(StoreMenuAssignedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreNote.cs b/src/Flipdish/Model/StoreNote.cs new file mode 100644 index 00000000..30961849 --- /dev/null +++ b/src/Flipdish/Model/StoreNote.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store note + /// + [DataContract] + public partial class StoreNote : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User identifier. + /// Create time. + /// Note. + public StoreNote(int? userId = default(int?), DateTime? createTime = default(DateTime?), string note = default(string)) + { + this.UserId = userId; + this.CreateTime = createTime; + this.Note = note; + } + + /// + /// User identifier + /// + /// User identifier + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Create time + /// + /// Create time + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Note + /// + /// Note + [DataMember(Name="Note", EmitDefaultValue=false)] + public string Note { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreNote {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Note: ").Append(Note).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreNote); + } + + /// + /// Returns true if StoreNote instances are equal + /// + /// Instance of StoreNote to be compared + /// Boolean + public bool Equals(StoreNote input) + { + if (input == null) + return false; + + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Note == input.Note || + (this.Note != null && + this.Note.Equals(input.Note)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Note != null) + hashCode = hashCode * 59 + this.Note.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs b/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs new file mode 100644 index 00000000..b520613f --- /dev/null +++ b/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs @@ -0,0 +1,427 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Opening Hours Updated Event + /// + [DataContract] + public partial class StoreOpeningHoursUpdatedEvent : IEquatable + { + /// + /// Type of opening hours Delivery / Pickup + /// + /// Type of opening hours Delivery / Pickup + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Type of opening hours Delivery / Pickup + /// + /// Type of opening hours Delivery / Pickup + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Type of opening hours Delivery / Pickup as a string + /// + /// Type of opening hours Delivery / Pickup as a string + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeStringEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Type of opening hours Delivery / Pickup as a string + /// + /// Type of opening hours Delivery / Pickup as a string + [DataMember(Name="DeliveryTypeString", EmitDefaultValue=false)] + public DeliveryTypeStringEnum? DeliveryTypeString { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Store Id. + /// Store group Id. + /// User which updated opening hours for this store. + /// Type of opening hours Delivery / Pickup. + /// Type of opening hours Delivery / Pickup as a string. + /// The period that was updated. + /// The new values of the period. + /// Description. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreOpeningHoursUpdatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), DeliveryTypeStringEnum? deliveryTypeString = default(DeliveryTypeStringEnum?), BusinessHoursPeriod businessHoursPeriodOld = default(BusinessHoursPeriod), BusinessHoursPeriod businessHoursPeriod = default(BusinessHoursPeriod), string description = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.StoreGroupId = storeGroupId; + this.User = user; + this.DeliveryType = deliveryType; + this.DeliveryTypeString = deliveryTypeString; + this.BusinessHoursPeriodOld = businessHoursPeriodOld; + this.BusinessHoursPeriod = businessHoursPeriod; + this.Description = description; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// User which updated opening hours for this store + /// + /// User which updated opening hours for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + + + /// + /// The period that was updated + /// + /// The period that was updated + [DataMember(Name="BusinessHoursPeriodOld", EmitDefaultValue=false)] + public BusinessHoursPeriod BusinessHoursPeriodOld { get; set; } + + /// + /// The new values of the period + /// + /// The new values of the period + [DataMember(Name="BusinessHoursPeriod", EmitDefaultValue=false)] + public BusinessHoursPeriod BusinessHoursPeriod { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreOpeningHoursUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" DeliveryTypeString: ").Append(DeliveryTypeString).Append("\n"); + sb.Append(" BusinessHoursPeriodOld: ").Append(BusinessHoursPeriodOld).Append("\n"); + sb.Append(" BusinessHoursPeriod: ").Append(BusinessHoursPeriod).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreOpeningHoursUpdatedEvent); + } + + /// + /// Returns true if StoreOpeningHoursUpdatedEvent instances are equal + /// + /// Instance of StoreOpeningHoursUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreOpeningHoursUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.DeliveryTypeString == input.DeliveryTypeString || + (this.DeliveryTypeString != null && + this.DeliveryTypeString.Equals(input.DeliveryTypeString)) + ) && + ( + this.BusinessHoursPeriodOld == input.BusinessHoursPeriodOld || + (this.BusinessHoursPeriodOld != null && + this.BusinessHoursPeriodOld.Equals(input.BusinessHoursPeriodOld)) + ) && + ( + this.BusinessHoursPeriod == input.BusinessHoursPeriod || + (this.BusinessHoursPeriod != null && + this.BusinessHoursPeriod.Equals(input.BusinessHoursPeriod)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.DeliveryTypeString != null) + hashCode = hashCode * 59 + this.DeliveryTypeString.GetHashCode(); + if (this.BusinessHoursPeriodOld != null) + hashCode = hashCode * 59 + this.BusinessHoursPeriodOld.GetHashCode(); + if (this.BusinessHoursPeriod != null) + hashCode = hashCode * 59 + this.BusinessHoursPeriod.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreOrderCapacityConfig.cs b/src/Flipdish/Model/StoreOrderCapacityConfig.cs new file mode 100644 index 00000000..5e248371 --- /dev/null +++ b/src/Flipdish/Model/StoreOrderCapacityConfig.cs @@ -0,0 +1,185 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents one store's order capacity configuration + /// + [DataContract] + public partial class StoreOrderCapacityConfig : IEquatable + { + /// + /// Signifies whether the order capacity configuration is for Delivery / Pickup + /// + /// Signifies whether the order capacity configuration is for Delivery / Pickup + [JsonConverter(typeof(StringEnumConverter))] + public enum DeliveryTypeEnum + { + + /// + /// Enum Delivery for value: Delivery + /// + [EnumMember(Value = "Delivery")] + Delivery = 1, + + /// + /// Enum Pickup for value: Pickup + /// + [EnumMember(Value = "Pickup")] + Pickup = 2 + } + + /// + /// Signifies whether the order capacity configuration is for Delivery / Pickup + /// + /// Signifies whether the order capacity configuration is for Delivery / Pickup + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public DeliveryTypeEnum? DeliveryType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Signifies whether the order capacity configuration is for Delivery / Pickup. + /// Store Interval - time between orders, e.g. 10 minutes between each order time available to customer. + /// Order capacity periods. + public StoreOrderCapacityConfig(int? storeId = default(int?), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), int? storeIntervalInMinutes = default(int?), List orderCapacityPeriods = default(List)) + { + this.StoreId = storeId; + this.DeliveryType = deliveryType; + this.StoreIntervalInMinutes = storeIntervalInMinutes; + this.OrderCapacityPeriods = orderCapacityPeriods; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + + /// + /// Store Interval - time between orders, e.g. 10 minutes between each order time available to customer + /// + /// Store Interval - time between orders, e.g. 10 minutes between each order time available to customer + [DataMember(Name="StoreIntervalInMinutes", EmitDefaultValue=false)] + public int? StoreIntervalInMinutes { get; set; } + + /// + /// Order capacity periods + /// + /// Order capacity periods + [DataMember(Name="OrderCapacityPeriods", EmitDefaultValue=false)] + public List OrderCapacityPeriods { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreOrderCapacityConfig {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" StoreIntervalInMinutes: ").Append(StoreIntervalInMinutes).Append("\n"); + sb.Append(" OrderCapacityPeriods: ").Append(OrderCapacityPeriods).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreOrderCapacityConfig); + } + + /// + /// Returns true if StoreOrderCapacityConfig instances are equal + /// + /// Instance of StoreOrderCapacityConfig to be compared + /// Boolean + public bool Equals(StoreOrderCapacityConfig input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.StoreIntervalInMinutes == input.StoreIntervalInMinutes || + (this.StoreIntervalInMinutes != null && + this.StoreIntervalInMinutes.Equals(input.StoreIntervalInMinutes)) + ) && + ( + this.OrderCapacityPeriods == input.OrderCapacityPeriods || + this.OrderCapacityPeriods != null && + this.OrderCapacityPeriods.SequenceEqual(input.OrderCapacityPeriods) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.StoreIntervalInMinutes != null) + hashCode = hashCode * 59 + this.StoreIntervalInMinutes.GetHashCode(); + if (this.OrderCapacityPeriods != null) + hashCode = hashCode * 59 + this.OrderCapacityPeriods.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreOrderCapacityConfigEditModel.cs b/src/Flipdish/Model/StoreOrderCapacityConfigEditModel.cs new file mode 100644 index 00000000..b9a1d73f --- /dev/null +++ b/src/Flipdish/Model/StoreOrderCapacityConfigEditModel.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents one store's order capacity configuration edit + /// + [DataContract] + public partial class StoreOrderCapacityConfigEditModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Order capacity periods. + public StoreOrderCapacityConfigEditModel(List orderCapacityPeriods = default(List)) + { + this.OrderCapacityPeriods = orderCapacityPeriods; + } + + /// + /// Order capacity periods + /// + /// Order capacity periods + [DataMember(Name="OrderCapacityPeriods", EmitDefaultValue=false)] + public List OrderCapacityPeriods { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreOrderCapacityConfigEditModel {\n"); + sb.Append(" OrderCapacityPeriods: ").Append(OrderCapacityPeriods).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreOrderCapacityConfigEditModel); + } + + /// + /// Returns true if StoreOrderCapacityConfigEditModel instances are equal + /// + /// Instance of StoreOrderCapacityConfigEditModel to be compared + /// Boolean + public bool Equals(StoreOrderCapacityConfigEditModel input) + { + if (input == null) + return false; + + return + ( + this.OrderCapacityPeriods == input.OrderCapacityPeriods || + this.OrderCapacityPeriods != null && + this.OrderCapacityPeriods.SequenceEqual(input.OrderCapacityPeriods) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderCapacityPeriods != null) + hashCode = hashCode * 59 + this.OrderCapacityPeriods.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreOrderCapacityPeriod.cs b/src/Flipdish/Model/StoreOrderCapacityPeriod.cs new file mode 100644 index 00000000..6b41691d --- /dev/null +++ b/src/Flipdish/Model/StoreOrderCapacityPeriod.cs @@ -0,0 +1,249 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a single order capacity period + /// + [DataContract] + public partial class StoreOrderCapacityPeriod : IEquatable + { + /// + /// Day of the week the period pertains to + /// + /// Day of the week the period pertains to + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfTheWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// Day of the week the period pertains to + /// + /// Day of the week the period pertains to + [DataMember(Name="DayOfTheWeek", EmitDefaultValue=false)] + public DayOfTheWeekEnum? DayOfTheWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders.. + /// Day of the week the period pertains to. + /// The hour the period starts at. + /// The minutes after the hour the period starts at. + /// The hour the period ends at. + /// The minutes after the hour the period ends at. + public StoreOrderCapacityPeriod(int? maxOrderNumberPerStoreInterval = default(int?), DayOfTheWeekEnum? dayOfTheWeek = default(DayOfTheWeekEnum?), int? periodStartHour = default(int?), int? periodStartMinutes = default(int?), int? periodEndHour = default(int?), int? periodEndMinutes = default(int?)) + { + this.MaxOrderNumberPerStoreInterval = maxOrderNumberPerStoreInterval; + this.DayOfTheWeek = dayOfTheWeek; + this.PeriodStartHour = periodStartHour; + this.PeriodStartMinutes = periodStartMinutes; + this.PeriodEndHour = periodEndHour; + this.PeriodEndMinutes = periodEndMinutes; + } + + /// + /// The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders. + /// + /// The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders. + [DataMember(Name="MaxOrderNumberPerStoreInterval", EmitDefaultValue=false)] + public int? MaxOrderNumberPerStoreInterval { get; set; } + + + /// + /// The hour the period starts at + /// + /// The hour the period starts at + [DataMember(Name="PeriodStartHour", EmitDefaultValue=false)] + public int? PeriodStartHour { get; set; } + + /// + /// The minutes after the hour the period starts at + /// + /// The minutes after the hour the period starts at + [DataMember(Name="PeriodStartMinutes", EmitDefaultValue=false)] + public int? PeriodStartMinutes { get; set; } + + /// + /// The hour the period ends at + /// + /// The hour the period ends at + [DataMember(Name="PeriodEndHour", EmitDefaultValue=false)] + public int? PeriodEndHour { get; set; } + + /// + /// The minutes after the hour the period ends at + /// + /// The minutes after the hour the period ends at + [DataMember(Name="PeriodEndMinutes", EmitDefaultValue=false)] + public int? PeriodEndMinutes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreOrderCapacityPeriod {\n"); + sb.Append(" MaxOrderNumberPerStoreInterval: ").Append(MaxOrderNumberPerStoreInterval).Append("\n"); + sb.Append(" DayOfTheWeek: ").Append(DayOfTheWeek).Append("\n"); + sb.Append(" PeriodStartHour: ").Append(PeriodStartHour).Append("\n"); + sb.Append(" PeriodStartMinutes: ").Append(PeriodStartMinutes).Append("\n"); + sb.Append(" PeriodEndHour: ").Append(PeriodEndHour).Append("\n"); + sb.Append(" PeriodEndMinutes: ").Append(PeriodEndMinutes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreOrderCapacityPeriod); + } + + /// + /// Returns true if StoreOrderCapacityPeriod instances are equal + /// + /// Instance of StoreOrderCapacityPeriod to be compared + /// Boolean + public bool Equals(StoreOrderCapacityPeriod input) + { + if (input == null) + return false; + + return + ( + this.MaxOrderNumberPerStoreInterval == input.MaxOrderNumberPerStoreInterval || + (this.MaxOrderNumberPerStoreInterval != null && + this.MaxOrderNumberPerStoreInterval.Equals(input.MaxOrderNumberPerStoreInterval)) + ) && + ( + this.DayOfTheWeek == input.DayOfTheWeek || + (this.DayOfTheWeek != null && + this.DayOfTheWeek.Equals(input.DayOfTheWeek)) + ) && + ( + this.PeriodStartHour == input.PeriodStartHour || + (this.PeriodStartHour != null && + this.PeriodStartHour.Equals(input.PeriodStartHour)) + ) && + ( + this.PeriodStartMinutes == input.PeriodStartMinutes || + (this.PeriodStartMinutes != null && + this.PeriodStartMinutes.Equals(input.PeriodStartMinutes)) + ) && + ( + this.PeriodEndHour == input.PeriodEndHour || + (this.PeriodEndHour != null && + this.PeriodEndHour.Equals(input.PeriodEndHour)) + ) && + ( + this.PeriodEndMinutes == input.PeriodEndMinutes || + (this.PeriodEndMinutes != null && + this.PeriodEndMinutes.Equals(input.PeriodEndMinutes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MaxOrderNumberPerStoreInterval != null) + hashCode = hashCode * 59 + this.MaxOrderNumberPerStoreInterval.GetHashCode(); + if (this.DayOfTheWeek != null) + hashCode = hashCode * 59 + this.DayOfTheWeek.GetHashCode(); + if (this.PeriodStartHour != null) + hashCode = hashCode * 59 + this.PeriodStartHour.GetHashCode(); + if (this.PeriodStartMinutes != null) + hashCode = hashCode * 59 + this.PeriodStartMinutes.GetHashCode(); + if (this.PeriodEndHour != null) + hashCode = hashCode * 59 + this.PeriodEndHour.GetHashCode(); + if (this.PeriodEndMinutes != null) + hashCode = hashCode * 59 + this.PeriodEndMinutes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs b/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs new file mode 100644 index 00000000..40558feb --- /dev/null +++ b/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Pre order config updated + /// + [DataContract] + public partial class StorePreOrderConfigUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which deleted delivery zone for this store. + /// Description. + /// Pre Order Configuration. + /// Old Pre Order Configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StorePreOrderConfigUpdatedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), PreOrderConfig preOrderConfig = default(PreOrderConfig), PreOrderConfig oldPreOrderConfig = default(PreOrderConfig), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.PreOrderConfig = preOrderConfig; + this.OldPreOrderConfig = oldPreOrderConfig; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which deleted delivery zone for this store + /// + /// User which deleted delivery zone for this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Pre Order Configuration + /// + /// Pre Order Configuration + [DataMember(Name="PreOrderConfig", EmitDefaultValue=false)] + public PreOrderConfig PreOrderConfig { get; set; } + + /// + /// Old Pre Order Configuration + /// + /// Old Pre Order Configuration + [DataMember(Name="OldPreOrderConfig", EmitDefaultValue=false)] + public PreOrderConfig OldPreOrderConfig { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StorePreOrderConfigUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" PreOrderConfig: ").Append(PreOrderConfig).Append("\n"); + sb.Append(" OldPreOrderConfig: ").Append(OldPreOrderConfig).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StorePreOrderConfigUpdatedEvent); + } + + /// + /// Returns true if StorePreOrderConfigUpdatedEvent instances are equal + /// + /// Instance of StorePreOrderConfigUpdatedEvent to be compared + /// Boolean + public bool Equals(StorePreOrderConfigUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.PreOrderConfig == input.PreOrderConfig || + (this.PreOrderConfig != null && + this.PreOrderConfig.Equals(input.PreOrderConfig)) + ) && + ( + this.OldPreOrderConfig == input.OldPreOrderConfig || + (this.OldPreOrderConfig != null && + this.OldPreOrderConfig.Equals(input.OldPreOrderConfig)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.PreOrderConfig != null) + hashCode = hashCode * 59 + this.PreOrderConfig.GetHashCode(); + if (this.OldPreOrderConfig != null) + hashCode = hashCode * 59 + this.OldPreOrderConfig.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StorePublishedEvent.cs b/src/Flipdish/Model/StorePublishedEvent.cs new file mode 100644 index 00000000..b19913a1 --- /dev/null +++ b/src/Flipdish/Model/StorePublishedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Published Event + /// + [DataContract] + public partial class StorePublishedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which published this store. + /// Description. + /// Published Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StorePublishedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which published this store + /// + /// User which published this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Published Store + /// + /// Published Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StorePublishedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StorePublishedEvent); + } + + /// + /// Returns true if StorePublishedEvent instances are equal + /// + /// Instance of StorePublishedEvent to be compared + /// Boolean + public bool Equals(StorePublishedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreServiceChargeUpdatedEvent.cs b/src/Flipdish/Model/StoreServiceChargeUpdatedEvent.cs new file mode 100644 index 00000000..bf193cb4 --- /dev/null +++ b/src/Flipdish/Model/StoreServiceChargeUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Service Charge Updated Event + /// + [DataContract] + public partial class StoreServiceChargeUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which made the update. + /// Description. + /// Service Charge Configuration. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreServiceChargeUpdatedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), ServiceCharge serviceCharge = default(ServiceCharge), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.ServiceCharge = serviceCharge; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which made the update + /// + /// User which made the update + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Service Charge Configuration + /// + /// Service Charge Configuration + [DataMember(Name="ServiceCharge", EmitDefaultValue=false)] + public ServiceCharge ServiceCharge { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreServiceChargeUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ServiceCharge: ").Append(ServiceCharge).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreServiceChargeUpdatedEvent); + } + + /// + /// Returns true if StoreServiceChargeUpdatedEvent instances are equal + /// + /// Instance of StoreServiceChargeUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreServiceChargeUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ServiceCharge == input.ServiceCharge || + (this.ServiceCharge != null && + this.ServiceCharge.Equals(input.ServiceCharge)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ServiceCharge != null) + hashCode = hashCode * 59 + this.ServiceCharge.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreStatistics.cs b/src/Flipdish/Model/StoreStatistics.cs new file mode 100644 index 00000000..aa0954e5 --- /dev/null +++ b/src/Flipdish/Model/StoreStatistics.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store statistics + /// + [DataContract] + public partial class StoreStatistics : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store Id. + /// Store Data Points. + public StoreStatistics(int? storeId = default(int?), List data = default(List)) + { + this.StoreId = storeId; + this.Data = data; + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store Data Points + /// + /// Store Data Points + [DataMember(Name="Data", EmitDefaultValue=false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreStatistics {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreStatistics); + } + + /// + /// Returns true if StoreStatistics instances are equal + /// + /// Instance of StoreStatistics to be compared + /// Boolean + public bool Equals(StoreStatistics input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Data == input.Data || + this.Data != null && + this.Data.SequenceEqual(input.Data) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreSummary.cs b/src/Flipdish/Model/StoreSummary.cs new file mode 100644 index 00000000..4c15282a --- /dev/null +++ b/src/Flipdish/Model/StoreSummary.cs @@ -0,0 +1,1021 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store summary + /// + [DataContract] + public partial class StoreSummary : IEquatable + { + /// + /// Currency which used by the Store + /// + /// Currency which used by the Store + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency which used by the Store + /// + /// Currency which used by the Store + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Store name. + /// Stores menu identifier. + /// Stores menu publish GUID. + /// Store metadata. + /// Currency which used by the Store. + /// Latitude and longitude of the store. + /// Timezone of store. + /// IANA Timezone of store. + /// Store group id of store. + /// VAT number or generic Tax ID of the store. + /// Address of the store. + /// Country code of the store address (ISO 3166-1 alpha-2). + /// Property identifier. + public StoreSummary(int? id = default(int?), string name = default(string), int? menuId = default(int?), Guid? menuPublishId = default(Guid?), Dictionary metadata = default(Dictionary), CurrencyEnum? currency = default(CurrencyEnum?), Coordinates coordinates = default(Coordinates), string storeTimezone = default(string), string storeIanaTimezone = default(string), int? storeGroupId = default(int?), string taxId = default(string), string prettyAddress = default(string), string countryCode = default(string), string propertyId = default(string)) + { + this.Id = id; + this.Name = name; + this.MenuId = menuId; + this.MenuPublishId = menuPublishId; + this.Metadata = metadata; + this.Currency = currency; + this.Coordinates = coordinates; + this.StoreTimezone = storeTimezone; + this.StoreIanaTimezone = storeIanaTimezone; + this.StoreGroupId = storeGroupId; + this.TaxId = taxId; + this.PrettyAddress = prettyAddress; + this.CountryCode = countryCode; + this.PropertyId = propertyId; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Store name + /// + /// Store name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Stores menu identifier + /// + /// Stores menu identifier + [DataMember(Name="MenuId", EmitDefaultValue=false)] + public int? MenuId { get; set; } + + /// + /// Stores menu publish GUID + /// + /// Stores menu publish GUID + [DataMember(Name="MenuPublishId", EmitDefaultValue=false)] + public Guid? MenuPublishId { get; set; } + + /// + /// Store metadata + /// + /// Store metadata + [DataMember(Name="Metadata", EmitDefaultValue=false)] + public Dictionary Metadata { get; set; } + + + /// + /// Latitude and longitude of the store + /// + /// Latitude and longitude of the store + [DataMember(Name="Coordinates", EmitDefaultValue=false)] + public Coordinates Coordinates { get; set; } + + /// + /// Timezone of store + /// + /// Timezone of store + [DataMember(Name="StoreTimezone", EmitDefaultValue=false)] + public string StoreTimezone { get; set; } + + /// + /// IANA Timezone of store + /// + /// IANA Timezone of store + [DataMember(Name="StoreIanaTimezone", EmitDefaultValue=false)] + public string StoreIanaTimezone { get; set; } + + /// + /// Store group id of store + /// + /// Store group id of store + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// VAT number or generic Tax ID of the store + /// + /// VAT number or generic Tax ID of the store + [DataMember(Name="TaxId", EmitDefaultValue=false)] + public string TaxId { get; set; } + + /// + /// Address of the store + /// + /// Address of the store + [DataMember(Name="PrettyAddress", EmitDefaultValue=false)] + public string PrettyAddress { get; set; } + + /// + /// Country code of the store address (ISO 3166-1 alpha-2) + /// + /// Country code of the store address (ISO 3166-1 alpha-2) + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Property identifier + /// + /// Property identifier + [DataMember(Name="PropertyId", EmitDefaultValue=false)] + public string PropertyId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" MenuId: ").Append(MenuId).Append("\n"); + sb.Append(" MenuPublishId: ").Append(MenuPublishId).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Coordinates: ").Append(Coordinates).Append("\n"); + sb.Append(" StoreTimezone: ").Append(StoreTimezone).Append("\n"); + sb.Append(" StoreIanaTimezone: ").Append(StoreIanaTimezone).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" TaxId: ").Append(TaxId).Append("\n"); + sb.Append(" PrettyAddress: ").Append(PrettyAddress).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" PropertyId: ").Append(PropertyId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreSummary); + } + + /// + /// Returns true if StoreSummary instances are equal + /// + /// Instance of StoreSummary to be compared + /// Boolean + public bool Equals(StoreSummary input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.MenuId == input.MenuId || + (this.MenuId != null && + this.MenuId.Equals(input.MenuId)) + ) && + ( + this.MenuPublishId == input.MenuPublishId || + (this.MenuPublishId != null && + this.MenuPublishId.Equals(input.MenuPublishId)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Coordinates == input.Coordinates || + (this.Coordinates != null && + this.Coordinates.Equals(input.Coordinates)) + ) && + ( + this.StoreTimezone == input.StoreTimezone || + (this.StoreTimezone != null && + this.StoreTimezone.Equals(input.StoreTimezone)) + ) && + ( + this.StoreIanaTimezone == input.StoreIanaTimezone || + (this.StoreIanaTimezone != null && + this.StoreIanaTimezone.Equals(input.StoreIanaTimezone)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.TaxId == input.TaxId || + (this.TaxId != null && + this.TaxId.Equals(input.TaxId)) + ) && + ( + this.PrettyAddress == input.PrettyAddress || + (this.PrettyAddress != null && + this.PrettyAddress.Equals(input.PrettyAddress)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.PropertyId == input.PropertyId || + (this.PropertyId != null && + this.PropertyId.Equals(input.PropertyId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.MenuId != null) + hashCode = hashCode * 59 + this.MenuId.GetHashCode(); + if (this.MenuPublishId != null) + hashCode = hashCode * 59 + this.MenuPublishId.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Coordinates != null) + hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); + if (this.StoreTimezone != null) + hashCode = hashCode * 59 + this.StoreTimezone.GetHashCode(); + if (this.StoreIanaTimezone != null) + hashCode = hashCode * 59 + this.StoreIanaTimezone.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.TaxId != null) + hashCode = hashCode * 59 + this.TaxId.GetHashCode(); + if (this.PrettyAddress != null) + hashCode = hashCode * 59 + this.PrettyAddress.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.PropertyId != null) + hashCode = hashCode * 59 + this.PropertyId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreTipUpdatedEvent.cs b/src/Flipdish/Model/StoreTipUpdatedEvent.cs new file mode 100644 index 00000000..33952777 --- /dev/null +++ b/src/Flipdish/Model/StoreTipUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Tip Updated + /// + [DataContract] + public partial class StoreTipUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which made the update. + /// Description. + /// Configuration change. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreTipUpdatedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), UpdateTipConfiguration config = default(UpdateTipConfiguration), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Config = config; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// User which made the update + /// + /// User which made the update + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Configuration change + /// + /// Configuration change + [DataMember(Name="Config", EmitDefaultValue=false)] + public UpdateTipConfiguration Config { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreTipUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Config: ").Append(Config).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreTipUpdatedEvent); + } + + /// + /// Returns true if StoreTipUpdatedEvent instances are equal + /// + /// Instance of StoreTipUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreTipUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Config == input.Config || + (this.Config != null && + this.Config.Equals(input.Config)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Config != null) + hashCode = hashCode * 59 + this.Config.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreUnarchivedEvent.cs b/src/Flipdish/Model/StoreUnarchivedEvent.cs new file mode 100644 index 00000000..ecff88f5 --- /dev/null +++ b/src/Flipdish/Model/StoreUnarchivedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Unarchived Event + /// + [DataContract] + public partial class StoreUnarchivedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which unarchived this store. + /// Description. + /// Unarchived Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreUnarchivedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which unarchived this store + /// + /// User which unarchived this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Unarchived Store + /// + /// Unarchived Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreUnarchivedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreUnarchivedEvent); + } + + /// + /// Returns true if StoreUnarchivedEvent instances are equal + /// + /// Instance of StoreUnarchivedEvent to be compared + /// Boolean + public bool Equals(StoreUnarchivedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreUnpublishedEvent.cs b/src/Flipdish/Model/StoreUnpublishedEvent.cs new file mode 100644 index 00000000..89bed4cf --- /dev/null +++ b/src/Flipdish/Model/StoreUnpublishedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Unpublished Event + /// + [DataContract] + public partial class StoreUnpublishedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Store Id. + /// User which unpublished this store. + /// Description. + /// Unpublished Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreUnpublishedEvent(string eventName = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which unpublished this store + /// + /// User which unpublished this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Unpublished Store + /// + /// Unpublished Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreUnpublishedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreUnpublishedEvent); + } + + /// + /// Returns true if StoreUnpublishedEvent instances are equal + /// + /// Instance of StoreUnpublishedEvent to be compared + /// Boolean + public bool Equals(StoreUnpublishedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreUpdatedEvent.cs b/src/Flipdish/Model/StoreUpdatedEvent.cs new file mode 100644 index 00000000..7198f2ac --- /dev/null +++ b/src/Flipdish/Model/StoreUpdatedEvent.cs @@ -0,0 +1,332 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Store Updated Event + /// + [DataContract] + public partial class StoreUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Organisation Id. + /// Store Id. + /// User which updated this store. + /// Description. + /// Updated Store. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public StoreUpdatedEvent(string eventName = default(string), string orgId = default(string), int? storeId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), Store store = default(Store), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.OrgId = orgId; + this.StoreId = storeId; + this.User = user; + this.Description = description; + this.Store = store; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; private set; } + + /// + /// User which updated this store + /// + /// User which updated this store + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated Store + /// + /// Updated Store + [DataMember(Name="Store", EmitDefaultValue=false)] + public Store Store { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreUpdatedEvent); + } + + /// + /// Returns true if StoreUpdatedEvent instances are equal + /// + /// Instance of StoreUpdatedEvent to be compared + /// Boolean + public bool Equals(StoreUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Store != null) + hashCode = hashCode * 59 + this.Store.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StoreValidationConfig.cs b/src/Flipdish/Model/StoreValidationConfig.cs new file mode 100644 index 00000000..e0fcda04 --- /dev/null +++ b/src/Flipdish/Model/StoreValidationConfig.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Hey + /// + [DataContract] + public partial class StoreValidationConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Store identifier. + /// Name. + /// Is Store Valid for Kiosk. + /// Store group Id. + /// Store list of validations. + public StoreValidationConfig(int? storeId = default(int?), string name = default(string), bool? isValid = default(bool?), int? storeGroupId = default(int?), StoreConfig configValidation = default(StoreConfig)) + { + this.StoreId = storeId; + this.Name = name; + this.IsValid = isValid; + this.StoreGroupId = storeGroupId; + this.ConfigValidation = configValidation; + } + + /// + /// Store identifier + /// + /// Store identifier + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Is Store Valid for Kiosk + /// + /// Is Store Valid for Kiosk + [DataMember(Name="IsValid", EmitDefaultValue=false)] + public bool? IsValid { get; set; } + + /// + /// Store group Id + /// + /// Store group Id + [DataMember(Name="StoreGroupId", EmitDefaultValue=false)] + public int? StoreGroupId { get; set; } + + /// + /// Store list of validations + /// + /// Store list of validations + [DataMember(Name="ConfigValidation", EmitDefaultValue=false)] + public StoreConfig ConfigValidation { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StoreValidationConfig {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsValid: ").Append(IsValid).Append("\n"); + sb.Append(" StoreGroupId: ").Append(StoreGroupId).Append("\n"); + sb.Append(" ConfigValidation: ").Append(ConfigValidation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StoreValidationConfig); + } + + /// + /// Returns true if StoreValidationConfig instances are equal + /// + /// Instance of StoreValidationConfig to be compared + /// Boolean + public bool Equals(StoreValidationConfig input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsValid == input.IsValid || + (this.IsValid != null && + this.IsValid.Equals(input.IsValid)) + ) && + ( + this.StoreGroupId == input.StoreGroupId || + (this.StoreGroupId != null && + this.StoreGroupId.Equals(input.StoreGroupId)) + ) && + ( + this.ConfigValidation == input.ConfigValidation || + (this.ConfigValidation != null && + this.ConfigValidation.Equals(input.ConfigValidation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.IsValid != null) + hashCode = hashCode * 59 + this.IsValid.GetHashCode(); + if (this.StoreGroupId != null) + hashCode = hashCode * 59 + this.StoreGroupId.GetHashCode(); + if (this.ConfigValidation != null) + hashCode = hashCode * 59 + this.ConfigValidation.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Stream.cs b/src/Flipdish/Model/Stream.cs new file mode 100644 index 00000000..affb866f --- /dev/null +++ b/src/Flipdish/Model/Stream.cs @@ -0,0 +1,214 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stream + /// + [DataContract] + public partial class Stream : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// position. + /// readTimeout. + /// writeTimeout. + public Stream(long? position = default(long?), int? readTimeout = default(int?), int? writeTimeout = default(int?)) + { + this.Position = position; + this.ReadTimeout = readTimeout; + this.WriteTimeout = writeTimeout; + } + + /// + /// Gets or Sets CanRead + /// + [DataMember(Name="CanRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Gets or Sets CanSeek + /// + [DataMember(Name="CanSeek", EmitDefaultValue=false)] + public bool? CanSeek { get; private set; } + + /// + /// Gets or Sets CanTimeout + /// + [DataMember(Name="CanTimeout", EmitDefaultValue=false)] + public bool? CanTimeout { get; private set; } + + /// + /// Gets or Sets CanWrite + /// + [DataMember(Name="CanWrite", EmitDefaultValue=false)] + public bool? CanWrite { get; private set; } + + /// + /// Gets or Sets Length + /// + [DataMember(Name="Length", EmitDefaultValue=false)] + public long? Length { get; private set; } + + /// + /// Gets or Sets Position + /// + [DataMember(Name="Position", EmitDefaultValue=false)] + public long? Position { get; set; } + + /// + /// Gets or Sets ReadTimeout + /// + [DataMember(Name="ReadTimeout", EmitDefaultValue=false)] + public int? ReadTimeout { get; set; } + + /// + /// Gets or Sets WriteTimeout + /// + [DataMember(Name="WriteTimeout", EmitDefaultValue=false)] + public int? WriteTimeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Stream {\n"); + sb.Append(" CanRead: ").Append(CanRead).Append("\n"); + sb.Append(" CanSeek: ").Append(CanSeek).Append("\n"); + sb.Append(" CanTimeout: ").Append(CanTimeout).Append("\n"); + sb.Append(" CanWrite: ").Append(CanWrite).Append("\n"); + sb.Append(" Length: ").Append(Length).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" ReadTimeout: ").Append(ReadTimeout).Append("\n"); + sb.Append(" WriteTimeout: ").Append(WriteTimeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Stream); + } + + /// + /// Returns true if Stream instances are equal + /// + /// Instance of Stream to be compared + /// Boolean + public bool Equals(Stream input) + { + if (input == null) + return false; + + return + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ) && + ( + this.CanSeek == input.CanSeek || + (this.CanSeek != null && + this.CanSeek.Equals(input.CanSeek)) + ) && + ( + this.CanTimeout == input.CanTimeout || + (this.CanTimeout != null && + this.CanTimeout.Equals(input.CanTimeout)) + ) && + ( + this.CanWrite == input.CanWrite || + (this.CanWrite != null && + this.CanWrite.Equals(input.CanWrite)) + ) && + ( + this.Length == input.Length || + (this.Length != null && + this.Length.Equals(input.Length)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.ReadTimeout == input.ReadTimeout || + (this.ReadTimeout != null && + this.ReadTimeout.Equals(input.ReadTimeout)) + ) && + ( + this.WriteTimeout == input.WriteTimeout || + (this.WriteTimeout != null && + this.WriteTimeout.Equals(input.WriteTimeout)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + if (this.CanSeek != null) + hashCode = hashCode * 59 + this.CanSeek.GetHashCode(); + if (this.CanTimeout != null) + hashCode = hashCode * 59 + this.CanTimeout.GetHashCode(); + if (this.CanWrite != null) + hashCode = hashCode * 59 + this.CanWrite.GetHashCode(); + if (this.Length != null) + hashCode = hashCode * 59 + this.Length.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.ReadTimeout != null) + hashCode = hashCode * 59 + this.ReadTimeout.GetHashCode(); + if (this.WriteTimeout != null) + hashCode = hashCode * 59 + this.WriteTimeout.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeAccountLinkRequest.cs b/src/Flipdish/Model/StripeAccountLinkRequest.cs new file mode 100644 index 00000000..123f58ff --- /dev/null +++ b/src/Flipdish/Model/StripeAccountLinkRequest.cs @@ -0,0 +1,206 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a request for Stripe account link creation + /// + [DataContract] + public partial class StripeAccountLinkRequest : IEquatable + { + /// + /// Which information to collect from users at this stage + /// + /// Which information to collect from users at this stage + [JsonConverter(typeof(StringEnumConverter))] + public enum CollectEnum + { + + /// + /// Enum CurrentlyDue for value: CurrentlyDue + /// + [EnumMember(Value = "CurrentlyDue")] + CurrentlyDue = 1, + + /// + /// Enum EventuallyDue for value: EventuallyDue + /// + [EnumMember(Value = "EventuallyDue")] + EventuallyDue = 2 + } + + /// + /// Which information to collect from users at this stage + /// + /// Which information to collect from users at this stage + [DataMember(Name="Collect", EmitDefaultValue=false)] + public CollectEnum? Collect { get; set; } + /// + /// Either onboarding or edit user information + /// + /// Either onboarding or edit user information + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 1, + + /// + /// Enum Update for value: Update + /// + [EnumMember(Value = "Update")] + Update = 2 + } + + /// + /// Either onboarding or edit user information + /// + /// Either onboarding or edit user information + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Stripe's own connected account identifier. + /// URL to be hit if link creation succeeds. + /// Which information to collect from users at this stage. + /// Either onboarding or edit user information. + public StripeAccountLinkRequest(string stripeId = default(string), string returnUrl = default(string), CollectEnum? collect = default(CollectEnum?), TypeEnum? type = default(TypeEnum?)) + { + this.StripeId = stripeId; + this.ReturnUrl = returnUrl; + this.Collect = collect; + this.Type = type; + } + + /// + /// Stripe's own connected account identifier + /// + /// Stripe's own connected account identifier + [DataMember(Name="StripeId", EmitDefaultValue=false)] + public string StripeId { get; set; } + + /// + /// URL to be hit if link creation succeeds + /// + /// URL to be hit if link creation succeeds + [DataMember(Name="ReturnUrl", EmitDefaultValue=false)] + public string ReturnUrl { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeAccountLinkRequest {\n"); + sb.Append(" StripeId: ").Append(StripeId).Append("\n"); + sb.Append(" ReturnUrl: ").Append(ReturnUrl).Append("\n"); + sb.Append(" Collect: ").Append(Collect).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeAccountLinkRequest); + } + + /// + /// Returns true if StripeAccountLinkRequest instances are equal + /// + /// Instance of StripeAccountLinkRequest to be compared + /// Boolean + public bool Equals(StripeAccountLinkRequest input) + { + if (input == null) + return false; + + return + ( + this.StripeId == input.StripeId || + (this.StripeId != null && + this.StripeId.Equals(input.StripeId)) + ) && + ( + this.ReturnUrl == input.ReturnUrl || + (this.ReturnUrl != null && + this.ReturnUrl.Equals(input.ReturnUrl)) + ) && + ( + this.Collect == input.Collect || + (this.Collect != null && + this.Collect.Equals(input.Collect)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StripeId != null) + hashCode = hashCode * 59 + this.StripeId.GetHashCode(); + if (this.ReturnUrl != null) + hashCode = hashCode * 59 + this.ReturnUrl.GetHashCode(); + if (this.Collect != null) + hashCode = hashCode * 59 + this.Collect.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeConnectedAccount.cs b/src/Flipdish/Model/StripeConnectedAccount.cs new file mode 100644 index 00000000..58ef7298 --- /dev/null +++ b/src/Flipdish/Model/StripeConnectedAccount.cs @@ -0,0 +1,355 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a Stripe custom connected account + /// + [DataContract] + public partial class StripeConnectedAccount : IEquatable + { + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + [JsonConverter(typeof(StringEnumConverter))] + public enum CardPaymentsStatusEnum + { + + /// + /// Enum Inactive for value: Inactive + /// + [EnumMember(Value = "Inactive")] + Inactive = 1, + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Unrequested for value: Unrequested + /// + [EnumMember(Value = "Unrequested")] + Unrequested = 4 + } + + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + [DataMember(Name="CardPaymentsStatus", EmitDefaultValue=false)] + public CardPaymentsStatusEnum? CardPaymentsStatus { get; set; } + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + [JsonConverter(typeof(StringEnumConverter))] + public enum TransfersStatusEnum + { + + /// + /// Enum Inactive for value: Inactive + /// + [EnumMember(Value = "Inactive")] + Inactive = 1, + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Unrequested for value: Unrequested + /// + [EnumMember(Value = "Unrequested")] + Unrequested = 4 + } + + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + [DataMember(Name="TransfersStatus", EmitDefaultValue=false)] + public TransfersStatusEnum? TransfersStatus { get; set; } + /// + /// Current status of the account + /// + /// Current status of the account + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStatusEnum + { + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 1, + + /// + /// Enum Enabled for value: Enabled + /// + [EnumMember(Value = "Enabled")] + Enabled = 2, + + /// + /// Enum AdditionalInformationRequired for value: AdditionalInformationRequired + /// + [EnumMember(Value = "AdditionalInformationRequired")] + AdditionalInformationRequired = 3, + + /// + /// Enum PendingVerification for value: PendingVerification + /// + [EnumMember(Value = "PendingVerification")] + PendingVerification = 4, + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 5, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 6, + + /// + /// Enum UpdateExternalAccount for value: UpdateExternalAccount + /// + [EnumMember(Value = "UpdateExternalAccount")] + UpdateExternalAccount = 7, + + /// + /// Enum PlatformPaused for value: PlatformPaused + /// + [EnumMember(Value = "PlatformPaused")] + PlatformPaused = 8 + } + + /// + /// Current status of the account + /// + /// Current status of the account + [DataMember(Name="AccountStatus", EmitDefaultValue=false)] + public AccountStatusEnum? AccountStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Flipdish connected account identifier. + /// Stripe's own connected account identifier. + /// Id of the WhitelabelConfig the connected account is assigned to. + /// Card payments capability status (Inactive, Pending, Active, Unrequested). + /// Transfers capability status (Inactive, Pending, Active, Unrequested). + /// Current status of the account. + /// Payouts Enabled status. + /// Payments Enabled status. + public StripeConnectedAccount(int? flipdishConnectedAccountId = default(int?), string stripeId = default(string), int? whitelabelConfigId = default(int?), CardPaymentsStatusEnum? cardPaymentsStatus = default(CardPaymentsStatusEnum?), TransfersStatusEnum? transfersStatus = default(TransfersStatusEnum?), AccountStatusEnum? accountStatus = default(AccountStatusEnum?), bool? payoutsEnabled = default(bool?), bool? paymentsEnabled = default(bool?)) + { + this.FlipdishConnectedAccountId = flipdishConnectedAccountId; + this.StripeId = stripeId; + this.WhitelabelConfigId = whitelabelConfigId; + this.CardPaymentsStatus = cardPaymentsStatus; + this.TransfersStatus = transfersStatus; + this.AccountStatus = accountStatus; + this.PayoutsEnabled = payoutsEnabled; + this.PaymentsEnabled = paymentsEnabled; + } + + /// + /// Flipdish connected account identifier + /// + /// Flipdish connected account identifier + [DataMember(Name="FlipdishConnectedAccountId", EmitDefaultValue=false)] + public int? FlipdishConnectedAccountId { get; set; } + + /// + /// Stripe's own connected account identifier + /// + /// Stripe's own connected account identifier + [DataMember(Name="StripeId", EmitDefaultValue=false)] + public string StripeId { get; set; } + + /// + /// Id of the WhitelabelConfig the connected account is assigned to + /// + /// Id of the WhitelabelConfig the connected account is assigned to + [DataMember(Name="WhitelabelConfigId", EmitDefaultValue=false)] + public int? WhitelabelConfigId { get; set; } + + + + + /// + /// Payouts Enabled status + /// + /// Payouts Enabled status + [DataMember(Name="PayoutsEnabled", EmitDefaultValue=false)] + public bool? PayoutsEnabled { get; set; } + + /// + /// Payments Enabled status + /// + /// Payments Enabled status + [DataMember(Name="PaymentsEnabled", EmitDefaultValue=false)] + public bool? PaymentsEnabled { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeConnectedAccount {\n"); + sb.Append(" FlipdishConnectedAccountId: ").Append(FlipdishConnectedAccountId).Append("\n"); + sb.Append(" StripeId: ").Append(StripeId).Append("\n"); + sb.Append(" WhitelabelConfigId: ").Append(WhitelabelConfigId).Append("\n"); + sb.Append(" CardPaymentsStatus: ").Append(CardPaymentsStatus).Append("\n"); + sb.Append(" TransfersStatus: ").Append(TransfersStatus).Append("\n"); + sb.Append(" AccountStatus: ").Append(AccountStatus).Append("\n"); + sb.Append(" PayoutsEnabled: ").Append(PayoutsEnabled).Append("\n"); + sb.Append(" PaymentsEnabled: ").Append(PaymentsEnabled).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeConnectedAccount); + } + + /// + /// Returns true if StripeConnectedAccount instances are equal + /// + /// Instance of StripeConnectedAccount to be compared + /// Boolean + public bool Equals(StripeConnectedAccount input) + { + if (input == null) + return false; + + return + ( + this.FlipdishConnectedAccountId == input.FlipdishConnectedAccountId || + (this.FlipdishConnectedAccountId != null && + this.FlipdishConnectedAccountId.Equals(input.FlipdishConnectedAccountId)) + ) && + ( + this.StripeId == input.StripeId || + (this.StripeId != null && + this.StripeId.Equals(input.StripeId)) + ) && + ( + this.WhitelabelConfigId == input.WhitelabelConfigId || + (this.WhitelabelConfigId != null && + this.WhitelabelConfigId.Equals(input.WhitelabelConfigId)) + ) && + ( + this.CardPaymentsStatus == input.CardPaymentsStatus || + (this.CardPaymentsStatus != null && + this.CardPaymentsStatus.Equals(input.CardPaymentsStatus)) + ) && + ( + this.TransfersStatus == input.TransfersStatus || + (this.TransfersStatus != null && + this.TransfersStatus.Equals(input.TransfersStatus)) + ) && + ( + this.AccountStatus == input.AccountStatus || + (this.AccountStatus != null && + this.AccountStatus.Equals(input.AccountStatus)) + ) && + ( + this.PayoutsEnabled == input.PayoutsEnabled || + (this.PayoutsEnabled != null && + this.PayoutsEnabled.Equals(input.PayoutsEnabled)) + ) && + ( + this.PaymentsEnabled == input.PaymentsEnabled || + (this.PaymentsEnabled != null && + this.PaymentsEnabled.Equals(input.PaymentsEnabled)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FlipdishConnectedAccountId != null) + hashCode = hashCode * 59 + this.FlipdishConnectedAccountId.GetHashCode(); + if (this.StripeId != null) + hashCode = hashCode * 59 + this.StripeId.GetHashCode(); + if (this.WhitelabelConfigId != null) + hashCode = hashCode * 59 + this.WhitelabelConfigId.GetHashCode(); + if (this.CardPaymentsStatus != null) + hashCode = hashCode * 59 + this.CardPaymentsStatus.GetHashCode(); + if (this.TransfersStatus != null) + hashCode = hashCode * 59 + this.TransfersStatus.GetHashCode(); + if (this.AccountStatus != null) + hashCode = hashCode * 59 + this.AccountStatus.GetHashCode(); + if (this.PayoutsEnabled != null) + hashCode = hashCode * 59 + this.PayoutsEnabled.GetHashCode(); + if (this.PaymentsEnabled != null) + hashCode = hashCode * 59 + this.PaymentsEnabled.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeConnectedAccountInfo.cs b/src/Flipdish/Model/StripeConnectedAccountInfo.cs new file mode 100644 index 00000000..e4f458a6 --- /dev/null +++ b/src/Flipdish/Model/StripeConnectedAccountInfo.cs @@ -0,0 +1,355 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents information about a Stripe connected account associated with a bank account + /// + [DataContract] + public partial class StripeConnectedAccountInfo : IEquatable + { + /// + /// Stripe connected account status + /// + /// Stripe connected account status + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStatusEnum + { + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 1, + + /// + /// Enum Enabled for value: Enabled + /// + [EnumMember(Value = "Enabled")] + Enabled = 2, + + /// + /// Enum AdditionalInformationRequired for value: AdditionalInformationRequired + /// + [EnumMember(Value = "AdditionalInformationRequired")] + AdditionalInformationRequired = 3, + + /// + /// Enum PendingVerification for value: PendingVerification + /// + [EnumMember(Value = "PendingVerification")] + PendingVerification = 4, + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 5, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 6, + + /// + /// Enum UpdateExternalAccount for value: UpdateExternalAccount + /// + [EnumMember(Value = "UpdateExternalAccount")] + UpdateExternalAccount = 7, + + /// + /// Enum PlatformPaused for value: PlatformPaused + /// + [EnumMember(Value = "PlatformPaused")] + PlatformPaused = 8 + } + + /// + /// Stripe connected account status + /// + /// Stripe connected account status + [DataMember(Name="AccountStatus", EmitDefaultValue=false)] + public AccountStatusEnum? AccountStatus { get; set; } + /// + /// Current status of the Card Payment capability of the account + /// + /// Current status of the Card Payment capability of the account + [JsonConverter(typeof(StringEnumConverter))] + public enum CardPaymentStatusEnum + { + + /// + /// Enum Inactive for value: Inactive + /// + [EnumMember(Value = "Inactive")] + Inactive = 1, + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Unrequested for value: Unrequested + /// + [EnumMember(Value = "Unrequested")] + Unrequested = 4 + } + + /// + /// Current status of the Card Payment capability of the account + /// + /// Current status of the Card Payment capability of the account + [DataMember(Name="CardPaymentStatus", EmitDefaultValue=false)] + public CardPaymentStatusEnum? CardPaymentStatus { get; set; } + /// + /// Payouts Schedule Interval + /// + /// Payouts Schedule Interval + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutScheduleIntervalEnum + { + + /// + /// Enum Manual for value: Manual + /// + [EnumMember(Value = "Manual")] + Manual = 1, + + /// + /// Enum Daily for value: Daily + /// + [EnumMember(Value = "Daily")] + Daily = 2, + + /// + /// Enum Weekly for value: Weekly + /// + [EnumMember(Value = "Weekly")] + Weekly = 3, + + /// + /// Enum Monthly for value: Monthly + /// + [EnumMember(Value = "Monthly")] + Monthly = 4 + } + + /// + /// Payouts Schedule Interval + /// + /// Payouts Schedule Interval + [DataMember(Name="PayoutScheduleInterval", EmitDefaultValue=false)] + public PayoutScheduleIntervalEnum? PayoutScheduleInterval { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Stripe connected account status. + /// Stripe connected account id. + /// Current status of the Card Payment capability of the account. + /// Payouts Schedule Interval. + /// Payouts Enabled status. + /// Flag indicating if payouts are paused. + /// Flag indicating if payments are enabled. + /// If the Stripe connected account is disabled, this is Stripe's raw requirements.disabled_reason describing why, as last recorded from a Stripe connected-account webhook. Known values are requirements.fields_needed, requirements.past_due, requirements.pending_verification, rejected.fraud, rejected.terms_of_service, rejected.listed, rejected.other and platform_paused, but Stripe can introduce new ones, so the value is passed through unmapped (the same way CapabilityRequirementsInfo.DisabledReason is). null when the account is not disabled. Note that {Flipdish.PublicModels.V1.BankAccount.StripeConnectedAccountInfo.AccountStatus} is a deliberately lossy mapping of this value and the two can legitimately disagree - do not derive one from the other.. + public StripeConnectedAccountInfo(AccountStatusEnum? accountStatus = default(AccountStatusEnum?), string stripeId = default(string), CardPaymentStatusEnum? cardPaymentStatus = default(CardPaymentStatusEnum?), PayoutScheduleIntervalEnum? payoutScheduleInterval = default(PayoutScheduleIntervalEnum?), bool? payoutsEnabled = default(bool?), bool? payoutsPaused = default(bool?), bool? paymentsEnabled = default(bool?), string disabledReason = default(string)) + { + this.AccountStatus = accountStatus; + this.StripeId = stripeId; + this.CardPaymentStatus = cardPaymentStatus; + this.PayoutScheduleInterval = payoutScheduleInterval; + this.PayoutsEnabled = payoutsEnabled; + this.PayoutsPaused = payoutsPaused; + this.PaymentsEnabled = paymentsEnabled; + this.DisabledReason = disabledReason; + } + + + /// + /// Stripe connected account id + /// + /// Stripe connected account id + [DataMember(Name="StripeId", EmitDefaultValue=false)] + public string StripeId { get; set; } + + + + /// + /// Payouts Enabled status + /// + /// Payouts Enabled status + [DataMember(Name="PayoutsEnabled", EmitDefaultValue=false)] + public bool? PayoutsEnabled { get; set; } + + /// + /// Flag indicating if payouts are paused + /// + /// Flag indicating if payouts are paused + [DataMember(Name="PayoutsPaused", EmitDefaultValue=false)] + public bool? PayoutsPaused { get; set; } + + /// + /// Flag indicating if payments are enabled + /// + /// Flag indicating if payments are enabled + [DataMember(Name="PaymentsEnabled", EmitDefaultValue=false)] + public bool? PaymentsEnabled { get; set; } + + /// + /// If the Stripe connected account is disabled, this is Stripe's raw requirements.disabled_reason describing why, as last recorded from a Stripe connected-account webhook. Known values are requirements.fields_needed, requirements.past_due, requirements.pending_verification, rejected.fraud, rejected.terms_of_service, rejected.listed, rejected.other and platform_paused, but Stripe can introduce new ones, so the value is passed through unmapped (the same way CapabilityRequirementsInfo.DisabledReason is). null when the account is not disabled. Note that {Flipdish.PublicModels.V1.BankAccount.StripeConnectedAccountInfo.AccountStatus} is a deliberately lossy mapping of this value and the two can legitimately disagree - do not derive one from the other. + /// + /// If the Stripe connected account is disabled, this is Stripe's raw requirements.disabled_reason describing why, as last recorded from a Stripe connected-account webhook. Known values are requirements.fields_needed, requirements.past_due, requirements.pending_verification, rejected.fraud, rejected.terms_of_service, rejected.listed, rejected.other and platform_paused, but Stripe can introduce new ones, so the value is passed through unmapped (the same way CapabilityRequirementsInfo.DisabledReason is). null when the account is not disabled. Note that {Flipdish.PublicModels.V1.BankAccount.StripeConnectedAccountInfo.AccountStatus} is a deliberately lossy mapping of this value and the two can legitimately disagree - do not derive one from the other. + [DataMember(Name="DisabledReason", EmitDefaultValue=false)] + public string DisabledReason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeConnectedAccountInfo {\n"); + sb.Append(" AccountStatus: ").Append(AccountStatus).Append("\n"); + sb.Append(" StripeId: ").Append(StripeId).Append("\n"); + sb.Append(" CardPaymentStatus: ").Append(CardPaymentStatus).Append("\n"); + sb.Append(" PayoutScheduleInterval: ").Append(PayoutScheduleInterval).Append("\n"); + sb.Append(" PayoutsEnabled: ").Append(PayoutsEnabled).Append("\n"); + sb.Append(" PayoutsPaused: ").Append(PayoutsPaused).Append("\n"); + sb.Append(" PaymentsEnabled: ").Append(PaymentsEnabled).Append("\n"); + sb.Append(" DisabledReason: ").Append(DisabledReason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeConnectedAccountInfo); + } + + /// + /// Returns true if StripeConnectedAccountInfo instances are equal + /// + /// Instance of StripeConnectedAccountInfo to be compared + /// Boolean + public bool Equals(StripeConnectedAccountInfo input) + { + if (input == null) + return false; + + return + ( + this.AccountStatus == input.AccountStatus || + (this.AccountStatus != null && + this.AccountStatus.Equals(input.AccountStatus)) + ) && + ( + this.StripeId == input.StripeId || + (this.StripeId != null && + this.StripeId.Equals(input.StripeId)) + ) && + ( + this.CardPaymentStatus == input.CardPaymentStatus || + (this.CardPaymentStatus != null && + this.CardPaymentStatus.Equals(input.CardPaymentStatus)) + ) && + ( + this.PayoutScheduleInterval == input.PayoutScheduleInterval || + (this.PayoutScheduleInterval != null && + this.PayoutScheduleInterval.Equals(input.PayoutScheduleInterval)) + ) && + ( + this.PayoutsEnabled == input.PayoutsEnabled || + (this.PayoutsEnabled != null && + this.PayoutsEnabled.Equals(input.PayoutsEnabled)) + ) && + ( + this.PayoutsPaused == input.PayoutsPaused || + (this.PayoutsPaused != null && + this.PayoutsPaused.Equals(input.PayoutsPaused)) + ) && + ( + this.PaymentsEnabled == input.PaymentsEnabled || + (this.PaymentsEnabled != null && + this.PaymentsEnabled.Equals(input.PaymentsEnabled)) + ) && + ( + this.DisabledReason == input.DisabledReason || + (this.DisabledReason != null && + this.DisabledReason.Equals(input.DisabledReason)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccountStatus != null) + hashCode = hashCode * 59 + this.AccountStatus.GetHashCode(); + if (this.StripeId != null) + hashCode = hashCode * 59 + this.StripeId.GetHashCode(); + if (this.CardPaymentStatus != null) + hashCode = hashCode * 59 + this.CardPaymentStatus.GetHashCode(); + if (this.PayoutScheduleInterval != null) + hashCode = hashCode * 59 + this.PayoutScheduleInterval.GetHashCode(); + if (this.PayoutsEnabled != null) + hashCode = hashCode * 59 + this.PayoutsEnabled.GetHashCode(); + if (this.PayoutsPaused != null) + hashCode = hashCode * 59 + this.PayoutsPaused.GetHashCode(); + if (this.PaymentsEnabled != null) + hashCode = hashCode * 59 + this.PaymentsEnabled.GetHashCode(); + if (this.DisabledReason != null) + hashCode = hashCode * 59 + this.DisabledReason.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeCustomConnectedAccount.cs b/src/Flipdish/Model/StripeCustomConnectedAccount.cs new file mode 100644 index 00000000..3abe703d --- /dev/null +++ b/src/Flipdish/Model/StripeCustomConnectedAccount.cs @@ -0,0 +1,304 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Flipdish Stripe Custom Connected Account associated to the Store + /// + [DataContract] + public partial class StripeCustomConnectedAccount : IEquatable + { + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + [JsonConverter(typeof(StringEnumConverter))] + public enum CardPaymentsStatusEnum + { + + /// + /// Enum Inactive for value: Inactive + /// + [EnumMember(Value = "Inactive")] + Inactive = 1, + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Unrequested for value: Unrequested + /// + [EnumMember(Value = "Unrequested")] + Unrequested = 4 + } + + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + /// + /// Card payments capability status (Inactive, Pending, Active, Unrequested) + [DataMember(Name="CardPaymentsStatus", EmitDefaultValue=false)] + public CardPaymentsStatusEnum? CardPaymentsStatus { get; set; } + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + [JsonConverter(typeof(StringEnumConverter))] + public enum TransfersStatusEnum + { + + /// + /// Enum Inactive for value: Inactive + /// + [EnumMember(Value = "Inactive")] + Inactive = 1, + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Unrequested for value: Unrequested + /// + [EnumMember(Value = "Unrequested")] + Unrequested = 4 + } + + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + /// + /// Transfers capability status (Inactive, Pending, Active, Unrequested) + [DataMember(Name="TransfersStatus", EmitDefaultValue=false)] + public TransfersStatusEnum? TransfersStatus { get; set; } + /// + /// Current status of the account + /// + /// Current status of the account + [JsonConverter(typeof(StringEnumConverter))] + public enum AccountStatusEnum + { + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 1, + + /// + /// Enum Enabled for value: Enabled + /// + [EnumMember(Value = "Enabled")] + Enabled = 2, + + /// + /// Enum AdditionalInformationRequired for value: AdditionalInformationRequired + /// + [EnumMember(Value = "AdditionalInformationRequired")] + AdditionalInformationRequired = 3, + + /// + /// Enum PendingVerification for value: PendingVerification + /// + [EnumMember(Value = "PendingVerification")] + PendingVerification = 4, + + /// + /// Enum Unverified for value: Unverified + /// + [EnumMember(Value = "Unverified")] + Unverified = 5, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 6, + + /// + /// Enum UpdateExternalAccount for value: UpdateExternalAccount + /// + [EnumMember(Value = "UpdateExternalAccount")] + UpdateExternalAccount = 7, + + /// + /// Enum PlatformPaused for value: PlatformPaused + /// + [EnumMember(Value = "PlatformPaused")] + PlatformPaused = 8 + } + + /// + /// Current status of the account + /// + /// Current status of the account + [DataMember(Name="AccountStatus", EmitDefaultValue=false)] + public AccountStatusEnum? AccountStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Physical Restaurant Id. + /// Stripe's own connected account identifier. + /// Card payments capability status (Inactive, Pending, Active, Unrequested). + /// Transfers capability status (Inactive, Pending, Active, Unrequested). + /// Current status of the account. + public StripeCustomConnectedAccount(int? storeId = default(int?), string stripeId = default(string), CardPaymentsStatusEnum? cardPaymentsStatus = default(CardPaymentsStatusEnum?), TransfersStatusEnum? transfersStatus = default(TransfersStatusEnum?), AccountStatusEnum? accountStatus = default(AccountStatusEnum?)) + { + this.StoreId = storeId; + this.StripeId = stripeId; + this.CardPaymentsStatus = cardPaymentsStatus; + this.TransfersStatus = transfersStatus; + this.AccountStatus = accountStatus; + } + + /// + /// Physical Restaurant Id + /// + /// Physical Restaurant Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Stripe's own connected account identifier + /// + /// Stripe's own connected account identifier + [DataMember(Name="StripeId", EmitDefaultValue=false)] + public string StripeId { get; set; } + + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeCustomConnectedAccount {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StripeId: ").Append(StripeId).Append("\n"); + sb.Append(" CardPaymentsStatus: ").Append(CardPaymentsStatus).Append("\n"); + sb.Append(" TransfersStatus: ").Append(TransfersStatus).Append("\n"); + sb.Append(" AccountStatus: ").Append(AccountStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeCustomConnectedAccount); + } + + /// + /// Returns true if StripeCustomConnectedAccount instances are equal + /// + /// Instance of StripeCustomConnectedAccount to be compared + /// Boolean + public bool Equals(StripeCustomConnectedAccount input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StripeId == input.StripeId || + (this.StripeId != null && + this.StripeId.Equals(input.StripeId)) + ) && + ( + this.CardPaymentsStatus == input.CardPaymentsStatus || + (this.CardPaymentsStatus != null && + this.CardPaymentsStatus.Equals(input.CardPaymentsStatus)) + ) && + ( + this.TransfersStatus == input.TransfersStatus || + (this.TransfersStatus != null && + this.TransfersStatus.Equals(input.TransfersStatus)) + ) && + ( + this.AccountStatus == input.AccountStatus || + (this.AccountStatus != null && + this.AccountStatus.Equals(input.AccountStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StripeId != null) + hashCode = hashCode * 59 + this.StripeId.GetHashCode(); + if (this.CardPaymentsStatus != null) + hashCode = hashCode * 59 + this.CardPaymentsStatus.GetHashCode(); + if (this.TransfersStatus != null) + hashCode = hashCode * 59 + this.TransfersStatus.GetHashCode(); + if (this.AccountStatus != null) + hashCode = hashCode * 59 + this.AccountStatus.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeTerminalConnectionToken.cs b/src/Flipdish/Model/StripeTerminalConnectionToken.cs new file mode 100644 index 00000000..5c6e9b38 --- /dev/null +++ b/src/Flipdish/Model/StripeTerminalConnectionToken.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stripe Terminal Connection Token + /// + [DataContract] + public partial class StripeTerminalConnectionToken : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Connection Token. + public StripeTerminalConnectionToken(string token = default(string)) + { + this.Token = token; + } + + /// + /// Connection Token + /// + /// Connection Token + [DataMember(Name="Token", EmitDefaultValue=false)] + public string Token { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeTerminalConnectionToken {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeTerminalConnectionToken); + } + + /// + /// Returns true if StripeTerminalConnectionToken instances are equal + /// + /// Instance of StripeTerminalConnectionToken to be compared + /// Boolean + public bool Equals(StripeTerminalConnectionToken input) + { + if (input == null) + return false; + + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StripeTerminalLocation.cs b/src/Flipdish/Model/StripeTerminalLocation.cs new file mode 100644 index 00000000..9bb9684c --- /dev/null +++ b/src/Flipdish/Model/StripeTerminalLocation.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stripe Terminal Private Key + /// + [DataContract] + public partial class StripeTerminalLocation : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Registered location of the terminal. + public StripeTerminalLocation(string location = default(string)) + { + this.Location = location; + } + + /// + /// Registered location of the terminal + /// + /// Registered location of the terminal + [DataMember(Name="Location", EmitDefaultValue=false)] + public string Location { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StripeTerminalLocation {\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StripeTerminalLocation); + } + + /// + /// Returns true if StripeTerminalLocation instances are equal + /// + /// Instance of StripeTerminalLocation to be compared + /// Boolean + public bool Equals(StripeTerminalLocation input) + { + if (input == null) + return false; + + return + ( + this.Location == input.Location || + (this.Location != null && + this.Location.Equals(input.Location)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Location != null) + hashCode = hashCode * 59 + this.Location.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StuartSettings.cs b/src/Flipdish/Model/StuartSettings.cs new file mode 100644 index 00000000..6f733a5c --- /dev/null +++ b/src/Flipdish/Model/StuartSettings.cs @@ -0,0 +1,355 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stuart settings + /// + [DataContract] + public partial class StuartSettings : IEquatable + { + /// + /// Package type + /// + /// Package type + [JsonConverter(typeof(StringEnumConverter))] + public enum PackageTypeEnum + { + + /// + /// Enum Xsmall for value: Xsmall + /// + [EnumMember(Value = "Xsmall")] + Xsmall = 1, + + /// + /// Enum Small for value: Small + /// + [EnumMember(Value = "Small")] + Small = 2, + + /// + /// Enum Medium for value: Medium + /// + [EnumMember(Value = "Medium")] + Medium = 3, + + /// + /// Enum Large for value: Large + /// + [EnumMember(Value = "Large")] + Large = 4, + + /// + /// Enum Xlarge for value: Xlarge + /// + [EnumMember(Value = "Xlarge")] + Xlarge = 5 + } + + /// + /// Package type + /// + /// Package type + [DataMember(Name="PackageType", EmitDefaultValue=false)] + public PackageTypeEnum? PackageType { get; set; } + /// + /// Transport type + /// + /// Transport type + [JsonConverter(typeof(StringEnumConverter))] + public enum TransportTypeEnum + { + + /// + /// Enum Bike for value: Bike + /// + [EnumMember(Value = "Bike")] + Bike = 1, + + /// + /// Enum Cargobike for value: Cargobike + /// + [EnumMember(Value = "Cargobike")] + Cargobike = 2, + + /// + /// Enum Cargobikexl for value: Cargobikexl + /// + [EnumMember(Value = "Cargobikexl")] + Cargobikexl = 3, + + /// + /// Enum Motorbike for value: Motorbike + /// + [EnumMember(Value = "Motorbike")] + Motorbike = 4, + + /// + /// Enum Motorbikexl for value: Motorbikexl + /// + [EnumMember(Value = "Motorbikexl")] + Motorbikexl = 5, + + /// + /// Enum Car for value: Car + /// + [EnumMember(Value = "Car")] + Car = 6, + + /// + /// Enum Van for value: Van + /// + [EnumMember(Value = "Van")] + Van = 7 + } + + /// + /// Transport type + /// + /// Transport type + [DataMember(Name="TransportType", EmitDefaultValue=false)] + public TransportTypeEnum? TransportType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Client Id. + /// Client Secret. + /// Enabled. + /// Webhook url to settle in the Stuart portal. + /// Override Flipdish Webhook Url. + /// MinutesToPickupBeforeThanDeliveryTime. + /// Package type. + /// Transport type. + /// Determines if Flipdish order should be cancel when Stuart cancels delivery. + /// transportPrices. + public StuartSettings(string clientId = default(string), string clientSecret = default(string), bool? enabled = default(bool?), string webhookUrlBasicAuthentication = default(string), bool? overrideWebhookUrl = default(bool?), int? minutesToPickupBeforeThanDeliveryTime = default(int?), PackageTypeEnum? packageType = default(PackageTypeEnum?), TransportTypeEnum? transportType = default(TransportTypeEnum?), bool? cancelOrderIfStuartCancelDelivery = default(bool?), StuartSettingsTransportPrices transportPrices = default(StuartSettingsTransportPrices)) + { + this.ClientId = clientId; + this.ClientSecret = clientSecret; + this.Enabled = enabled; + this.WebhookUrlBasicAuthentication = webhookUrlBasicAuthentication; + this.OverrideWebhookUrl = overrideWebhookUrl; + this.MinutesToPickupBeforeThanDeliveryTime = minutesToPickupBeforeThanDeliveryTime; + this.PackageType = packageType; + this.TransportType = transportType; + this.CancelOrderIfStuartCancelDelivery = cancelOrderIfStuartCancelDelivery; + this.TransportPrices = transportPrices; + } + + /// + /// Client Id + /// + /// Client Id + [DataMember(Name="ClientId", EmitDefaultValue=false)] + public string ClientId { get; set; } + + /// + /// Client Secret + /// + /// Client Secret + [DataMember(Name="ClientSecret", EmitDefaultValue=false)] + public string ClientSecret { get; set; } + + /// + /// Enabled + /// + /// Enabled + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// Webhook url to settle in the Stuart portal + /// + /// Webhook url to settle in the Stuart portal + [DataMember(Name="WebhookUrlBasicAuthentication", EmitDefaultValue=false)] + public string WebhookUrlBasicAuthentication { get; set; } + + /// + /// Override Flipdish Webhook Url + /// + /// Override Flipdish Webhook Url + [DataMember(Name="OverrideWebhookUrl", EmitDefaultValue=false)] + public bool? OverrideWebhookUrl { get; set; } + + /// + /// MinutesToPickupBeforeThanDeliveryTime + /// + /// MinutesToPickupBeforeThanDeliveryTime + [DataMember(Name="MinutesToPickupBeforeThanDeliveryTime", EmitDefaultValue=false)] + public int? MinutesToPickupBeforeThanDeliveryTime { get; set; } + + + + /// + /// Determines if Flipdish order should be cancel when Stuart cancels delivery + /// + /// Determines if Flipdish order should be cancel when Stuart cancels delivery + [DataMember(Name="CancelOrderIfStuartCancelDelivery", EmitDefaultValue=false)] + public bool? CancelOrderIfStuartCancelDelivery { get; set; } + + /// + /// Gets or Sets TransportPrices + /// + [DataMember(Name="TransportPrices", EmitDefaultValue=false)] + public StuartSettingsTransportPrices TransportPrices { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StuartSettings {\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" WebhookUrlBasicAuthentication: ").Append(WebhookUrlBasicAuthentication).Append("\n"); + sb.Append(" OverrideWebhookUrl: ").Append(OverrideWebhookUrl).Append("\n"); + sb.Append(" MinutesToPickupBeforeThanDeliveryTime: ").Append(MinutesToPickupBeforeThanDeliveryTime).Append("\n"); + sb.Append(" PackageType: ").Append(PackageType).Append("\n"); + sb.Append(" TransportType: ").Append(TransportType).Append("\n"); + sb.Append(" CancelOrderIfStuartCancelDelivery: ").Append(CancelOrderIfStuartCancelDelivery).Append("\n"); + sb.Append(" TransportPrices: ").Append(TransportPrices).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StuartSettings); + } + + /// + /// Returns true if StuartSettings instances are equal + /// + /// Instance of StuartSettings to be compared + /// Boolean + public bool Equals(StuartSettings input) + { + if (input == null) + return false; + + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.ClientSecret == input.ClientSecret || + (this.ClientSecret != null && + this.ClientSecret.Equals(input.ClientSecret)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.WebhookUrlBasicAuthentication == input.WebhookUrlBasicAuthentication || + (this.WebhookUrlBasicAuthentication != null && + this.WebhookUrlBasicAuthentication.Equals(input.WebhookUrlBasicAuthentication)) + ) && + ( + this.OverrideWebhookUrl == input.OverrideWebhookUrl || + (this.OverrideWebhookUrl != null && + this.OverrideWebhookUrl.Equals(input.OverrideWebhookUrl)) + ) && + ( + this.MinutesToPickupBeforeThanDeliveryTime == input.MinutesToPickupBeforeThanDeliveryTime || + (this.MinutesToPickupBeforeThanDeliveryTime != null && + this.MinutesToPickupBeforeThanDeliveryTime.Equals(input.MinutesToPickupBeforeThanDeliveryTime)) + ) && + ( + this.PackageType == input.PackageType || + (this.PackageType != null && + this.PackageType.Equals(input.PackageType)) + ) && + ( + this.TransportType == input.TransportType || + (this.TransportType != null && + this.TransportType.Equals(input.TransportType)) + ) && + ( + this.CancelOrderIfStuartCancelDelivery == input.CancelOrderIfStuartCancelDelivery || + (this.CancelOrderIfStuartCancelDelivery != null && + this.CancelOrderIfStuartCancelDelivery.Equals(input.CancelOrderIfStuartCancelDelivery)) + ) && + ( + this.TransportPrices == input.TransportPrices || + (this.TransportPrices != null && + this.TransportPrices.Equals(input.TransportPrices)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClientId != null) + hashCode = hashCode * 59 + this.ClientId.GetHashCode(); + if (this.ClientSecret != null) + hashCode = hashCode * 59 + this.ClientSecret.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.WebhookUrlBasicAuthentication != null) + hashCode = hashCode * 59 + this.WebhookUrlBasicAuthentication.GetHashCode(); + if (this.OverrideWebhookUrl != null) + hashCode = hashCode * 59 + this.OverrideWebhookUrl.GetHashCode(); + if (this.MinutesToPickupBeforeThanDeliveryTime != null) + hashCode = hashCode * 59 + this.MinutesToPickupBeforeThanDeliveryTime.GetHashCode(); + if (this.PackageType != null) + hashCode = hashCode * 59 + this.PackageType.GetHashCode(); + if (this.TransportType != null) + hashCode = hashCode * 59 + this.TransportType.GetHashCode(); + if (this.CancelOrderIfStuartCancelDelivery != null) + hashCode = hashCode * 59 + this.CancelOrderIfStuartCancelDelivery.GetHashCode(); + if (this.TransportPrices != null) + hashCode = hashCode * 59 + this.TransportPrices.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/StuartSettingsTransportPrices.cs b/src/Flipdish/Model/StuartSettingsTransportPrices.cs new file mode 100644 index 00000000..efc99a69 --- /dev/null +++ b/src/Flipdish/Model/StuartSettingsTransportPrices.cs @@ -0,0 +1,208 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// If the order exceeds are certain amount this configuration will determine a new vehicle type + /// + [DataContract] + public partial class StuartSettingsTransportPrices : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// bike. + /// cargobike. + /// cargobikexl. + /// motorbike. + /// motorbikexl. + /// car. + /// van. + public StuartSettingsTransportPrices(double? bike = default(double?), double? cargobike = default(double?), double? cargobikexl = default(double?), double? motorbike = default(double?), double? motorbikexl = default(double?), double? car = default(double?), double? van = default(double?)) + { + this.Bike = bike; + this.Cargobike = cargobike; + this.Cargobikexl = cargobikexl; + this.Motorbike = motorbike; + this.Motorbikexl = motorbikexl; + this.Car = car; + this.Van = van; + } + + /// + /// Gets or Sets Bike + /// + [DataMember(Name="Bike", EmitDefaultValue=false)] + public double? Bike { get; set; } + + /// + /// Gets or Sets Cargobike + /// + [DataMember(Name="Cargobike", EmitDefaultValue=false)] + public double? Cargobike { get; set; } + + /// + /// Gets or Sets Cargobikexl + /// + [DataMember(Name="Cargobikexl", EmitDefaultValue=false)] + public double? Cargobikexl { get; set; } + + /// + /// Gets or Sets Motorbike + /// + [DataMember(Name="Motorbike", EmitDefaultValue=false)] + public double? Motorbike { get; set; } + + /// + /// Gets or Sets Motorbikexl + /// + [DataMember(Name="Motorbikexl", EmitDefaultValue=false)] + public double? Motorbikexl { get; set; } + + /// + /// Gets or Sets Car + /// + [DataMember(Name="Car", EmitDefaultValue=false)] + public double? Car { get; set; } + + /// + /// Gets or Sets Van + /// + [DataMember(Name="Van", EmitDefaultValue=false)] + public double? Van { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StuartSettingsTransportPrices {\n"); + sb.Append(" Bike: ").Append(Bike).Append("\n"); + sb.Append(" Cargobike: ").Append(Cargobike).Append("\n"); + sb.Append(" Cargobikexl: ").Append(Cargobikexl).Append("\n"); + sb.Append(" Motorbike: ").Append(Motorbike).Append("\n"); + sb.Append(" Motorbikexl: ").Append(Motorbikexl).Append("\n"); + sb.Append(" Car: ").Append(Car).Append("\n"); + sb.Append(" Van: ").Append(Van).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StuartSettingsTransportPrices); + } + + /// + /// Returns true if StuartSettingsTransportPrices instances are equal + /// + /// Instance of StuartSettingsTransportPrices to be compared + /// Boolean + public bool Equals(StuartSettingsTransportPrices input) + { + if (input == null) + return false; + + return + ( + this.Bike == input.Bike || + (this.Bike != null && + this.Bike.Equals(input.Bike)) + ) && + ( + this.Cargobike == input.Cargobike || + (this.Cargobike != null && + this.Cargobike.Equals(input.Cargobike)) + ) && + ( + this.Cargobikexl == input.Cargobikexl || + (this.Cargobikexl != null && + this.Cargobikexl.Equals(input.Cargobikexl)) + ) && + ( + this.Motorbike == input.Motorbike || + (this.Motorbike != null && + this.Motorbike.Equals(input.Motorbike)) + ) && + ( + this.Motorbikexl == input.Motorbikexl || + (this.Motorbikexl != null && + this.Motorbikexl.Equals(input.Motorbikexl)) + ) && + ( + this.Car == input.Car || + (this.Car != null && + this.Car.Equals(input.Car)) + ) && + ( + this.Van == input.Van || + (this.Van != null && + this.Van.Equals(input.Van)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Bike != null) + hashCode = hashCode * 59 + this.Bike.GetHashCode(); + if (this.Cargobike != null) + hashCode = hashCode * 59 + this.Cargobike.GetHashCode(); + if (this.Cargobikexl != null) + hashCode = hashCode * 59 + this.Cargobikexl.GetHashCode(); + if (this.Motorbike != null) + hashCode = hashCode * 59 + this.Motorbike.GetHashCode(); + if (this.Motorbikexl != null) + hashCode = hashCode * 59 + this.Motorbikexl.GetHashCode(); + if (this.Car != null) + hashCode = hashCode * 59 + this.Car.GetHashCode(); + if (this.Van != null) + hashCode = hashCode * 59 + this.Van.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Subscription.cs b/src/Flipdish/Model/Subscription.cs new file mode 100644 index 00000000..41031923 --- /dev/null +++ b/src/Flipdish/Model/Subscription.cs @@ -0,0 +1,1125 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Subscription + /// + [DataContract] + public partial class Subscription : IEquatable + { + /// + /// Status + /// + /// Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Incomplete for value: Incomplete + /// + [EnumMember(Value = "Incomplete")] + Incomplete = 1, + + /// + /// Enum IncompleteExpired for value: IncompleteExpired + /// + [EnumMember(Value = "IncompleteExpired")] + IncompleteExpired = 2, + + /// + /// Enum Trialing for value: Trialing + /// + [EnumMember(Value = "Trialing")] + Trialing = 3, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 4, + + /// + /// Enum PastDue for value: PastDue + /// + [EnumMember(Value = "PastDue")] + PastDue = 5, + + /// + /// Enum Canceled for value: Canceled + /// + [EnumMember(Value = "Canceled")] + Canceled = 6, + + /// + /// Enum Unpaid for value: Unpaid + /// + [EnumMember(Value = "Unpaid")] + Unpaid = 7 + } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum Status { get; set; } + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Subscription() { } + /// + /// Initializes a new instance of the class. + /// + /// Products (required). + /// Next invoice amount. + /// Next invoice billing date. + /// Upcoming invoice items. + /// Upcoming invoice discounts. + /// Upcoming invoice. + /// The subscription identifier (required). + /// Name (required). + /// Status (required). + /// Currency (required). + /// User (required). + /// Default payment description. + /// Cancellation Date. + /// Cancel Date. + public Subscription(List products = default(List), double? nextInvoiceAmount = default(double?), DateTime? nextInvoiceBillingDate = default(DateTime?), List upcomingInvoiceItems = default(List), List upcomingInvoiceDiscounts = default(List), UpcomingInvoice upcomingInvoice = default(UpcomingInvoice), string subscriptionId = default(string), string name = default(string), StatusEnum status = default(StatusEnum), CurrencyEnum currency = default(CurrencyEnum), string user = default(string), string defaultPaymentDescription = default(string), DateTime? cancellationRequestDate = default(DateTime?), DateTime? cancellationDate = default(DateTime?)) + { + // to ensure "products" is required (not null) + if (products == null) + { + throw new InvalidDataException("products is a required property for Subscription and cannot be null"); + } + else + { + this.Products = products; + } + // to ensure "subscriptionId" is required (not null) + if (subscriptionId == null) + { + throw new InvalidDataException("subscriptionId is a required property for Subscription and cannot be null"); + } + else + { + this.SubscriptionId = subscriptionId; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for Subscription and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for Subscription and cannot be null"); + } + else + { + this.Status = status; + } + // to ensure "currency" is required (not null) + if (currency == null) + { + throw new InvalidDataException("currency is a required property for Subscription and cannot be null"); + } + else + { + this.Currency = currency; + } + // to ensure "user" is required (not null) + if (user == null) + { + throw new InvalidDataException("user is a required property for Subscription and cannot be null"); + } + else + { + this.User = user; + } + this.NextInvoiceAmount = nextInvoiceAmount; + this.NextInvoiceBillingDate = nextInvoiceBillingDate; + this.UpcomingInvoiceItems = upcomingInvoiceItems; + this.UpcomingInvoiceDiscounts = upcomingInvoiceDiscounts; + this.UpcomingInvoice = upcomingInvoice; + this.DefaultPaymentDescription = defaultPaymentDescription; + this.CancellationRequestDate = cancellationRequestDate; + this.CancellationDate = cancellationDate; + } + + /// + /// Products + /// + /// Products + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + /// + /// Next invoice amount + /// + /// Next invoice amount + [DataMember(Name="NextInvoiceAmount", EmitDefaultValue=false)] + public double? NextInvoiceAmount { get; set; } + + /// + /// Next invoice billing date + /// + /// Next invoice billing date + [DataMember(Name="NextInvoiceBillingDate", EmitDefaultValue=false)] + public DateTime? NextInvoiceBillingDate { get; set; } + + /// + /// Upcoming invoice items + /// + /// Upcoming invoice items + [DataMember(Name="UpcomingInvoiceItems", EmitDefaultValue=false)] + public List UpcomingInvoiceItems { get; set; } + + /// + /// Upcoming invoice discounts + /// + /// Upcoming invoice discounts + [DataMember(Name="UpcomingInvoiceDiscounts", EmitDefaultValue=false)] + public List UpcomingInvoiceDiscounts { get; set; } + + /// + /// Upcoming invoice + /// + /// Upcoming invoice + [DataMember(Name="UpcomingInvoice", EmitDefaultValue=false)] + public UpcomingInvoice UpcomingInvoice { get; set; } + + /// + /// The subscription identifier + /// + /// The subscription identifier + [DataMember(Name="SubscriptionId", EmitDefaultValue=false)] + public string SubscriptionId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + + /// + /// User + /// + /// User + [DataMember(Name="User", EmitDefaultValue=false)] + public string User { get; set; } + + /// + /// Default payment description + /// + /// Default payment description + [DataMember(Name="DefaultPaymentDescription", EmitDefaultValue=false)] + public string DefaultPaymentDescription { get; set; } + + /// + /// Cancellation Date + /// + /// Cancellation Date + [DataMember(Name="CancellationRequestDate", EmitDefaultValue=false)] + public DateTime? CancellationRequestDate { get; set; } + + /// + /// Cancel Date + /// + /// Cancel Date + [DataMember(Name="CancellationDate", EmitDefaultValue=false)] + public DateTime? CancellationDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Subscription {\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" NextInvoiceAmount: ").Append(NextInvoiceAmount).Append("\n"); + sb.Append(" NextInvoiceBillingDate: ").Append(NextInvoiceBillingDate).Append("\n"); + sb.Append(" UpcomingInvoiceItems: ").Append(UpcomingInvoiceItems).Append("\n"); + sb.Append(" UpcomingInvoiceDiscounts: ").Append(UpcomingInvoiceDiscounts).Append("\n"); + sb.Append(" UpcomingInvoice: ").Append(UpcomingInvoice).Append("\n"); + sb.Append(" SubscriptionId: ").Append(SubscriptionId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" DefaultPaymentDescription: ").Append(DefaultPaymentDescription).Append("\n"); + sb.Append(" CancellationRequestDate: ").Append(CancellationRequestDate).Append("\n"); + sb.Append(" CancellationDate: ").Append(CancellationDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Subscription); + } + + /// + /// Returns true if Subscription instances are equal + /// + /// Instance of Subscription to be compared + /// Boolean + public bool Equals(Subscription input) + { + if (input == null) + return false; + + return + ( + this.Products == input.Products || + this.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.NextInvoiceAmount == input.NextInvoiceAmount || + (this.NextInvoiceAmount != null && + this.NextInvoiceAmount.Equals(input.NextInvoiceAmount)) + ) && + ( + this.NextInvoiceBillingDate == input.NextInvoiceBillingDate || + (this.NextInvoiceBillingDate != null && + this.NextInvoiceBillingDate.Equals(input.NextInvoiceBillingDate)) + ) && + ( + this.UpcomingInvoiceItems == input.UpcomingInvoiceItems || + this.UpcomingInvoiceItems != null && + this.UpcomingInvoiceItems.SequenceEqual(input.UpcomingInvoiceItems) + ) && + ( + this.UpcomingInvoiceDiscounts == input.UpcomingInvoiceDiscounts || + this.UpcomingInvoiceDiscounts != null && + this.UpcomingInvoiceDiscounts.SequenceEqual(input.UpcomingInvoiceDiscounts) + ) && + ( + this.UpcomingInvoice == input.UpcomingInvoice || + (this.UpcomingInvoice != null && + this.UpcomingInvoice.Equals(input.UpcomingInvoice)) + ) && + ( + this.SubscriptionId == input.SubscriptionId || + (this.SubscriptionId != null && + this.SubscriptionId.Equals(input.SubscriptionId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.DefaultPaymentDescription == input.DefaultPaymentDescription || + (this.DefaultPaymentDescription != null && + this.DefaultPaymentDescription.Equals(input.DefaultPaymentDescription)) + ) && + ( + this.CancellationRequestDate == input.CancellationRequestDate || + (this.CancellationRequestDate != null && + this.CancellationRequestDate.Equals(input.CancellationRequestDate)) + ) && + ( + this.CancellationDate == input.CancellationDate || + (this.CancellationDate != null && + this.CancellationDate.Equals(input.CancellationDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Products != null) + hashCode = hashCode * 59 + this.Products.GetHashCode(); + if (this.NextInvoiceAmount != null) + hashCode = hashCode * 59 + this.NextInvoiceAmount.GetHashCode(); + if (this.NextInvoiceBillingDate != null) + hashCode = hashCode * 59 + this.NextInvoiceBillingDate.GetHashCode(); + if (this.UpcomingInvoiceItems != null) + hashCode = hashCode * 59 + this.UpcomingInvoiceItems.GetHashCode(); + if (this.UpcomingInvoiceDiscounts != null) + hashCode = hashCode * 59 + this.UpcomingInvoiceDiscounts.GetHashCode(); + if (this.UpcomingInvoice != null) + hashCode = hashCode * 59 + this.UpcomingInvoice.GetHashCode(); + if (this.SubscriptionId != null) + hashCode = hashCode * 59 + this.SubscriptionId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.DefaultPaymentDescription != null) + hashCode = hashCode * 59 + this.DefaultPaymentDescription.GetHashCode(); + if (this.CancellationRequestDate != null) + hashCode = hashCode * 59 + this.CancellationRequestDate.GetHashCode(); + if (this.CancellationDate != null) + hashCode = hashCode * 59 + this.CancellationDate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SubscriptionInvoice.cs b/src/Flipdish/Model/SubscriptionInvoice.cs new file mode 100644 index 00000000..9256665c --- /dev/null +++ b/src/Flipdish/Model/SubscriptionInvoice.cs @@ -0,0 +1,1070 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Invoice + /// + [DataContract] + public partial class SubscriptionInvoice : IEquatable + { + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum Currency { get; set; } + /// + /// Status + /// + /// Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Draft for value: Draft + /// + [EnumMember(Value = "Draft")] + Draft = 1, + + /// + /// Enum Open for value: Open + /// + [EnumMember(Value = "Open")] + Open = 2, + + /// + /// Enum Paid for value: Paid + /// + [EnumMember(Value = "Paid")] + Paid = 3, + + /// + /// Enum UnCollectible for value: UnCollectible + /// + [EnumMember(Value = "UnCollectible")] + UnCollectible = 4, + + /// + /// Enum Void for value: Void + /// + [EnumMember(Value = "Void")] + Void = 5 + } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SubscriptionInvoice() { } + /// + /// Initializes a new instance of the class. + /// + /// The invoice identifier (required). + /// Invoice number (required). + /// Total. + /// Currency (required). + /// Status (required). + /// The subscription identifier. + /// Paid At. + /// Finalised At. + /// Pdf Link (required). + /// Hosted Url (required). + /// Overdue (required). + public SubscriptionInvoice(string invoiceId = default(string), string number = default(string), double? total = default(double?), CurrencyEnum currency = default(CurrencyEnum), StatusEnum status = default(StatusEnum), string subscriptionId = default(string), DateTime? paidAt = default(DateTime?), DateTime? finalisedAt = default(DateTime?), string pdfLink = default(string), string hostedUrl = default(string), bool? overdue = default(bool?)) + { + // to ensure "invoiceId" is required (not null) + if (invoiceId == null) + { + throw new InvalidDataException("invoiceId is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.InvoiceId = invoiceId; + } + // to ensure "number" is required (not null) + if (number == null) + { + throw new InvalidDataException("number is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.Number = number; + } + // to ensure "currency" is required (not null) + if (currency == null) + { + throw new InvalidDataException("currency is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.Currency = currency; + } + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.Status = status; + } + // to ensure "pdfLink" is required (not null) + if (pdfLink == null) + { + throw new InvalidDataException("pdfLink is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.PdfLink = pdfLink; + } + // to ensure "hostedUrl" is required (not null) + if (hostedUrl == null) + { + throw new InvalidDataException("hostedUrl is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.HostedUrl = hostedUrl; + } + // to ensure "overdue" is required (not null) + if (overdue == null) + { + throw new InvalidDataException("overdue is a required property for SubscriptionInvoice and cannot be null"); + } + else + { + this.Overdue = overdue; + } + this.Total = total; + this.SubscriptionId = subscriptionId; + this.PaidAt = paidAt; + this.FinalisedAt = finalisedAt; + } + + /// + /// The invoice identifier + /// + /// The invoice identifier + [DataMember(Name="InvoiceId", EmitDefaultValue=false)] + public string InvoiceId { get; set; } + + /// + /// Invoice number + /// + /// Invoice number + [DataMember(Name="Number", EmitDefaultValue=false)] + public string Number { get; set; } + + /// + /// Total + /// + /// Total + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; set; } + + + + /// + /// The subscription identifier + /// + /// The subscription identifier + [DataMember(Name="SubscriptionId", EmitDefaultValue=false)] + public string SubscriptionId { get; set; } + + /// + /// Paid At + /// + /// Paid At + [DataMember(Name="PaidAt", EmitDefaultValue=false)] + public DateTime? PaidAt { get; set; } + + /// + /// Finalised At + /// + /// Finalised At + [DataMember(Name="FinalisedAt", EmitDefaultValue=false)] + public DateTime? FinalisedAt { get; set; } + + /// + /// Pdf Link + /// + /// Pdf Link + [DataMember(Name="PdfLink", EmitDefaultValue=false)] + public string PdfLink { get; set; } + + /// + /// Hosted Url + /// + /// Hosted Url + [DataMember(Name="HostedUrl", EmitDefaultValue=false)] + public string HostedUrl { get; set; } + + /// + /// Overdue + /// + /// Overdue + [DataMember(Name="Overdue", EmitDefaultValue=false)] + public bool? Overdue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubscriptionInvoice {\n"); + sb.Append(" InvoiceId: ").Append(InvoiceId).Append("\n"); + sb.Append(" Number: ").Append(Number).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" SubscriptionId: ").Append(SubscriptionId).Append("\n"); + sb.Append(" PaidAt: ").Append(PaidAt).Append("\n"); + sb.Append(" FinalisedAt: ").Append(FinalisedAt).Append("\n"); + sb.Append(" PdfLink: ").Append(PdfLink).Append("\n"); + sb.Append(" HostedUrl: ").Append(HostedUrl).Append("\n"); + sb.Append(" Overdue: ").Append(Overdue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubscriptionInvoice); + } + + /// + /// Returns true if SubscriptionInvoice instances are equal + /// + /// Instance of SubscriptionInvoice to be compared + /// Boolean + public bool Equals(SubscriptionInvoice input) + { + if (input == null) + return false; + + return + ( + this.InvoiceId == input.InvoiceId || + (this.InvoiceId != null && + this.InvoiceId.Equals(input.InvoiceId)) + ) && + ( + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.SubscriptionId == input.SubscriptionId || + (this.SubscriptionId != null && + this.SubscriptionId.Equals(input.SubscriptionId)) + ) && + ( + this.PaidAt == input.PaidAt || + (this.PaidAt != null && + this.PaidAt.Equals(input.PaidAt)) + ) && + ( + this.FinalisedAt == input.FinalisedAt || + (this.FinalisedAt != null && + this.FinalisedAt.Equals(input.FinalisedAt)) + ) && + ( + this.PdfLink == input.PdfLink || + (this.PdfLink != null && + this.PdfLink.Equals(input.PdfLink)) + ) && + ( + this.HostedUrl == input.HostedUrl || + (this.HostedUrl != null && + this.HostedUrl.Equals(input.HostedUrl)) + ) && + ( + this.Overdue == input.Overdue || + (this.Overdue != null && + this.Overdue.Equals(input.Overdue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InvoiceId != null) + hashCode = hashCode * 59 + this.InvoiceId.GetHashCode(); + if (this.Number != null) + hashCode = hashCode * 59 + this.Number.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.SubscriptionId != null) + hashCode = hashCode * 59 + this.SubscriptionId.GetHashCode(); + if (this.PaidAt != null) + hashCode = hashCode * 59 + this.PaidAt.GetHashCode(); + if (this.FinalisedAt != null) + hashCode = hashCode * 59 + this.FinalisedAt.GetHashCode(); + if (this.PdfLink != null) + hashCode = hashCode * 59 + this.PdfLink.GetHashCode(); + if (this.HostedUrl != null) + hashCode = hashCode * 59 + this.HostedUrl.GetHashCode(); + if (this.Overdue != null) + hashCode = hashCode * 59 + this.Overdue.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SubscriptionProduct.cs b/src/Flipdish/Model/SubscriptionProduct.cs new file mode 100644 index 00000000..85f0ad63 --- /dev/null +++ b/src/Flipdish/Model/SubscriptionProduct.cs @@ -0,0 +1,285 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Product + /// + [DataContract] + public partial class SubscriptionProduct : IEquatable + { + /// + /// Payment Frequency + /// + /// Payment Frequency + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentFrequencyEnum + { + + /// + /// Enum Day for value: day + /// + [EnumMember(Value = "day")] + Day = 1, + + /// + /// Enum Week for value: week + /// + [EnumMember(Value = "week")] + Week = 2, + + /// + /// Enum Month for value: month + /// + [EnumMember(Value = "month")] + Month = 3, + + /// + /// Enum Year for value: year + /// + [EnumMember(Value = "year")] + Year = 4 + } + + /// + /// Payment Frequency + /// + /// Payment Frequency + [DataMember(Name="PaymentFrequency", EmitDefaultValue=false)] + public PaymentFrequencyEnum PaymentFrequency { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SubscriptionProduct() { } + /// + /// Initializes a new instance of the class. + /// + /// Product Identifier (required). + /// Name (required). + /// Quantity (required). + /// Price Per Unit. + /// Price Total. + /// Payment Frequency (required). + /// Stores. + public SubscriptionProduct(string productId = default(string), string name = default(string), long? quantity = default(long?), double? pricePerUnit = default(double?), double? priceTotal = default(double?), PaymentFrequencyEnum paymentFrequency = default(PaymentFrequencyEnum), List stores = default(List)) + { + // to ensure "productId" is required (not null) + if (productId == null) + { + throw new InvalidDataException("productId is a required property for SubscriptionProduct and cannot be null"); + } + else + { + this.ProductId = productId; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for SubscriptionProduct and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "quantity" is required (not null) + if (quantity == null) + { + throw new InvalidDataException("quantity is a required property for SubscriptionProduct and cannot be null"); + } + else + { + this.Quantity = quantity; + } + // to ensure "paymentFrequency" is required (not null) + if (paymentFrequency == null) + { + throw new InvalidDataException("paymentFrequency is a required property for SubscriptionProduct and cannot be null"); + } + else + { + this.PaymentFrequency = paymentFrequency; + } + this.PricePerUnit = pricePerUnit; + this.PriceTotal = priceTotal; + this.Stores = stores; + } + + /// + /// Product Identifier + /// + /// Product Identifier + [DataMember(Name="ProductId", EmitDefaultValue=false)] + public string ProductId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Quantity + /// + /// Quantity + [DataMember(Name="Quantity", EmitDefaultValue=false)] + public long? Quantity { get; set; } + + /// + /// Price Per Unit + /// + /// Price Per Unit + [DataMember(Name="PricePerUnit", EmitDefaultValue=false)] + public double? PricePerUnit { get; set; } + + /// + /// Price Total + /// + /// Price Total + [DataMember(Name="PriceTotal", EmitDefaultValue=false)] + public double? PriceTotal { get; set; } + + + /// + /// Stores + /// + /// Stores + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubscriptionProduct {\n"); + sb.Append(" ProductId: ").Append(ProductId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Quantity: ").Append(Quantity).Append("\n"); + sb.Append(" PricePerUnit: ").Append(PricePerUnit).Append("\n"); + sb.Append(" PriceTotal: ").Append(PriceTotal).Append("\n"); + sb.Append(" PaymentFrequency: ").Append(PaymentFrequency).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubscriptionProduct); + } + + /// + /// Returns true if SubscriptionProduct instances are equal + /// + /// Instance of SubscriptionProduct to be compared + /// Boolean + public bool Equals(SubscriptionProduct input) + { + if (input == null) + return false; + + return + ( + this.ProductId == input.ProductId || + (this.ProductId != null && + this.ProductId.Equals(input.ProductId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) + ) && + ( + this.PricePerUnit == input.PricePerUnit || + (this.PricePerUnit != null && + this.PricePerUnit.Equals(input.PricePerUnit)) + ) && + ( + this.PriceTotal == input.PriceTotal || + (this.PriceTotal != null && + this.PriceTotal.Equals(input.PriceTotal)) + ) && + ( + this.PaymentFrequency == input.PaymentFrequency || + (this.PaymentFrequency != null && + this.PaymentFrequency.Equals(input.PaymentFrequency)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProductId != null) + hashCode = hashCode * 59 + this.ProductId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Quantity != null) + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); + if (this.PricePerUnit != null) + hashCode = hashCode * 59 + this.PricePerUnit.GetHashCode(); + if (this.PriceTotal != null) + hashCode = hashCode * 59 + this.PriceTotal.GetHashCode(); + if (this.PaymentFrequency != null) + hashCode = hashCode * 59 + this.PaymentFrequency.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SubscriptionStore.cs b/src/Flipdish/Model/SubscriptionStore.cs new file mode 100644 index 00000000..8b53009a --- /dev/null +++ b/src/Flipdish/Model/SubscriptionStore.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Subscription Store + /// + [DataContract] + public partial class SubscriptionStore : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SubscriptionStore() { } + /// + /// Initializes a new instance of the class. + /// + /// Store Id (required). + /// Name (required). + public SubscriptionStore(int? id = default(int?), string name = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for SubscriptionStore and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for SubscriptionStore and cannot be null"); + } + else + { + this.Name = name; + } + } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubscriptionStore {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubscriptionStore); + } + + /// + /// Returns true if SubscriptionStore instances are equal + /// + /// Instance of SubscriptionStore to be compared + /// Boolean + public bool Equals(SubscriptionStore input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SubscriptionSummary.cs b/src/Flipdish/Model/SubscriptionSummary.cs new file mode 100644 index 00000000..70df2d18 --- /dev/null +++ b/src/Flipdish/Model/SubscriptionSummary.cs @@ -0,0 +1,1049 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Subscription Summary + /// + [DataContract] + public partial class SubscriptionSummary : IEquatable + { + /// + /// Status + /// + /// Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Incomplete for value: Incomplete + /// + [EnumMember(Value = "Incomplete")] + Incomplete = 1, + + /// + /// Enum IncompleteExpired for value: IncompleteExpired + /// + [EnumMember(Value = "IncompleteExpired")] + IncompleteExpired = 2, + + /// + /// Enum Trialing for value: Trialing + /// + [EnumMember(Value = "Trialing")] + Trialing = 3, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 4, + + /// + /// Enum PastDue for value: PastDue + /// + [EnumMember(Value = "PastDue")] + PastDue = 5, + + /// + /// Enum Canceled for value: Canceled + /// + [EnumMember(Value = "Canceled")] + Canceled = 6, + + /// + /// Enum Unpaid for value: Unpaid + /// + [EnumMember(Value = "Unpaid")] + Unpaid = 7 + } + + /// + /// Status + /// + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum Status { get; set; } + /// + /// Currency + /// + /// Currency + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SubscriptionSummary() { } + /// + /// Initializes a new instance of the class. + /// + /// Next invoice amount. + /// Next invoice billing date. + /// The subscription identifier (required). + /// Name (required). + /// Status (required). + /// Currency (required). + /// User (required). + /// Default payment description. + /// Cancellation Date. + /// Cancel Date. + public SubscriptionSummary(double? nextInvoiceAmount = default(double?), DateTime? nextInvoiceBillingDate = default(DateTime?), string subscriptionId = default(string), string name = default(string), StatusEnum status = default(StatusEnum), CurrencyEnum currency = default(CurrencyEnum), string user = default(string), string defaultPaymentDescription = default(string), DateTime? cancellationRequestDate = default(DateTime?), DateTime? cancellationDate = default(DateTime?)) + { + // to ensure "subscriptionId" is required (not null) + if (subscriptionId == null) + { + throw new InvalidDataException("subscriptionId is a required property for SubscriptionSummary and cannot be null"); + } + else + { + this.SubscriptionId = subscriptionId; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for SubscriptionSummary and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for SubscriptionSummary and cannot be null"); + } + else + { + this.Status = status; + } + // to ensure "currency" is required (not null) + if (currency == null) + { + throw new InvalidDataException("currency is a required property for SubscriptionSummary and cannot be null"); + } + else + { + this.Currency = currency; + } + // to ensure "user" is required (not null) + if (user == null) + { + throw new InvalidDataException("user is a required property for SubscriptionSummary and cannot be null"); + } + else + { + this.User = user; + } + this.NextInvoiceAmount = nextInvoiceAmount; + this.NextInvoiceBillingDate = nextInvoiceBillingDate; + this.DefaultPaymentDescription = defaultPaymentDescription; + this.CancellationRequestDate = cancellationRequestDate; + this.CancellationDate = cancellationDate; + } + + /// + /// Next invoice amount + /// + /// Next invoice amount + [DataMember(Name="NextInvoiceAmount", EmitDefaultValue=false)] + public double? NextInvoiceAmount { get; set; } + + /// + /// Next invoice billing date + /// + /// Next invoice billing date + [DataMember(Name="NextInvoiceBillingDate", EmitDefaultValue=false)] + public DateTime? NextInvoiceBillingDate { get; set; } + + /// + /// The subscription identifier + /// + /// The subscription identifier + [DataMember(Name="SubscriptionId", EmitDefaultValue=false)] + public string SubscriptionId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + + /// + /// User + /// + /// User + [DataMember(Name="User", EmitDefaultValue=false)] + public string User { get; set; } + + /// + /// Default payment description + /// + /// Default payment description + [DataMember(Name="DefaultPaymentDescription", EmitDefaultValue=false)] + public string DefaultPaymentDescription { get; set; } + + /// + /// Cancellation Date + /// + /// Cancellation Date + [DataMember(Name="CancellationRequestDate", EmitDefaultValue=false)] + public DateTime? CancellationRequestDate { get; set; } + + /// + /// Cancel Date + /// + /// Cancel Date + [DataMember(Name="CancellationDate", EmitDefaultValue=false)] + public DateTime? CancellationDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubscriptionSummary {\n"); + sb.Append(" NextInvoiceAmount: ").Append(NextInvoiceAmount).Append("\n"); + sb.Append(" NextInvoiceBillingDate: ").Append(NextInvoiceBillingDate).Append("\n"); + sb.Append(" SubscriptionId: ").Append(SubscriptionId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" DefaultPaymentDescription: ").Append(DefaultPaymentDescription).Append("\n"); + sb.Append(" CancellationRequestDate: ").Append(CancellationRequestDate).Append("\n"); + sb.Append(" CancellationDate: ").Append(CancellationDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubscriptionSummary); + } + + /// + /// Returns true if SubscriptionSummary instances are equal + /// + /// Instance of SubscriptionSummary to be compared + /// Boolean + public bool Equals(SubscriptionSummary input) + { + if (input == null) + return false; + + return + ( + this.NextInvoiceAmount == input.NextInvoiceAmount || + (this.NextInvoiceAmount != null && + this.NextInvoiceAmount.Equals(input.NextInvoiceAmount)) + ) && + ( + this.NextInvoiceBillingDate == input.NextInvoiceBillingDate || + (this.NextInvoiceBillingDate != null && + this.NextInvoiceBillingDate.Equals(input.NextInvoiceBillingDate)) + ) && + ( + this.SubscriptionId == input.SubscriptionId || + (this.SubscriptionId != null && + this.SubscriptionId.Equals(input.SubscriptionId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.DefaultPaymentDescription == input.DefaultPaymentDescription || + (this.DefaultPaymentDescription != null && + this.DefaultPaymentDescription.Equals(input.DefaultPaymentDescription)) + ) && + ( + this.CancellationRequestDate == input.CancellationRequestDate || + (this.CancellationRequestDate != null && + this.CancellationRequestDate.Equals(input.CancellationRequestDate)) + ) && + ( + this.CancellationDate == input.CancellationDate || + (this.CancellationDate != null && + this.CancellationDate.Equals(input.CancellationDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NextInvoiceAmount != null) + hashCode = hashCode * 59 + this.NextInvoiceAmount.GetHashCode(); + if (this.NextInvoiceBillingDate != null) + hashCode = hashCode * 59 + this.NextInvoiceBillingDate.GetHashCode(); + if (this.SubscriptionId != null) + hashCode = hashCode * 59 + this.SubscriptionId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.DefaultPaymentDescription != null) + hashCode = hashCode * 59 + this.DefaultPaymentDescription.GetHashCode(); + if (this.CancellationRequestDate != null) + hashCode = hashCode * 59 + this.CancellationRequestDate.GetHashCode(); + if (this.CancellationDate != null) + hashCode = hashCode * 59 + this.CancellationDate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/SupportedCountry.cs b/src/Flipdish/Model/SupportedCountry.cs new file mode 100644 index 00000000..e2ad7c25 --- /dev/null +++ b/src/Flipdish/Model/SupportedCountry.cs @@ -0,0 +1,347 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes a supported country + /// + [DataContract] + public partial class SupportedCountry : IEquatable + { + /// + /// Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. + /// + /// Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. + [JsonConverter(typeof(StringEnumConverter))] + public enum AddressLayoutEnum + { + + /// + /// Enum BuildingFirst for value: BuildingFirst + /// + [EnumMember(Value = "BuildingFirst")] + BuildingFirst = 1, + + /// + /// Enum AddressFirst for value: AddressFirst + /// + [EnumMember(Value = "AddressFirst")] + AddressFirst = 2, + + /// + /// Enum FullStreetAddressFirst for value: FullStreetAddressFirst + /// + [EnumMember(Value = "FullStreetAddressFirst")] + FullStreetAddressFirst = 3 + } + + /// + /// Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. + /// + /// Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. + [DataMember(Name="AddressLayout", EmitDefaultValue=false)] + public AddressLayoutEnum? AddressLayout { get; set; } + /// + /// Post code type + /// + /// Post code type + [JsonConverter(typeof(StringEnumConverter))] + public enum PostCodeTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum PostCode for value: PostCode + /// + [EnumMember(Value = "PostCode")] + PostCode = 2, + + /// + /// Enum Zip for value: Zip + /// + [EnumMember(Value = "Zip")] + Zip = 3 + } + + /// + /// Post code type + /// + /// Post code type + [DataMember(Name="PostCodeType", EmitDefaultValue=false)] + public PostCodeTypeEnum? PostCodeType { get; set; } + /// + /// Supported region. This is not used. + /// + /// Supported region. This is not used. + [JsonConverter(typeof(StringEnumConverter))] + public enum SupportRegionEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum Spain for value: Spain + /// + [EnumMember(Value = "Spain")] + Spain = 2, + + /// + /// Enum Benelux for value: Benelux + /// + [EnumMember(Value = "Benelux")] + Benelux = 3 + } + + /// + /// Supported region. This is not used. + /// + /// Supported region. This is not used. + [DataMember(Name="SupportRegion", EmitDefaultValue=false)] + public SupportRegionEnum? SupportRegion { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Country code. + /// Nice display name for a country. + /// Country internatinoal phone code prefix. + /// Language code. + /// Language name. + /// The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer.. + /// The store's support phone number, displayed to customers.. + /// Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom.. + /// Post code type. + /// Supported region. This is not used.. + public SupportedCountry(string countryCode = default(string), string name = default(string), int? phoneCode = default(int?), string languageCode = default(string), string languageName = default(string), string otpNumber = default(string), string supportNumber = default(string), AddressLayoutEnum? addressLayout = default(AddressLayoutEnum?), PostCodeTypeEnum? postCodeType = default(PostCodeTypeEnum?), SupportRegionEnum? supportRegion = default(SupportRegionEnum?)) + { + this.CountryCode = countryCode; + this.Name = name; + this.PhoneCode = phoneCode; + this.LanguageCode = languageCode; + this.LanguageName = languageName; + this.OtpNumber = otpNumber; + this.SupportNumber = supportNumber; + this.AddressLayout = addressLayout; + this.PostCodeType = postCodeType; + this.SupportRegion = supportRegion; + } + + /// + /// Country code + /// + /// Country code + [DataMember(Name="CountryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Nice display name for a country + /// + /// Nice display name for a country + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Country internatinoal phone code prefix + /// + /// Country internatinoal phone code prefix + [DataMember(Name="PhoneCode", EmitDefaultValue=false)] + public int? PhoneCode { get; set; } + + /// + /// Language code + /// + /// Language code + [DataMember(Name="LanguageCode", EmitDefaultValue=false)] + public string LanguageCode { get; set; } + + /// + /// Language name + /// + /// Language name + [DataMember(Name="LanguageName", EmitDefaultValue=false)] + public string LanguageName { get; set; } + + /// + /// The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer. + /// + /// The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer. + [DataMember(Name="OtpNumber", EmitDefaultValue=false)] + public string OtpNumber { get; set; } + + /// + /// The store's support phone number, displayed to customers. + /// + /// The store's support phone number, displayed to customers. + [DataMember(Name="SupportNumber", EmitDefaultValue=false)] + public string SupportNumber { get; set; } + + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SupportedCountry {\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PhoneCode: ").Append(PhoneCode).Append("\n"); + sb.Append(" LanguageCode: ").Append(LanguageCode).Append("\n"); + sb.Append(" LanguageName: ").Append(LanguageName).Append("\n"); + sb.Append(" OtpNumber: ").Append(OtpNumber).Append("\n"); + sb.Append(" SupportNumber: ").Append(SupportNumber).Append("\n"); + sb.Append(" AddressLayout: ").Append(AddressLayout).Append("\n"); + sb.Append(" PostCodeType: ").Append(PostCodeType).Append("\n"); + sb.Append(" SupportRegion: ").Append(SupportRegion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SupportedCountry); + } + + /// + /// Returns true if SupportedCountry instances are equal + /// + /// Instance of SupportedCountry to be compared + /// Boolean + public bool Equals(SupportedCountry input) + { + if (input == null) + return false; + + return + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PhoneCode == input.PhoneCode || + (this.PhoneCode != null && + this.PhoneCode.Equals(input.PhoneCode)) + ) && + ( + this.LanguageCode == input.LanguageCode || + (this.LanguageCode != null && + this.LanguageCode.Equals(input.LanguageCode)) + ) && + ( + this.LanguageName == input.LanguageName || + (this.LanguageName != null && + this.LanguageName.Equals(input.LanguageName)) + ) && + ( + this.OtpNumber == input.OtpNumber || + (this.OtpNumber != null && + this.OtpNumber.Equals(input.OtpNumber)) + ) && + ( + this.SupportNumber == input.SupportNumber || + (this.SupportNumber != null && + this.SupportNumber.Equals(input.SupportNumber)) + ) && + ( + this.AddressLayout == input.AddressLayout || + (this.AddressLayout != null && + this.AddressLayout.Equals(input.AddressLayout)) + ) && + ( + this.PostCodeType == input.PostCodeType || + (this.PostCodeType != null && + this.PostCodeType.Equals(input.PostCodeType)) + ) && + ( + this.SupportRegion == input.SupportRegion || + (this.SupportRegion != null && + this.SupportRegion.Equals(input.SupportRegion)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.PhoneCode != null) + hashCode = hashCode * 59 + this.PhoneCode.GetHashCode(); + if (this.LanguageCode != null) + hashCode = hashCode * 59 + this.LanguageCode.GetHashCode(); + if (this.LanguageName != null) + hashCode = hashCode * 59 + this.LanguageName.GetHashCode(); + if (this.OtpNumber != null) + hashCode = hashCode * 59 + this.OtpNumber.GetHashCode(); + if (this.SupportNumber != null) + hashCode = hashCode * 59 + this.SupportNumber.GetHashCode(); + if (this.AddressLayout != null) + hashCode = hashCode * 59 + this.AddressLayout.GetHashCode(); + if (this.PostCodeType != null) + hashCode = hashCode * 59 + this.PostCodeType.GetHashCode(); + if (this.SupportRegion != null) + hashCode = hashCode * 59 + this.SupportRegion.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TaxItem.cs b/src/Flipdish/Model/TaxItem.cs new file mode 100644 index 00000000..72e9869b --- /dev/null +++ b/src/Flipdish/Model/TaxItem.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A collection of tax items on the order. + /// + [DataContract] + public partial class TaxItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the tax item.. + /// The tax rate applied to the item.. + /// The amount of tax applied to the item.. + public TaxItem(string name = default(string), double? rate = default(double?), double? amount = default(double?)) + { + this.Name = name; + this.Rate = rate; + this.Amount = amount; + } + + /// + /// The name of the tax item. + /// + /// The name of the tax item. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The tax rate applied to the item. + /// + /// The tax rate applied to the item. + [DataMember(Name="Rate", EmitDefaultValue=false)] + public double? Rate { get; set; } + + /// + /// The amount of tax applied to the item. + /// + /// The amount of tax applied to the item. + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TaxItem {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TaxItem); + } + + /// + /// Returns true if TaxItem instances are equal + /// + /// Instance of TaxItem to be compared + /// Boolean + public bool Equals(TaxItem input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Rate == input.Rate || + (this.Rate != null && + this.Rate.Equals(input.Rate)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Rate != null) + hashCode = hashCode * 59 + this.Rate.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TaxRate.cs b/src/Flipdish/Model/TaxRate.cs new file mode 100644 index 00000000..97baff42 --- /dev/null +++ b/src/Flipdish/Model/TaxRate.cs @@ -0,0 +1,144 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TaxRate + /// + [DataContract] + public partial class TaxRate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// name. + /// percentage. + /// total. + public TaxRate(string name = default(string), double? percentage = default(double?), double? total = default(double?)) + { + this.Name = name; + this.Percentage = percentage; + this.Total = total; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Percentage + /// + [DataMember(Name="Percentage", EmitDefaultValue=false)] + public double? Percentage { get; set; } + + /// + /// Gets or Sets Total + /// + [DataMember(Name="Total", EmitDefaultValue=false)] + public double? Total { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TaxRate {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Percentage: ").Append(Percentage).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TaxRate); + } + + /// + /// Returns true if TaxRate instances are equal + /// + /// Instance of TaxRate to be compared + /// Boolean + public bool Equals(TaxRate input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Percentage == input.Percentage || + (this.Percentage != null && + this.Percentage.Equals(input.Percentage)) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Percentage != null) + hashCode = hashCode * 59 + this.Percentage.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Teammate.cs b/src/Flipdish/Model/Teammate.cs new file mode 100644 index 00000000..72f79b7b --- /dev/null +++ b/src/Flipdish/Model/Teammate.cs @@ -0,0 +1,403 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Teammate + /// + [DataContract] + public partial class Teammate : IEquatable + { + /// + /// Invitation status + /// + /// Invitation status + [JsonConverter(typeof(StringEnumConverter))] + public enum InvitationStatusEnum + { + + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum Accepted for value: Accepted + /// + [EnumMember(Value = "Accepted")] + Accepted = 2, + + /// + /// Enum Expired for value: Expired + /// + [EnumMember(Value = "Expired")] + Expired = 3 + } + + /// + /// Invitation status + /// + /// Invitation status + [DataMember(Name="InvitationStatus", EmitDefaultValue=false)] + public InvitationStatusEnum? InvitationStatus { get; set; } + /// + /// App access level + /// + /// App access level + [JsonConverter(typeof(StringEnumConverter))] + public enum AppAccessLevelEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 2, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 3, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 5, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 8, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 11, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, + + /// + /// Enum Support for value: Support + /// + [EnumMember(Value = "Support")] + Support = 14 + } + + /// + /// App access level + /// + /// App access level + [DataMember(Name="AppAccessLevel", EmitDefaultValue=false)] + public AppAccessLevelEnum? AppAccessLevel { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Unique indentifier. + /// User ID of the teammate. + /// Name. + /// Last activity. + /// Access level is for this App. + /// Invitation status. + /// Email address. + /// App access level. + /// The user has access to all stores for the app (including new stores that added later). + /// Store IDs the user has access to (if HasAccessToAllStores is false). + /// Property Ids the user has access to (if HasAccessToAllStores is false). + public Teammate(string teammateId = default(string), int? userId = default(int?), string name = default(string), DateTime? lastActivity = default(DateTime?), string appId = default(string), InvitationStatusEnum? invitationStatus = default(InvitationStatusEnum?), string email = default(string), AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), bool? hasAccessToAllStores = default(bool?), List storeIds = default(List), List propertyIds = default(List)) + { + this.TeammateId = teammateId; + this.UserId = userId; + this.Name = name; + this.LastActivity = lastActivity; + this.AppId = appId; + this.InvitationStatus = invitationStatus; + this.Email = email; + this.AppAccessLevel = appAccessLevel; + this.HasAccessToAllStores = hasAccessToAllStores; + this.StoreIds = storeIds; + this.PropertyIds = propertyIds; + } + + /// + /// Unique indentifier + /// + /// Unique indentifier + [DataMember(Name="TeammateId", EmitDefaultValue=false)] + public string TeammateId { get; set; } + + /// + /// User ID of the teammate + /// + /// User ID of the teammate + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Last activity + /// + /// Last activity + [DataMember(Name="LastActivity", EmitDefaultValue=false)] + public DateTime? LastActivity { get; set; } + + /// + /// Access level is for this App + /// + /// Access level is for this App + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + + /// + /// Email address + /// + /// Email address + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + + /// + /// The user has access to all stores for the app (including new stores that added later) + /// + /// The user has access to all stores for the app (including new stores that added later) + [DataMember(Name="HasAccessToAllStores", EmitDefaultValue=false)] + public bool? HasAccessToAllStores { get; set; } + + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="PropertyIds", EmitDefaultValue=false)] + public List PropertyIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Teammate {\n"); + sb.Append(" TeammateId: ").Append(TeammateId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" InvitationStatus: ").Append(InvitationStatus).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" AppAccessLevel: ").Append(AppAccessLevel).Append("\n"); + sb.Append(" HasAccessToAllStores: ").Append(HasAccessToAllStores).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" PropertyIds: ").Append(PropertyIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Teammate); + } + + /// + /// Returns true if Teammate instances are equal + /// + /// Instance of Teammate to be compared + /// Boolean + public bool Equals(Teammate input) + { + if (input == null) + return false; + + return + ( + this.TeammateId == input.TeammateId || + (this.TeammateId != null && + this.TeammateId.Equals(input.TeammateId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.LastActivity == input.LastActivity || + (this.LastActivity != null && + this.LastActivity.Equals(input.LastActivity)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.InvitationStatus == input.InvitationStatus || + (this.InvitationStatus != null && + this.InvitationStatus.Equals(input.InvitationStatus)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.AppAccessLevel == input.AppAccessLevel || + (this.AppAccessLevel != null && + this.AppAccessLevel.Equals(input.AppAccessLevel)) + ) && + ( + this.HasAccessToAllStores == input.HasAccessToAllStores || + (this.HasAccessToAllStores != null && + this.HasAccessToAllStores.Equals(input.HasAccessToAllStores)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TeammateId != null) + hashCode = hashCode * 59 + this.TeammateId.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.LastActivity != null) + hashCode = hashCode * 59 + this.LastActivity.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.InvitationStatus != null) + hashCode = hashCode * 59 + this.InvitationStatus.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.AppAccessLevel != null) + hashCode = hashCode * 59 + this.AppAccessLevel.GetHashCode(); + if (this.HasAccessToAllStores != null) + hashCode = hashCode * 59 + this.HasAccessToAllStores.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.PropertyIds != null) + hashCode = hashCode * 59 + this.PropertyIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TeammateBase.cs b/src/Flipdish/Model/TeammateBase.cs new file mode 100644 index 00000000..62ea8d05 --- /dev/null +++ b/src/Flipdish/Model/TeammateBase.cs @@ -0,0 +1,257 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TeammateBase + /// + [DataContract] + public partial class TeammateBase : IEquatable + { + /// + /// App access level + /// + /// App access level + [JsonConverter(typeof(StringEnumConverter))] + public enum AppAccessLevelEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 2, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 3, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 5, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 8, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 11, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, + + /// + /// Enum Support for value: Support + /// + [EnumMember(Value = "Support")] + Support = 14 + } + + /// + /// App access level + /// + /// App access level + [DataMember(Name="AppAccessLevel", EmitDefaultValue=false)] + public AppAccessLevelEnum? AppAccessLevel { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// App access level. + /// The user has access to all stores for the app (including new stores that added later). + /// Store IDs the user has access to (if HasAccessToAllStores is false). + /// Property Ids the user has access to (if HasAccessToAllStores is false). + public TeammateBase(AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), bool? hasAccessToAllStores = default(bool?), List storeIds = default(List), List propertyIds = default(List)) + { + this.AppAccessLevel = appAccessLevel; + this.HasAccessToAllStores = hasAccessToAllStores; + this.StoreIds = storeIds; + this.PropertyIds = propertyIds; + } + + + /// + /// The user has access to all stores for the app (including new stores that added later) + /// + /// The user has access to all stores for the app (including new stores that added later) + [DataMember(Name="HasAccessToAllStores", EmitDefaultValue=false)] + public bool? HasAccessToAllStores { get; set; } + + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + /// + /// Store IDs the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + /// + /// Property Ids the user has access to (if HasAccessToAllStores is false) + [DataMember(Name="PropertyIds", EmitDefaultValue=false)] + public List PropertyIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TeammateBase {\n"); + sb.Append(" AppAccessLevel: ").Append(AppAccessLevel).Append("\n"); + sb.Append(" HasAccessToAllStores: ").Append(HasAccessToAllStores).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" PropertyIds: ").Append(PropertyIds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TeammateBase); + } + + /// + /// Returns true if TeammateBase instances are equal + /// + /// Instance of TeammateBase to be compared + /// Boolean + public bool Equals(TeammateBase input) + { + if (input == null) + return false; + + return + ( + this.AppAccessLevel == input.AppAccessLevel || + (this.AppAccessLevel != null && + this.AppAccessLevel.Equals(input.AppAccessLevel)) + ) && + ( + this.HasAccessToAllStores == input.HasAccessToAllStores || + (this.HasAccessToAllStores != null && + this.HasAccessToAllStores.Equals(input.HasAccessToAllStores)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppAccessLevel != null) + hashCode = hashCode * 59 + this.AppAccessLevel.GetHashCode(); + if (this.HasAccessToAllStores != null) + hashCode = hashCode * 59 + this.HasAccessToAllStores.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.PropertyIds != null) + hashCode = hashCode * 59 + this.PropertyIds.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TeammateDeletedEvent.cs b/src/Flipdish/Model/TeammateDeletedEvent.cs new file mode 100644 index 00000000..de367afb --- /dev/null +++ b/src/Flipdish/Model/TeammateDeletedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TeammateDeletedEvent + /// + [DataContract] + public partial class TeammateDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The deleted teammate. + /// User who deleted the teammate. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public TeammateDeletedEvent(Teammate teammate = default(Teammate), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Teammate = teammate; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The deleted teammate + /// + /// The deleted teammate + [DataMember(Name="Teammate", EmitDefaultValue=false)] + public Teammate Teammate { get; set; } + + /// + /// User who deleted the teammate + /// + /// User who deleted the teammate + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TeammateDeletedEvent {\n"); + sb.Append(" Teammate: ").Append(Teammate).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TeammateDeletedEvent); + } + + /// + /// Returns true if TeammateDeletedEvent instances are equal + /// + /// Instance of TeammateDeletedEvent to be compared + /// Boolean + public bool Equals(TeammateDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.Teammate == input.Teammate || + (this.Teammate != null && + this.Teammate.Equals(input.Teammate)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Teammate != null) + hashCode = hashCode * 59 + this.Teammate.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TeammateInviteAcceptedEvent.cs b/src/Flipdish/Model/TeammateInviteAcceptedEvent.cs new file mode 100644 index 00000000..184b57ae --- /dev/null +++ b/src/Flipdish/Model/TeammateInviteAcceptedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TeammateInviteAcceptedEvent + /// + [DataContract] + public partial class TeammateInviteAcceptedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The deleted teammate. + /// User who accepted the invitation. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public TeammateInviteAcceptedEvent(Teammate teammate = default(Teammate), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Teammate = teammate; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The deleted teammate + /// + /// The deleted teammate + [DataMember(Name="Teammate", EmitDefaultValue=false)] + public Teammate Teammate { get; set; } + + /// + /// User who accepted the invitation + /// + /// User who accepted the invitation + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TeammateInviteAcceptedEvent {\n"); + sb.Append(" Teammate: ").Append(Teammate).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TeammateInviteAcceptedEvent); + } + + /// + /// Returns true if TeammateInviteAcceptedEvent instances are equal + /// + /// Instance of TeammateInviteAcceptedEvent to be compared + /// Boolean + public bool Equals(TeammateInviteAcceptedEvent input) + { + if (input == null) + return false; + + return + ( + this.Teammate == input.Teammate || + (this.Teammate != null && + this.Teammate.Equals(input.Teammate)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Teammate != null) + hashCode = hashCode * 59 + this.Teammate.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TeammateInviteSentEvent.cs b/src/Flipdish/Model/TeammateInviteSentEvent.cs new file mode 100644 index 00000000..10c1b5b6 --- /dev/null +++ b/src/Flipdish/Model/TeammateInviteSentEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TeammateInviteSentEvent + /// + [DataContract] + public partial class TeammateInviteSentEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The deleted teammate. + /// User who sent the invitation. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public TeammateInviteSentEvent(Teammate teammate = default(Teammate), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Teammate = teammate; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The deleted teammate + /// + /// The deleted teammate + [DataMember(Name="Teammate", EmitDefaultValue=false)] + public Teammate Teammate { get; set; } + + /// + /// User who sent the invitation + /// + /// User who sent the invitation + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TeammateInviteSentEvent {\n"); + sb.Append(" Teammate: ").Append(Teammate).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TeammateInviteSentEvent); + } + + /// + /// Returns true if TeammateInviteSentEvent instances are equal + /// + /// Instance of TeammateInviteSentEvent to be compared + /// Boolean + public bool Equals(TeammateInviteSentEvent input) + { + if (input == null) + return false; + + return + ( + this.Teammate == input.Teammate || + (this.Teammate != null && + this.Teammate.Equals(input.Teammate)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Teammate != null) + hashCode = hashCode * 59 + this.Teammate.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TeammateUpdatedEvent.cs b/src/Flipdish/Model/TeammateUpdatedEvent.cs new file mode 100644 index 00000000..cd4f3841 --- /dev/null +++ b/src/Flipdish/Model/TeammateUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TeammateUpdatedEvent + /// + [DataContract] + public partial class TeammateUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The deleted teammate. + /// User who updated the teammate. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public TeammateUpdatedEvent(Teammate teammate = default(Teammate), UserEventInfo user = default(UserEventInfo), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.Teammate = teammate; + this.User = user; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The deleted teammate + /// + /// The deleted teammate + [DataMember(Name="Teammate", EmitDefaultValue=false)] + public Teammate Teammate { get; set; } + + /// + /// User who updated the teammate + /// + /// User who updated the teammate + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TeammateUpdatedEvent {\n"); + sb.Append(" Teammate: ").Append(Teammate).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TeammateUpdatedEvent); + } + + /// + /// Returns true if TeammateUpdatedEvent instances are equal + /// + /// Instance of TeammateUpdatedEvent to be compared + /// Boolean + public bool Equals(TeammateUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.Teammate == input.Teammate || + (this.Teammate != null && + this.Teammate.Equals(input.Teammate)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Teammate != null) + hashCode = hashCode * 59 + this.Teammate.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TelemetrySeriesProperty.cs b/src/Flipdish/Model/TelemetrySeriesProperty.cs new file mode 100644 index 00000000..fdbb6253 --- /dev/null +++ b/src/Flipdish/Model/TelemetrySeriesProperty.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TelemetrySeriesProperty. + /// + [DataContract] + public partial class TelemetrySeriesProperty : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// Type.. + /// IntValues.. + /// StringValues.. + /// DoubleValues.. + public TelemetrySeriesProperty(string name = default(string), string type = default(string), List intValues = default(List), List stringValues = default(List), List doubleValues = default(List)) + { + this.Name = name; + this.Type = type; + this.IntValues = intValues; + this.StringValues = stringValues; + this.DoubleValues = doubleValues; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Type. + /// + /// Type. + [DataMember(Name="Type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// IntValues. + /// + /// IntValues. + [DataMember(Name="IntValues", EmitDefaultValue=false)] + public List IntValues { get; set; } + + /// + /// StringValues. + /// + /// StringValues. + [DataMember(Name="StringValues", EmitDefaultValue=false)] + public List StringValues { get; set; } + + /// + /// DoubleValues. + /// + /// DoubleValues. + [DataMember(Name="DoubleValues", EmitDefaultValue=false)] + public List DoubleValues { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TelemetrySeriesProperty {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" IntValues: ").Append(IntValues).Append("\n"); + sb.Append(" StringValues: ").Append(StringValues).Append("\n"); + sb.Append(" DoubleValues: ").Append(DoubleValues).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TelemetrySeriesProperty); + } + + /// + /// Returns true if TelemetrySeriesProperty instances are equal + /// + /// Instance of TelemetrySeriesProperty to be compared + /// Boolean + public bool Equals(TelemetrySeriesProperty input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.IntValues == input.IntValues || + this.IntValues != null && + this.IntValues.SequenceEqual(input.IntValues) + ) && + ( + this.StringValues == input.StringValues || + this.StringValues != null && + this.StringValues.SequenceEqual(input.StringValues) + ) && + ( + this.DoubleValues == input.DoubleValues || + this.DoubleValues != null && + this.DoubleValues.SequenceEqual(input.DoubleValues) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.IntValues != null) + hashCode = hashCode * 59 + this.IntValues.GetHashCode(); + if (this.StringValues != null) + hashCode = hashCode * 59 + this.StringValues.GetHashCode(); + if (this.DoubleValues != null) + hashCode = hashCode * 59 + this.DoubleValues.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs b/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs new file mode 100644 index 00000000..8a67fdf6 --- /dev/null +++ b/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TelemetrySeriesQueryParameters. + /// + [DataContract] + public partial class TelemetrySeriesQueryParameters : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// KioskId.. + /// Variables.. + /// StartDate.. + /// EndDate.. + public TelemetrySeriesQueryParameters(string kioskId = default(string), List variables = default(List), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?)) + { + this.KioskId = kioskId; + this.Variables = variables; + this.StartDate = startDate; + this.EndDate = endDate; + } + + /// + /// KioskId. + /// + /// KioskId. + [DataMember(Name="KioskId", EmitDefaultValue=false)] + public string KioskId { get; set; } + + /// + /// Variables. + /// + /// Variables. + [DataMember(Name="Variables", EmitDefaultValue=false)] + public List Variables { get; set; } + + /// + /// StartDate. + /// + /// StartDate. + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// EndDate. + /// + /// EndDate. + [DataMember(Name="EndDate", EmitDefaultValue=false)] + public DateTime? EndDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TelemetrySeriesQueryParameters {\n"); + sb.Append(" KioskId: ").Append(KioskId).Append("\n"); + sb.Append(" Variables: ").Append(Variables).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TelemetrySeriesQueryParameters); + } + + /// + /// Returns true if TelemetrySeriesQueryParameters instances are equal + /// + /// Instance of TelemetrySeriesQueryParameters to be compared + /// Boolean + public bool Equals(TelemetrySeriesQueryParameters input) + { + if (input == null) + return false; + + return + ( + this.KioskId == input.KioskId || + (this.KioskId != null && + this.KioskId.Equals(input.KioskId)) + ) && + ( + this.Variables == input.Variables || + this.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.KioskId != null) + hashCode = hashCode * 59 + this.KioskId.GetHashCode(); + if (this.Variables != null) + hashCode = hashCode * 59 + this.Variables.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.EndDate != null) + hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TelemetrySeriesResult.cs b/src/Flipdish/Model/TelemetrySeriesResult.cs new file mode 100644 index 00000000..60ba1b67 --- /dev/null +++ b/src/Flipdish/Model/TelemetrySeriesResult.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// TelemetrySeriesResult. + /// + [DataContract] + public partial class TelemetrySeriesResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Timestamps.. + /// Properties.. + public TelemetrySeriesResult(List timestamps = default(List), List properties = default(List)) + { + this.Timestamps = timestamps; + this.Properties = properties; + } + + /// + /// Timestamps. + /// + /// Timestamps. + [DataMember(Name="Timestamps", EmitDefaultValue=false)] + public List Timestamps { get; set; } + + /// + /// Properties. + /// + /// Properties. + [DataMember(Name="Properties", EmitDefaultValue=false)] + public List Properties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TelemetrySeriesResult {\n"); + sb.Append(" Timestamps: ").Append(Timestamps).Append("\n"); + sb.Append(" Properties: ").Append(Properties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TelemetrySeriesResult); + } + + /// + /// Returns true if TelemetrySeriesResult instances are equal + /// + /// Instance of TelemetrySeriesResult to be compared + /// Boolean + public bool Equals(TelemetrySeriesResult input) + { + if (input == null) + return false; + + return + ( + this.Timestamps == input.Timestamps || + this.Timestamps != null && + this.Timestamps.SequenceEqual(input.Timestamps) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Timestamps != null) + hashCode = hashCode * 59 + this.Timestamps.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TelephonyConfig.cs b/src/Flipdish/Model/TelephonyConfig.cs new file mode 100644 index 00000000..6034dde2 --- /dev/null +++ b/src/Flipdish/Model/TelephonyConfig.cs @@ -0,0 +1,287 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Phone call + /// + [DataContract] + public partial class TelephonyConfig : IEquatable + { + /// + /// Type of telephony service + /// + /// Type of telephony service + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum PreRecorded for value: PreRecorded + /// + [EnumMember(Value = "PreRecorded")] + PreRecorded = 1, + + /// + /// Enum VoiceAI for value: VoiceAI + /// + [EnumMember(Value = "VoiceAI")] + VoiceAI = 2 + } + + /// + /// Type of telephony service + /// + /// Type of telephony service + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// ID of the phone call. + /// APM enabled flag. + /// Type of telephony service. + /// Consent enabled flag. + /// APM phone number of the store. + /// Send app link SMS flag. + /// Use custom app link SMS message flag. + /// Use custom voice message flag. + /// App link SMS message. + /// Amount of days to resend APM message. + public TelephonyConfig(int? telephonyConfigId = default(int?), bool? apmEnabled = default(bool?), TypeEnum? type = default(TypeEnum?), bool? consentEnabled = default(bool?), string phoneNumber = default(string), bool? sendAppLinkSms = default(bool?), bool? useCustomAppLinkSmsMessage = default(bool?), bool? useCustomVoiceMessage = default(bool?), string appLinkSmsMessage = default(string), int? resendApmMessageAfterDays = default(int?)) + { + this.TelephonyConfigId = telephonyConfigId; + this.ApmEnabled = apmEnabled; + this.Type = type; + this.ConsentEnabled = consentEnabled; + this.PhoneNumber = phoneNumber; + this.SendAppLinkSms = sendAppLinkSms; + this.UseCustomAppLinkSmsMessage = useCustomAppLinkSmsMessage; + this.UseCustomVoiceMessage = useCustomVoiceMessage; + this.AppLinkSmsMessage = appLinkSmsMessage; + this.ResendApmMessageAfterDays = resendApmMessageAfterDays; + } + + /// + /// ID of the phone call + /// + /// ID of the phone call + [DataMember(Name="TelephonyConfigId", EmitDefaultValue=false)] + public int? TelephonyConfigId { get; set; } + + /// + /// APM enabled flag + /// + /// APM enabled flag + [DataMember(Name="ApmEnabled", EmitDefaultValue=false)] + public bool? ApmEnabled { get; set; } + + + /// + /// Consent enabled flag + /// + /// Consent enabled flag + [DataMember(Name="ConsentEnabled", EmitDefaultValue=false)] + public bool? ConsentEnabled { get; set; } + + /// + /// APM phone number of the store + /// + /// APM phone number of the store + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Send app link SMS flag + /// + /// Send app link SMS flag + [DataMember(Name="SendAppLinkSms", EmitDefaultValue=false)] + public bool? SendAppLinkSms { get; set; } + + /// + /// Use custom app link SMS message flag + /// + /// Use custom app link SMS message flag + [DataMember(Name="UseCustomAppLinkSmsMessage", EmitDefaultValue=false)] + public bool? UseCustomAppLinkSmsMessage { get; set; } + + /// + /// Use custom voice message flag + /// + /// Use custom voice message flag + [DataMember(Name="UseCustomVoiceMessage", EmitDefaultValue=false)] + public bool? UseCustomVoiceMessage { get; set; } + + /// + /// App link SMS message + /// + /// App link SMS message + [DataMember(Name="AppLinkSmsMessage", EmitDefaultValue=false)] + public string AppLinkSmsMessage { get; set; } + + /// + /// Amount of days to resend APM message + /// + /// Amount of days to resend APM message + [DataMember(Name="ResendApmMessageAfterDays", EmitDefaultValue=false)] + public int? ResendApmMessageAfterDays { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TelephonyConfig {\n"); + sb.Append(" TelephonyConfigId: ").Append(TelephonyConfigId).Append("\n"); + sb.Append(" ApmEnabled: ").Append(ApmEnabled).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ConsentEnabled: ").Append(ConsentEnabled).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" SendAppLinkSms: ").Append(SendAppLinkSms).Append("\n"); + sb.Append(" UseCustomAppLinkSmsMessage: ").Append(UseCustomAppLinkSmsMessage).Append("\n"); + sb.Append(" UseCustomVoiceMessage: ").Append(UseCustomVoiceMessage).Append("\n"); + sb.Append(" AppLinkSmsMessage: ").Append(AppLinkSmsMessage).Append("\n"); + sb.Append(" ResendApmMessageAfterDays: ").Append(ResendApmMessageAfterDays).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TelephonyConfig); + } + + /// + /// Returns true if TelephonyConfig instances are equal + /// + /// Instance of TelephonyConfig to be compared + /// Boolean + public bool Equals(TelephonyConfig input) + { + if (input == null) + return false; + + return + ( + this.TelephonyConfigId == input.TelephonyConfigId || + (this.TelephonyConfigId != null && + this.TelephonyConfigId.Equals(input.TelephonyConfigId)) + ) && + ( + this.ApmEnabled == input.ApmEnabled || + (this.ApmEnabled != null && + this.ApmEnabled.Equals(input.ApmEnabled)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ConsentEnabled == input.ConsentEnabled || + (this.ConsentEnabled != null && + this.ConsentEnabled.Equals(input.ConsentEnabled)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.SendAppLinkSms == input.SendAppLinkSms || + (this.SendAppLinkSms != null && + this.SendAppLinkSms.Equals(input.SendAppLinkSms)) + ) && + ( + this.UseCustomAppLinkSmsMessage == input.UseCustomAppLinkSmsMessage || + (this.UseCustomAppLinkSmsMessage != null && + this.UseCustomAppLinkSmsMessage.Equals(input.UseCustomAppLinkSmsMessage)) + ) && + ( + this.UseCustomVoiceMessage == input.UseCustomVoiceMessage || + (this.UseCustomVoiceMessage != null && + this.UseCustomVoiceMessage.Equals(input.UseCustomVoiceMessage)) + ) && + ( + this.AppLinkSmsMessage == input.AppLinkSmsMessage || + (this.AppLinkSmsMessage != null && + this.AppLinkSmsMessage.Equals(input.AppLinkSmsMessage)) + ) && + ( + this.ResendApmMessageAfterDays == input.ResendApmMessageAfterDays || + (this.ResendApmMessageAfterDays != null && + this.ResendApmMessageAfterDays.Equals(input.ResendApmMessageAfterDays)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TelephonyConfigId != null) + hashCode = hashCode * 59 + this.TelephonyConfigId.GetHashCode(); + if (this.ApmEnabled != null) + hashCode = hashCode * 59 + this.ApmEnabled.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ConsentEnabled != null) + hashCode = hashCode * 59 + this.ConsentEnabled.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.SendAppLinkSms != null) + hashCode = hashCode * 59 + this.SendAppLinkSms.GetHashCode(); + if (this.UseCustomAppLinkSmsMessage != null) + hashCode = hashCode * 59 + this.UseCustomAppLinkSmsMessage.GetHashCode(); + if (this.UseCustomVoiceMessage != null) + hashCode = hashCode * 59 + this.UseCustomVoiceMessage.GetHashCode(); + if (this.AppLinkSmsMessage != null) + hashCode = hashCode * 59 + this.AppLinkSmsMessage.GetHashCode(); + if (this.ResendApmMessageAfterDays != null) + hashCode = hashCode * 59 + this.ResendApmMessageAfterDays.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TelephonyConfigUpdatedEvent.cs b/src/Flipdish/Model/TelephonyConfigUpdatedEvent.cs new file mode 100644 index 00000000..ba26fc0d --- /dev/null +++ b/src/Flipdish/Model/TelephonyConfigUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Telephony Config Updated Event + /// + [DataContract] + public partial class TelephonyConfigUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// Store Id. + /// The telephony config. + /// Property Id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public TelephonyConfigUpdatedEvent(string eventName = default(string), string description = default(string), int? storeId = default(int?), TelephonyConfig telephonyConfig = default(TelephonyConfig), string propertyId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.StoreId = storeId; + this.TelephonyConfig = telephonyConfig; + this.PropertyId = propertyId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// The telephony config + /// + /// The telephony config + [DataMember(Name="TelephonyConfig", EmitDefaultValue=false)] + public TelephonyConfig TelephonyConfig { get; set; } + + /// + /// Property Id + /// + /// Property Id + [DataMember(Name="PropertyId", EmitDefaultValue=false)] + public string PropertyId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TelephonyConfigUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" TelephonyConfig: ").Append(TelephonyConfig).Append("\n"); + sb.Append(" PropertyId: ").Append(PropertyId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TelephonyConfigUpdatedEvent); + } + + /// + /// Returns true if TelephonyConfigUpdatedEvent instances are equal + /// + /// Instance of TelephonyConfigUpdatedEvent to be compared + /// Boolean + public bool Equals(TelephonyConfigUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.TelephonyConfig == input.TelephonyConfig || + (this.TelephonyConfig != null && + this.TelephonyConfig.Equals(input.TelephonyConfig)) + ) && + ( + this.PropertyId == input.PropertyId || + (this.PropertyId != null && + this.PropertyId.Equals(input.PropertyId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.TelephonyConfig != null) + hashCode = hashCode * 59 + this.TelephonyConfig.GetHashCode(); + if (this.PropertyId != null) + hashCode = hashCode * 59 + this.PropertyId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ThirdPartyFeesDetails.cs b/src/Flipdish/Model/ThirdPartyFeesDetails.cs new file mode 100644 index 00000000..de33985c --- /dev/null +++ b/src/Flipdish/Model/ThirdPartyFeesDetails.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Breakdown of third party integration fees + /// + [DataContract] + public partial class ThirdPartyFeesDetails : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Third party integration delivery fee. + /// Third party integration delivery tip fee. + /// Total third party integration fees. + public ThirdPartyFeesDetails(double? deliveryIntegrationFee = default(double?), double? deliveryTipFee = default(double?), double? totalThirdPartyFees = default(double?)) + { + this.DeliveryIntegrationFee = deliveryIntegrationFee; + this.DeliveryTipFee = deliveryTipFee; + this.TotalThirdPartyFees = totalThirdPartyFees; + } + + /// + /// Third party integration delivery fee + /// + /// Third party integration delivery fee + [DataMember(Name="DeliveryIntegrationFee", EmitDefaultValue=false)] + public double? DeliveryIntegrationFee { get; set; } + + /// + /// Third party integration delivery tip fee + /// + /// Third party integration delivery tip fee + [DataMember(Name="DeliveryTipFee", EmitDefaultValue=false)] + public double? DeliveryTipFee { get; set; } + + /// + /// Total third party integration fees + /// + /// Total third party integration fees + [DataMember(Name="TotalThirdPartyFees", EmitDefaultValue=false)] + public double? TotalThirdPartyFees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ThirdPartyFeesDetails {\n"); + sb.Append(" DeliveryIntegrationFee: ").Append(DeliveryIntegrationFee).Append("\n"); + sb.Append(" DeliveryTipFee: ").Append(DeliveryTipFee).Append("\n"); + sb.Append(" TotalThirdPartyFees: ").Append(TotalThirdPartyFees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ThirdPartyFeesDetails); + } + + /// + /// Returns true if ThirdPartyFeesDetails instances are equal + /// + /// Instance of ThirdPartyFeesDetails to be compared + /// Boolean + public bool Equals(ThirdPartyFeesDetails input) + { + if (input == null) + return false; + + return + ( + this.DeliveryIntegrationFee == input.DeliveryIntegrationFee || + (this.DeliveryIntegrationFee != null && + this.DeliveryIntegrationFee.Equals(input.DeliveryIntegrationFee)) + ) && + ( + this.DeliveryTipFee == input.DeliveryTipFee || + (this.DeliveryTipFee != null && + this.DeliveryTipFee.Equals(input.DeliveryTipFee)) + ) && + ( + this.TotalThirdPartyFees == input.TotalThirdPartyFees || + (this.TotalThirdPartyFees != null && + this.TotalThirdPartyFees.Equals(input.TotalThirdPartyFees)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryIntegrationFee != null) + hashCode = hashCode * 59 + this.DeliveryIntegrationFee.GetHashCode(); + if (this.DeliveryTipFee != null) + hashCode = hashCode * 59 + this.DeliveryTipFee.GetHashCode(); + if (this.TotalThirdPartyFees != null) + hashCode = hashCode * 59 + this.TotalThirdPartyFees.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/TipConfiguration.cs b/src/Flipdish/Model/TipConfiguration.cs new file mode 100644 index 00000000..86f0615f --- /dev/null +++ b/src/Flipdish/Model/TipConfiguration.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes the configuration of tipping + /// + [DataContract] + public partial class TipConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Configuration is for this StoreId. + /// Are tips enabled?. + /// Are custom tips allowed?. + /// Is round up allowed?. + /// Are emojis allowed?. + /// Ordered list of tip breakpoints (smallest -&gt; largest). + /// Defines a default percentage, it must be in the list of Percentages. + public TipConfiguration(int? storeId = default(int?), bool? isEnabled = default(bool?), bool? allowCustomTips = default(bool?), bool? allowRoundUp = default(bool?), bool? allowEmojis = default(bool?), List percentages = default(List), double? defaultPercentage = default(double?)) + { + this.StoreId = storeId; + this.IsEnabled = isEnabled; + this.AllowCustomTips = allowCustomTips; + this.AllowRoundUp = allowRoundUp; + this.AllowEmojis = allowEmojis; + this.Percentages = percentages; + this.DefaultPercentage = defaultPercentage; + } + + /// + /// Configuration is for this StoreId + /// + /// Configuration is for this StoreId + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Are tips enabled? + /// + /// Are tips enabled? + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Are custom tips allowed? + /// + /// Are custom tips allowed? + [DataMember(Name="AllowCustomTips", EmitDefaultValue=false)] + public bool? AllowCustomTips { get; set; } + + /// + /// Is round up allowed? + /// + /// Is round up allowed? + [DataMember(Name="AllowRoundUp", EmitDefaultValue=false)] + public bool? AllowRoundUp { get; set; } + + /// + /// Are emojis allowed? + /// + /// Are emojis allowed? + [DataMember(Name="AllowEmojis", EmitDefaultValue=false)] + public bool? AllowEmojis { get; set; } + + /// + /// Ordered list of tip breakpoints (smallest -&gt; largest) + /// + /// Ordered list of tip breakpoints (smallest -&gt; largest) + [DataMember(Name="Percentages", EmitDefaultValue=false)] + public List Percentages { get; set; } + + /// + /// Defines a default percentage, it must be in the list of Percentages + /// + /// Defines a default percentage, it must be in the list of Percentages + [DataMember(Name="DefaultPercentage", EmitDefaultValue=false)] + public double? DefaultPercentage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TipConfiguration {\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" AllowCustomTips: ").Append(AllowCustomTips).Append("\n"); + sb.Append(" AllowRoundUp: ").Append(AllowRoundUp).Append("\n"); + sb.Append(" AllowEmojis: ").Append(AllowEmojis).Append("\n"); + sb.Append(" Percentages: ").Append(Percentages).Append("\n"); + sb.Append(" DefaultPercentage: ").Append(DefaultPercentage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TipConfiguration); + } + + /// + /// Returns true if TipConfiguration instances are equal + /// + /// Instance of TipConfiguration to be compared + /// Boolean + public bool Equals(TipConfiguration input) + { + if (input == null) + return false; + + return + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.AllowCustomTips == input.AllowCustomTips || + (this.AllowCustomTips != null && + this.AllowCustomTips.Equals(input.AllowCustomTips)) + ) && + ( + this.AllowRoundUp == input.AllowRoundUp || + (this.AllowRoundUp != null && + this.AllowRoundUp.Equals(input.AllowRoundUp)) + ) && + ( + this.AllowEmojis == input.AllowEmojis || + (this.AllowEmojis != null && + this.AllowEmojis.Equals(input.AllowEmojis)) + ) && + ( + this.Percentages == input.Percentages || + this.Percentages != null && + this.Percentages.SequenceEqual(input.Percentages) + ) && + ( + this.DefaultPercentage == input.DefaultPercentage || + (this.DefaultPercentage != null && + this.DefaultPercentage.Equals(input.DefaultPercentage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.AllowCustomTips != null) + hashCode = hashCode * 59 + this.AllowCustomTips.GetHashCode(); + if (this.AllowRoundUp != null) + hashCode = hashCode * 59 + this.AllowRoundUp.GetHashCode(); + if (this.AllowEmojis != null) + hashCode = hashCode * 59 + this.AllowEmojis.GetHashCode(); + if (this.Percentages != null) + hashCode = hashCode * 59 + this.Percentages.GetHashCode(); + if (this.DefaultPercentage != null) + hashCode = hashCode * 59 + this.DefaultPercentage.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UnRegisterCardReaderRequest.cs b/src/Flipdish/Model/UnRegisterCardReaderRequest.cs new file mode 100644 index 00000000..a47da202 --- /dev/null +++ b/src/Flipdish/Model/UnRegisterCardReaderRequest.cs @@ -0,0 +1,151 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Un-Register card reader request + /// + [DataContract] + public partial class UnRegisterCardReaderRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnRegisterCardReaderRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Device card readerid (required). + /// The kiosk device id (required). + public UnRegisterCardReaderRequest(string readerId = default(string), string kioskDeviceId = default(string)) + { + // to ensure "readerId" is required (not null) + if (readerId == null) + { + throw new InvalidDataException("readerId is a required property for UnRegisterCardReaderRequest and cannot be null"); + } + else + { + this.ReaderId = readerId; + } + // to ensure "kioskDeviceId" is required (not null) + if (kioskDeviceId == null) + { + throw new InvalidDataException("kioskDeviceId is a required property for UnRegisterCardReaderRequest and cannot be null"); + } + else + { + this.KioskDeviceId = kioskDeviceId; + } + } + + /// + /// Device card readerid + /// + /// Device card readerid + [DataMember(Name="ReaderId", EmitDefaultValue=false)] + public string ReaderId { get; set; } + + /// + /// The kiosk device id + /// + /// The kiosk device id + [DataMember(Name="KioskDeviceId", EmitDefaultValue=false)] + public string KioskDeviceId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnRegisterCardReaderRequest {\n"); + sb.Append(" ReaderId: ").Append(ReaderId).Append("\n"); + sb.Append(" KioskDeviceId: ").Append(KioskDeviceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnRegisterCardReaderRequest); + } + + /// + /// Returns true if UnRegisterCardReaderRequest instances are equal + /// + /// Instance of UnRegisterCardReaderRequest to be compared + /// Boolean + public bool Equals(UnRegisterCardReaderRequest input) + { + if (input == null) + return false; + + return + ( + this.ReaderId == input.ReaderId || + (this.ReaderId != null && + this.ReaderId.Equals(input.ReaderId)) + ) && + ( + this.KioskDeviceId == input.KioskDeviceId || + (this.KioskDeviceId != null && + this.KioskDeviceId.Equals(input.KioskDeviceId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReaderId != null) + hashCode = hashCode * 59 + this.ReaderId.GetHashCode(); + if (this.KioskDeviceId != null) + hashCode = hashCode * 59 + this.KioskDeviceId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpcomingInvoice.cs b/src/Flipdish/Model/UpcomingInvoice.cs new file mode 100644 index 00000000..8443288d --- /dev/null +++ b/src/Flipdish/Model/UpcomingInvoice.cs @@ -0,0 +1,261 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpcomingInvoice. + /// + [DataContract] + public partial class UpcomingInvoice : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpcomingInvoice() { } + /// + /// Initializes a new instance of the class. + /// + /// Amount. + /// Next billing date. + /// Subtotal (required). + /// Total excluding tax. + /// Amount due (required). + /// Tax (required). + /// Items. + /// Discounts. + public UpcomingInvoice(double? amount = default(double?), DateTime? nextBillingDate = default(DateTime?), double? subtotal = default(double?), double? totalExcludingTax = default(double?), double? amountDue = default(double?), double? tax = default(double?), List items = default(List), List discounts = default(List)) + { + // to ensure "subtotal" is required (not null) + if (subtotal == null) + { + throw new InvalidDataException("subtotal is a required property for UpcomingInvoice and cannot be null"); + } + else + { + this.Subtotal = subtotal; + } + // to ensure "amountDue" is required (not null) + if (amountDue == null) + { + throw new InvalidDataException("amountDue is a required property for UpcomingInvoice and cannot be null"); + } + else + { + this.AmountDue = amountDue; + } + // to ensure "tax" is required (not null) + if (tax == null) + { + throw new InvalidDataException("tax is a required property for UpcomingInvoice and cannot be null"); + } + else + { + this.Tax = tax; + } + this.Amount = amount; + this.NextBillingDate = nextBillingDate; + this.TotalExcludingTax = totalExcludingTax; + this.Items = items; + this.Discounts = discounts; + } + + /// + /// Amount + /// + /// Amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } + + /// + /// Next billing date + /// + /// Next billing date + [DataMember(Name="NextBillingDate", EmitDefaultValue=false)] + public DateTime? NextBillingDate { get; set; } + + /// + /// Subtotal + /// + /// Subtotal + [DataMember(Name="Subtotal", EmitDefaultValue=false)] + public double? Subtotal { get; set; } + + /// + /// Total excluding tax + /// + /// Total excluding tax + [DataMember(Name="TotalExcludingTax", EmitDefaultValue=false)] + public double? TotalExcludingTax { get; set; } + + /// + /// Amount due + /// + /// Amount due + [DataMember(Name="AmountDue", EmitDefaultValue=false)] + public double? AmountDue { get; set; } + + /// + /// Tax + /// + /// Tax + [DataMember(Name="Tax", EmitDefaultValue=false)] + public double? Tax { get; set; } + + /// + /// Items + /// + /// Items + [DataMember(Name="Items", EmitDefaultValue=false)] + public List Items { get; set; } + + /// + /// Discounts + /// + /// Discounts + [DataMember(Name="Discounts", EmitDefaultValue=false)] + public List Discounts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpcomingInvoice {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" NextBillingDate: ").Append(NextBillingDate).Append("\n"); + sb.Append(" Subtotal: ").Append(Subtotal).Append("\n"); + sb.Append(" TotalExcludingTax: ").Append(TotalExcludingTax).Append("\n"); + sb.Append(" AmountDue: ").Append(AmountDue).Append("\n"); + sb.Append(" Tax: ").Append(Tax).Append("\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append(" Discounts: ").Append(Discounts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpcomingInvoice); + } + + /// + /// Returns true if UpcomingInvoice instances are equal + /// + /// Instance of UpcomingInvoice to be compared + /// Boolean + public bool Equals(UpcomingInvoice input) + { + if (input == null) + return false; + + return + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.NextBillingDate == input.NextBillingDate || + (this.NextBillingDate != null && + this.NextBillingDate.Equals(input.NextBillingDate)) + ) && + ( + this.Subtotal == input.Subtotal || + (this.Subtotal != null && + this.Subtotal.Equals(input.Subtotal)) + ) && + ( + this.TotalExcludingTax == input.TotalExcludingTax || + (this.TotalExcludingTax != null && + this.TotalExcludingTax.Equals(input.TotalExcludingTax)) + ) && + ( + this.AmountDue == input.AmountDue || + (this.AmountDue != null && + this.AmountDue.Equals(input.AmountDue)) + ) && + ( + this.Tax == input.Tax || + (this.Tax != null && + this.Tax.Equals(input.Tax)) + ) && + ( + this.Items == input.Items || + this.Items != null && + this.Items.SequenceEqual(input.Items) + ) && + ( + this.Discounts == input.Discounts || + this.Discounts != null && + this.Discounts.SequenceEqual(input.Discounts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.NextBillingDate != null) + hashCode = hashCode * 59 + this.NextBillingDate.GetHashCode(); + if (this.Subtotal != null) + hashCode = hashCode * 59 + this.Subtotal.GetHashCode(); + if (this.TotalExcludingTax != null) + hashCode = hashCode * 59 + this.TotalExcludingTax.GetHashCode(); + if (this.AmountDue != null) + hashCode = hashCode * 59 + this.AmountDue.GetHashCode(); + if (this.Tax != null) + hashCode = hashCode * 59 + this.Tax.GetHashCode(); + if (this.Items != null) + hashCode = hashCode * 59 + this.Items.GetHashCode(); + if (this.Discounts != null) + hashCode = hashCode * 59 + this.Discounts.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateAppStoreApp.cs b/src/Flipdish/Model/UpdateAppStoreApp.cs new file mode 100644 index 00000000..a26e76f5 --- /dev/null +++ b/src/Flipdish/Model/UpdateAppStoreApp.cs @@ -0,0 +1,749 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateAppStoreApp + /// + [DataContract] + public partial class UpdateAppStoreApp : IEquatable + { + /// + /// Defines ConfigurationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConfigurationTypeEnum + { + + /// + /// Enum ExternalLink for value: ExternalLink + /// + [EnumMember(Value = "ExternalLink")] + ExternalLink = 1, + + /// + /// Enum FlipdishHosted for value: FlipdishHosted + /// + [EnumMember(Value = "FlipdishHosted")] + FlipdishHosted = 2 + } + + /// + /// Gets or Sets ConfigurationType + /// + [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] + public ConfigurationTypeEnum ConfigurationType { get; set; } + /// + /// Defines StoreSelectorType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Gets or Sets StoreSelectorType + /// + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum StoreSelectorType { get; set; } + /// + /// Defines TeammateAppAccessLevel + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TeammateAppAccessLevelEnum + { + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 1, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 2, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 4, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 7, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 10, + + /// + /// Enum FinanceManger for value: FinanceManger + /// + [EnumMember(Value = "FinanceManger")] + FinanceManger = 11 + } + + /// + /// Gets or Sets TeammateAppAccessLevel + /// + [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] + public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } + /// + /// Defines PermissionsType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PermissionsTypeEnum + { + + /// + /// Enum Teammate for value: Teammate + /// + [EnumMember(Value = "Teammate")] + Teammate = 1 + } + + /// + /// Gets or Sets PermissionsType + /// + [DataMember(Name="PermissionsType", EmitDefaultValue=false)] + public PermissionsTypeEnum PermissionsType { get; set; } + /// + /// Defines Categories + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CategoriesEnum + { + + /// + /// Enum PointOfSale for value: PointOfSale + /// + [EnumMember(Value = "PointOfSale")] + PointOfSale = 1, + + /// + /// Enum DeliveryAndLogistics for value: DeliveryAndLogistics + /// + [EnumMember(Value = "DeliveryAndLogistics")] + DeliveryAndLogistics = 2, + + /// + /// Enum CRM for value: CRM + /// + [EnumMember(Value = "CRM")] + CRM = 3, + + /// + /// Enum GiftCard for value: GiftCard + /// + [EnumMember(Value = "GiftCard")] + GiftCard = 4, + + /// + /// Enum Accounting for value: Accounting + /// + [EnumMember(Value = "Accounting")] + Accounting = 5, + + /// + /// Enum LoyaltyAndMarketing for value: LoyaltyAndMarketing + /// + [EnumMember(Value = "LoyaltyAndMarketing")] + LoyaltyAndMarketing = 6, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 7 + } + + + /// + /// Gets or Sets Categories + /// + [DataMember(Name="Categories", EmitDefaultValue=false)] + public List Categories { get; set; } + /// + /// Defines Countries + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CountriesEnum + { + + /// + /// Enum GB for value: GB + /// + [EnumMember(Value = "GB")] + GB = 1, + + /// + /// Enum IE for value: IE + /// + [EnumMember(Value = "IE")] + IE = 2, + + /// + /// Enum FR for value: FR + /// + [EnumMember(Value = "FR")] + FR = 3, + + /// + /// Enum ES for value: ES + /// + [EnumMember(Value = "ES")] + ES = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] + PT = 5, + + /// + /// Enum IT for value: IT + /// + [EnumMember(Value = "IT")] + IT = 6, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 7, + + /// + /// Enum PL for value: PL + /// + [EnumMember(Value = "PL")] + PL = 8, + + /// + /// Enum BE for value: BE + /// + [EnumMember(Value = "BE")] + BE = 9, + + /// + /// Enum LU for value: LU + /// + [EnumMember(Value = "LU")] + LU = 10, + + /// + /// Enum NL for value: NL + /// + [EnumMember(Value = "NL")] + NL = 11, + + /// + /// Enum US for value: US + /// + [EnumMember(Value = "US")] + US = 12, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 13, + + /// + /// Enum BG for value: BG + /// + [EnumMember(Value = "BG")] + BG = 14, + + /// + /// Enum MX for value: MX + /// + [EnumMember(Value = "MX")] + MX = 15, + + /// + /// Enum AU for value: AU + /// + [EnumMember(Value = "AU")] + AU = 16, + + /// + /// Enum NZ for value: NZ + /// + [EnumMember(Value = "NZ")] + NZ = 17 + } + + + /// + /// Gets or Sets Countries + /// + [DataMember(Name="Countries", EmitDefaultValue=false)] + public List Countries { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateAppStoreApp() { } + /// + /// Initializes a new instance of the class. + /// + /// details (required). + /// configurationType (required). + /// storeSelectorType (required). + /// fieldGroups. + /// setupInstructions. + /// externalSetupLink. + /// teammateAppAccessLevel. + /// permissionsType (required). + /// support. + /// externalFunctionActionUrl. + /// externalFunctionSignatureKey. + /// isPaid. + /// name (required). + /// description (required). + /// isEnabled. + /// categories (required). + /// countries (required). + /// developerName. + public UpdateAppStoreApp(string details = default(string), ConfigurationTypeEnum configurationType = default(ConfigurationTypeEnum), StoreSelectorTypeEnum storeSelectorType = default(StoreSelectorTypeEnum), List fieldGroups = default(List), string setupInstructions = default(string), string externalSetupLink = default(string), TeammateAppAccessLevelEnum? teammateAppAccessLevel = default(TeammateAppAccessLevelEnum?), PermissionsTypeEnum permissionsType = default(PermissionsTypeEnum), AppStoreAppSupportInfo support = default(AppStoreAppSupportInfo), string externalFunctionActionUrl = default(string), string externalFunctionSignatureKey = default(string), bool? isPaid = default(bool?), string name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + { + // to ensure "details" is required (not null) + if (details == null) + { + throw new InvalidDataException("details is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.Details = details; + } + // to ensure "configurationType" is required (not null) + if (configurationType == null) + { + throw new InvalidDataException("configurationType is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.ConfigurationType = configurationType; + } + // to ensure "storeSelectorType" is required (not null) + if (storeSelectorType == null) + { + throw new InvalidDataException("storeSelectorType is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.StoreSelectorType = storeSelectorType; + } + // to ensure "permissionsType" is required (not null) + if (permissionsType == null) + { + throw new InvalidDataException("permissionsType is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.PermissionsType = permissionsType; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "description" is required (not null) + if (description == null) + { + throw new InvalidDataException("description is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.Description = description; + } + // to ensure "categories" is required (not null) + if (categories == null) + { + throw new InvalidDataException("categories is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.Categories = categories; + } + // to ensure "countries" is required (not null) + if (countries == null) + { + throw new InvalidDataException("countries is a required property for UpdateAppStoreApp and cannot be null"); + } + else + { + this.Countries = countries; + } + this.FieldGroups = fieldGroups; + this.SetupInstructions = setupInstructions; + this.ExternalSetupLink = externalSetupLink; + this.TeammateAppAccessLevel = teammateAppAccessLevel; + this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; + this.IsEnabled = isEnabled; + this.DeveloperName = developerName; + } + + /// + /// Gets or Sets Details + /// + [DataMember(Name="Details", EmitDefaultValue=false)] + public string Details { get; set; } + + + + /// + /// Gets or Sets FieldGroups + /// + [DataMember(Name="FieldGroups", EmitDefaultValue=false)] + public List FieldGroups { get; set; } + + /// + /// Gets or Sets SetupInstructions + /// + [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] + public string SetupInstructions { get; set; } + + /// + /// Gets or Sets ExternalSetupLink + /// + [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] + public string ExternalSetupLink { get; set; } + + + + /// + /// Gets or Sets Support + /// + [DataMember(Name="Support", EmitDefaultValue=false)] + public AppStoreAppSupportInfo Support { get; set; } + + /// + /// Gets or Sets ExternalFunctionActionUrl + /// + [DataMember(Name="ExternalFunctionActionUrl", EmitDefaultValue=false)] + public string ExternalFunctionActionUrl { get; set; } + + /// + /// Gets or Sets ExternalFunctionSignatureKey + /// + [DataMember(Name="ExternalFunctionSignatureKey", EmitDefaultValue=false)] + public string ExternalFunctionSignatureKey { get; set; } + + /// + /// Gets or Sets IsPaid + /// + [DataMember(Name="IsPaid", EmitDefaultValue=false)] + public bool? IsPaid { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + + + /// + /// Gets or Sets DeveloperName + /// + [DataMember(Name="DeveloperName", EmitDefaultValue=false)] + public string DeveloperName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateAppStoreApp {\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" ConfigurationType: ").Append(ConfigurationType).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" FieldGroups: ").Append(FieldGroups).Append("\n"); + sb.Append(" SetupInstructions: ").Append(SetupInstructions).Append("\n"); + sb.Append(" ExternalSetupLink: ").Append(ExternalSetupLink).Append("\n"); + sb.Append(" TeammateAppAccessLevel: ").Append(TeammateAppAccessLevel).Append("\n"); + sb.Append(" PermissionsType: ").Append(PermissionsType).Append("\n"); + sb.Append(" Support: ").Append(Support).Append("\n"); + sb.Append(" ExternalFunctionActionUrl: ").Append(ExternalFunctionActionUrl).Append("\n"); + sb.Append(" ExternalFunctionSignatureKey: ").Append(ExternalFunctionSignatureKey).Append("\n"); + sb.Append(" IsPaid: ").Append(IsPaid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" Countries: ").Append(Countries).Append("\n"); + sb.Append(" DeveloperName: ").Append(DeveloperName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAppStoreApp); + } + + /// + /// Returns true if UpdateAppStoreApp instances are equal + /// + /// Instance of UpdateAppStoreApp to be compared + /// Boolean + public bool Equals(UpdateAppStoreApp input) + { + if (input == null) + return false; + + return + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ) && + ( + this.ConfigurationType == input.ConfigurationType || + (this.ConfigurationType != null && + this.ConfigurationType.Equals(input.ConfigurationType)) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.FieldGroups == input.FieldGroups || + this.FieldGroups != null && + this.FieldGroups.SequenceEqual(input.FieldGroups) + ) && + ( + this.SetupInstructions == input.SetupInstructions || + (this.SetupInstructions != null && + this.SetupInstructions.Equals(input.SetupInstructions)) + ) && + ( + this.ExternalSetupLink == input.ExternalSetupLink || + (this.ExternalSetupLink != null && + this.ExternalSetupLink.Equals(input.ExternalSetupLink)) + ) && + ( + this.TeammateAppAccessLevel == input.TeammateAppAccessLevel || + (this.TeammateAppAccessLevel != null && + this.TeammateAppAccessLevel.Equals(input.TeammateAppAccessLevel)) + ) && + ( + this.PermissionsType == input.PermissionsType || + (this.PermissionsType != null && + this.PermissionsType.Equals(input.PermissionsType)) + ) && + ( + this.Support == input.Support || + (this.Support != null && + this.Support.Equals(input.Support)) + ) && + ( + this.ExternalFunctionActionUrl == input.ExternalFunctionActionUrl || + (this.ExternalFunctionActionUrl != null && + this.ExternalFunctionActionUrl.Equals(input.ExternalFunctionActionUrl)) + ) && + ( + this.ExternalFunctionSignatureKey == input.ExternalFunctionSignatureKey || + (this.ExternalFunctionSignatureKey != null && + this.ExternalFunctionSignatureKey.Equals(input.ExternalFunctionSignatureKey)) + ) && + ( + this.IsPaid == input.IsPaid || + (this.IsPaid != null && + this.IsPaid.Equals(input.IsPaid)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.Categories == input.Categories || + this.Categories != null && + this.Categories.SequenceEqual(input.Categories) + ) && + ( + this.Countries == input.Countries || + this.Countries != null && + this.Countries.SequenceEqual(input.Countries) + ) && + ( + this.DeveloperName == input.DeveloperName || + (this.DeveloperName != null && + this.DeveloperName.Equals(input.DeveloperName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + if (this.ConfigurationType != null) + hashCode = hashCode * 59 + this.ConfigurationType.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.FieldGroups != null) + hashCode = hashCode * 59 + this.FieldGroups.GetHashCode(); + if (this.SetupInstructions != null) + hashCode = hashCode * 59 + this.SetupInstructions.GetHashCode(); + if (this.ExternalSetupLink != null) + hashCode = hashCode * 59 + this.ExternalSetupLink.GetHashCode(); + if (this.TeammateAppAccessLevel != null) + hashCode = hashCode * 59 + this.TeammateAppAccessLevel.GetHashCode(); + if (this.PermissionsType != null) + hashCode = hashCode * 59 + this.PermissionsType.GetHashCode(); + if (this.Support != null) + hashCode = hashCode * 59 + this.Support.GetHashCode(); + if (this.ExternalFunctionActionUrl != null) + hashCode = hashCode * 59 + this.ExternalFunctionActionUrl.GetHashCode(); + if (this.ExternalFunctionSignatureKey != null) + hashCode = hashCode * 59 + this.ExternalFunctionSignatureKey.GetHashCode(); + if (this.IsPaid != null) + hashCode = hashCode * 59 + this.IsPaid.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.Categories != null) + hashCode = hashCode * 59 + this.Categories.GetHashCode(); + if (this.Countries != null) + hashCode = hashCode * 59 + this.Countries.GetHashCode(); + if (this.DeveloperName != null) + hashCode = hashCode * 59 + this.DeveloperName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs b/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs new file mode 100644 index 00000000..109b5cb7 --- /dev/null +++ b/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs @@ -0,0 +1,157 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateAppStoreAppConfiguration + /// + [DataContract] + public partial class UpdateAppStoreAppConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateAppStoreAppConfiguration() { } + /// + /// Initializes a new instance of the class. + /// + /// isEnabled (required). + /// storeIds. + /// settings. + public UpdateAppStoreAppConfiguration(bool? isEnabled = default(bool?), List storeIds = default(List), List settings = default(List)) + { + // to ensure "isEnabled" is required (not null) + if (isEnabled == null) + { + throw new InvalidDataException("isEnabled is a required property for UpdateAppStoreAppConfiguration and cannot be null"); + } + else + { + this.IsEnabled = isEnabled; + } + this.StoreIds = storeIds; + this.Settings = settings; + } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Gets or Sets StoreIds + /// + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Gets or Sets Settings + /// + [DataMember(Name="Settings", EmitDefaultValue=false)] + public List Settings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateAppStoreAppConfiguration {\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" Settings: ").Append(Settings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAppStoreAppConfiguration); + } + + /// + /// Returns true if UpdateAppStoreAppConfiguration instances are equal + /// + /// Instance of UpdateAppStoreAppConfiguration to be compared + /// Boolean + public bool Equals(UpdateAppStoreAppConfiguration input) + { + if (input == null) + return false; + + return + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.Settings == input.Settings || + this.Settings != null && + this.Settings.SequenceEqual(input.Settings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.Settings != null) + hashCode = hashCode * 59 + this.Settings.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateAppStoreAppConfigurationValuesBatch.cs b/src/Flipdish/Model/UpdateAppStoreAppConfigurationValuesBatch.cs new file mode 100644 index 00000000..8804d75c --- /dev/null +++ b/src/Flipdish/Model/UpdateAppStoreAppConfigurationValuesBatch.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateAppStoreAppConfigurationValuesBatch + /// + [DataContract] + public partial class UpdateAppStoreAppConfigurationValuesBatch : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// settings. + public UpdateAppStoreAppConfigurationValuesBatch(List settings = default(List)) + { + this.Settings = settings; + } + + /// + /// Gets or Sets Settings + /// + [DataMember(Name="Settings", EmitDefaultValue=false)] + public List Settings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateAppStoreAppConfigurationValuesBatch {\n"); + sb.Append(" Settings: ").Append(Settings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAppStoreAppConfigurationValuesBatch); + } + + /// + /// Returns true if UpdateAppStoreAppConfigurationValuesBatch instances are equal + /// + /// Instance of UpdateAppStoreAppConfigurationValuesBatch to be compared + /// Boolean + public bool Equals(UpdateAppStoreAppConfigurationValuesBatch input) + { + if (input == null) + return false; + + return + ( + this.Settings == input.Settings || + this.Settings != null && + this.Settings.SequenceEqual(input.Settings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Settings != null) + hashCode = hashCode * 59 + this.Settings.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateAppStoreAppConfigurationWebhookDTO.cs b/src/Flipdish/Model/UpdateAppStoreAppConfigurationWebhookDTO.cs new file mode 100644 index 00000000..c3556ba9 --- /dev/null +++ b/src/Flipdish/Model/UpdateAppStoreAppConfigurationWebhookDTO.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateAppStoreAppConfigurationWebhookDTO + /// + [DataContract] + public partial class UpdateAppStoreAppConfigurationWebhookDTO : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateAppStoreAppConfigurationWebhookDTO() { } + /// + /// Initializes a new instance of the class. + /// + /// id (required). + /// isEnabled (required). + /// storeIds. + /// settings. + public UpdateAppStoreAppConfigurationWebhookDTO(string id = default(string), bool? isEnabled = default(bool?), List storeIds = default(List), List settings = default(List)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for UpdateAppStoreAppConfigurationWebhookDTO and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "isEnabled" is required (not null) + if (isEnabled == null) + { + throw new InvalidDataException("isEnabled is a required property for UpdateAppStoreAppConfigurationWebhookDTO and cannot be null"); + } + else + { + this.IsEnabled = isEnabled; + } + this.StoreIds = storeIds; + this.Settings = settings; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="Id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets IsEnabled + /// + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Gets or Sets StoreIds + /// + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + /// + /// Gets or Sets Settings + /// + [DataMember(Name="Settings", EmitDefaultValue=false)] + public List Settings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateAppStoreAppConfigurationWebhookDTO {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" Settings: ").Append(Settings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAppStoreAppConfigurationWebhookDTO); + } + + /// + /// Returns true if UpdateAppStoreAppConfigurationWebhookDTO instances are equal + /// + /// Instance of UpdateAppStoreAppConfigurationWebhookDTO to be compared + /// Boolean + public bool Equals(UpdateAppStoreAppConfigurationWebhookDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.Settings == input.Settings || + this.Settings != null && + this.Settings.SequenceEqual(input.Settings) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.Settings != null) + hashCode = hashCode * 59 + this.Settings.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateAppStoreAppExternalProduct.cs b/src/Flipdish/Model/UpdateAppStoreAppExternalProduct.cs new file mode 100644 index 00000000..aef6e7e7 --- /dev/null +++ b/src/Flipdish/Model/UpdateAppStoreAppExternalProduct.cs @@ -0,0 +1,112 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateAppStoreAppExternalProduct + /// + [DataContract] + public partial class UpdateAppStoreAppExternalProduct : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// externalProductId. + public UpdateAppStoreAppExternalProduct(string externalProductId = default(string)) + { + this.ExternalProductId = externalProductId; + } + + /// + /// Gets or Sets ExternalProductId + /// + [DataMember(Name="ExternalProductId", EmitDefaultValue=false)] + public string ExternalProductId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateAppStoreAppExternalProduct {\n"); + sb.Append(" ExternalProductId: ").Append(ExternalProductId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateAppStoreAppExternalProduct); + } + + /// + /// Returns true if UpdateAppStoreAppExternalProduct instances are equal + /// + /// Instance of UpdateAppStoreAppExternalProduct to be compared + /// Boolean + public bool Equals(UpdateAppStoreAppExternalProduct input) + { + if (input == null) + return false; + + return + ( + this.ExternalProductId == input.ExternalProductId || + (this.ExternalProductId != null && + this.ExternalProductId.Equals(input.ExternalProductId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ExternalProductId != null) + hashCode = hashCode * 59 + this.ExternalProductId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateCatalogGroupReference.cs b/src/Flipdish/Model/UpdateCatalogGroupReference.cs new file mode 100644 index 00000000..ea618456 --- /dev/null +++ b/src/Flipdish/Model/UpdateCatalogGroupReference.cs @@ -0,0 +1,183 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogGroupReference} + /// + [DataContract] + public partial class UpdateCatalogGroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateCatalogGroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the ProductId to use as SubProduct (required). + /// Identifier of the ProductId to use as SubProduct. + /// Type of the SupProduct (required). + public UpdateCatalogGroupReference(string catalogGroupId = default(string), string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogGroupId" is required (not null) + if (catalogGroupId == null) + { + throw new InvalidDataException("catalogGroupId is a required property for UpdateCatalogGroupReference and cannot be null"); + } + else + { + this.CatalogGroupId = catalogGroupId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for UpdateCatalogGroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + this.CatalogItemId = catalogItemId; + } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogGroupId", EmitDefaultValue=false)] + public string CatalogGroupId { get; set; } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateCatalogGroupReference {\n"); + sb.Append(" CatalogGroupId: ").Append(CatalogGroupId).Append("\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateCatalogGroupReference); + } + + /// + /// Returns true if UpdateCatalogGroupReference instances are equal + /// + /// Instance of UpdateCatalogGroupReference to be compared + /// Boolean + public bool Equals(UpdateCatalogGroupReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogGroupId == input.CatalogGroupId || + (this.CatalogGroupId != null && + this.CatalogGroupId.Equals(input.CatalogGroupId)) + ) && + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogGroupId != null) + hashCode = hashCode * 59 + this.CatalogGroupId.GetHashCode(); + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateCatalogItem.cs b/src/Flipdish/Model/UpdateCatalogItem.cs new file mode 100644 index 00000000..805af183 --- /dev/null +++ b/src/Flipdish/Model/UpdateCatalogItem.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Catalog Item + /// + [DataContract] + public partial class UpdateCatalogItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Stock Keeping Unit (SKU). + /// Product name. + /// Product description. + /// Product price. + /// Image File Name. + /// Product contains alcohol. + /// Collection of groups associated with this item. + /// Collection of metafields. + public UpdateCatalogItem(string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?), List groups = default(List), List metafields = default(List)) + { + this.Sku = sku; + this.Name = name; + this.Description = description; + this.Price = price; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + this.Groups = groups; + this.Metafields = metafields; + } + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Product name + /// + /// Product name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Product description + /// + /// Product description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Product price + /// + /// Product price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Product contains alcohol + /// + /// Product contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateCatalogItem {\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateCatalogItem); + } + + /// + /// Returns true if UpdateCatalogItem instances are equal + /// + /// Instance of UpdateCatalogItem to be compared + /// Boolean + public bool Equals(UpdateCatalogItem input) + { + if (input == null) + return false; + + return + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateDriverNotificationToken.cs b/src/Flipdish/Model/UpdateDriverNotificationToken.cs new file mode 100644 index 00000000..b3b5bf19 --- /dev/null +++ b/src/Flipdish/Model/UpdateDriverNotificationToken.cs @@ -0,0 +1,126 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateDriver Push Notification Token + /// + [DataContract] + public partial class UpdateDriverNotificationToken : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateDriverNotificationToken() { } + /// + /// Initializes a new instance of the class. + /// + /// Push notifications token, cannot be null (required). + public UpdateDriverNotificationToken(string pushNotificationsToken = default(string)) + { + // to ensure "pushNotificationsToken" is required (not null) + if (pushNotificationsToken == null) + { + throw new InvalidDataException("pushNotificationsToken is a required property for UpdateDriverNotificationToken and cannot be null"); + } + else + { + this.PushNotificationsToken = pushNotificationsToken; + } + } + + /// + /// Push notifications token, cannot be null + /// + /// Push notifications token, cannot be null + [DataMember(Name="PushNotificationsToken", EmitDefaultValue=false)] + public string PushNotificationsToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateDriverNotificationToken {\n"); + sb.Append(" PushNotificationsToken: ").Append(PushNotificationsToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateDriverNotificationToken); + } + + /// + /// Returns true if UpdateDriverNotificationToken instances are equal + /// + /// Instance of UpdateDriverNotificationToken to be compared + /// Boolean + public bool Equals(UpdateDriverNotificationToken input) + { + if (input == null) + return false; + + return + ( + this.PushNotificationsToken == input.PushNotificationsToken || + (this.PushNotificationsToken != null && + this.PushNotificationsToken.Equals(input.PushNotificationsToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PushNotificationsToken != null) + hashCode = hashCode * 59 + this.PushNotificationsToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateDriverProfileModel.cs b/src/Flipdish/Model/UpdateDriverProfileModel.cs new file mode 100644 index 00000000..f9cec58f --- /dev/null +++ b/src/Flipdish/Model/UpdateDriverProfileModel.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Driver Profile + /// + [DataContract] + public partial class UpdateDriverProfileModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The new name of the Driver.. + public UpdateDriverProfileModel(string name = default(string)) + { + this.Name = name; + } + + /// + /// The new name of the Driver. + /// + /// The new name of the Driver. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateDriverProfileModel {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateDriverProfileModel); + } + + /// + /// Returns true if UpdateDriverProfileModel instances are equal + /// + /// Instance of UpdateDriverProfileModel to be compared + /// Boolean + public bool Equals(UpdateDriverProfileModel input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs b/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs new file mode 100644 index 00000000..cec3901f --- /dev/null +++ b/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs @@ -0,0 +1,225 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update fulfillment states configuration + /// + [DataContract] + public partial class UpdateFulfillmentStatesConfiguration : IEquatable + { + /// + /// Store Selector Type + /// + /// Store Selector Type + [JsonConverter(typeof(StringEnumConverter))] + public enum StoreSelectorTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Single for value: Single + /// + [EnumMember(Value = "Single")] + Single = 2, + + /// + /// Enum Multiple for value: Multiple + /// + [EnumMember(Value = "Multiple")] + Multiple = 3 + } + + /// + /// Store Selector Type + /// + /// Store Selector Type + [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] + public StoreSelectorTypeEnum? StoreSelectorType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Set to true if a system configuration template is to be updated (permissions also needed). + /// Stores id's. + /// Store Selector Type. + /// Settings. + /// Enable automatic transitions. + /// Name. + public UpdateFulfillmentStatesConfiguration(bool? overwriteSystemTemplate = default(bool?), List storeIds = default(List), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List states = default(List), bool? automaticTransitionsEnabled = default(bool?), string name = default(string)) + { + this.OverwriteSystemTemplate = overwriteSystemTemplate; + this.StoreIds = storeIds; + this.StoreSelectorType = storeSelectorType; + this.States = states; + this.AutomaticTransitionsEnabled = automaticTransitionsEnabled; + this.Name = name; + } + + /// + /// Set to true if a system configuration template is to be updated (permissions also needed) + /// + /// Set to true if a system configuration template is to be updated (permissions also needed) + [DataMember(Name="OverwriteSystemTemplate", EmitDefaultValue=false)] + public bool? OverwriteSystemTemplate { get; set; } + + /// + /// Stores id's + /// + /// Stores id's + [DataMember(Name="StoreIds", EmitDefaultValue=false)] + public List StoreIds { get; set; } + + + /// + /// Settings + /// + /// Settings + [DataMember(Name="States", EmitDefaultValue=false)] + public List States { get; set; } + + /// + /// Enable automatic transitions + /// + /// Enable automatic transitions + [DataMember(Name="AutomaticTransitionsEnabled", EmitDefaultValue=false)] + public bool? AutomaticTransitionsEnabled { get; set; } + + /// + /// Name + /// + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateFulfillmentStatesConfiguration {\n"); + sb.Append(" OverwriteSystemTemplate: ").Append(OverwriteSystemTemplate).Append("\n"); + sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" StoreSelectorType: ").Append(StoreSelectorType).Append("\n"); + sb.Append(" States: ").Append(States).Append("\n"); + sb.Append(" AutomaticTransitionsEnabled: ").Append(AutomaticTransitionsEnabled).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateFulfillmentStatesConfiguration); + } + + /// + /// Returns true if UpdateFulfillmentStatesConfiguration instances are equal + /// + /// Instance of UpdateFulfillmentStatesConfiguration to be compared + /// Boolean + public bool Equals(UpdateFulfillmentStatesConfiguration input) + { + if (input == null) + return false; + + return + ( + this.OverwriteSystemTemplate == input.OverwriteSystemTemplate || + (this.OverwriteSystemTemplate != null && + this.OverwriteSystemTemplate.Equals(input.OverwriteSystemTemplate)) + ) && + ( + this.StoreIds == input.StoreIds || + this.StoreIds != null && + this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.StoreSelectorType == input.StoreSelectorType || + (this.StoreSelectorType != null && + this.StoreSelectorType.Equals(input.StoreSelectorType)) + ) && + ( + this.States == input.States || + this.States != null && + this.States.SequenceEqual(input.States) + ) && + ( + this.AutomaticTransitionsEnabled == input.AutomaticTransitionsEnabled || + (this.AutomaticTransitionsEnabled != null && + this.AutomaticTransitionsEnabled.Equals(input.AutomaticTransitionsEnabled)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OverwriteSystemTemplate != null) + hashCode = hashCode * 59 + this.OverwriteSystemTemplate.GetHashCode(); + if (this.StoreIds != null) + hashCode = hashCode * 59 + this.StoreIds.GetHashCode(); + if (this.StoreSelectorType != null) + hashCode = hashCode * 59 + this.StoreSelectorType.GetHashCode(); + if (this.States != null) + hashCode = hashCode * 59 + this.States.GetHashCode(); + if (this.AutomaticTransitionsEnabled != null) + hashCode = hashCode * 59 + this.AutomaticTransitionsEnabled.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateGroup.cs b/src/Flipdish/Model/UpdateGroup.cs new file mode 100644 index 00000000..777fa585 --- /dev/null +++ b/src/Flipdish/Model/UpdateGroup.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Catalog Group + /// + [DataContract] + public partial class UpdateGroup : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Stock Keeping Unit (SKU). + /// Group name. + /// Autogenerate display text in ordering applications. + /// Image File Name. + /// Minimum number of items that the user has to select. + /// Maximum number of items that the user has to select. + /// Collection of items associated with this group. + /// Collection of metafields. + public UpdateGroup(string sku = default(string), string name = default(string), bool? autogenerateDisplayText = default(bool?), string imageFileName = default(string), int? minSelectCount = default(int?), int? maxSelectCount = default(int?), List products = default(List), List metafields = default(List)) + { + this.Sku = sku; + this.Name = name; + this.AutogenerateDisplayText = autogenerateDisplayText; + this.ImageFileName = imageFileName; + this.MinSelectCount = minSelectCount; + this.MaxSelectCount = maxSelectCount; + this.Products = products; + this.Metafields = metafields; + } + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Group name + /// + /// Group name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Autogenerate display text in ordering applications + /// + /// Autogenerate display text in ordering applications + [DataMember(Name="AutogenerateDisplayText", EmitDefaultValue=false)] + public bool? AutogenerateDisplayText { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Minimum number of items that the user has to select + /// + /// Minimum number of items that the user has to select + [DataMember(Name="MinSelectCount", EmitDefaultValue=false)] + public int? MinSelectCount { get; set; } + + /// + /// Maximum number of items that the user has to select + /// + /// Maximum number of items that the user has to select + [DataMember(Name="MaxSelectCount", EmitDefaultValue=false)] + public int? MaxSelectCount { get; set; } + + /// + /// Collection of items associated with this group + /// + /// Collection of items associated with this group + [DataMember(Name="Products", EmitDefaultValue=false)] + public List Products { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateGroup {\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AutogenerateDisplayText: ").Append(AutogenerateDisplayText).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" MinSelectCount: ").Append(MinSelectCount).Append("\n"); + sb.Append(" MaxSelectCount: ").Append(MaxSelectCount).Append("\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateGroup); + } + + /// + /// Returns true if UpdateGroup instances are equal + /// + /// Instance of UpdateGroup to be compared + /// Boolean + public bool Equals(UpdateGroup input) + { + if (input == null) + return false; + + return + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.AutogenerateDisplayText == input.AutogenerateDisplayText || + (this.AutogenerateDisplayText != null && + this.AutogenerateDisplayText.Equals(input.AutogenerateDisplayText)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.MinSelectCount == input.MinSelectCount || + (this.MinSelectCount != null && + this.MinSelectCount.Equals(input.MinSelectCount)) + ) && + ( + this.MaxSelectCount == input.MaxSelectCount || + (this.MaxSelectCount != null && + this.MaxSelectCount.Equals(input.MaxSelectCount)) + ) && + ( + this.Products == input.Products || + this.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.AutogenerateDisplayText != null) + hashCode = hashCode * 59 + this.AutogenerateDisplayText.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.MinSelectCount != null) + hashCode = hashCode * 59 + this.MinSelectCount.GetHashCode(); + if (this.MaxSelectCount != null) + hashCode = hashCode * 59 + this.MaxSelectCount.GetHashCode(); + if (this.Products != null) + hashCode = hashCode * 59 + this.Products.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateGroupReference.cs b/src/Flipdish/Model/UpdateGroupReference.cs new file mode 100644 index 00000000..07bcca8b --- /dev/null +++ b/src/Flipdish/Model/UpdateGroupReference.cs @@ -0,0 +1,166 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference} + /// + [DataContract] + public partial class UpdateGroupReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum GroupTypeEnum + { + + /// + /// Enum ModifierGroup for value: ModifierGroup + /// + [EnumMember(Value = "ModifierGroup")] + ModifierGroup = 1 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="GroupType", EmitDefaultValue=false)] + public GroupTypeEnum GroupType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateGroupReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the ProductId to use as SubProduct (required). + /// Type of the SupProduct (required). + public UpdateGroupReference(string catalogItemId = default(string), GroupTypeEnum groupType = default(GroupTypeEnum)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for UpdateGroupReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "groupType" is required (not null) + if (groupType == null) + { + throw new InvalidDataException("groupType is a required property for UpdateGroupReference and cannot be null"); + } + else + { + this.GroupType = groupType; + } + } + + /// + /// Identifier of the ProductId to use as SubProduct + /// + /// Identifier of the ProductId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateGroupReference {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" GroupType: ").Append(GroupType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateGroupReference); + } + + /// + /// Returns true if UpdateGroupReference instances are equal + /// + /// Instance of UpdateGroupReference to be compared + /// Boolean + public bool Equals(UpdateGroupReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.GroupType == input.GroupType || + (this.GroupType != null && + this.GroupType.Equals(input.GroupType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.GroupType != null) + hashCode = hashCode * 59 + this.GroupType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateLocationArea.cs b/src/Flipdish/Model/UpdateLocationArea.cs new file mode 100644 index 00000000..63f8d146 --- /dev/null +++ b/src/Flipdish/Model/UpdateLocationArea.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Input model for updating a LocationArea + /// + [DataContract] + public partial class UpdateLocationArea : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateLocationArea() { } + /// + /// Initializes a new instance of the class. + /// + /// Location Area Id (required). + /// Descriptive LocationArea name (required). + /// Sets if the Location Area should be soft deleted or not. + public UpdateLocationArea(int? locationAreaId = default(int?), string locationAreaName = default(string), bool? isDeleted = default(bool?)) + { + // to ensure "locationAreaId" is required (not null) + if (locationAreaId == null) + { + throw new InvalidDataException("locationAreaId is a required property for UpdateLocationArea and cannot be null"); + } + else + { + this.LocationAreaId = locationAreaId; + } + // to ensure "locationAreaName" is required (not null) + if (locationAreaName == null) + { + throw new InvalidDataException("locationAreaName is a required property for UpdateLocationArea and cannot be null"); + } + else + { + this.LocationAreaName = locationAreaName; + } + this.IsDeleted = isDeleted; + } + + /// + /// Location Area Id + /// + /// Location Area Id + [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] + public int? LocationAreaId { get; set; } + + /// + /// Descriptive LocationArea name + /// + /// Descriptive LocationArea name + [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] + public string LocationAreaName { get; set; } + + /// + /// Sets if the Location Area should be soft deleted or not + /// + /// Sets if the Location Area should be soft deleted or not + [DataMember(Name="IsDeleted", EmitDefaultValue=false)] + public bool? IsDeleted { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateLocationArea {\n"); + sb.Append(" LocationAreaId: ").Append(LocationAreaId).Append("\n"); + sb.Append(" LocationAreaName: ").Append(LocationAreaName).Append("\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateLocationArea); + } + + /// + /// Returns true if UpdateLocationArea instances are equal + /// + /// Instance of UpdateLocationArea to be compared + /// Boolean + public bool Equals(UpdateLocationArea input) + { + if (input == null) + return false; + + return + ( + this.LocationAreaId == input.LocationAreaId || + (this.LocationAreaId != null && + this.LocationAreaId.Equals(input.LocationAreaId)) + ) && + ( + this.LocationAreaName == input.LocationAreaName || + (this.LocationAreaName != null && + this.LocationAreaName.Equals(input.LocationAreaName)) + ) && + ( + this.IsDeleted == input.IsDeleted || + (this.IsDeleted != null && + this.IsDeleted.Equals(input.IsDeleted)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationAreaId != null) + hashCode = hashCode * 59 + this.LocationAreaId.GetHashCode(); + if (this.LocationAreaName != null) + hashCode = hashCode * 59 + this.LocationAreaName.GetHashCode(); + if (this.IsDeleted != null) + hashCode = hashCode * 59 + this.IsDeleted.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateMetafieldDefinition.cs b/src/Flipdish/Model/UpdateMetafieldDefinition.cs new file mode 100644 index 00000000..ce90b248 --- /dev/null +++ b/src/Flipdish/Model/UpdateMetafieldDefinition.cs @@ -0,0 +1,168 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Information to update a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} + /// + [DataContract] + public partial class UpdateMetafieldDefinition : IEquatable + { + /// + /// Defines Behaviors + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BehaviorsEnum + { + + /// + /// Enum SendToOrder for value: SendToOrder + /// + [EnumMember(Value = "SendToOrder")] + SendToOrder = 1, + + /// + /// Enum SendToMenu for value: SendToMenu + /// + [EnumMember(Value = "SendToMenu")] + SendToMenu = 2 + } + + + /// + /// Enable Metafield Behaviors + /// + /// Enable Metafield Behaviors + [DataMember(Name="Behaviors", EmitDefaultValue=false)] + public List Behaviors { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Field Name. + /// Field Description. + /// Enable Metafield Behaviors. + public UpdateMetafieldDefinition(string name = default(string), string description = default(string), List behaviors = default(List)) + { + this.Name = name; + this.Description = description; + this.Behaviors = behaviors; + } + + /// + /// Field Name + /// + /// Field Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Field Description + /// + /// Field Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateMetafieldDefinition {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Behaviors: ").Append(Behaviors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateMetafieldDefinition); + } + + /// + /// Returns true if UpdateMetafieldDefinition instances are equal + /// + /// Instance of UpdateMetafieldDefinition to be compared + /// Boolean + public bool Equals(UpdateMetafieldDefinition input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Behaviors == input.Behaviors || + this.Behaviors != null && + this.Behaviors.SequenceEqual(input.Behaviors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Behaviors != null) + hashCode = hashCode * 59 + this.Behaviors.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs b/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs new file mode 100644 index 00000000..f45ea922 --- /dev/null +++ b/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs @@ -0,0 +1,297 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Mobile Apps Status + /// + [DataContract] + public partial class UpdateMobileAppsSubmissionStatus : IEquatable + { + /// + /// Mobile Type + /// + /// Mobile Type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum IOS for value: IOS + /// + [EnumMember(Value = "IOS")] + IOS = 3 + } + + /// + /// Mobile Type + /// + /// Mobile Type + [DataMember(Name="Type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Mobile App Status + /// + /// Mobile App Status + [JsonConverter(typeof(StringEnumConverter))] + public enum AppStatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Published for value: Published + /// + [EnumMember(Value = "Published")] + Published = 2, + + /// + /// Enum Unpublished for value: Unpublished + /// + [EnumMember(Value = "Unpublished")] + Unpublished = 3 + } + + /// + /// Mobile App Status + /// + /// Mobile App Status + [DataMember(Name="AppStatus", EmitDefaultValue=false)] + public AppStatusEnum? AppStatus { get; set; } + /// + /// Mobile App Status + /// + /// Mobile App Status + [JsonConverter(typeof(StringEnumConverter))] + public enum UpdateStatusEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Submitted for value: Submitted + /// + [EnumMember(Value = "Submitted")] + Submitted = 2, + + /// + /// Enum InReview for value: InReview + /// + [EnumMember(Value = "InReview")] + InReview = 3, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 4, + + /// + /// Enum Approved for value: Approved + /// + [EnumMember(Value = "Approved")] + Approved = 5, + + /// + /// Enum Published for value: Published + /// + [EnumMember(Value = "Published")] + Published = 6 + } + + /// + /// Mobile App Status + /// + /// Mobile App Status + [DataMember(Name="UpdateStatus", EmitDefaultValue=false)] + public UpdateStatusEnum? UpdateStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Mobile Apps Submission Status Id. + /// Mobile Type. + /// Mobile App Status. + /// Mobile App Status. + /// Mobile LastUpdateStatusTime. + /// Mobile Notes. + public UpdateMobileAppsSubmissionStatus(int? mobileAppsSubmissionStatusId = default(int?), TypeEnum? type = default(TypeEnum?), AppStatusEnum? appStatus = default(AppStatusEnum?), UpdateStatusEnum? updateStatus = default(UpdateStatusEnum?), DateTime? lastUpdateStatusTime = default(DateTime?), string notes = default(string)) + { + this.MobileAppsSubmissionStatusId = mobileAppsSubmissionStatusId; + this.Type = type; + this.AppStatus = appStatus; + this.UpdateStatus = updateStatus; + this.LastUpdateStatusTime = lastUpdateStatusTime; + this.Notes = notes; + } + + /// + /// Mobile Apps Submission Status Id + /// + /// Mobile Apps Submission Status Id + [DataMember(Name="MobileAppsSubmissionStatusId", EmitDefaultValue=false)] + public int? MobileAppsSubmissionStatusId { get; set; } + + + + + /// + /// Mobile LastUpdateStatusTime + /// + /// Mobile LastUpdateStatusTime + [DataMember(Name="LastUpdateStatusTime", EmitDefaultValue=false)] + public DateTime? LastUpdateStatusTime { get; set; } + + /// + /// Mobile Notes + /// + /// Mobile Notes + [DataMember(Name="Notes", EmitDefaultValue=false)] + public string Notes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateMobileAppsSubmissionStatus {\n"); + sb.Append(" MobileAppsSubmissionStatusId: ").Append(MobileAppsSubmissionStatusId).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" AppStatus: ").Append(AppStatus).Append("\n"); + sb.Append(" UpdateStatus: ").Append(UpdateStatus).Append("\n"); + sb.Append(" LastUpdateStatusTime: ").Append(LastUpdateStatusTime).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateMobileAppsSubmissionStatus); + } + + /// + /// Returns true if UpdateMobileAppsSubmissionStatus instances are equal + /// + /// Instance of UpdateMobileAppsSubmissionStatus to be compared + /// Boolean + public bool Equals(UpdateMobileAppsSubmissionStatus input) + { + if (input == null) + return false; + + return + ( + this.MobileAppsSubmissionStatusId == input.MobileAppsSubmissionStatusId || + (this.MobileAppsSubmissionStatusId != null && + this.MobileAppsSubmissionStatusId.Equals(input.MobileAppsSubmissionStatusId)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.AppStatus == input.AppStatus || + (this.AppStatus != null && + this.AppStatus.Equals(input.AppStatus)) + ) && + ( + this.UpdateStatus == input.UpdateStatus || + (this.UpdateStatus != null && + this.UpdateStatus.Equals(input.UpdateStatus)) + ) && + ( + this.LastUpdateStatusTime == input.LastUpdateStatusTime || + (this.LastUpdateStatusTime != null && + this.LastUpdateStatusTime.Equals(input.LastUpdateStatusTime)) + ) && + ( + this.Notes == input.Notes || + (this.Notes != null && + this.Notes.Equals(input.Notes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MobileAppsSubmissionStatusId != null) + hashCode = hashCode * 59 + this.MobileAppsSubmissionStatusId.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.AppStatus != null) + hashCode = hashCode * 59 + this.AppStatus.GetHashCode(); + if (this.UpdateStatus != null) + hashCode = hashCode * 59 + this.UpdateStatus.GetHashCode(); + if (this.LastUpdateStatusTime != null) + hashCode = hashCode * 59 + this.LastUpdateStatusTime.GetHashCode(); + if (this.Notes != null) + hashCode = hashCode * 59 + this.Notes.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs b/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs new file mode 100644 index 00000000..4d4dfff7 --- /dev/null +++ b/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdatePayGreenConfigurationRequest. + /// + [DataContract] + public partial class UpdatePayGreenConfigurationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Name.. + /// AssignedStores.. + public UpdatePayGreenConfigurationRequest(string name = default(string), List assignedStores = default(List)) + { + this.Name = name; + this.AssignedStores = assignedStores; + } + + /// + /// Name. + /// + /// Name. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// AssignedStores. + /// + /// AssignedStores. + [DataMember(Name="AssignedStores", EmitDefaultValue=false)] + public List AssignedStores { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdatePayGreenConfigurationRequest {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AssignedStores: ").Append(AssignedStores).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdatePayGreenConfigurationRequest); + } + + /// + /// Returns true if UpdatePayGreenConfigurationRequest instances are equal + /// + /// Instance of UpdatePayGreenConfigurationRequest to be compared + /// Boolean + public bool Equals(UpdatePayGreenConfigurationRequest input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.AssignedStores == input.AssignedStores || + this.AssignedStores != null && + this.AssignedStores.SequenceEqual(input.AssignedStores) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.AssignedStores != null) + hashCode = hashCode * 59 + this.AssignedStores.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateProduct.cs b/src/Flipdish/Model/UpdateProduct.cs new file mode 100644 index 00000000..b492426a --- /dev/null +++ b/src/Flipdish/Model/UpdateProduct.cs @@ -0,0 +1,232 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Product + /// + [DataContract] + public partial class UpdateProduct : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Stock Keeping Unit (SKU). + /// Product name. + /// Product description. + /// Product price. + /// Image File Name. + /// Product contains alcohol. + /// Collection of groups associated with this item. + /// Collection of metafields. + public UpdateProduct(string sku = default(string), string name = default(string), string description = default(string), double? price = default(double?), string imageFileName = default(string), bool? alcohol = default(bool?), List groups = default(List), List metafields = default(List)) + { + this.Sku = sku; + this.Name = name; + this.Description = description; + this.Price = price; + this.ImageFileName = imageFileName; + this.Alcohol = alcohol; + this.Groups = groups; + this.Metafields = metafields; + } + + /// + /// Stock Keeping Unit (SKU) + /// + /// Stock Keeping Unit (SKU) + [DataMember(Name="Sku", EmitDefaultValue=false)] + public string Sku { get; set; } + + /// + /// Product name + /// + /// Product name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Product description + /// + /// Product description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Product price + /// + /// Product price + [DataMember(Name="Price", EmitDefaultValue=false)] + public double? Price { get; set; } + + /// + /// Image File Name + /// + /// Image File Name + [DataMember(Name="ImageFileName", EmitDefaultValue=false)] + public string ImageFileName { get; set; } + + /// + /// Product contains alcohol + /// + /// Product contains alcohol + [DataMember(Name="Alcohol", EmitDefaultValue=false)] + public bool? Alcohol { get; set; } + + /// + /// Collection of groups associated with this item + /// + /// Collection of groups associated with this item + [DataMember(Name="Groups", EmitDefaultValue=false)] + public List Groups { get; set; } + + /// + /// Collection of metafields + /// + /// Collection of metafields + [DataMember(Name="Metafields", EmitDefaultValue=false)] + public List Metafields { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateProduct {\n"); + sb.Append(" Sku: ").Append(Sku).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Price: ").Append(Price).Append("\n"); + sb.Append(" ImageFileName: ").Append(ImageFileName).Append("\n"); + sb.Append(" Alcohol: ").Append(Alcohol).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Metafields: ").Append(Metafields).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateProduct); + } + + /// + /// Returns true if UpdateProduct instances are equal + /// + /// Instance of UpdateProduct to be compared + /// Boolean + public bool Equals(UpdateProduct input) + { + if (input == null) + return false; + + return + ( + this.Sku == input.Sku || + (this.Sku != null && + this.Sku.Equals(input.Sku)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) + ) && + ( + this.ImageFileName == input.ImageFileName || + (this.ImageFileName != null && + this.ImageFileName.Equals(input.ImageFileName)) + ) && + ( + this.Alcohol == input.Alcohol || + (this.Alcohol != null && + this.Alcohol.Equals(input.Alcohol)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Metafields == input.Metafields || + this.Metafields != null && + this.Metafields.SequenceEqual(input.Metafields) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sku != null) + hashCode = hashCode * 59 + this.Sku.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); + if (this.ImageFileName != null) + hashCode = hashCode * 59 + this.ImageFileName.GetHashCode(); + if (this.Alcohol != null) + hashCode = hashCode * 59 + this.Alcohol.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Metafields != null) + hashCode = hashCode * 59 + this.Metafields.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateProductReference.cs b/src/Flipdish/Model/UpdateProductReference.cs new file mode 100644 index 00000000..a510fb9b --- /dev/null +++ b/src/Flipdish/Model/UpdateProductReference.cs @@ -0,0 +1,189 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.UpdateProductReference} + /// + [DataContract] + public partial class UpdateProductReference : IEquatable + { + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + + /// + /// Enum Product for value: Product + /// + [EnumMember(Value = "Product")] + Product = 1, + + /// + /// Enum Modifier for value: Modifier + /// + [EnumMember(Value = "Modifier")] + Modifier = 2 + } + + /// + /// Type of the SupProduct + /// + /// Type of the SupProduct + [DataMember(Name="ProductType", EmitDefaultValue=false)] + public ProductTypeEnum ProductType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateProductReference() { } + /// + /// Initializes a new instance of the class. + /// + /// Identifier of the CatalogItemId to use as SubProduct (required). + /// Type of the SupProduct (required). + /// Quantity of the modifier that will be set when the parent product is placed in the basket. + public UpdateProductReference(string catalogItemId = default(string), ProductTypeEnum productType = default(ProductTypeEnum), int? preselectedQuantity = default(int?)) + { + // to ensure "catalogItemId" is required (not null) + if (catalogItemId == null) + { + throw new InvalidDataException("catalogItemId is a required property for UpdateProductReference and cannot be null"); + } + else + { + this.CatalogItemId = catalogItemId; + } + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new InvalidDataException("productType is a required property for UpdateProductReference and cannot be null"); + } + else + { + this.ProductType = productType; + } + this.PreselectedQuantity = preselectedQuantity; + } + + /// + /// Identifier of the CatalogItemId to use as SubProduct + /// + /// Identifier of the CatalogItemId to use as SubProduct + [DataMember(Name="CatalogItemId", EmitDefaultValue=false)] + public string CatalogItemId { get; set; } + + + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + /// + /// Quantity of the modifier that will be set when the parent product is placed in the basket + [DataMember(Name="PreselectedQuantity", EmitDefaultValue=false)] + public int? PreselectedQuantity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateProductReference {\n"); + sb.Append(" CatalogItemId: ").Append(CatalogItemId).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" PreselectedQuantity: ").Append(PreselectedQuantity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateProductReference); + } + + /// + /// Returns true if UpdateProductReference instances are equal + /// + /// Instance of UpdateProductReference to be compared + /// Boolean + public bool Equals(UpdateProductReference input) + { + if (input == null) + return false; + + return + ( + this.CatalogItemId == input.CatalogItemId || + (this.CatalogItemId != null && + this.CatalogItemId.Equals(input.CatalogItemId)) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.PreselectedQuantity == input.PreselectedQuantity || + (this.PreselectedQuantity != null && + this.PreselectedQuantity.Equals(input.PreselectedQuantity)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CatalogItemId != null) + hashCode = hashCode * 59 + this.CatalogItemId.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.PreselectedQuantity != null) + hashCode = hashCode * 59 + this.PreselectedQuantity.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs b/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs new file mode 100644 index 00000000..bf5f3844 --- /dev/null +++ b/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// UpdateStorePayGreenConfigurationRequest. + /// + [DataContract] + public partial class UpdateStorePayGreenConfigurationRequest : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Active.. + /// PayGreenConfigurationId.. + public UpdateStorePayGreenConfigurationRequest(bool? active = default(bool?), int? payGreenConfigurationId = default(int?)) + { + this.Active = active; + this.PayGreenConfigurationId = payGreenConfigurationId; + } + + /// + /// Active. + /// + /// Active. + [DataMember(Name="Active", EmitDefaultValue=false)] + public bool? Active { get; set; } + + /// + /// PayGreenConfigurationId. + /// + /// PayGreenConfigurationId. + [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] + public int? PayGreenConfigurationId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateStorePayGreenConfigurationRequest {\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" PayGreenConfigurationId: ").Append(PayGreenConfigurationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateStorePayGreenConfigurationRequest); + } + + /// + /// Returns true if UpdateStorePayGreenConfigurationRequest instances are equal + /// + /// Instance of UpdateStorePayGreenConfigurationRequest to be compared + /// Boolean + public bool Equals(UpdateStorePayGreenConfigurationRequest input) + { + if (input == null) + return false; + + return + ( + this.Active == input.Active || + (this.Active != null && + this.Active.Equals(input.Active)) + ) && + ( + this.PayGreenConfigurationId == input.PayGreenConfigurationId || + (this.PayGreenConfigurationId != null && + this.PayGreenConfigurationId.Equals(input.PayGreenConfigurationId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Active != null) + hashCode = hashCode * 59 + this.Active.GetHashCode(); + if (this.PayGreenConfigurationId != null) + hashCode = hashCode * 59 + this.PayGreenConfigurationId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateTipConfiguration.cs b/src/Flipdish/Model/UpdateTipConfiguration.cs new file mode 100644 index 00000000..f5b8dc68 --- /dev/null +++ b/src/Flipdish/Model/UpdateTipConfiguration.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Describes the configuration of tipping + /// + [DataContract] + public partial class UpdateTipConfiguration : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Are tips enabled?. + /// Are custom tips allowed?. + /// Is round up allowed?. + /// Are emojis allowed?. + /// Ordered list of tip breakpoints (smallest -&gt; largest). + /// Defines a default percentage, it must be in the list of Percentages. + public UpdateTipConfiguration(bool? isEnabled = default(bool?), bool? allowCustomTips = default(bool?), bool? allowRoundUp = default(bool?), bool? allowEmojis = default(bool?), List percentages = default(List), double? defaultPercentage = default(double?)) + { + this.IsEnabled = isEnabled; + this.AllowCustomTips = allowCustomTips; + this.AllowRoundUp = allowRoundUp; + this.AllowEmojis = allowEmojis; + this.Percentages = percentages; + this.DefaultPercentage = defaultPercentage; + } + + /// + /// Are tips enabled? + /// + /// Are tips enabled? + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Are custom tips allowed? + /// + /// Are custom tips allowed? + [DataMember(Name="AllowCustomTips", EmitDefaultValue=false)] + public bool? AllowCustomTips { get; set; } + + /// + /// Is round up allowed? + /// + /// Is round up allowed? + [DataMember(Name="AllowRoundUp", EmitDefaultValue=false)] + public bool? AllowRoundUp { get; set; } + + /// + /// Are emojis allowed? + /// + /// Are emojis allowed? + [DataMember(Name="AllowEmojis", EmitDefaultValue=false)] + public bool? AllowEmojis { get; set; } + + /// + /// Ordered list of tip breakpoints (smallest -&gt; largest) + /// + /// Ordered list of tip breakpoints (smallest -&gt; largest) + [DataMember(Name="Percentages", EmitDefaultValue=false)] + public List Percentages { get; set; } + + /// + /// Defines a default percentage, it must be in the list of Percentages + /// + /// Defines a default percentage, it must be in the list of Percentages + [DataMember(Name="DefaultPercentage", EmitDefaultValue=false)] + public double? DefaultPercentage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTipConfiguration {\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" AllowCustomTips: ").Append(AllowCustomTips).Append("\n"); + sb.Append(" AllowRoundUp: ").Append(AllowRoundUp).Append("\n"); + sb.Append(" AllowEmojis: ").Append(AllowEmojis).Append("\n"); + sb.Append(" Percentages: ").Append(Percentages).Append("\n"); + sb.Append(" DefaultPercentage: ").Append(DefaultPercentage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateTipConfiguration); + } + + /// + /// Returns true if UpdateTipConfiguration instances are equal + /// + /// Instance of UpdateTipConfiguration to be compared + /// Boolean + public bool Equals(UpdateTipConfiguration input) + { + if (input == null) + return false; + + return + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.AllowCustomTips == input.AllowCustomTips || + (this.AllowCustomTips != null && + this.AllowCustomTips.Equals(input.AllowCustomTips)) + ) && + ( + this.AllowRoundUp == input.AllowRoundUp || + (this.AllowRoundUp != null && + this.AllowRoundUp.Equals(input.AllowRoundUp)) + ) && + ( + this.AllowEmojis == input.AllowEmojis || + (this.AllowEmojis != null && + this.AllowEmojis.Equals(input.AllowEmojis)) + ) && + ( + this.Percentages == input.Percentages || + this.Percentages != null && + this.Percentages.SequenceEqual(input.Percentages) + ) && + ( + this.DefaultPercentage == input.DefaultPercentage || + (this.DefaultPercentage != null && + this.DefaultPercentage.Equals(input.DefaultPercentage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.AllowCustomTips != null) + hashCode = hashCode * 59 + this.AllowCustomTips.GetHashCode(); + if (this.AllowRoundUp != null) + hashCode = hashCode * 59 + this.AllowRoundUp.GetHashCode(); + if (this.AllowEmojis != null) + hashCode = hashCode * 59 + this.AllowEmojis.GetHashCode(); + if (this.Percentages != null) + hashCode = hashCode * 59 + this.Percentages.GetHashCode(); + if (this.DefaultPercentage != null) + hashCode = hashCode * 59 + this.DefaultPercentage.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateVoucher.cs b/src/Flipdish/Model/UpdateVoucher.cs new file mode 100644 index 00000000..1fb5373f --- /dev/null +++ b/src/Flipdish/Model/UpdateVoucher.cs @@ -0,0 +1,668 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Voucher + /// + [DataContract] + public partial class UpdateVoucher : IEquatable + { + /// + /// Defines ChannelRestrictions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelRestrictionsEnum + { + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 3, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 4, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 5, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 6 + } + + + /// + /// Limit the channels this voucher can be used on + /// + /// Limit the channels this voucher can be used on + [DataMember(Name="ChannelRestrictions", EmitDefaultValue=false)] + public List ChannelRestrictions { get; set; } + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherSubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [DataMember(Name="VoucherSubType", EmitDefaultValue=false)] + public VoucherSubTypeEnum? VoucherSubType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Promotion ID to update. + /// The updated name of the promotion. + /// The updated menu items that the promotion awards. + /// Voucher Code. + /// Voucher Description (Visible on printout). + /// Stores that this voucher applies to. + /// Valid on orders on or above. + /// Takes priority. + /// Is voucher enabled. + /// Is voucher automatically applied. + /// Include delivery fees. + /// Valid for delivery orders. + /// Valid for pickup orders. + /// Valid for orders payed online. + /// Valid for orders payed in cash. + /// Valid only on the first order by the customer. + /// Valid once per customer. + /// Valid only once, by any customer (once used cannot be used again by any other customer). + /// Enables the voucher to be offered in the Voucher Discoverability feature. + /// Marks the voucher as promoted. + /// Force the discount to be applied which bypasses some menu restrictions. + /// Voucher Starts On (Time in UTC). + /// Voucher Expires On (Time in UTC). + /// Limit the channels this voucher can be used on. + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.. + /// Voucher Subtype. + /// Customer UserID. + /// Maximum number of times the voucher can be redeemed (used). + public UpdateVoucher(int? promotionId = default(int?), string promotionName = default(string), List promotionAwardMenuItemPublicIds = default(List), string code = default(string), string description = default(string), List stores = default(List), double? validOnOrdersOver = default(double?), bool? takesPriority = default(bool?), bool? isEnabled = default(bool?), bool? isAutomaticallyApplied = default(bool?), bool? includeDeliveryFee = default(bool?), bool? isValidForDeliveryOrders = default(bool?), bool? isValidForPickupOrders = default(bool?), bool? isValidForOrdersPayedOnline = default(bool?), bool? isValidForOrdersPayedByCash = default(bool?), bool? isValidForFirstOrderOnly = default(bool?), bool? isValidOncePerCustomer = default(bool?), bool? isValidOnlyOnce = default(bool?), bool? isDiscoverable = default(bool?), bool? isPromoted = default(bool?), bool? forceDiscount = default(bool?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?), List channelRestrictions = default(List), List validityPeriods = default(List), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), int? customerId = default(int?), int? maxRedemptions = default(int?)) + { + this.PromotionId = promotionId; + this.PromotionName = promotionName; + this.PromotionAwardMenuItemPublicIds = promotionAwardMenuItemPublicIds; + this.Code = code; + this.Description = description; + this.Stores = stores; + this.ValidOnOrdersOver = validOnOrdersOver; + this.TakesPriority = takesPriority; + this.IsEnabled = isEnabled; + this.IsAutomaticallyApplied = isAutomaticallyApplied; + this.IncludeDeliveryFee = includeDeliveryFee; + this.IsValidForDeliveryOrders = isValidForDeliveryOrders; + this.IsValidForPickupOrders = isValidForPickupOrders; + this.IsValidForOrdersPayedOnline = isValidForOrdersPayedOnline; + this.IsValidForOrdersPayedByCash = isValidForOrdersPayedByCash; + this.IsValidForFirstOrderOnly = isValidForFirstOrderOnly; + this.IsValidOncePerCustomer = isValidOncePerCustomer; + this.IsValidOnlyOnce = isValidOnlyOnce; + this.IsDiscoverable = isDiscoverable; + this.IsPromoted = isPromoted; + this.ForceDiscount = forceDiscount; + this.StartDate = startDate; + this.ExpiryDate = expiryDate; + this.ChannelRestrictions = channelRestrictions; + this.ValidityPeriods = validityPeriods; + this.VoucherSubType = voucherSubType; + this.CustomerId = customerId; + this.MaxRedemptions = maxRedemptions; + } + + /// + /// Promotion ID to update + /// + /// Promotion ID to update + [DataMember(Name="PromotionId", EmitDefaultValue=false)] + public int? PromotionId { get; set; } + + /// + /// The updated name of the promotion + /// + /// The updated name of the promotion + [DataMember(Name="PromotionName", EmitDefaultValue=false)] + public string PromotionName { get; set; } + + /// + /// The updated menu items that the promotion awards + /// + /// The updated menu items that the promotion awards + [DataMember(Name="PromotionAwardMenuItemPublicIds", EmitDefaultValue=false)] + public List PromotionAwardMenuItemPublicIds { get; set; } + + /// + /// Voucher Code + /// + /// Voucher Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Voucher Description (Visible on printout) + /// + /// Voucher Description (Visible on printout) + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Valid on orders on or above + /// + /// Valid on orders on or above + [DataMember(Name="ValidOnOrdersOver", EmitDefaultValue=false)] + public double? ValidOnOrdersOver { get; set; } + + /// + /// Takes priority + /// + /// Takes priority + [DataMember(Name="TakesPriority", EmitDefaultValue=false)] + public bool? TakesPriority { get; set; } + + /// + /// Is voucher enabled + /// + /// Is voucher enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Is voucher automatically applied + /// + /// Is voucher automatically applied + [DataMember(Name="IsAutomaticallyApplied", EmitDefaultValue=false)] + public bool? IsAutomaticallyApplied { get; set; } + + /// + /// Include delivery fees + /// + /// Include delivery fees + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Valid for delivery orders + /// + /// Valid for delivery orders + [DataMember(Name="IsValidForDeliveryOrders", EmitDefaultValue=false)] + public bool? IsValidForDeliveryOrders { get; set; } + + /// + /// Valid for pickup orders + /// + /// Valid for pickup orders + [DataMember(Name="IsValidForPickupOrders", EmitDefaultValue=false)] + public bool? IsValidForPickupOrders { get; set; } + + /// + /// Valid for orders payed online + /// + /// Valid for orders payed online + [DataMember(Name="IsValidForOrdersPayedOnline", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedOnline { get; set; } + + /// + /// Valid for orders payed in cash + /// + /// Valid for orders payed in cash + [DataMember(Name="IsValidForOrdersPayedByCash", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedByCash { get; set; } + + /// + /// Valid only on the first order by the customer + /// + /// Valid only on the first order by the customer + [DataMember(Name="IsValidForFirstOrderOnly", EmitDefaultValue=false)] + public bool? IsValidForFirstOrderOnly { get; set; } + + /// + /// Valid once per customer + /// + /// Valid once per customer + [DataMember(Name="IsValidOncePerCustomer", EmitDefaultValue=false)] + public bool? IsValidOncePerCustomer { get; set; } + + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + [DataMember(Name="IsValidOnlyOnce", EmitDefaultValue=false)] + public bool? IsValidOnlyOnce { get; set; } + + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + [DataMember(Name="IsDiscoverable", EmitDefaultValue=false)] + public bool? IsDiscoverable { get; set; } + + /// + /// Marks the voucher as promoted + /// + /// Marks the voucher as promoted + [DataMember(Name="IsPromoted", EmitDefaultValue=false)] + public bool? IsPromoted { get; set; } + + /// + /// Force the discount to be applied which bypasses some menu restrictions + /// + /// Force the discount to be applied which bypasses some menu restrictions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Voucher Starts On (Time in UTC) + /// + /// Voucher Starts On (Time in UTC) + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// Voucher Expires On (Time in UTC) + /// + /// Voucher Expires On (Time in UTC) + [DataMember(Name="ExpiryDate", EmitDefaultValue=false)] + public DateTime? ExpiryDate { get; set; } + + + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + [DataMember(Name="ValidityPeriods", EmitDefaultValue=false)] + public List ValidityPeriods { get; set; } + + + /// + /// Customer UserID + /// + /// Customer UserID + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public int? CustomerId { get; set; } + + /// + /// Maximum number of times the voucher can be redeemed (used) + /// + /// Maximum number of times the voucher can be redeemed (used) + [DataMember(Name="MaxRedemptions", EmitDefaultValue=false)] + public int? MaxRedemptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateVoucher {\n"); + sb.Append(" PromotionId: ").Append(PromotionId).Append("\n"); + sb.Append(" PromotionName: ").Append(PromotionName).Append("\n"); + sb.Append(" PromotionAwardMenuItemPublicIds: ").Append(PromotionAwardMenuItemPublicIds).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" ValidOnOrdersOver: ").Append(ValidOnOrdersOver).Append("\n"); + sb.Append(" TakesPriority: ").Append(TakesPriority).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsAutomaticallyApplied: ").Append(IsAutomaticallyApplied).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" IsValidForDeliveryOrders: ").Append(IsValidForDeliveryOrders).Append("\n"); + sb.Append(" IsValidForPickupOrders: ").Append(IsValidForPickupOrders).Append("\n"); + sb.Append(" IsValidForOrdersPayedOnline: ").Append(IsValidForOrdersPayedOnline).Append("\n"); + sb.Append(" IsValidForOrdersPayedByCash: ").Append(IsValidForOrdersPayedByCash).Append("\n"); + sb.Append(" IsValidForFirstOrderOnly: ").Append(IsValidForFirstOrderOnly).Append("\n"); + sb.Append(" IsValidOncePerCustomer: ").Append(IsValidOncePerCustomer).Append("\n"); + sb.Append(" IsValidOnlyOnce: ").Append(IsValidOnlyOnce).Append("\n"); + sb.Append(" IsDiscoverable: ").Append(IsDiscoverable).Append("\n"); + sb.Append(" IsPromoted: ").Append(IsPromoted).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" ExpiryDate: ").Append(ExpiryDate).Append("\n"); + sb.Append(" ChannelRestrictions: ").Append(ChannelRestrictions).Append("\n"); + sb.Append(" ValidityPeriods: ").Append(ValidityPeriods).Append("\n"); + sb.Append(" VoucherSubType: ").Append(VoucherSubType).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" MaxRedemptions: ").Append(MaxRedemptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateVoucher); + } + + /// + /// Returns true if UpdateVoucher instances are equal + /// + /// Instance of UpdateVoucher to be compared + /// Boolean + public bool Equals(UpdateVoucher input) + { + if (input == null) + return false; + + return + ( + this.PromotionId == input.PromotionId || + (this.PromotionId != null && + this.PromotionId.Equals(input.PromotionId)) + ) && + ( + this.PromotionName == input.PromotionName || + (this.PromotionName != null && + this.PromotionName.Equals(input.PromotionName)) + ) && + ( + this.PromotionAwardMenuItemPublicIds == input.PromotionAwardMenuItemPublicIds || + this.PromotionAwardMenuItemPublicIds != null && + this.PromotionAwardMenuItemPublicIds.SequenceEqual(input.PromotionAwardMenuItemPublicIds) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.ValidOnOrdersOver == input.ValidOnOrdersOver || + (this.ValidOnOrdersOver != null && + this.ValidOnOrdersOver.Equals(input.ValidOnOrdersOver)) + ) && + ( + this.TakesPriority == input.TakesPriority || + (this.TakesPriority != null && + this.TakesPriority.Equals(input.TakesPriority)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsAutomaticallyApplied == input.IsAutomaticallyApplied || + (this.IsAutomaticallyApplied != null && + this.IsAutomaticallyApplied.Equals(input.IsAutomaticallyApplied)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.IsValidForDeliveryOrders == input.IsValidForDeliveryOrders || + (this.IsValidForDeliveryOrders != null && + this.IsValidForDeliveryOrders.Equals(input.IsValidForDeliveryOrders)) + ) && + ( + this.IsValidForPickupOrders == input.IsValidForPickupOrders || + (this.IsValidForPickupOrders != null && + this.IsValidForPickupOrders.Equals(input.IsValidForPickupOrders)) + ) && + ( + this.IsValidForOrdersPayedOnline == input.IsValidForOrdersPayedOnline || + (this.IsValidForOrdersPayedOnline != null && + this.IsValidForOrdersPayedOnline.Equals(input.IsValidForOrdersPayedOnline)) + ) && + ( + this.IsValidForOrdersPayedByCash == input.IsValidForOrdersPayedByCash || + (this.IsValidForOrdersPayedByCash != null && + this.IsValidForOrdersPayedByCash.Equals(input.IsValidForOrdersPayedByCash)) + ) && + ( + this.IsValidForFirstOrderOnly == input.IsValidForFirstOrderOnly || + (this.IsValidForFirstOrderOnly != null && + this.IsValidForFirstOrderOnly.Equals(input.IsValidForFirstOrderOnly)) + ) && + ( + this.IsValidOncePerCustomer == input.IsValidOncePerCustomer || + (this.IsValidOncePerCustomer != null && + this.IsValidOncePerCustomer.Equals(input.IsValidOncePerCustomer)) + ) && + ( + this.IsValidOnlyOnce == input.IsValidOnlyOnce || + (this.IsValidOnlyOnce != null && + this.IsValidOnlyOnce.Equals(input.IsValidOnlyOnce)) + ) && + ( + this.IsDiscoverable == input.IsDiscoverable || + (this.IsDiscoverable != null && + this.IsDiscoverable.Equals(input.IsDiscoverable)) + ) && + ( + this.IsPromoted == input.IsPromoted || + (this.IsPromoted != null && + this.IsPromoted.Equals(input.IsPromoted)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.ExpiryDate == input.ExpiryDate || + (this.ExpiryDate != null && + this.ExpiryDate.Equals(input.ExpiryDate)) + ) && + ( + this.ChannelRestrictions == input.ChannelRestrictions || + this.ChannelRestrictions != null && + this.ChannelRestrictions.SequenceEqual(input.ChannelRestrictions) + ) && + ( + this.ValidityPeriods == input.ValidityPeriods || + this.ValidityPeriods != null && + this.ValidityPeriods.SequenceEqual(input.ValidityPeriods) + ) && + ( + this.VoucherSubType == input.VoucherSubType || + (this.VoucherSubType != null && + this.VoucherSubType.Equals(input.VoucherSubType)) + ) && + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ) && + ( + this.MaxRedemptions == input.MaxRedemptions || + (this.MaxRedemptions != null && + this.MaxRedemptions.Equals(input.MaxRedemptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PromotionId != null) + hashCode = hashCode * 59 + this.PromotionId.GetHashCode(); + if (this.PromotionName != null) + hashCode = hashCode * 59 + this.PromotionName.GetHashCode(); + if (this.PromotionAwardMenuItemPublicIds != null) + hashCode = hashCode * 59 + this.PromotionAwardMenuItemPublicIds.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.ValidOnOrdersOver != null) + hashCode = hashCode * 59 + this.ValidOnOrdersOver.GetHashCode(); + if (this.TakesPriority != null) + hashCode = hashCode * 59 + this.TakesPriority.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsAutomaticallyApplied != null) + hashCode = hashCode * 59 + this.IsAutomaticallyApplied.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.IsValidForDeliveryOrders != null) + hashCode = hashCode * 59 + this.IsValidForDeliveryOrders.GetHashCode(); + if (this.IsValidForPickupOrders != null) + hashCode = hashCode * 59 + this.IsValidForPickupOrders.GetHashCode(); + if (this.IsValidForOrdersPayedOnline != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedOnline.GetHashCode(); + if (this.IsValidForOrdersPayedByCash != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedByCash.GetHashCode(); + if (this.IsValidForFirstOrderOnly != null) + hashCode = hashCode * 59 + this.IsValidForFirstOrderOnly.GetHashCode(); + if (this.IsValidOncePerCustomer != null) + hashCode = hashCode * 59 + this.IsValidOncePerCustomer.GetHashCode(); + if (this.IsValidOnlyOnce != null) + hashCode = hashCode * 59 + this.IsValidOnlyOnce.GetHashCode(); + if (this.IsDiscoverable != null) + hashCode = hashCode * 59 + this.IsDiscoverable.GetHashCode(); + if (this.IsPromoted != null) + hashCode = hashCode * 59 + this.IsPromoted.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.ExpiryDate != null) + hashCode = hashCode * 59 + this.ExpiryDate.GetHashCode(); + if (this.ChannelRestrictions != null) + hashCode = hashCode * 59 + this.ChannelRestrictions.GetHashCode(); + if (this.ValidityPeriods != null) + hashCode = hashCode * 59 + this.ValidityPeriods.GetHashCode(); + if (this.VoucherSubType != null) + hashCode = hashCode * 59 + this.VoucherSubType.GetHashCode(); + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + if (this.MaxRedemptions != null) + hashCode = hashCode * 59 + this.MaxRedemptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UpdateVoucherUsage.cs b/src/Flipdish/Model/UpdateVoucherUsage.cs new file mode 100644 index 00000000..ab2063ed --- /dev/null +++ b/src/Flipdish/Model/UpdateVoucherUsage.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Update Voucher Usage + /// + [DataContract] + public partial class UpdateVoucherUsage : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Flag indicating whether the voucher is used. + /// Indicates Customer that used the voucher.. + /// An opaque string, to ensure idempotency. This allows for safely retrying requests without accidentally performing the same stamp operation twice. This will typically contain the the ID of the sale order.. + public UpdateVoucherUsage(bool? isUsed = default(bool?), int? usedByCustomerId = default(int?), string transactionKey = default(string)) + { + this.IsUsed = isUsed; + this.UsedByCustomerId = usedByCustomerId; + this.TransactionKey = transactionKey; + } + + /// + /// Flag indicating whether the voucher is used + /// + /// Flag indicating whether the voucher is used + [DataMember(Name="IsUsed", EmitDefaultValue=false)] + public bool? IsUsed { get; set; } + + /// + /// Indicates Customer that used the voucher. + /// + /// Indicates Customer that used the voucher. + [DataMember(Name="UsedByCustomerId", EmitDefaultValue=false)] + public int? UsedByCustomerId { get; set; } + + /// + /// An opaque string, to ensure idempotency. This allows for safely retrying requests without accidentally performing the same stamp operation twice. This will typically contain the the ID of the sale order. + /// + /// An opaque string, to ensure idempotency. This allows for safely retrying requests without accidentally performing the same stamp operation twice. This will typically contain the the ID of the sale order. + [DataMember(Name="TransactionKey", EmitDefaultValue=false)] + public string TransactionKey { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateVoucherUsage {\n"); + sb.Append(" IsUsed: ").Append(IsUsed).Append("\n"); + sb.Append(" UsedByCustomerId: ").Append(UsedByCustomerId).Append("\n"); + sb.Append(" TransactionKey: ").Append(TransactionKey).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateVoucherUsage); + } + + /// + /// Returns true if UpdateVoucherUsage instances are equal + /// + /// Instance of UpdateVoucherUsage to be compared + /// Boolean + public bool Equals(UpdateVoucherUsage input) + { + if (input == null) + return false; + + return + ( + this.IsUsed == input.IsUsed || + (this.IsUsed != null && + this.IsUsed.Equals(input.IsUsed)) + ) && + ( + this.UsedByCustomerId == input.UsedByCustomerId || + (this.UsedByCustomerId != null && + this.UsedByCustomerId.Equals(input.UsedByCustomerId)) + ) && + ( + this.TransactionKey == input.TransactionKey || + (this.TransactionKey != null && + this.TransactionKey.Equals(input.TransactionKey)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsUsed != null) + hashCode = hashCode * 59 + this.IsUsed.GetHashCode(); + if (this.UsedByCustomerId != null) + hashCode = hashCode * 59 + this.UsedByCustomerId.GetHashCode(); + if (this.TransactionKey != null) + hashCode = hashCode * 59 + this.TransactionKey.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserAnsweredSignupQuestionsEvent.cs b/src/Flipdish/Model/UserAnsweredSignupQuestionsEvent.cs new file mode 100644 index 00000000..0422539b --- /dev/null +++ b/src/Flipdish/Model/UserAnsweredSignupQuestionsEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User answered signup questions event + /// + [DataContract] + public partial class UserAnsweredSignupQuestionsEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// The user. + /// The users answers. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserAnsweredSignupQuestionsEvent(string eventName = default(string), UserEventInfo user = default(UserEventInfo), string signupAnswers = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.User = user; + this.SignupAnswers = signupAnswers; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The users answers + /// + /// The users answers + [DataMember(Name="SignupAnswers", EmitDefaultValue=false)] + public string SignupAnswers { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserAnsweredSignupQuestionsEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" SignupAnswers: ").Append(SignupAnswers).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserAnsweredSignupQuestionsEvent); + } + + /// + /// Returns true if UserAnsweredSignupQuestionsEvent instances are equal + /// + /// Instance of UserAnsweredSignupQuestionsEvent to be compared + /// Boolean + public bool Equals(UserAnsweredSignupQuestionsEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.SignupAnswers == input.SignupAnswers || + (this.SignupAnswers != null && + this.SignupAnswers.Equals(input.SignupAnswers)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.SignupAnswers != null) + hashCode = hashCode * 59 + this.SignupAnswers.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserCreatedEvent.cs b/src/Flipdish/Model/UserCreatedEvent.cs new file mode 100644 index 00000000..ec8819f2 --- /dev/null +++ b/src/Flipdish/Model/UserCreatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User created event + /// + [DataContract] + public partial class UserCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The user. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserCreatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserCreatedEvent); + } + + /// + /// Returns true if UserCreatedEvent instances are equal + /// + /// Instance of UserCreatedEvent to be compared + /// Boolean + public bool Equals(UserCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserDeletedEvent.cs b/src/Flipdish/Model/UserDeletedEvent.cs new file mode 100644 index 00000000..b473b0a2 --- /dev/null +++ b/src/Flipdish/Model/UserDeletedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User deleted event + /// + [DataContract] + public partial class UserDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The user. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserDeletedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserDeletedEvent); + } + + /// + /// Returns true if UserDeletedEvent instances are equal + /// + /// Instance of UserDeletedEvent to be compared + /// Boolean + public bool Equals(UserDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserDeliveryLocationAdmin.cs b/src/Flipdish/Model/UserDeliveryLocationAdmin.cs new file mode 100644 index 00000000..5bd4791a --- /dev/null +++ b/src/Flipdish/Model/UserDeliveryLocationAdmin.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Delivery location with identifiers for admin user management. + /// + [DataContract] + public partial class UserDeliveryLocationAdmin : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// DeliveryLocationId.. + /// Building.. + /// Street.. + /// Town.. + /// PostCode.. + /// DeliveryInstructions.. + /// AutoSelectThisLocation.. + /// IsDisplayed.. + /// IsConfirmed.. + /// Coordinates.. + public UserDeliveryLocationAdmin(int? deliveryLocationId = default(int?), string building = default(string), string street = default(string), string town = default(string), string postCode = default(string), string deliveryInstructions = default(string), bool? autoSelectThisLocation = default(bool?), bool? isDisplayed = default(bool?), bool? isConfirmed = default(bool?), Coordinates coordinates = default(Coordinates)) + { + this.DeliveryLocationId = deliveryLocationId; + this.Building = building; + this.Street = street; + this.Town = town; + this.PostCode = postCode; + this.DeliveryInstructions = deliveryInstructions; + this.AutoSelectThisLocation = autoSelectThisLocation; + this.IsDisplayed = isDisplayed; + this.IsConfirmed = isConfirmed; + this.Coordinates = coordinates; + } + + /// + /// DeliveryLocationId. + /// + /// DeliveryLocationId. + [DataMember(Name="DeliveryLocationId", EmitDefaultValue=false)] + public int? DeliveryLocationId { get; set; } + + /// + /// Building. + /// + /// Building. + [DataMember(Name="Building", EmitDefaultValue=false)] + public string Building { get; set; } + + /// + /// Street. + /// + /// Street. + [DataMember(Name="Street", EmitDefaultValue=false)] + public string Street { get; set; } + + /// + /// Town. + /// + /// Town. + [DataMember(Name="Town", EmitDefaultValue=false)] + public string Town { get; set; } + + /// + /// PostCode. + /// + /// PostCode. + [DataMember(Name="PostCode", EmitDefaultValue=false)] + public string PostCode { get; set; } + + /// + /// DeliveryInstructions. + /// + /// DeliveryInstructions. + [DataMember(Name="DeliveryInstructions", EmitDefaultValue=false)] + public string DeliveryInstructions { get; set; } + + /// + /// AutoSelectThisLocation. + /// + /// AutoSelectThisLocation. + [DataMember(Name="AutoSelectThisLocation", EmitDefaultValue=false)] + public bool? AutoSelectThisLocation { get; set; } + + /// + /// IsDisplayed. + /// + /// IsDisplayed. + [DataMember(Name="IsDisplayed", EmitDefaultValue=false)] + public bool? IsDisplayed { get; set; } + + /// + /// IsConfirmed. + /// + /// IsConfirmed. + [DataMember(Name="IsConfirmed", EmitDefaultValue=false)] + public bool? IsConfirmed { get; set; } + + /// + /// Coordinates. + /// + /// Coordinates. + [DataMember(Name="Coordinates", EmitDefaultValue=false)] + public Coordinates Coordinates { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserDeliveryLocationAdmin {\n"); + sb.Append(" DeliveryLocationId: ").Append(DeliveryLocationId).Append("\n"); + sb.Append(" Building: ").Append(Building).Append("\n"); + sb.Append(" Street: ").Append(Street).Append("\n"); + sb.Append(" Town: ").Append(Town).Append("\n"); + sb.Append(" PostCode: ").Append(PostCode).Append("\n"); + sb.Append(" DeliveryInstructions: ").Append(DeliveryInstructions).Append("\n"); + sb.Append(" AutoSelectThisLocation: ").Append(AutoSelectThisLocation).Append("\n"); + sb.Append(" IsDisplayed: ").Append(IsDisplayed).Append("\n"); + sb.Append(" IsConfirmed: ").Append(IsConfirmed).Append("\n"); + sb.Append(" Coordinates: ").Append(Coordinates).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserDeliveryLocationAdmin); + } + + /// + /// Returns true if UserDeliveryLocationAdmin instances are equal + /// + /// Instance of UserDeliveryLocationAdmin to be compared + /// Boolean + public bool Equals(UserDeliveryLocationAdmin input) + { + if (input == null) + return false; + + return + ( + this.DeliveryLocationId == input.DeliveryLocationId || + (this.DeliveryLocationId != null && + this.DeliveryLocationId.Equals(input.DeliveryLocationId)) + ) && + ( + this.Building == input.Building || + (this.Building != null && + this.Building.Equals(input.Building)) + ) && + ( + this.Street == input.Street || + (this.Street != null && + this.Street.Equals(input.Street)) + ) && + ( + this.Town == input.Town || + (this.Town != null && + this.Town.Equals(input.Town)) + ) && + ( + this.PostCode == input.PostCode || + (this.PostCode != null && + this.PostCode.Equals(input.PostCode)) + ) && + ( + this.DeliveryInstructions == input.DeliveryInstructions || + (this.DeliveryInstructions != null && + this.DeliveryInstructions.Equals(input.DeliveryInstructions)) + ) && + ( + this.AutoSelectThisLocation == input.AutoSelectThisLocation || + (this.AutoSelectThisLocation != null && + this.AutoSelectThisLocation.Equals(input.AutoSelectThisLocation)) + ) && + ( + this.IsDisplayed == input.IsDisplayed || + (this.IsDisplayed != null && + this.IsDisplayed.Equals(input.IsDisplayed)) + ) && + ( + this.IsConfirmed == input.IsConfirmed || + (this.IsConfirmed != null && + this.IsConfirmed.Equals(input.IsConfirmed)) + ) && + ( + this.Coordinates == input.Coordinates || + (this.Coordinates != null && + this.Coordinates.Equals(input.Coordinates)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryLocationId != null) + hashCode = hashCode * 59 + this.DeliveryLocationId.GetHashCode(); + if (this.Building != null) + hashCode = hashCode * 59 + this.Building.GetHashCode(); + if (this.Street != null) + hashCode = hashCode * 59 + this.Street.GetHashCode(); + if (this.Town != null) + hashCode = hashCode * 59 + this.Town.GetHashCode(); + if (this.PostCode != null) + hashCode = hashCode * 59 + this.PostCode.GetHashCode(); + if (this.DeliveryInstructions != null) + hashCode = hashCode * 59 + this.DeliveryInstructions.GetHashCode(); + if (this.AutoSelectThisLocation != null) + hashCode = hashCode * 59 + this.AutoSelectThisLocation.GetHashCode(); + if (this.IsDisplayed != null) + hashCode = hashCode * 59 + this.IsDisplayed.GetHashCode(); + if (this.IsConfirmed != null) + hashCode = hashCode * 59 + this.IsConfirmed.GetHashCode(); + if (this.Coordinates != null) + hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserEventInfo.cs b/src/Flipdish/Model/UserEventInfo.cs new file mode 100644 index 00000000..4412562b --- /dev/null +++ b/src/Flipdish/Model/UserEventInfo.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User Event Info + /// + [DataContract] + public partial class UserEventInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// User Id. + /// User Name. + /// User Phone Number. + /// User Email. + public UserEventInfo(int? userId = default(int?), string userName = default(string), string userPhoneNumber = default(string), string userEmail = default(string)) + { + this.UserId = userId; + this.UserName = userName; + this.UserPhoneNumber = userPhoneNumber; + this.UserEmail = userEmail; + } + + /// + /// User Id + /// + /// User Id + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// User Name + /// + /// User Name + [DataMember(Name="UserName", EmitDefaultValue=false)] + public string UserName { get; set; } + + /// + /// User Phone Number + /// + /// User Phone Number + [DataMember(Name="UserPhoneNumber", EmitDefaultValue=false)] + public string UserPhoneNumber { get; set; } + + /// + /// User Email + /// + /// User Email + [DataMember(Name="UserEmail", EmitDefaultValue=false)] + public string UserEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserEventInfo {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" UserName: ").Append(UserName).Append("\n"); + sb.Append(" UserPhoneNumber: ").Append(UserPhoneNumber).Append("\n"); + sb.Append(" UserEmail: ").Append(UserEmail).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserEventInfo); + } + + /// + /// Returns true if UserEventInfo instances are equal + /// + /// Instance of UserEventInfo to be compared + /// Boolean + public bool Equals(UserEventInfo input) + { + if (input == null) + return false; + + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.UserName == input.UserName || + (this.UserName != null && + this.UserName.Equals(input.UserName)) + ) && + ( + this.UserPhoneNumber == input.UserPhoneNumber || + (this.UserPhoneNumber != null && + this.UserPhoneNumber.Equals(input.UserPhoneNumber)) + ) && + ( + this.UserEmail == input.UserEmail || + (this.UserEmail != null && + this.UserEmail.Equals(input.UserEmail)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.UserName != null) + hashCode = hashCode * 59 + this.UserName.GetHashCode(); + if (this.UserPhoneNumber != null) + hashCode = hashCode * 59 + this.UserPhoneNumber.GetHashCode(); + if (this.UserEmail != null) + hashCode = hashCode * 59 + this.UserEmail.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserFlipdishAccount.cs b/src/Flipdish/Model/UserFlipdishAccount.cs new file mode 100644 index 00000000..46aa489a --- /dev/null +++ b/src/Flipdish/Model/UserFlipdishAccount.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Flipdish account information associated with a user + /// + [DataContract] + public partial class UserFlipdishAccount : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Payee Bank Account Data Id. + /// Flipdish Account Id. + /// Flipdish Account Name. + public UserFlipdishAccount(int? payeeBankAccountDataId = default(int?), int? flipdishAccountId = default(int?), string name = default(string)) + { + this.PayeeBankAccountDataId = payeeBankAccountDataId; + this.FlipdishAccountId = flipdishAccountId; + this.Name = name; + } + + /// + /// Payee Bank Account Data Id + /// + /// Payee Bank Account Data Id + [DataMember(Name="PayeeBankAccountDataId", EmitDefaultValue=false)] + public int? PayeeBankAccountDataId { get; set; } + + /// + /// Flipdish Account Id + /// + /// Flipdish Account Id + [DataMember(Name="FlipdishAccountId", EmitDefaultValue=false)] + public int? FlipdishAccountId { get; set; } + + /// + /// Flipdish Account Name + /// + /// Flipdish Account Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserFlipdishAccount {\n"); + sb.Append(" PayeeBankAccountDataId: ").Append(PayeeBankAccountDataId).Append("\n"); + sb.Append(" FlipdishAccountId: ").Append(FlipdishAccountId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserFlipdishAccount); + } + + /// + /// Returns true if UserFlipdishAccount instances are equal + /// + /// Instance of UserFlipdishAccount to be compared + /// Boolean + public bool Equals(UserFlipdishAccount input) + { + if (input == null) + return false; + + return + ( + this.PayeeBankAccountDataId == input.PayeeBankAccountDataId || + (this.PayeeBankAccountDataId != null && + this.PayeeBankAccountDataId.Equals(input.PayeeBankAccountDataId)) + ) && + ( + this.FlipdishAccountId == input.FlipdishAccountId || + (this.FlipdishAccountId != null && + this.FlipdishAccountId.Equals(input.FlipdishAccountId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PayeeBankAccountDataId != null) + hashCode = hashCode * 59 + this.PayeeBankAccountDataId.GetHashCode(); + if (this.FlipdishAccountId != null) + hashCode = hashCode * 59 + this.FlipdishAccountId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserInfo.cs b/src/Flipdish/Model/UserInfo.cs new file mode 100644 index 00000000..3b0e1ec3 --- /dev/null +++ b/src/Flipdish/Model/UserInfo.cs @@ -0,0 +1,555 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User information + /// + [DataContract] + public partial class UserInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The user's phone number.. + /// The user's email address.. + /// Indicates if the user's email address has been confirmed.. + /// Indicates if the user is prevented from using cards.. + /// Indicates if the user's phone number is blocked.. + /// List of white label information associated with the user.. + /// The unique identifier for the user.. + /// The user's username.. + /// The customer's name.. + /// Indicates if the user has logged in.. + /// Indicates if the app rating control is disabled for the user.. + /// Indicates if the user has globally opted out.. + /// The number of completed orders by the user.. + /// The number of cancelled orders by the user.. + /// The total value of orders placed by the user.. + /// The timestamp of the user's most recent order.. + /// The timestamp of the user's first order.. + /// Indicates if the user is a restaurant user.. + /// List of app installs associated with the user.. + /// List of delivery locations associated with the user.. + /// List of payment accounts associated with the user.. + /// The language identifier for the user.. + /// Current language name for the user.. + /// Available languages that the user can choose from.. + /// The Salesforce contact ID for the user.. + /// The Stripe customer ID for the user.. + /// User's monthly commissions.. + public UserInfo(string phoneNumber = default(string), string email = default(string), bool? emailConfirmed = default(bool?), bool? preventFromUsingCards = default(bool?), bool? isUserPhoneNumberBlocked = default(bool?), List userWhiteLabels = default(List), int? userId = default(int?), string userName = default(string), string customerName = default(string), bool? hasLoggedIn = default(bool?), bool? disableAppRatingControl = default(bool?), bool? globallyOptedOut = default(bool?), int? completedOrderCount = default(int?), int? cancelledOrderCount = default(int?), double? orderTotalValue = default(double?), DateTime? tsMostRecentOrder = default(DateTime?), DateTime? tsFirstOrder = default(DateTime?), bool? isRestaurantUser = default(bool?), List installs = default(List), List deliveryLocations = default(List), List paymentAccounts = default(List), string languageId = default(string), string currentLanguageName = default(string), List languages = default(List), string salesForceContactId = default(string), string stripeCustomerId = default(string), List userMonthlyCommissions = default(List)) + { + this.PhoneNumber = phoneNumber; + this.Email = email; + this.EmailConfirmed = emailConfirmed; + this.PreventFromUsingCards = preventFromUsingCards; + this.IsUserPhoneNumberBlocked = isUserPhoneNumberBlocked; + this.UserWhiteLabels = userWhiteLabels; + this.UserId = userId; + this.UserName = userName; + this.CustomerName = customerName; + this.HasLoggedIn = hasLoggedIn; + this.DisableAppRatingControl = disableAppRatingControl; + this.GloballyOptedOut = globallyOptedOut; + this.CompletedOrderCount = completedOrderCount; + this.CancelledOrderCount = cancelledOrderCount; + this.OrderTotalValue = orderTotalValue; + this.TsMostRecentOrder = tsMostRecentOrder; + this.TsFirstOrder = tsFirstOrder; + this.IsRestaurantUser = isRestaurantUser; + this.Installs = installs; + this.DeliveryLocations = deliveryLocations; + this.PaymentAccounts = paymentAccounts; + this.LanguageId = languageId; + this.CurrentLanguageName = currentLanguageName; + this.Languages = languages; + this.SalesForceContactId = salesForceContactId; + this.StripeCustomerId = stripeCustomerId; + this.UserMonthlyCommissions = userMonthlyCommissions; + } + + /// + /// The user's phone number. + /// + /// The user's phone number. + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// The user's email address. + /// + /// The user's email address. + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Indicates if the user's email address has been confirmed. + /// + /// Indicates if the user's email address has been confirmed. + [DataMember(Name="EmailConfirmed", EmitDefaultValue=false)] + public bool? EmailConfirmed { get; set; } + + /// + /// Indicates if the user is prevented from using cards. + /// + /// Indicates if the user is prevented from using cards. + [DataMember(Name="PreventFromUsingCards", EmitDefaultValue=false)] + public bool? PreventFromUsingCards { get; set; } + + /// + /// Indicates if the user's phone number is blocked. + /// + /// Indicates if the user's phone number is blocked. + [DataMember(Name="IsUserPhoneNumberBlocked", EmitDefaultValue=false)] + public bool? IsUserPhoneNumberBlocked { get; set; } + + /// + /// List of white label information associated with the user. + /// + /// List of white label information associated with the user. + [DataMember(Name="UserWhiteLabels", EmitDefaultValue=false)] + public List UserWhiteLabels { get; set; } + + /// + /// The unique identifier for the user. + /// + /// The unique identifier for the user. + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// The user's username. + /// + /// The user's username. + [DataMember(Name="UserName", EmitDefaultValue=false)] + public string UserName { get; set; } + + /// + /// The customer's name. + /// + /// The customer's name. + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public string CustomerName { get; set; } + + /// + /// Indicates if the user has logged in. + /// + /// Indicates if the user has logged in. + [DataMember(Name="HasLoggedIn", EmitDefaultValue=false)] + public bool? HasLoggedIn { get; set; } + + /// + /// Indicates if the app rating control is disabled for the user. + /// + /// Indicates if the app rating control is disabled for the user. + [DataMember(Name="DisableAppRatingControl", EmitDefaultValue=false)] + public bool? DisableAppRatingControl { get; set; } + + /// + /// Indicates if the user has globally opted out. + /// + /// Indicates if the user has globally opted out. + [DataMember(Name="GloballyOptedOut", EmitDefaultValue=false)] + public bool? GloballyOptedOut { get; set; } + + /// + /// The number of completed orders by the user. + /// + /// The number of completed orders by the user. + [DataMember(Name="CompletedOrderCount", EmitDefaultValue=false)] + public int? CompletedOrderCount { get; set; } + + /// + /// The number of cancelled orders by the user. + /// + /// The number of cancelled orders by the user. + [DataMember(Name="CancelledOrderCount", EmitDefaultValue=false)] + public int? CancelledOrderCount { get; set; } + + /// + /// The total value of orders placed by the user. + /// + /// The total value of orders placed by the user. + [DataMember(Name="OrderTotalValue", EmitDefaultValue=false)] + public double? OrderTotalValue { get; set; } + + /// + /// The timestamp of the user's most recent order. + /// + /// The timestamp of the user's most recent order. + [DataMember(Name="TsMostRecentOrder", EmitDefaultValue=false)] + public DateTime? TsMostRecentOrder { get; set; } + + /// + /// The timestamp of the user's first order. + /// + /// The timestamp of the user's first order. + [DataMember(Name="TsFirstOrder", EmitDefaultValue=false)] + public DateTime? TsFirstOrder { get; set; } + + /// + /// Indicates if the user is a restaurant user. + /// + /// Indicates if the user is a restaurant user. + [DataMember(Name="IsRestaurantUser", EmitDefaultValue=false)] + public bool? IsRestaurantUser { get; set; } + + /// + /// List of app installs associated with the user. + /// + /// List of app installs associated with the user. + [DataMember(Name="Installs", EmitDefaultValue=false)] + public List Installs { get; set; } + + /// + /// List of delivery locations associated with the user. + /// + /// List of delivery locations associated with the user. + [DataMember(Name="DeliveryLocations", EmitDefaultValue=false)] + public List DeliveryLocations { get; set; } + + /// + /// List of payment accounts associated with the user. + /// + /// List of payment accounts associated with the user. + [DataMember(Name="PaymentAccounts", EmitDefaultValue=false)] + public List PaymentAccounts { get; set; } + + /// + /// The language identifier for the user. + /// + /// The language identifier for the user. + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } + + /// + /// Current language name for the user. + /// + /// Current language name for the user. + [DataMember(Name="CurrentLanguageName", EmitDefaultValue=false)] + public string CurrentLanguageName { get; set; } + + /// + /// Available languages that the user can choose from. + /// + /// Available languages that the user can choose from. + [DataMember(Name="Languages", EmitDefaultValue=false)] + public List Languages { get; set; } + + /// + /// The Salesforce contact ID for the user. + /// + /// The Salesforce contact ID for the user. + [DataMember(Name="SalesForceContactId", EmitDefaultValue=false)] + public string SalesForceContactId { get; set; } + + /// + /// The Stripe customer ID for the user. + /// + /// The Stripe customer ID for the user. + [DataMember(Name="StripeCustomerId", EmitDefaultValue=false)] + public string StripeCustomerId { get; set; } + + /// + /// User's monthly commissions. + /// + /// User's monthly commissions. + [DataMember(Name="UserMonthlyCommissions", EmitDefaultValue=false)] + public List UserMonthlyCommissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserInfo {\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" EmailConfirmed: ").Append(EmailConfirmed).Append("\n"); + sb.Append(" PreventFromUsingCards: ").Append(PreventFromUsingCards).Append("\n"); + sb.Append(" IsUserPhoneNumberBlocked: ").Append(IsUserPhoneNumberBlocked).Append("\n"); + sb.Append(" UserWhiteLabels: ").Append(UserWhiteLabels).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" UserName: ").Append(UserName).Append("\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" HasLoggedIn: ").Append(HasLoggedIn).Append("\n"); + sb.Append(" DisableAppRatingControl: ").Append(DisableAppRatingControl).Append("\n"); + sb.Append(" GloballyOptedOut: ").Append(GloballyOptedOut).Append("\n"); + sb.Append(" CompletedOrderCount: ").Append(CompletedOrderCount).Append("\n"); + sb.Append(" CancelledOrderCount: ").Append(CancelledOrderCount).Append("\n"); + sb.Append(" OrderTotalValue: ").Append(OrderTotalValue).Append("\n"); + sb.Append(" TsMostRecentOrder: ").Append(TsMostRecentOrder).Append("\n"); + sb.Append(" TsFirstOrder: ").Append(TsFirstOrder).Append("\n"); + sb.Append(" IsRestaurantUser: ").Append(IsRestaurantUser).Append("\n"); + sb.Append(" Installs: ").Append(Installs).Append("\n"); + sb.Append(" DeliveryLocations: ").Append(DeliveryLocations).Append("\n"); + sb.Append(" PaymentAccounts: ").Append(PaymentAccounts).Append("\n"); + sb.Append(" LanguageId: ").Append(LanguageId).Append("\n"); + sb.Append(" CurrentLanguageName: ").Append(CurrentLanguageName).Append("\n"); + sb.Append(" Languages: ").Append(Languages).Append("\n"); + sb.Append(" SalesForceContactId: ").Append(SalesForceContactId).Append("\n"); + sb.Append(" StripeCustomerId: ").Append(StripeCustomerId).Append("\n"); + sb.Append(" UserMonthlyCommissions: ").Append(UserMonthlyCommissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserInfo); + } + + /// + /// Returns true if UserInfo instances are equal + /// + /// Instance of UserInfo to be compared + /// Boolean + public bool Equals(UserInfo input) + { + if (input == null) + return false; + + return + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.EmailConfirmed == input.EmailConfirmed || + (this.EmailConfirmed != null && + this.EmailConfirmed.Equals(input.EmailConfirmed)) + ) && + ( + this.PreventFromUsingCards == input.PreventFromUsingCards || + (this.PreventFromUsingCards != null && + this.PreventFromUsingCards.Equals(input.PreventFromUsingCards)) + ) && + ( + this.IsUserPhoneNumberBlocked == input.IsUserPhoneNumberBlocked || + (this.IsUserPhoneNumberBlocked != null && + this.IsUserPhoneNumberBlocked.Equals(input.IsUserPhoneNumberBlocked)) + ) && + ( + this.UserWhiteLabels == input.UserWhiteLabels || + this.UserWhiteLabels != null && + this.UserWhiteLabels.SequenceEqual(input.UserWhiteLabels) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.UserName == input.UserName || + (this.UserName != null && + this.UserName.Equals(input.UserName)) + ) && + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.HasLoggedIn == input.HasLoggedIn || + (this.HasLoggedIn != null && + this.HasLoggedIn.Equals(input.HasLoggedIn)) + ) && + ( + this.DisableAppRatingControl == input.DisableAppRatingControl || + (this.DisableAppRatingControl != null && + this.DisableAppRatingControl.Equals(input.DisableAppRatingControl)) + ) && + ( + this.GloballyOptedOut == input.GloballyOptedOut || + (this.GloballyOptedOut != null && + this.GloballyOptedOut.Equals(input.GloballyOptedOut)) + ) && + ( + this.CompletedOrderCount == input.CompletedOrderCount || + (this.CompletedOrderCount != null && + this.CompletedOrderCount.Equals(input.CompletedOrderCount)) + ) && + ( + this.CancelledOrderCount == input.CancelledOrderCount || + (this.CancelledOrderCount != null && + this.CancelledOrderCount.Equals(input.CancelledOrderCount)) + ) && + ( + this.OrderTotalValue == input.OrderTotalValue || + (this.OrderTotalValue != null && + this.OrderTotalValue.Equals(input.OrderTotalValue)) + ) && + ( + this.TsMostRecentOrder == input.TsMostRecentOrder || + (this.TsMostRecentOrder != null && + this.TsMostRecentOrder.Equals(input.TsMostRecentOrder)) + ) && + ( + this.TsFirstOrder == input.TsFirstOrder || + (this.TsFirstOrder != null && + this.TsFirstOrder.Equals(input.TsFirstOrder)) + ) && + ( + this.IsRestaurantUser == input.IsRestaurantUser || + (this.IsRestaurantUser != null && + this.IsRestaurantUser.Equals(input.IsRestaurantUser)) + ) && + ( + this.Installs == input.Installs || + this.Installs != null && + this.Installs.SequenceEqual(input.Installs) + ) && + ( + this.DeliveryLocations == input.DeliveryLocations || + this.DeliveryLocations != null && + this.DeliveryLocations.SequenceEqual(input.DeliveryLocations) + ) && + ( + this.PaymentAccounts == input.PaymentAccounts || + this.PaymentAccounts != null && + this.PaymentAccounts.SequenceEqual(input.PaymentAccounts) + ) && + ( + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) + ) && + ( + this.CurrentLanguageName == input.CurrentLanguageName || + (this.CurrentLanguageName != null && + this.CurrentLanguageName.Equals(input.CurrentLanguageName)) + ) && + ( + this.Languages == input.Languages || + this.Languages != null && + this.Languages.SequenceEqual(input.Languages) + ) && + ( + this.SalesForceContactId == input.SalesForceContactId || + (this.SalesForceContactId != null && + this.SalesForceContactId.Equals(input.SalesForceContactId)) + ) && + ( + this.StripeCustomerId == input.StripeCustomerId || + (this.StripeCustomerId != null && + this.StripeCustomerId.Equals(input.StripeCustomerId)) + ) && + ( + this.UserMonthlyCommissions == input.UserMonthlyCommissions || + this.UserMonthlyCommissions != null && + this.UserMonthlyCommissions.SequenceEqual(input.UserMonthlyCommissions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.EmailConfirmed != null) + hashCode = hashCode * 59 + this.EmailConfirmed.GetHashCode(); + if (this.PreventFromUsingCards != null) + hashCode = hashCode * 59 + this.PreventFromUsingCards.GetHashCode(); + if (this.IsUserPhoneNumberBlocked != null) + hashCode = hashCode * 59 + this.IsUserPhoneNumberBlocked.GetHashCode(); + if (this.UserWhiteLabels != null) + hashCode = hashCode * 59 + this.UserWhiteLabels.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.UserName != null) + hashCode = hashCode * 59 + this.UserName.GetHashCode(); + if (this.CustomerName != null) + hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); + if (this.HasLoggedIn != null) + hashCode = hashCode * 59 + this.HasLoggedIn.GetHashCode(); + if (this.DisableAppRatingControl != null) + hashCode = hashCode * 59 + this.DisableAppRatingControl.GetHashCode(); + if (this.GloballyOptedOut != null) + hashCode = hashCode * 59 + this.GloballyOptedOut.GetHashCode(); + if (this.CompletedOrderCount != null) + hashCode = hashCode * 59 + this.CompletedOrderCount.GetHashCode(); + if (this.CancelledOrderCount != null) + hashCode = hashCode * 59 + this.CancelledOrderCount.GetHashCode(); + if (this.OrderTotalValue != null) + hashCode = hashCode * 59 + this.OrderTotalValue.GetHashCode(); + if (this.TsMostRecentOrder != null) + hashCode = hashCode * 59 + this.TsMostRecentOrder.GetHashCode(); + if (this.TsFirstOrder != null) + hashCode = hashCode * 59 + this.TsFirstOrder.GetHashCode(); + if (this.IsRestaurantUser != null) + hashCode = hashCode * 59 + this.IsRestaurantUser.GetHashCode(); + if (this.Installs != null) + hashCode = hashCode * 59 + this.Installs.GetHashCode(); + if (this.DeliveryLocations != null) + hashCode = hashCode * 59 + this.DeliveryLocations.GetHashCode(); + if (this.PaymentAccounts != null) + hashCode = hashCode * 59 + this.PaymentAccounts.GetHashCode(); + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); + if (this.CurrentLanguageName != null) + hashCode = hashCode * 59 + this.CurrentLanguageName.GetHashCode(); + if (this.Languages != null) + hashCode = hashCode * 59 + this.Languages.GetHashCode(); + if (this.SalesForceContactId != null) + hashCode = hashCode * 59 + this.SalesForceContactId.GetHashCode(); + if (this.StripeCustomerId != null) + hashCode = hashCode * 59 + this.StripeCustomerId.GetHashCode(); + if (this.UserMonthlyCommissions != null) + hashCode = hashCode * 59 + this.UserMonthlyCommissions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserLoginEvent.cs b/src/Flipdish/Model/UserLoginEvent.cs new file mode 100644 index 00000000..52f0b564 --- /dev/null +++ b/src/Flipdish/Model/UserLoginEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User login event + /// + [DataContract] + public partial class UserLoginEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The user. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserLoginEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserLoginEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserLoginEvent); + } + + /// + /// Returns true if UserLoginEvent instances are equal + /// + /// Instance of UserLoginEvent to be compared + /// Boolean + public bool Equals(UserLoginEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserMonthlyCommission.cs b/src/Flipdish/Model/UserMonthlyCommission.cs new file mode 100644 index 00000000..6d7c0228 --- /dev/null +++ b/src/Flipdish/Model/UserMonthlyCommission.cs @@ -0,0 +1,868 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User Monthly Commission + /// + [DataContract] + public partial class UserMonthlyCommission : IEquatable + { + /// + /// The currency in which the commission is paid. + /// + /// The currency in which the commission is paid. + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// The currency in which the commission is paid. + /// + /// The currency in which the commission is paid. + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The unique identifier of the user.. + /// The start date of the month for which the commission is calculated.. + /// The total commission amount for the user in the specified month.. + /// The currency in which the commission is paid.. + /// The ISO currency code for the commission currency.. + public UserMonthlyCommission(int? userId = default(int?), DateTime? monthStart = default(DateTime?), double? commissionAmount = default(double?), CurrencyEnum? currency = default(CurrencyEnum?), string isoCurrency = default(string)) + { + this.UserId = userId; + this.MonthStart = monthStart; + this.CommissionAmount = commissionAmount; + this.Currency = currency; + this.IsoCurrency = isoCurrency; + } + + /// + /// The unique identifier of the user. + /// + /// The unique identifier of the user. + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// The start date of the month for which the commission is calculated. + /// + /// The start date of the month for which the commission is calculated. + [DataMember(Name="MonthStart", EmitDefaultValue=false)] + public DateTime? MonthStart { get; set; } + + /// + /// The total commission amount for the user in the specified month. + /// + /// The total commission amount for the user in the specified month. + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public double? CommissionAmount { get; set; } + + + /// + /// The ISO currency code for the commission currency. + /// + /// The ISO currency code for the commission currency. + [DataMember(Name="IsoCurrency", EmitDefaultValue=false)] + public string IsoCurrency { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserMonthlyCommission {\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" MonthStart: ").Append(MonthStart).Append("\n"); + sb.Append(" CommissionAmount: ").Append(CommissionAmount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" IsoCurrency: ").Append(IsoCurrency).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserMonthlyCommission); + } + + /// + /// Returns true if UserMonthlyCommission instances are equal + /// + /// Instance of UserMonthlyCommission to be compared + /// Boolean + public bool Equals(UserMonthlyCommission input) + { + if (input == null) + return false; + + return + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.MonthStart == input.MonthStart || + (this.MonthStart != null && + this.MonthStart.Equals(input.MonthStart)) + ) && + ( + this.CommissionAmount == input.CommissionAmount || + (this.CommissionAmount != null && + this.CommissionAmount.Equals(input.CommissionAmount)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.IsoCurrency == input.IsoCurrency || + (this.IsoCurrency != null && + this.IsoCurrency.Equals(input.IsoCurrency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.MonthStart != null) + hashCode = hashCode * 59 + this.MonthStart.GetHashCode(); + if (this.CommissionAmount != null) + hashCode = hashCode * 59 + this.CommissionAmount.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.IsoCurrency != null) + hashCode = hashCode * 59 + this.IsoCurrency.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserNote.cs b/src/Flipdish/Model/UserNote.cs new file mode 100644 index 00000000..ad44fc0a --- /dev/null +++ b/src/Flipdish/Model/UserNote.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User Note + /// + [DataContract] + public partial class UserNote : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Identifier for the user note.. + /// User identifier associated with the note.. + /// Note content.. + /// Creation timestamp of the note.. + /// Identifier of the user who created the note.. + /// Name of the user who created the note.. + /// Email of the user who created the note.. + public UserNote(int? userNoteId = default(int?), int? userId = default(int?), string note = default(string), DateTime? tsCreate = default(DateTime?), int? createdByUserId = default(int?), string createdByUserName = default(string), string createdByUserEmail = default(string)) + { + this.UserNoteId = userNoteId; + this.UserId = userId; + this.Note = note; + this.TsCreate = tsCreate; + this.CreatedByUserId = createdByUserId; + this.CreatedByUserName = createdByUserName; + this.CreatedByUserEmail = createdByUserEmail; + } + + /// + /// Identifier for the user note. + /// + /// Identifier for the user note. + [DataMember(Name="UserNoteId", EmitDefaultValue=false)] + public int? UserNoteId { get; set; } + + /// + /// User identifier associated with the note. + /// + /// User identifier associated with the note. + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } + + /// + /// Note content. + /// + /// Note content. + [DataMember(Name="Note", EmitDefaultValue=false)] + public string Note { get; set; } + + /// + /// Creation timestamp of the note. + /// + /// Creation timestamp of the note. + [DataMember(Name="TsCreate", EmitDefaultValue=false)] + public DateTime? TsCreate { get; set; } + + /// + /// Identifier of the user who created the note. + /// + /// Identifier of the user who created the note. + [DataMember(Name="CreatedByUserId", EmitDefaultValue=false)] + public int? CreatedByUserId { get; set; } + + /// + /// Name of the user who created the note. + /// + /// Name of the user who created the note. + [DataMember(Name="CreatedByUserName", EmitDefaultValue=false)] + public string CreatedByUserName { get; set; } + + /// + /// Email of the user who created the note. + /// + /// Email of the user who created the note. + [DataMember(Name="CreatedByUserEmail", EmitDefaultValue=false)] + public string CreatedByUserEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserNote {\n"); + sb.Append(" UserNoteId: ").Append(UserNoteId).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Note: ").Append(Note).Append("\n"); + sb.Append(" TsCreate: ").Append(TsCreate).Append("\n"); + sb.Append(" CreatedByUserId: ").Append(CreatedByUserId).Append("\n"); + sb.Append(" CreatedByUserName: ").Append(CreatedByUserName).Append("\n"); + sb.Append(" CreatedByUserEmail: ").Append(CreatedByUserEmail).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserNote); + } + + /// + /// Returns true if UserNote instances are equal + /// + /// Instance of UserNote to be compared + /// Boolean + public bool Equals(UserNote input) + { + if (input == null) + return false; + + return + ( + this.UserNoteId == input.UserNoteId || + (this.UserNoteId != null && + this.UserNoteId.Equals(input.UserNoteId)) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Note == input.Note || + (this.Note != null && + this.Note.Equals(input.Note)) + ) && + ( + this.TsCreate == input.TsCreate || + (this.TsCreate != null && + this.TsCreate.Equals(input.TsCreate)) + ) && + ( + this.CreatedByUserId == input.CreatedByUserId || + (this.CreatedByUserId != null && + this.CreatedByUserId.Equals(input.CreatedByUserId)) + ) && + ( + this.CreatedByUserName == input.CreatedByUserName || + (this.CreatedByUserName != null && + this.CreatedByUserName.Equals(input.CreatedByUserName)) + ) && + ( + this.CreatedByUserEmail == input.CreatedByUserEmail || + (this.CreatedByUserEmail != null && + this.CreatedByUserEmail.Equals(input.CreatedByUserEmail)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserNoteId != null) + hashCode = hashCode * 59 + this.UserNoteId.GetHashCode(); + if (this.UserId != null) + hashCode = hashCode * 59 + this.UserId.GetHashCode(); + if (this.Note != null) + hashCode = hashCode * 59 + this.Note.GetHashCode(); + if (this.TsCreate != null) + hashCode = hashCode * 59 + this.TsCreate.GetHashCode(); + if (this.CreatedByUserId != null) + hashCode = hashCode * 59 + this.CreatedByUserId.GetHashCode(); + if (this.CreatedByUserName != null) + hashCode = hashCode * 59 + this.CreatedByUserName.GetHashCode(); + if (this.CreatedByUserEmail != null) + hashCode = hashCode * 59 + this.CreatedByUserEmail.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserOrderSummary.cs b/src/Flipdish/Model/UserOrderSummary.cs new file mode 100644 index 00000000..e9b97a6e --- /dev/null +++ b/src/Flipdish/Model/UserOrderSummary.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A previous order row for admin user management (structured; no HTML). + /// + [DataContract] + public partial class UserOrderSummary : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// OrderId.. + /// TsOrderPlacedUtc.. + /// TsUpdateUtc.. + /// RestaurantName.. + /// FoodAmount.. + /// TipAmount.. + /// TotalRestaurantAmount.. + /// IsoCurrency.. + /// DeliveryType.. + /// OrderState.. + /// PaymentAccountDescription.. + public UserOrderSummary(int? orderId = default(int?), DateTime? tsOrderPlacedUtc = default(DateTime?), DateTime? tsUpdateUtc = default(DateTime?), string restaurantName = default(string), double? foodAmount = default(double?), double? tipAmount = default(double?), double? totalRestaurantAmount = default(double?), string isoCurrency = default(string), string deliveryType = default(string), string orderState = default(string), string paymentAccountDescription = default(string)) + { + this.OrderId = orderId; + this.TsOrderPlacedUtc = tsOrderPlacedUtc; + this.TsUpdateUtc = tsUpdateUtc; + this.RestaurantName = restaurantName; + this.FoodAmount = foodAmount; + this.TipAmount = tipAmount; + this.TotalRestaurantAmount = totalRestaurantAmount; + this.IsoCurrency = isoCurrency; + this.DeliveryType = deliveryType; + this.OrderState = orderState; + this.PaymentAccountDescription = paymentAccountDescription; + } + + /// + /// OrderId. + /// + /// OrderId. + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// TsOrderPlacedUtc. + /// + /// TsOrderPlacedUtc. + [DataMember(Name="TsOrderPlacedUtc", EmitDefaultValue=false)] + public DateTime? TsOrderPlacedUtc { get; set; } + + /// + /// TsUpdateUtc. + /// + /// TsUpdateUtc. + [DataMember(Name="TsUpdateUtc", EmitDefaultValue=false)] + public DateTime? TsUpdateUtc { get; set; } + + /// + /// RestaurantName. + /// + /// RestaurantName. + [DataMember(Name="RestaurantName", EmitDefaultValue=false)] + public string RestaurantName { get; set; } + + /// + /// FoodAmount. + /// + /// FoodAmount. + [DataMember(Name="FoodAmount", EmitDefaultValue=false)] + public double? FoodAmount { get; set; } + + /// + /// TipAmount. + /// + /// TipAmount. + [DataMember(Name="TipAmount", EmitDefaultValue=false)] + public double? TipAmount { get; set; } + + /// + /// TotalRestaurantAmount. + /// + /// TotalRestaurantAmount. + [DataMember(Name="TotalRestaurantAmount", EmitDefaultValue=false)] + public double? TotalRestaurantAmount { get; set; } + + /// + /// IsoCurrency. + /// + /// IsoCurrency. + [DataMember(Name="IsoCurrency", EmitDefaultValue=false)] + public string IsoCurrency { get; set; } + + /// + /// DeliveryType. + /// + /// DeliveryType. + [DataMember(Name="DeliveryType", EmitDefaultValue=false)] + public string DeliveryType { get; set; } + + /// + /// OrderState. + /// + /// OrderState. + [DataMember(Name="OrderState", EmitDefaultValue=false)] + public string OrderState { get; set; } + + /// + /// PaymentAccountDescription. + /// + /// PaymentAccountDescription. + [DataMember(Name="PaymentAccountDescription", EmitDefaultValue=false)] + public string PaymentAccountDescription { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserOrderSummary {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" TsOrderPlacedUtc: ").Append(TsOrderPlacedUtc).Append("\n"); + sb.Append(" TsUpdateUtc: ").Append(TsUpdateUtc).Append("\n"); + sb.Append(" RestaurantName: ").Append(RestaurantName).Append("\n"); + sb.Append(" FoodAmount: ").Append(FoodAmount).Append("\n"); + sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); + sb.Append(" TotalRestaurantAmount: ").Append(TotalRestaurantAmount).Append("\n"); + sb.Append(" IsoCurrency: ").Append(IsoCurrency).Append("\n"); + sb.Append(" DeliveryType: ").Append(DeliveryType).Append("\n"); + sb.Append(" OrderState: ").Append(OrderState).Append("\n"); + sb.Append(" PaymentAccountDescription: ").Append(PaymentAccountDescription).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserOrderSummary); + } + + /// + /// Returns true if UserOrderSummary instances are equal + /// + /// Instance of UserOrderSummary to be compared + /// Boolean + public bool Equals(UserOrderSummary input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.TsOrderPlacedUtc == input.TsOrderPlacedUtc || + (this.TsOrderPlacedUtc != null && + this.TsOrderPlacedUtc.Equals(input.TsOrderPlacedUtc)) + ) && + ( + this.TsUpdateUtc == input.TsUpdateUtc || + (this.TsUpdateUtc != null && + this.TsUpdateUtc.Equals(input.TsUpdateUtc)) + ) && + ( + this.RestaurantName == input.RestaurantName || + (this.RestaurantName != null && + this.RestaurantName.Equals(input.RestaurantName)) + ) && + ( + this.FoodAmount == input.FoodAmount || + (this.FoodAmount != null && + this.FoodAmount.Equals(input.FoodAmount)) + ) && + ( + this.TipAmount == input.TipAmount || + (this.TipAmount != null && + this.TipAmount.Equals(input.TipAmount)) + ) && + ( + this.TotalRestaurantAmount == input.TotalRestaurantAmount || + (this.TotalRestaurantAmount != null && + this.TotalRestaurantAmount.Equals(input.TotalRestaurantAmount)) + ) && + ( + this.IsoCurrency == input.IsoCurrency || + (this.IsoCurrency != null && + this.IsoCurrency.Equals(input.IsoCurrency)) + ) && + ( + this.DeliveryType == input.DeliveryType || + (this.DeliveryType != null && + this.DeliveryType.Equals(input.DeliveryType)) + ) && + ( + this.OrderState == input.OrderState || + (this.OrderState != null && + this.OrderState.Equals(input.OrderState)) + ) && + ( + this.PaymentAccountDescription == input.PaymentAccountDescription || + (this.PaymentAccountDescription != null && + this.PaymentAccountDescription.Equals(input.PaymentAccountDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.TsOrderPlacedUtc != null) + hashCode = hashCode * 59 + this.TsOrderPlacedUtc.GetHashCode(); + if (this.TsUpdateUtc != null) + hashCode = hashCode * 59 + this.TsUpdateUtc.GetHashCode(); + if (this.RestaurantName != null) + hashCode = hashCode * 59 + this.RestaurantName.GetHashCode(); + if (this.FoodAmount != null) + hashCode = hashCode * 59 + this.FoodAmount.GetHashCode(); + if (this.TipAmount != null) + hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); + if (this.TotalRestaurantAmount != null) + hashCode = hashCode * 59 + this.TotalRestaurantAmount.GetHashCode(); + if (this.IsoCurrency != null) + hashCode = hashCode * 59 + this.IsoCurrency.GetHashCode(); + if (this.DeliveryType != null) + hashCode = hashCode * 59 + this.DeliveryType.GetHashCode(); + if (this.OrderState != null) + hashCode = hashCode * 59 + this.OrderState.GetHashCode(); + if (this.PaymentAccountDescription != null) + hashCode = hashCode * 59 + this.PaymentAccountDescription.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserPasswordCreatedEvent.cs b/src/Flipdish/Model/UserPasswordCreatedEvent.cs new file mode 100644 index 00000000..d1be959b --- /dev/null +++ b/src/Flipdish/Model/UserPasswordCreatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User created password event + /// + [DataContract] + public partial class UserPasswordCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The user. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserPasswordCreatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserPasswordCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserPasswordCreatedEvent); + } + + /// + /// Returns true if UserPasswordCreatedEvent instances are equal + /// + /// Instance of UserPasswordCreatedEvent to be compared + /// Boolean + public bool Equals(UserPasswordCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserPushNotificationSentResult.cs b/src/Flipdish/Model/UserPushNotificationSentResult.cs new file mode 100644 index 00000000..2e0cf3ef --- /dev/null +++ b/src/Flipdish/Model/UserPushNotificationSentResult.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Result of sending push notification. + /// + [DataContract] + public partial class UserPushNotificationSentResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// TokenCount.. + public UserPushNotificationSentResult(int? tokenCount = default(int?)) + { + this.TokenCount = tokenCount; + } + + /// + /// TokenCount. + /// + /// TokenCount. + [DataMember(Name="TokenCount", EmitDefaultValue=false)] + public int? TokenCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserPushNotificationSentResult {\n"); + sb.Append(" TokenCount: ").Append(TokenCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserPushNotificationSentResult); + } + + /// + /// Returns true if UserPushNotificationSentResult instances are equal + /// + /// Instance of UserPushNotificationSentResult to be compared + /// Boolean + public bool Equals(UserPushNotificationSentResult input) + { + if (input == null) + return false; + + return + ( + this.TokenCount == input.TokenCount || + (this.TokenCount != null && + this.TokenCount.Equals(input.TokenCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TokenCount != null) + hashCode = hashCode * 59 + this.TokenCount.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserRole.cs b/src/Flipdish/Model/UserRole.cs new file mode 100644 index 00000000..eef9b1f4 --- /dev/null +++ b/src/Flipdish/Model/UserRole.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User Role + /// + [DataContract] + public partial class UserRole : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Roles the user is in. + /// Roles the user is not in. + public UserRole(List rolesUserIn = default(List), List rolesUserNotIn = default(List)) + { + this.RolesUserIn = rolesUserIn; + this.RolesUserNotIn = rolesUserNotIn; + } + + /// + /// Roles the user is in + /// + /// Roles the user is in + [DataMember(Name="RolesUserIn", EmitDefaultValue=false)] + public List RolesUserIn { get; set; } + + /// + /// Roles the user is not in + /// + /// Roles the user is not in + [DataMember(Name="RolesUserNotIn", EmitDefaultValue=false)] + public List RolesUserNotIn { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserRole {\n"); + sb.Append(" RolesUserIn: ").Append(RolesUserIn).Append("\n"); + sb.Append(" RolesUserNotIn: ").Append(RolesUserNotIn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserRole); + } + + /// + /// Returns true if UserRole instances are equal + /// + /// Instance of UserRole to be compared + /// Boolean + public bool Equals(UserRole input) + { + if (input == null) + return false; + + return + ( + this.RolesUserIn == input.RolesUserIn || + this.RolesUserIn != null && + this.RolesUserIn.SequenceEqual(input.RolesUserIn) + ) && + ( + this.RolesUserNotIn == input.RolesUserNotIn || + this.RolesUserNotIn != null && + this.RolesUserNotIn.SequenceEqual(input.RolesUserNotIn) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RolesUserIn != null) + hashCode = hashCode * 59 + this.RolesUserIn.GetHashCode(); + if (this.RolesUserNotIn != null) + hashCode = hashCode * 59 + this.RolesUserNotIn.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserSearch.cs b/src/Flipdish/Model/UserSearch.cs new file mode 100644 index 00000000..5a488573 --- /dev/null +++ b/src/Flipdish/Model/UserSearch.cs @@ -0,0 +1,280 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User Search Result + /// + [DataContract] + public partial class UserSearch : IEquatable + { + /// + /// User Discriminator + /// + /// User Discriminator + [JsonConverter(typeof(StringEnumConverter))] + public enum UserDiscriminatorEnum + { + + /// + /// Enum All for value: All + /// + [EnumMember(Value = "All")] + All = 1, + + /// + /// Enum ApplicationUsers for value: ApplicationUsers + /// + [EnumMember(Value = "ApplicationUsers")] + ApplicationUsers = 2, + + /// + /// Enum RestaurantUsers for value: RestaurantUsers + /// + [EnumMember(Value = "RestaurantUsers")] + RestaurantUsers = 3, + + /// + /// Enum HydraUsers for value: HydraUsers + /// + [EnumMember(Value = "HydraUsers")] + HydraUsers = 4 + } + + /// + /// User Discriminator + /// + /// User Discriminator + [DataMember(Name="UserDiscriminator", EmitDefaultValue=false)] + public UserDiscriminatorEnum? UserDiscriminator { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// User Id. + /// Phone Number. + /// Email. + /// Customer Name. + /// Has Logged In. + /// User Discriminator. + /// Timestamp Created. + /// WhiteLabel Configs. + public UserSearch(int? id = default(int?), string phoneNumber = default(string), string email = default(string), string customerName = default(string), bool? hasLoggedIn = default(bool?), UserDiscriminatorEnum? userDiscriminator = default(UserDiscriminatorEnum?), DateTime? tsCreate = default(DateTime?), List whiteLabelConfigs = default(List)) + { + this.Id = id; + this.PhoneNumber = phoneNumber; + this.Email = email; + this.CustomerName = customerName; + this.HasLoggedIn = hasLoggedIn; + this.UserDiscriminator = userDiscriminator; + this.TsCreate = tsCreate; + this.WhiteLabelConfigs = whiteLabelConfigs; + } + + /// + /// User Id + /// + /// User Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Phone Number + /// + /// Phone Number + [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Email + /// + /// Email + [DataMember(Name="Email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// Customer Name + /// + /// Customer Name + [DataMember(Name="CustomerName", EmitDefaultValue=false)] + public string CustomerName { get; set; } + + /// + /// Has Logged In + /// + /// Has Logged In + [DataMember(Name="HasLoggedIn", EmitDefaultValue=false)] + public bool? HasLoggedIn { get; set; } + + + /// + /// Timestamp Created + /// + /// Timestamp Created + [DataMember(Name="TsCreate", EmitDefaultValue=false)] + public DateTime? TsCreate { get; set; } + + /// + /// WhiteLabel Configs + /// + /// WhiteLabel Configs + [DataMember(Name="WhiteLabelConfigs", EmitDefaultValue=false)] + public List WhiteLabelConfigs { get; set; } + + /// + /// User Type + /// + /// User Type + [DataMember(Name="UserType", EmitDefaultValue=false)] + public string UserType { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserSearch {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" CustomerName: ").Append(CustomerName).Append("\n"); + sb.Append(" HasLoggedIn: ").Append(HasLoggedIn).Append("\n"); + sb.Append(" UserDiscriminator: ").Append(UserDiscriminator).Append("\n"); + sb.Append(" TsCreate: ").Append(TsCreate).Append("\n"); + sb.Append(" WhiteLabelConfigs: ").Append(WhiteLabelConfigs).Append("\n"); + sb.Append(" UserType: ").Append(UserType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserSearch); + } + + /// + /// Returns true if UserSearch instances are equal + /// + /// Instance of UserSearch to be compared + /// Boolean + public bool Equals(UserSearch input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.CustomerName == input.CustomerName || + (this.CustomerName != null && + this.CustomerName.Equals(input.CustomerName)) + ) && + ( + this.HasLoggedIn == input.HasLoggedIn || + (this.HasLoggedIn != null && + this.HasLoggedIn.Equals(input.HasLoggedIn)) + ) && + ( + this.UserDiscriminator == input.UserDiscriminator || + (this.UserDiscriminator != null && + this.UserDiscriminator.Equals(input.UserDiscriminator)) + ) && + ( + this.TsCreate == input.TsCreate || + (this.TsCreate != null && + this.TsCreate.Equals(input.TsCreate)) + ) && + ( + this.WhiteLabelConfigs == input.WhiteLabelConfigs || + this.WhiteLabelConfigs != null && + this.WhiteLabelConfigs.SequenceEqual(input.WhiteLabelConfigs) + ) && + ( + this.UserType == input.UserType || + (this.UserType != null && + this.UserType.Equals(input.UserType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.CustomerName != null) + hashCode = hashCode * 59 + this.CustomerName.GetHashCode(); + if (this.HasLoggedIn != null) + hashCode = hashCode * 59 + this.HasLoggedIn.GetHashCode(); + if (this.UserDiscriminator != null) + hashCode = hashCode * 59 + this.UserDiscriminator.GetHashCode(); + if (this.TsCreate != null) + hashCode = hashCode * 59 + this.TsCreate.GetHashCode(); + if (this.WhiteLabelConfigs != null) + hashCode = hashCode * 59 + this.WhiteLabelConfigs.GetHashCode(); + if (this.UserType != null) + hashCode = hashCode * 59 + this.UserType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserSmsChatItem.cs b/src/Flipdish/Model/UserSmsChatItem.cs new file mode 100644 index 00000000..46a8fe92 --- /dev/null +++ b/src/Flipdish/Model/UserSmsChatItem.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// An SMS conversation item for admin user chat. + /// + [DataContract] + public partial class UserSmsChatItem : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// SmsConversationItemId.. + /// Direction.. + /// From.. + /// Text.. + /// TsSentReceivedUtc.. + public UserSmsChatItem(int? smsConversationItemId = default(int?), string direction = default(string), string from = default(string), string text = default(string), DateTime? tsSentReceivedUtc = default(DateTime?)) + { + this.SmsConversationItemId = smsConversationItemId; + this.Direction = direction; + this.From = from; + this.Text = text; + this.TsSentReceivedUtc = tsSentReceivedUtc; + } + + /// + /// SmsConversationItemId. + /// + /// SmsConversationItemId. + [DataMember(Name="SmsConversationItemId", EmitDefaultValue=false)] + public int? SmsConversationItemId { get; set; } + + /// + /// Direction. + /// + /// Direction. + [DataMember(Name="Direction", EmitDefaultValue=false)] + public string Direction { get; set; } + + /// + /// From. + /// + /// From. + [DataMember(Name="From", EmitDefaultValue=false)] + public string From { get; set; } + + /// + /// Text. + /// + /// Text. + [DataMember(Name="Text", EmitDefaultValue=false)] + public string Text { get; set; } + + /// + /// TsSentReceivedUtc. + /// + /// TsSentReceivedUtc. + [DataMember(Name="TsSentReceivedUtc", EmitDefaultValue=false)] + public DateTime? TsSentReceivedUtc { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserSmsChatItem {\n"); + sb.Append(" SmsConversationItemId: ").Append(SmsConversationItemId).Append("\n"); + sb.Append(" Direction: ").Append(Direction).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" TsSentReceivedUtc: ").Append(TsSentReceivedUtc).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserSmsChatItem); + } + + /// + /// Returns true if UserSmsChatItem instances are equal + /// + /// Instance of UserSmsChatItem to be compared + /// Boolean + public bool Equals(UserSmsChatItem input) + { + if (input == null) + return false; + + return + ( + this.SmsConversationItemId == input.SmsConversationItemId || + (this.SmsConversationItemId != null && + this.SmsConversationItemId.Equals(input.SmsConversationItemId)) + ) && + ( + this.Direction == input.Direction || + (this.Direction != null && + this.Direction.Equals(input.Direction)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && + ( + this.TsSentReceivedUtc == input.TsSentReceivedUtc || + (this.TsSentReceivedUtc != null && + this.TsSentReceivedUtc.Equals(input.TsSentReceivedUtc)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SmsConversationItemId != null) + hashCode = hashCode * 59 + this.SmsConversationItemId.GetHashCode(); + if (this.Direction != null) + hashCode = hashCode * 59 + this.Direction.GetHashCode(); + if (this.From != null) + hashCode = hashCode * 59 + this.From.GetHashCode(); + if (this.Text != null) + hashCode = hashCode * 59 + this.Text.GetHashCode(); + if (this.TsSentReceivedUtc != null) + hashCode = hashCode * 59 + this.TsSentReceivedUtc.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserStoreInfo.cs b/src/Flipdish/Model/UserStoreInfo.cs new file mode 100644 index 00000000..fa30e87c --- /dev/null +++ b/src/Flipdish/Model/UserStoreInfo.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Stores that the user is associated with + /// + [DataContract] + public partial class UserStoreInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Property Id. + /// Store Id. + /// Store Name. + public UserStoreInfo(string propertyId = default(string), int? storeId = default(int?), string storeName = default(string)) + { + this.PropertyId = propertyId; + this.StoreId = storeId; + this.StoreName = storeName; + } + + /// + /// Property Id + /// + /// Property Id + [DataMember(Name="PropertyId", EmitDefaultValue=false)] + public string PropertyId { get; set; } + + /// + /// Store Id + /// + /// Store Id + [DataMember(Name="StoreId", EmitDefaultValue=false)] + public int? StoreId { get; set; } + + /// + /// Store Name + /// + /// Store Name + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserStoreInfo {\n"); + sb.Append(" PropertyId: ").Append(PropertyId).Append("\n"); + sb.Append(" StoreId: ").Append(StoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserStoreInfo); + } + + /// + /// Returns true if UserStoreInfo instances are equal + /// + /// Instance of UserStoreInfo to be compared + /// Boolean + public bool Equals(UserStoreInfo input) + { + if (input == null) + return false; + + return + ( + this.PropertyId == input.PropertyId || + (this.PropertyId != null && + this.PropertyId.Equals(input.PropertyId)) + ) && + ( + this.StoreId == input.StoreId || + (this.StoreId != null && + this.StoreId.Equals(input.StoreId)) + ) && + ( + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PropertyId != null) + hashCode = hashCode * 59 + this.PropertyId.GetHashCode(); + if (this.StoreId != null) + hashCode = hashCode * 59 + this.StoreId.GetHashCode(); + if (this.StoreName != null) + hashCode = hashCode * 59 + this.StoreName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserUpdatedEvent.cs b/src/Flipdish/Model/UserUpdatedEvent.cs new file mode 100644 index 00000000..eb5eda86 --- /dev/null +++ b/src/Flipdish/Model/UserUpdatedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User updated event + /// + [DataContract] + public partial class UserUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// The user. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public UserUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The user + /// + /// The user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserUpdatedEvent); + } + + /// + /// Returns true if UserUpdatedEvent instances are equal + /// + /// Instance of UserUpdatedEvent to be compared + /// Boolean + public bool Equals(UserUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserWhiteLabelConfig.cs b/src/Flipdish/Model/UserWhiteLabelConfig.cs new file mode 100644 index 00000000..5d3153e3 --- /dev/null +++ b/src/Flipdish/Model/UserWhiteLabelConfig.cs @@ -0,0 +1,268 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User WhiteLabelConfig + /// + [DataContract] + public partial class UserWhiteLabelConfig : IEquatable + { + /// + /// WhiteLabel Access Level + /// + /// WhiteLabel Access Level + [JsonConverter(typeof(StringEnumConverter))] + public enum LevelEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Owner for value: Owner + /// + [EnumMember(Value = "Owner")] + Owner = 2, + + /// + /// Enum StoreOwner for value: StoreOwner + /// + [EnumMember(Value = "StoreOwner")] + StoreOwner = 3, + + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + + /// + /// Enum ManagedOwner for value: ManagedOwner + /// + [EnumMember(Value = "ManagedOwner")] + ManagedOwner = 5, + + /// + /// Enum Integrator for value: Integrator + /// + [EnumMember(Value = "Integrator")] + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, + + /// + /// Enum StoreManager for value: StoreManager + /// + [EnumMember(Value = "StoreManager")] + StoreManager = 8, + + /// + /// Enum StoreStaff for value: StoreStaff + /// + [EnumMember(Value = "StoreStaff")] + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, + + /// + /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess + /// + [EnumMember(Value = "StoreReadOnlyAccess")] + StoreReadOnlyAccess = 11, + + /// + /// Enum FinanceManager for value: FinanceManager + /// + [EnumMember(Value = "FinanceManager")] + FinanceManager = 12, + + /// + /// Enum Support for value: Support + /// + [EnumMember(Value = "Support")] + Support = 13 + } + + /// + /// WhiteLabel Access Level + /// + /// WhiteLabel Access Level + [DataMember(Name="Level", EmitDefaultValue=false)] + public LevelEnum? Level { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Identifier. + /// WlConfigId. + /// Brand Id. + /// WhiteLabel Name. + /// WhiteLabel Access Level. + public UserWhiteLabelConfig(int? id = default(int?), int? configId = default(int?), string appId = default(string), string name = default(string), LevelEnum? level = default(LevelEnum?)) + { + this.Id = id; + this.ConfigId = configId; + this.AppId = appId; + this.Name = name; + this.Level = level; + } + + /// + /// Identifier + /// + /// Identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// WlConfigId + /// + /// WlConfigId + [DataMember(Name="ConfigId", EmitDefaultValue=false)] + public int? ConfigId { get; set; } + + /// + /// Brand Id + /// + /// Brand Id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// WhiteLabel Name + /// + /// WhiteLabel Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserWhiteLabelConfig {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ConfigId: ").Append(ConfigId).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserWhiteLabelConfig); + } + + /// + /// Returns true if UserWhiteLabelConfig instances are equal + /// + /// Instance of UserWhiteLabelConfig to be compared + /// Boolean + public bool Equals(UserWhiteLabelConfig input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ConfigId == input.ConfigId || + (this.ConfigId != null && + this.ConfigId.Equals(input.ConfigId)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Level == input.Level || + (this.Level != null && + this.Level.Equals(input.Level)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.ConfigId != null) + hashCode = hashCode * 59 + this.ConfigId.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Level != null) + hashCode = hashCode * 59 + this.Level.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/UserWhiteLabelInfo.cs b/src/Flipdish/Model/UserWhiteLabelInfo.cs new file mode 100644 index 00000000..5e74a8cf --- /dev/null +++ b/src/Flipdish/Model/UserWhiteLabelInfo.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// User WhiteLabel information + /// + [DataContract] + public partial class UserWhiteLabelInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// WhiteLabelConfig Id. + /// Brand Id (AppId). + /// WhiteLabel Name. + public UserWhiteLabelInfo(int? wlConfigId = default(int?), string appId = default(string), string whiteLabelName = default(string)) + { + this.WlConfigId = wlConfigId; + this.AppId = appId; + this.WhiteLabelName = whiteLabelName; + } + + /// + /// WhiteLabelConfig Id + /// + /// WhiteLabelConfig Id + [DataMember(Name="WlConfigId", EmitDefaultValue=false)] + public int? WlConfigId { get; set; } + + /// + /// Brand Id (AppId) + /// + /// Brand Id (AppId) + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// WhiteLabel Name + /// + /// WhiteLabel Name + [DataMember(Name="WhiteLabelName", EmitDefaultValue=false)] + public string WhiteLabelName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserWhiteLabelInfo {\n"); + sb.Append(" WlConfigId: ").Append(WlConfigId).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" WhiteLabelName: ").Append(WhiteLabelName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserWhiteLabelInfo); + } + + /// + /// Returns true if UserWhiteLabelInfo instances are equal + /// + /// Instance of UserWhiteLabelInfo to be compared + /// Boolean + public bool Equals(UserWhiteLabelInfo input) + { + if (input == null) + return false; + + return + ( + this.WlConfigId == input.WlConfigId || + (this.WlConfigId != null && + this.WlConfigId.Equals(input.WlConfigId)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.WhiteLabelName == input.WhiteLabelName || + (this.WhiteLabelName != null && + this.WhiteLabelName.Equals(input.WhiteLabelName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WlConfigId != null) + hashCode = hashCode * 59 + this.WlConfigId.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.WhiteLabelName != null) + hashCode = hashCode * 59 + this.WhiteLabelName.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ValidValue.cs b/src/Flipdish/Model/ValidValue.cs new file mode 100644 index 00000000..92f9f05b --- /dev/null +++ b/src/Flipdish/Model/ValidValue.cs @@ -0,0 +1,149 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ValidValue + /// + [DataContract] + public partial class ValidValue : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ValidValue() { } + /// + /// Initializes a new instance of the class. + /// + /// code (required). + /// name (required). + public ValidValue(string code = default(string), string name = default(string)) + { + // to ensure "code" is required (not null) + if (code == null) + { + throw new InvalidDataException("code is a required property for ValidValue and cannot be null"); + } + else + { + this.Code = code; + } + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for ValidValue and cannot be null"); + } + else + { + this.Name = name; + } + } + + /// + /// Gets or Sets Code + /// + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ValidValue {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidValue); + } + + /// + /// Returns true if ValidValue instances are equal + /// + /// Instance of ValidValue to be compared + /// Boolean + public bool Equals(ValidValue input) + { + if (input == null) + return false; + + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ValidationErrorResult.cs b/src/Flipdish/Model/ValidationErrorResult.cs new file mode 100644 index 00000000..19df10d4 --- /dev/null +++ b/src/Flipdish/Model/ValidationErrorResult.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Validation error result + /// + [DataContract] + public partial class ValidationErrorResult : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Field name. + /// List of errors relates to field. + public ValidationErrorResult(string fieldName = default(string), List errors = default(List)) + { + this.FieldName = fieldName; + this.Errors = errors; + } + + /// + /// Field name + /// + /// Field name + [DataMember(Name="FieldName", EmitDefaultValue=false)] + public string FieldName { get; set; } + + /// + /// List of errors relates to field + /// + /// List of errors relates to field + [DataMember(Name="Errors", EmitDefaultValue=false)] + public List Errors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ValidationErrorResult {\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidationErrorResult); + } + + /// + /// Returns true if ValidationErrorResult instances are equal + /// + /// Instance of ValidationErrorResult to be compared + /// Boolean + public bool Equals(ValidationErrorResult input) + { + if (input == null) + return false; + + return + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); + if (this.Errors != null) + hashCode = hashCode * 59 + this.Errors.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/ValidityPeriod.cs b/src/Flipdish/Model/ValidityPeriod.cs new file mode 100644 index 00000000..29c2fe51 --- /dev/null +++ b/src/Flipdish/Model/ValidityPeriod.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// ValidityPeriod. + /// + [DataContract] + public partial class ValidityPeriod : IEquatable + { + /// + /// DayOfWeek. + /// + /// DayOfWeek. + [JsonConverter(typeof(StringEnumConverter))] + public enum DayOfWeekEnum + { + + /// + /// Enum Sunday for value: Sunday + /// + [EnumMember(Value = "Sunday")] + Sunday = 1, + + /// + /// Enum Monday for value: Monday + /// + [EnumMember(Value = "Monday")] + Monday = 2, + + /// + /// Enum Tuesday for value: Tuesday + /// + [EnumMember(Value = "Tuesday")] + Tuesday = 3, + + /// + /// Enum Wednesday for value: Wednesday + /// + [EnumMember(Value = "Wednesday")] + Wednesday = 4, + + /// + /// Enum Thursday for value: Thursday + /// + [EnumMember(Value = "Thursday")] + Thursday = 5, + + /// + /// Enum Friday for value: Friday + /// + [EnumMember(Value = "Friday")] + Friday = 6, + + /// + /// Enum Saturday for value: Saturday + /// + [EnumMember(Value = "Saturday")] + Saturday = 7 + } + + /// + /// DayOfWeek. + /// + /// DayOfWeek. + [DataMember(Name="DayOfWeek", EmitDefaultValue=false)] + public DayOfWeekEnum? DayOfWeek { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// DayOfWeek.. + /// StartTime.. + /// EndTime.. + public ValidityPeriod(DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?), string startTime = default(string), string endTime = default(string)) + { + this.DayOfWeek = dayOfWeek; + this.StartTime = startTime; + this.EndTime = endTime; + } + + + /// + /// StartTime. + /// + /// StartTime. + [DataMember(Name="StartTime", EmitDefaultValue=false)] + public string StartTime { get; set; } + + /// + /// EndTime. + /// + /// EndTime. + [DataMember(Name="EndTime", EmitDefaultValue=false)] + public string EndTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ValidityPeriod {\n"); + sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValidityPeriod); + } + + /// + /// Returns true if ValidityPeriod instances are equal + /// + /// Instance of ValidityPeriod to be compared + /// Boolean + public bool Equals(ValidityPeriod input) + { + if (input == null) + return false; + + return + ( + this.DayOfWeek == input.DayOfWeek || + (this.DayOfWeek != null && + this.DayOfWeek.Equals(input.DayOfWeek)) + ) && + ( + this.StartTime == input.StartTime || + (this.StartTime != null && + this.StartTime.Equals(input.StartTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DayOfWeek != null) + hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode(); + if (this.StartTime != null) + hashCode = hashCode * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/Voucher.cs b/src/Flipdish/Model/Voucher.cs new file mode 100644 index 00000000..13564d93 --- /dev/null +++ b/src/Flipdish/Model/Voucher.cs @@ -0,0 +1,1535 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher + /// + [DataContract] + public partial class Voucher : IEquatable + { + /// + /// Voucher Status + /// + /// Voucher Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Valid for value: Valid + /// + [EnumMember(Value = "Valid")] + Valid = 1, + + /// + /// Enum NotYetValid for value: NotYetValid + /// + [EnumMember(Value = "NotYetValid")] + NotYetValid = 2, + + /// + /// Enum Expired for value: Expired + /// + [EnumMember(Value = "Expired")] + Expired = 3, + + /// + /// Enum Used for value: Used + /// + [EnumMember(Value = "Used")] + Used = 4, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 5 + } + + /// + /// Voucher Status + /// + /// Voucher Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Voucher Type + /// + /// Voucher Type + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherTypeEnum + { + + /// + /// Enum PercentageDiscount for value: PercentageDiscount + /// + [EnumMember(Value = "PercentageDiscount")] + PercentageDiscount = 1, + + /// + /// Enum LumpDiscount for value: LumpDiscount + /// + [EnumMember(Value = "LumpDiscount")] + LumpDiscount = 2, + + /// + /// Enum AddItem for value: AddItem + /// + [EnumMember(Value = "AddItem")] + AddItem = 3, + + /// + /// Enum CreditNote for value: CreditNote + /// + [EnumMember(Value = "CreditNote")] + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 + } + + /// + /// Voucher Type + /// + /// Voucher Type + [DataMember(Name="VoucherType", EmitDefaultValue=false)] + public VoucherTypeEnum? VoucherType { get; set; } + /// + /// Currency of the voucher + /// + /// Currency of the voucher + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of the voucher + /// + /// Currency of the voucher + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Defines ChannelRestrictions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelRestrictionsEnum + { + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 3, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 4, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 5, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 6 + } + + + /// + /// Limit the channels this voucher can be used on + /// + /// Limit the channels this voucher can be used on + [DataMember(Name="ChannelRestrictions", EmitDefaultValue=false)] + public List ChannelRestrictions { get; set; } + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherSubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [DataMember(Name="VoucherSubType", EmitDefaultValue=false)] + public VoucherSubTypeEnum? VoucherSubType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// Voucher Status. + /// Voucher Type. + /// Currency of the voucher. + /// Stores that this voucher applies to. + /// Promotion details. + /// Credit note details. + /// Lump discount details. + /// Percent discount details. + /// Voucher Code. + /// Voucher Description (Visible on printout). + /// Stores that this voucher applies to. + /// Valid on orders on or above. + /// Takes priority. + /// Is voucher enabled. + /// Is voucher automatically applied. + /// Include delivery fees. + /// Valid for delivery orders. + /// Valid for pickup orders. + /// Valid for orders payed online. + /// Valid for orders payed in cash. + /// Valid only on the first order by the customer. + /// Valid once per customer. + /// Valid only once, by any customer (once used cannot be used again by any other customer). + /// Enables the voucher to be offered in the Voucher Discoverability feature. + /// Marks the voucher as promoted. + /// Force the discount to be applied which bypasses some menu restrictions. + /// Voucher Starts On (Time in UTC). + /// Voucher Expires On (Time in UTC). + /// Limit the channels this voucher can be used on. + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.. + /// Voucher Subtype. + /// Customer UserID. + /// Maximum number of times the voucher can be redeemed (used). + public Voucher(int? voucherId = default(int?), StatusEnum? status = default(StatusEnum?), VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), List storeNames = default(List), PromotionDetails promotionDetails = default(PromotionDetails), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), List stores = default(List), double? validOnOrdersOver = default(double?), bool? takesPriority = default(bool?), bool? isEnabled = default(bool?), bool? isAutomaticallyApplied = default(bool?), bool? includeDeliveryFee = default(bool?), bool? isValidForDeliveryOrders = default(bool?), bool? isValidForPickupOrders = default(bool?), bool? isValidForOrdersPayedOnline = default(bool?), bool? isValidForOrdersPayedByCash = default(bool?), bool? isValidForFirstOrderOnly = default(bool?), bool? isValidOncePerCustomer = default(bool?), bool? isValidOnlyOnce = default(bool?), bool? isDiscoverable = default(bool?), bool? isPromoted = default(bool?), bool? forceDiscount = default(bool?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?), List channelRestrictions = default(List), List validityPeriods = default(List), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), int? customerId = default(int?), int? maxRedemptions = default(int?)) + { + this.VoucherId = voucherId; + this.Status = status; + this.VoucherType = voucherType; + this.Currency = currency; + this.StoreNames = storeNames; + this.PromotionDetails = promotionDetails; + this.CreditNoteDetails = creditNoteDetails; + this.LumpDiscountDetails = lumpDiscountDetails; + this.PercentDiscountDetails = percentDiscountDetails; + this.Code = code; + this.Description = description; + this.Stores = stores; + this.ValidOnOrdersOver = validOnOrdersOver; + this.TakesPriority = takesPriority; + this.IsEnabled = isEnabled; + this.IsAutomaticallyApplied = isAutomaticallyApplied; + this.IncludeDeliveryFee = includeDeliveryFee; + this.IsValidForDeliveryOrders = isValidForDeliveryOrders; + this.IsValidForPickupOrders = isValidForPickupOrders; + this.IsValidForOrdersPayedOnline = isValidForOrdersPayedOnline; + this.IsValidForOrdersPayedByCash = isValidForOrdersPayedByCash; + this.IsValidForFirstOrderOnly = isValidForFirstOrderOnly; + this.IsValidOncePerCustomer = isValidOncePerCustomer; + this.IsValidOnlyOnce = isValidOnlyOnce; + this.IsDiscoverable = isDiscoverable; + this.IsPromoted = isPromoted; + this.ForceDiscount = forceDiscount; + this.StartDate = startDate; + this.ExpiryDate = expiryDate; + this.ChannelRestrictions = channelRestrictions; + this.ValidityPeriods = validityPeriods; + this.VoucherSubType = voucherSubType; + this.CustomerId = customerId; + this.MaxRedemptions = maxRedemptions; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + + + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Promotion details + /// + /// Promotion details + [DataMember(Name="PromotionDetails", EmitDefaultValue=false)] + public PromotionDetails PromotionDetails { get; set; } + + /// + /// Credit note details + /// + /// Credit note details + [DataMember(Name="CreditNoteDetails", EmitDefaultValue=false)] + public CreditNoteDetails CreditNoteDetails { get; set; } + + /// + /// Lump discount details + /// + /// Lump discount details + [DataMember(Name="LumpDiscountDetails", EmitDefaultValue=false)] + public LumpDiscountDetails LumpDiscountDetails { get; set; } + + /// + /// Percent discount details + /// + /// Percent discount details + [DataMember(Name="PercentDiscountDetails", EmitDefaultValue=false)] + public PercentDiscountDetails PercentDiscountDetails { get; set; } + + /// + /// Voucher Code + /// + /// Voucher Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Voucher Description (Visible on printout) + /// + /// Voucher Description (Visible on printout) + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Valid on orders on or above + /// + /// Valid on orders on or above + [DataMember(Name="ValidOnOrdersOver", EmitDefaultValue=false)] + public double? ValidOnOrdersOver { get; set; } + + /// + /// Takes priority + /// + /// Takes priority + [DataMember(Name="TakesPriority", EmitDefaultValue=false)] + public bool? TakesPriority { get; set; } + + /// + /// Is voucher enabled + /// + /// Is voucher enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Is voucher automatically applied + /// + /// Is voucher automatically applied + [DataMember(Name="IsAutomaticallyApplied", EmitDefaultValue=false)] + public bool? IsAutomaticallyApplied { get; set; } + + /// + /// Include delivery fees + /// + /// Include delivery fees + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Valid for delivery orders + /// + /// Valid for delivery orders + [DataMember(Name="IsValidForDeliveryOrders", EmitDefaultValue=false)] + public bool? IsValidForDeliveryOrders { get; set; } + + /// + /// Valid for pickup orders + /// + /// Valid for pickup orders + [DataMember(Name="IsValidForPickupOrders", EmitDefaultValue=false)] + public bool? IsValidForPickupOrders { get; set; } + + /// + /// Valid for orders payed online + /// + /// Valid for orders payed online + [DataMember(Name="IsValidForOrdersPayedOnline", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedOnline { get; set; } + + /// + /// Valid for orders payed in cash + /// + /// Valid for orders payed in cash + [DataMember(Name="IsValidForOrdersPayedByCash", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedByCash { get; set; } + + /// + /// Valid only on the first order by the customer + /// + /// Valid only on the first order by the customer + [DataMember(Name="IsValidForFirstOrderOnly", EmitDefaultValue=false)] + public bool? IsValidForFirstOrderOnly { get; set; } + + /// + /// Valid once per customer + /// + /// Valid once per customer + [DataMember(Name="IsValidOncePerCustomer", EmitDefaultValue=false)] + public bool? IsValidOncePerCustomer { get; set; } + + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + [DataMember(Name="IsValidOnlyOnce", EmitDefaultValue=false)] + public bool? IsValidOnlyOnce { get; set; } + + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + [DataMember(Name="IsDiscoverable", EmitDefaultValue=false)] + public bool? IsDiscoverable { get; set; } + + /// + /// Marks the voucher as promoted + /// + /// Marks the voucher as promoted + [DataMember(Name="IsPromoted", EmitDefaultValue=false)] + public bool? IsPromoted { get; set; } + + /// + /// Force the discount to be applied which bypasses some menu restrictions + /// + /// Force the discount to be applied which bypasses some menu restrictions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Voucher Starts On (Time in UTC) + /// + /// Voucher Starts On (Time in UTC) + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// Voucher Expires On (Time in UTC) + /// + /// Voucher Expires On (Time in UTC) + [DataMember(Name="ExpiryDate", EmitDefaultValue=false)] + public DateTime? ExpiryDate { get; set; } + + + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + [DataMember(Name="ValidityPeriods", EmitDefaultValue=false)] + public List ValidityPeriods { get; set; } + + + /// + /// Customer UserID + /// + /// Customer UserID + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public int? CustomerId { get; set; } + + /// + /// Maximum number of times the voucher can be redeemed (used) + /// + /// Maximum number of times the voucher can be redeemed (used) + [DataMember(Name="MaxRedemptions", EmitDefaultValue=false)] + public int? MaxRedemptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Voucher {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" VoucherType: ").Append(VoucherType).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" PromotionDetails: ").Append(PromotionDetails).Append("\n"); + sb.Append(" CreditNoteDetails: ").Append(CreditNoteDetails).Append("\n"); + sb.Append(" LumpDiscountDetails: ").Append(LumpDiscountDetails).Append("\n"); + sb.Append(" PercentDiscountDetails: ").Append(PercentDiscountDetails).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" ValidOnOrdersOver: ").Append(ValidOnOrdersOver).Append("\n"); + sb.Append(" TakesPriority: ").Append(TakesPriority).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsAutomaticallyApplied: ").Append(IsAutomaticallyApplied).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" IsValidForDeliveryOrders: ").Append(IsValidForDeliveryOrders).Append("\n"); + sb.Append(" IsValidForPickupOrders: ").Append(IsValidForPickupOrders).Append("\n"); + sb.Append(" IsValidForOrdersPayedOnline: ").Append(IsValidForOrdersPayedOnline).Append("\n"); + sb.Append(" IsValidForOrdersPayedByCash: ").Append(IsValidForOrdersPayedByCash).Append("\n"); + sb.Append(" IsValidForFirstOrderOnly: ").Append(IsValidForFirstOrderOnly).Append("\n"); + sb.Append(" IsValidOncePerCustomer: ").Append(IsValidOncePerCustomer).Append("\n"); + sb.Append(" IsValidOnlyOnce: ").Append(IsValidOnlyOnce).Append("\n"); + sb.Append(" IsDiscoverable: ").Append(IsDiscoverable).Append("\n"); + sb.Append(" IsPromoted: ").Append(IsPromoted).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" ExpiryDate: ").Append(ExpiryDate).Append("\n"); + sb.Append(" ChannelRestrictions: ").Append(ChannelRestrictions).Append("\n"); + sb.Append(" ValidityPeriods: ").Append(ValidityPeriods).Append("\n"); + sb.Append(" VoucherSubType: ").Append(VoucherSubType).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" MaxRedemptions: ").Append(MaxRedemptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Voucher); + } + + /// + /// Returns true if Voucher instances are equal + /// + /// Instance of Voucher to be compared + /// Boolean + public bool Equals(Voucher input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VoucherType == input.VoucherType || + (this.VoucherType != null && + this.VoucherType.Equals(input.VoucherType)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.PromotionDetails == input.PromotionDetails || + (this.PromotionDetails != null && + this.PromotionDetails.Equals(input.PromotionDetails)) + ) && + ( + this.CreditNoteDetails == input.CreditNoteDetails || + (this.CreditNoteDetails != null && + this.CreditNoteDetails.Equals(input.CreditNoteDetails)) + ) && + ( + this.LumpDiscountDetails == input.LumpDiscountDetails || + (this.LumpDiscountDetails != null && + this.LumpDiscountDetails.Equals(input.LumpDiscountDetails)) + ) && + ( + this.PercentDiscountDetails == input.PercentDiscountDetails || + (this.PercentDiscountDetails != null && + this.PercentDiscountDetails.Equals(input.PercentDiscountDetails)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.ValidOnOrdersOver == input.ValidOnOrdersOver || + (this.ValidOnOrdersOver != null && + this.ValidOnOrdersOver.Equals(input.ValidOnOrdersOver)) + ) && + ( + this.TakesPriority == input.TakesPriority || + (this.TakesPriority != null && + this.TakesPriority.Equals(input.TakesPriority)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsAutomaticallyApplied == input.IsAutomaticallyApplied || + (this.IsAutomaticallyApplied != null && + this.IsAutomaticallyApplied.Equals(input.IsAutomaticallyApplied)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.IsValidForDeliveryOrders == input.IsValidForDeliveryOrders || + (this.IsValidForDeliveryOrders != null && + this.IsValidForDeliveryOrders.Equals(input.IsValidForDeliveryOrders)) + ) && + ( + this.IsValidForPickupOrders == input.IsValidForPickupOrders || + (this.IsValidForPickupOrders != null && + this.IsValidForPickupOrders.Equals(input.IsValidForPickupOrders)) + ) && + ( + this.IsValidForOrdersPayedOnline == input.IsValidForOrdersPayedOnline || + (this.IsValidForOrdersPayedOnline != null && + this.IsValidForOrdersPayedOnline.Equals(input.IsValidForOrdersPayedOnline)) + ) && + ( + this.IsValidForOrdersPayedByCash == input.IsValidForOrdersPayedByCash || + (this.IsValidForOrdersPayedByCash != null && + this.IsValidForOrdersPayedByCash.Equals(input.IsValidForOrdersPayedByCash)) + ) && + ( + this.IsValidForFirstOrderOnly == input.IsValidForFirstOrderOnly || + (this.IsValidForFirstOrderOnly != null && + this.IsValidForFirstOrderOnly.Equals(input.IsValidForFirstOrderOnly)) + ) && + ( + this.IsValidOncePerCustomer == input.IsValidOncePerCustomer || + (this.IsValidOncePerCustomer != null && + this.IsValidOncePerCustomer.Equals(input.IsValidOncePerCustomer)) + ) && + ( + this.IsValidOnlyOnce == input.IsValidOnlyOnce || + (this.IsValidOnlyOnce != null && + this.IsValidOnlyOnce.Equals(input.IsValidOnlyOnce)) + ) && + ( + this.IsDiscoverable == input.IsDiscoverable || + (this.IsDiscoverable != null && + this.IsDiscoverable.Equals(input.IsDiscoverable)) + ) && + ( + this.IsPromoted == input.IsPromoted || + (this.IsPromoted != null && + this.IsPromoted.Equals(input.IsPromoted)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.ExpiryDate == input.ExpiryDate || + (this.ExpiryDate != null && + this.ExpiryDate.Equals(input.ExpiryDate)) + ) && + ( + this.ChannelRestrictions == input.ChannelRestrictions || + this.ChannelRestrictions != null && + this.ChannelRestrictions.SequenceEqual(input.ChannelRestrictions) + ) && + ( + this.ValidityPeriods == input.ValidityPeriods || + this.ValidityPeriods != null && + this.ValidityPeriods.SequenceEqual(input.ValidityPeriods) + ) && + ( + this.VoucherSubType == input.VoucherSubType || + (this.VoucherSubType != null && + this.VoucherSubType.Equals(input.VoucherSubType)) + ) && + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ) && + ( + this.MaxRedemptions == input.MaxRedemptions || + (this.MaxRedemptions != null && + this.MaxRedemptions.Equals(input.MaxRedemptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VoucherType != null) + hashCode = hashCode * 59 + this.VoucherType.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.PromotionDetails != null) + hashCode = hashCode * 59 + this.PromotionDetails.GetHashCode(); + if (this.CreditNoteDetails != null) + hashCode = hashCode * 59 + this.CreditNoteDetails.GetHashCode(); + if (this.LumpDiscountDetails != null) + hashCode = hashCode * 59 + this.LumpDiscountDetails.GetHashCode(); + if (this.PercentDiscountDetails != null) + hashCode = hashCode * 59 + this.PercentDiscountDetails.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.ValidOnOrdersOver != null) + hashCode = hashCode * 59 + this.ValidOnOrdersOver.GetHashCode(); + if (this.TakesPriority != null) + hashCode = hashCode * 59 + this.TakesPriority.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsAutomaticallyApplied != null) + hashCode = hashCode * 59 + this.IsAutomaticallyApplied.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.IsValidForDeliveryOrders != null) + hashCode = hashCode * 59 + this.IsValidForDeliveryOrders.GetHashCode(); + if (this.IsValidForPickupOrders != null) + hashCode = hashCode * 59 + this.IsValidForPickupOrders.GetHashCode(); + if (this.IsValidForOrdersPayedOnline != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedOnline.GetHashCode(); + if (this.IsValidForOrdersPayedByCash != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedByCash.GetHashCode(); + if (this.IsValidForFirstOrderOnly != null) + hashCode = hashCode * 59 + this.IsValidForFirstOrderOnly.GetHashCode(); + if (this.IsValidOncePerCustomer != null) + hashCode = hashCode * 59 + this.IsValidOncePerCustomer.GetHashCode(); + if (this.IsValidOnlyOnce != null) + hashCode = hashCode * 59 + this.IsValidOnlyOnce.GetHashCode(); + if (this.IsDiscoverable != null) + hashCode = hashCode * 59 + this.IsDiscoverable.GetHashCode(); + if (this.IsPromoted != null) + hashCode = hashCode * 59 + this.IsPromoted.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.ExpiryDate != null) + hashCode = hashCode * 59 + this.ExpiryDate.GetHashCode(); + if (this.ChannelRestrictions != null) + hashCode = hashCode * 59 + this.ChannelRestrictions.GetHashCode(); + if (this.ValidityPeriods != null) + hashCode = hashCode * 59 + this.ValidityPeriods.GetHashCode(); + if (this.VoucherSubType != null) + hashCode = hashCode * 59 + this.VoucherSubType.GetHashCode(); + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + if (this.MaxRedemptions != null) + hashCode = hashCode * 59 + this.MaxRedemptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherAppliedEvent.cs b/src/Flipdish/Model/VoucherAppliedEvent.cs new file mode 100644 index 00000000..e14e5a1a --- /dev/null +++ b/src/Flipdish/Model/VoucherAppliedEvent.cs @@ -0,0 +1,283 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher Applied Event + /// + [DataContract] + public partial class VoucherAppliedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// The event name. + /// Order id. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public VoucherAppliedEvent(int? voucherId = default(int?), string eventName = default(string), int? orderId = default(int?), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.VoucherId = voucherId; + this.EventName = eventName; + this.OrderId = orderId; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Order id + /// + /// Order id + [DataMember(Name="OrderId", EmitDefaultValue=false)] + public int? OrderId { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherAppliedEvent {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherAppliedEvent); + } + + /// + /// Returns true if VoucherAppliedEvent instances are equal + /// + /// Instance of VoucherAppliedEvent to be compared + /// Boolean + public bool Equals(VoucherAppliedEvent input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherCreatedEvent.cs b/src/Flipdish/Model/VoucherCreatedEvent.cs new file mode 100644 index 00000000..24060b24 --- /dev/null +++ b/src/Flipdish/Model/VoucherCreatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher Created Event + /// + [DataContract] + public partial class VoucherCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// The event name. + /// User which created this voucher. + /// Description. + /// Created voucher. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public VoucherCreatedEvent(int? voucherId = default(int?), string eventName = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), Voucher voucher = default(Voucher), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.VoucherId = voucherId; + this.EventName = eventName; + this.User = user; + this.Description = description; + this.Voucher = voucher; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// User which created this voucher + /// + /// User which created this voucher + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Created voucher + /// + /// Created voucher + [DataMember(Name="Voucher", EmitDefaultValue=false)] + public Voucher Voucher { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherCreatedEvent {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Voucher: ").Append(Voucher).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherCreatedEvent); + } + + /// + /// Returns true if VoucherCreatedEvent instances are equal + /// + /// Instance of VoucherCreatedEvent to be compared + /// Boolean + public bool Equals(VoucherCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Voucher == input.Voucher || + (this.Voucher != null && + this.Voucher.Equals(input.Voucher)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Voucher != null) + hashCode = hashCode * 59 + this.Voucher.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherDataPoint.cs b/src/Flipdish/Model/VoucherDataPoint.cs new file mode 100644 index 00000000..6e3b0cca --- /dev/null +++ b/src/Flipdish/Model/VoucherDataPoint.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// A single data point in timeline graphs related to Vouchers + /// + [DataContract] + public partial class VoucherDataPoint : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Date from which the data point starts. + /// The length in days that this data point covers. + /// The value of this data point. + public VoucherDataPoint(DateTime? periodStart = default(DateTime?), int? periodLengthInDays = default(int?), int? value = default(int?)) + { + this.PeriodStart = periodStart; + this.PeriodLengthInDays = periodLengthInDays; + this.Value = value; + } + + /// + /// Date from which the data point starts + /// + /// Date from which the data point starts + [DataMember(Name="PeriodStart", EmitDefaultValue=false)] + public DateTime? PeriodStart { get; set; } + + /// + /// The length in days that this data point covers + /// + /// The length in days that this data point covers + [DataMember(Name="PeriodLengthInDays", EmitDefaultValue=false)] + public int? PeriodLengthInDays { get; set; } + + /// + /// The value of this data point + /// + /// The value of this data point + [DataMember(Name="Value", EmitDefaultValue=false)] + public int? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherDataPoint {\n"); + sb.Append(" PeriodStart: ").Append(PeriodStart).Append("\n"); + sb.Append(" PeriodLengthInDays: ").Append(PeriodLengthInDays).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherDataPoint); + } + + /// + /// Returns true if VoucherDataPoint instances are equal + /// + /// Instance of VoucherDataPoint to be compared + /// Boolean + public bool Equals(VoucherDataPoint input) + { + if (input == null) + return false; + + return + ( + this.PeriodStart == input.PeriodStart || + (this.PeriodStart != null && + this.PeriodStart.Equals(input.PeriodStart)) + ) && + ( + this.PeriodLengthInDays == input.PeriodLengthInDays || + (this.PeriodLengthInDays != null && + this.PeriodLengthInDays.Equals(input.PeriodLengthInDays)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PeriodStart != null) + hashCode = hashCode * 59 + this.PeriodStart.GetHashCode(); + if (this.PeriodLengthInDays != null) + hashCode = hashCode * 59 + this.PeriodLengthInDays.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherDeletedEvent.cs b/src/Flipdish/Model/VoucherDeletedEvent.cs new file mode 100644 index 00000000..5ab212bf --- /dev/null +++ b/src/Flipdish/Model/VoucherDeletedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher Deleted Event + /// + [DataContract] + public partial class VoucherDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// The event name. + /// User which deleted this voucher. + /// Description. + /// Deleted voucher. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public VoucherDeletedEvent(int? voucherId = default(int?), string eventName = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), Voucher voucher = default(Voucher), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.VoucherId = voucherId; + this.EventName = eventName; + this.User = user; + this.Description = description; + this.Voucher = voucher; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// User which deleted this voucher + /// + /// User which deleted this voucher + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Deleted voucher + /// + /// Deleted voucher + [DataMember(Name="Voucher", EmitDefaultValue=false)] + public Voucher Voucher { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherDeletedEvent {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Voucher: ").Append(Voucher).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherDeletedEvent); + } + + /// + /// Returns true if VoucherDeletedEvent instances are equal + /// + /// Instance of VoucherDeletedEvent to be compared + /// Boolean + public bool Equals(VoucherDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Voucher == input.Voucher || + (this.Voucher != null && + this.Voucher.Equals(input.Voucher)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Voucher != null) + hashCode = hashCode * 59 + this.Voucher.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherSummary.cs b/src/Flipdish/Model/VoucherSummary.cs new file mode 100644 index 00000000..816f19d1 --- /dev/null +++ b/src/Flipdish/Model/VoucherSummary.cs @@ -0,0 +1,457 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher Summary + /// + [DataContract] + public partial class VoucherSummary : IEquatable + { + /// + /// Voucher Status + /// + /// Voucher Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Valid for value: Valid + /// + [EnumMember(Value = "Valid")] + Valid = 1, + + /// + /// Enum NotYetValid for value: NotYetValid + /// + [EnumMember(Value = "NotYetValid")] + NotYetValid = 2, + + /// + /// Enum Expired for value: Expired + /// + [EnumMember(Value = "Expired")] + Expired = 3, + + /// + /// Enum Used for value: Used + /// + [EnumMember(Value = "Used")] + Used = 4, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 5 + } + + /// + /// Voucher Status + /// + /// Voucher Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Voucher Type + /// + /// Voucher Type + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherTypeEnum + { + + /// + /// Enum PercentageDiscount for value: PercentageDiscount + /// + [EnumMember(Value = "PercentageDiscount")] + PercentageDiscount = 1, + + /// + /// Enum LumpDiscount for value: LumpDiscount + /// + [EnumMember(Value = "LumpDiscount")] + LumpDiscount = 2, + + /// + /// Enum AddItem for value: AddItem + /// + [EnumMember(Value = "AddItem")] + AddItem = 3, + + /// + /// Enum CreditNote for value: CreditNote + /// + [EnumMember(Value = "CreditNote")] + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 + } + + /// + /// Voucher Type + /// + /// Voucher Type + [DataMember(Name="VoucherType", EmitDefaultValue=false)] + public VoucherTypeEnum? VoucherType { get; set; } + /// + /// Voucher Sub Type + /// + /// Voucher Sub Type + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherSubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher Sub Type + /// + /// Voucher Sub Type + [DataMember(Name="VoucherSubType", EmitDefaultValue=false)] + public VoucherSubTypeEnum? VoucherSubType { get; set; } + /// + /// Defines ChannelRestrictions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelRestrictionsEnum + { + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 3, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 4, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 5, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 6 + } + + + /// + /// Channels the voucher is restricted to + /// + /// Channels the voucher is restricted to + [DataMember(Name="ChannelRestrictions", EmitDefaultValue=false)] + public List ChannelRestrictions { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// Voucher Code. + /// Voucher Status. + /// Voucher Type. + /// Voucher Sub Type. + /// Voucher Description (Visible on printout). + /// Is voucher enabled. + /// Marks the voucher as promoted. + /// Store names associated with this voucher. + /// True if the voucher is available on all active stores in the app. + /// Channels the voucher is restricted to. + public VoucherSummary(int? voucherId = default(int?), string code = default(string), StatusEnum? status = default(StatusEnum?), VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), string description = default(string), bool? isEnabled = default(bool?), bool? isPromoted = default(bool?), List storeNames = default(List), bool? isAvailableOnAllStores = default(bool?), List channelRestrictions = default(List)) + { + this.VoucherId = voucherId; + this.Code = code; + this.Status = status; + this.VoucherType = voucherType; + this.VoucherSubType = voucherSubType; + this.Description = description; + this.IsEnabled = isEnabled; + this.IsPromoted = isPromoted; + this.StoreNames = storeNames; + this.IsAvailableOnAllStores = isAvailableOnAllStores; + this.ChannelRestrictions = channelRestrictions; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// Voucher Code + /// + /// Voucher Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + + + + /// + /// Voucher Description (Visible on printout) + /// + /// Voucher Description (Visible on printout) + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Is voucher enabled + /// + /// Is voucher enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Marks the voucher as promoted + /// + /// Marks the voucher as promoted + [DataMember(Name="IsPromoted", EmitDefaultValue=false)] + public bool? IsPromoted { get; set; } + + /// + /// Store names associated with this voucher + /// + /// Store names associated with this voucher + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// True if the voucher is available on all active stores in the app + /// + /// True if the voucher is available on all active stores in the app + [DataMember(Name="IsAvailableOnAllStores", EmitDefaultValue=false)] + public bool? IsAvailableOnAllStores { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherSummary {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" VoucherType: ").Append(VoucherType).Append("\n"); + sb.Append(" VoucherSubType: ").Append(VoucherSubType).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsPromoted: ").Append(IsPromoted).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" IsAvailableOnAllStores: ").Append(IsAvailableOnAllStores).Append("\n"); + sb.Append(" ChannelRestrictions: ").Append(ChannelRestrictions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherSummary); + } + + /// + /// Returns true if VoucherSummary instances are equal + /// + /// Instance of VoucherSummary to be compared + /// Boolean + public bool Equals(VoucherSummary input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VoucherType == input.VoucherType || + (this.VoucherType != null && + this.VoucherType.Equals(input.VoucherType)) + ) && + ( + this.VoucherSubType == input.VoucherSubType || + (this.VoucherSubType != null && + this.VoucherSubType.Equals(input.VoucherSubType)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsPromoted == input.IsPromoted || + (this.IsPromoted != null && + this.IsPromoted.Equals(input.IsPromoted)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.IsAvailableOnAllStores == input.IsAvailableOnAllStores || + (this.IsAvailableOnAllStores != null && + this.IsAvailableOnAllStores.Equals(input.IsAvailableOnAllStores)) + ) && + ( + this.ChannelRestrictions == input.ChannelRestrictions || + this.ChannelRestrictions != null && + this.ChannelRestrictions.SequenceEqual(input.ChannelRestrictions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VoucherType != null) + hashCode = hashCode * 59 + this.VoucherType.GetHashCode(); + if (this.VoucherSubType != null) + hashCode = hashCode * 59 + this.VoucherSubType.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsPromoted != null) + hashCode = hashCode * 59 + this.IsPromoted.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.IsAvailableOnAllStores != null) + hashCode = hashCode * 59 + this.IsAvailableOnAllStores.GetHashCode(); + if (this.ChannelRestrictions != null) + hashCode = hashCode * 59 + this.ChannelRestrictions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherUpdatedEvent.cs b/src/Flipdish/Model/VoucherUpdatedEvent.cs new file mode 100644 index 00000000..babf3f3e --- /dev/null +++ b/src/Flipdish/Model/VoucherUpdatedEvent.cs @@ -0,0 +1,317 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher Updated Event + /// + [DataContract] + public partial class VoucherUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Voucher Id. + /// The event name. + /// User which updated this voucher. + /// Description. + /// Updated voucher. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public VoucherUpdatedEvent(int? voucherId = default(int?), string eventName = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), Voucher voucher = default(Voucher), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.VoucherId = voucherId; + this.EventName = eventName; + this.User = user; + this.Description = description; + this.Voucher = voucher; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// User which updated this voucher + /// + /// User which updated this voucher + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Updated voucher + /// + /// Updated voucher + [DataMember(Name="Voucher", EmitDefaultValue=false)] + public Voucher Voucher { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherUpdatedEvent {\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Voucher: ").Append(Voucher).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherUpdatedEvent); + } + + /// + /// Returns true if VoucherUpdatedEvent instances are equal + /// + /// Instance of VoucherUpdatedEvent to be compared + /// Boolean + public bool Equals(VoucherUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Voucher == input.Voucher || + (this.Voucher != null && + this.Voucher.Equals(input.Voucher)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Voucher != null) + hashCode = hashCode * 59 + this.Voucher.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/VoucherWithStats.cs b/src/Flipdish/Model/VoucherWithStats.cs new file mode 100644 index 00000000..52491759 --- /dev/null +++ b/src/Flipdish/Model/VoucherWithStats.cs @@ -0,0 +1,1620 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Voucher With Statistics + /// + [DataContract] + public partial class VoucherWithStats : IEquatable + { + /// + /// Voucher Status + /// + /// Voucher Status + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + + /// + /// Enum Valid for value: Valid + /// + [EnumMember(Value = "Valid")] + Valid = 1, + + /// + /// Enum NotYetValid for value: NotYetValid + /// + [EnumMember(Value = "NotYetValid")] + NotYetValid = 2, + + /// + /// Enum Expired for value: Expired + /// + [EnumMember(Value = "Expired")] + Expired = 3, + + /// + /// Enum Used for value: Used + /// + [EnumMember(Value = "Used")] + Used = 4, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 5 + } + + /// + /// Voucher Status + /// + /// Voucher Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum? Status { get; set; } + /// + /// Voucher Type + /// + /// Voucher Type + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherTypeEnum + { + + /// + /// Enum PercentageDiscount for value: PercentageDiscount + /// + [EnumMember(Value = "PercentageDiscount")] + PercentageDiscount = 1, + + /// + /// Enum LumpDiscount for value: LumpDiscount + /// + [EnumMember(Value = "LumpDiscount")] + LumpDiscount = 2, + + /// + /// Enum AddItem for value: AddItem + /// + [EnumMember(Value = "AddItem")] + AddItem = 3, + + /// + /// Enum CreditNote for value: CreditNote + /// + [EnumMember(Value = "CreditNote")] + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 + } + + /// + /// Voucher Type + /// + /// Voucher Type + [DataMember(Name="VoucherType", EmitDefaultValue=false)] + public VoucherTypeEnum? VoucherType { get; set; } + /// + /// Currency of the voucher + /// + /// Currency of the voucher + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR = 1, + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 2, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP = 3, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD = 4, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD = 5, + + /// + /// Enum DJF for value: DJF + /// + [EnumMember(Value = "DJF")] + DJF = 6, + + /// + /// Enum ZAR for value: ZAR + /// + [EnumMember(Value = "ZAR")] + ZAR = 7, + + /// + /// Enum ETB for value: ETB + /// + [EnumMember(Value = "ETB")] + ETB = 8, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED = 9, + + /// + /// Enum BHD for value: BHD + /// + [EnumMember(Value = "BHD")] + BHD = 10, + + /// + /// Enum DZD for value: DZD + /// + [EnumMember(Value = "DZD")] + DZD = 11, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP = 12, + + /// + /// Enum IQD for value: IQD + /// + [EnumMember(Value = "IQD")] + IQD = 13, + + /// + /// Enum JOD for value: JOD + /// + [EnumMember(Value = "JOD")] + JOD = 14, + + /// + /// Enum KWD for value: KWD + /// + [EnumMember(Value = "KWD")] + KWD = 15, + + /// + /// Enum LBP for value: LBP + /// + [EnumMember(Value = "LBP")] + LBP = 16, + + /// + /// Enum LYD for value: LYD + /// + [EnumMember(Value = "LYD")] + LYD = 17, + + /// + /// Enum MAD for value: MAD + /// + [EnumMember(Value = "MAD")] + MAD = 18, + + /// + /// Enum OMR for value: OMR + /// + [EnumMember(Value = "OMR")] + OMR = 19, + + /// + /// Enum QAR for value: QAR + /// + [EnumMember(Value = "QAR")] + QAR = 20, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR = 21, + + /// + /// Enum SYP for value: SYP + /// + [EnumMember(Value = "SYP")] + SYP = 22, + + /// + /// Enum TND for value: TND + /// + [EnumMember(Value = "TND")] + TND = 23, + + /// + /// Enum YER for value: YER + /// + [EnumMember(Value = "YER")] + YER = 24, + + /// + /// Enum CLP for value: CLP + /// + [EnumMember(Value = "CLP")] + CLP = 25, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR = 26, + + /// + /// Enum AZN for value: AZN + /// + [EnumMember(Value = "AZN")] + AZN = 27, + + /// + /// Enum RUB for value: RUB + /// + [EnumMember(Value = "RUB")] + RUB = 28, + + /// + /// Enum BYN for value: BYN + /// + [EnumMember(Value = "BYN")] + BYN = 29, + + /// + /// Enum BGN for value: BGN + /// + [EnumMember(Value = "BGN")] + BGN = 30, + + /// + /// Enum NGN for value: NGN + /// + [EnumMember(Value = "NGN")] + NGN = 31, + + /// + /// Enum BDT for value: BDT + /// + [EnumMember(Value = "BDT")] + BDT = 32, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY = 33, + + /// + /// Enum BAM for value: BAM + /// + [EnumMember(Value = "BAM")] + BAM = 34, + + /// + /// Enum CZK for value: CZK + /// + [EnumMember(Value = "CZK")] + CZK = 35, + + /// + /// Enum DKK for value: DKK + /// + [EnumMember(Value = "DKK")] + DKK = 36, + + /// + /// Enum CHF for value: CHF + /// + [EnumMember(Value = "CHF")] + CHF = 37, + + /// + /// Enum MVR for value: MVR + /// + [EnumMember(Value = "MVR")] + MVR = 38, + + /// + /// Enum BTN for value: BTN + /// + [EnumMember(Value = "BTN")] + BTN = 39, + + /// + /// Enum XCD for value: XCD + /// + [EnumMember(Value = "XCD")] + XCD = 40, + + /// + /// Enum BZD for value: BZD + /// + [EnumMember(Value = "BZD")] + BZD = 41, + + /// + /// Enum HKD for value: HKD + /// + [EnumMember(Value = "HKD")] + HKD = 42, + + /// + /// Enum IDR for value: IDR + /// + [EnumMember(Value = "IDR")] + IDR = 43, + + /// + /// Enum JMD for value: JMD + /// + [EnumMember(Value = "JMD")] + JMD = 44, + + /// + /// Enum MYR for value: MYR + /// + [EnumMember(Value = "MYR")] + MYR = 45, + + /// + /// Enum NZD for value: NZD + /// + [EnumMember(Value = "NZD")] + NZD = 46, + + /// + /// Enum PHP for value: PHP + /// + [EnumMember(Value = "PHP")] + PHP = 47, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD = 48, + + /// + /// Enum TTD for value: TTD + /// + [EnumMember(Value = "TTD")] + TTD = 49, + + /// + /// Enum XDR for value: XDR + /// + [EnumMember(Value = "XDR")] + XDR = 50, + + /// + /// Enum ARS for value: ARS + /// + [EnumMember(Value = "ARS")] + ARS = 51, + + /// + /// Enum BOB for value: BOB + /// + [EnumMember(Value = "BOB")] + BOB = 52, + + /// + /// Enum COP for value: COP + /// + [EnumMember(Value = "COP")] + COP = 53, + + /// + /// Enum CRC for value: CRC + /// + [EnumMember(Value = "CRC")] + CRC = 54, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 55, + + /// + /// Enum DOP for value: DOP + /// + [EnumMember(Value = "DOP")] + DOP = 56, + + /// + /// Enum GTQ for value: GTQ + /// + [EnumMember(Value = "GTQ")] + GTQ = 57, + + /// + /// Enum HNL for value: HNL + /// + [EnumMember(Value = "HNL")] + HNL = 58, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN = 59, + + /// + /// Enum NIO for value: NIO + /// + [EnumMember(Value = "NIO")] + NIO = 60, + + /// + /// Enum PAB for value: PAB + /// + [EnumMember(Value = "PAB")] + PAB = 61, + + /// + /// Enum PEN for value: PEN + /// + [EnumMember(Value = "PEN")] + PEN = 62, + + /// + /// Enum PYG for value: PYG + /// + [EnumMember(Value = "PYG")] + PYG = 63, + + /// + /// Enum UYU for value: UYU + /// + [EnumMember(Value = "UYU")] + UYU = 64, + + /// + /// Enum VEF for value: VEF + /// + [EnumMember(Value = "VEF")] + VEF = 65, + + /// + /// Enum IRR for value: IRR + /// + [EnumMember(Value = "IRR")] + IRR = 66, + + /// + /// Enum XOF for value: XOF + /// + [EnumMember(Value = "XOF")] + XOF = 67, + + /// + /// Enum CDF for value: CDF + /// + [EnumMember(Value = "CDF")] + CDF = 68, + + /// + /// Enum XAF for value: XAF + /// + [EnumMember(Value = "XAF")] + XAF = 69, + + /// + /// Enum HTG for value: HTG + /// + [EnumMember(Value = "HTG")] + HTG = 70, + + /// + /// Enum ILS for value: ILS + /// + [EnumMember(Value = "ILS")] + ILS = 71, + + /// + /// Enum HRK for value: HRK + /// + [EnumMember(Value = "HRK")] + HRK = 72, + + /// + /// Enum HUF for value: HUF + /// + [EnumMember(Value = "HUF")] + HUF = 73, + + /// + /// Enum AMD for value: AMD + /// + [EnumMember(Value = "AMD")] + AMD = 74, + + /// + /// Enum ISK for value: ISK + /// + [EnumMember(Value = "ISK")] + ISK = 75, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY = 76, + + /// + /// Enum GEL for value: GEL + /// + [EnumMember(Value = "GEL")] + GEL = 77, + + /// + /// Enum KZT for value: KZT + /// + [EnumMember(Value = "KZT")] + KZT = 78, + + /// + /// Enum KHR for value: KHR + /// + [EnumMember(Value = "KHR")] + KHR = 79, + + /// + /// Enum KRW for value: KRW + /// + [EnumMember(Value = "KRW")] + KRW = 80, + + /// + /// Enum KGS for value: KGS + /// + [EnumMember(Value = "KGS")] + KGS = 81, + + /// + /// Enum LAK for value: LAK + /// + [EnumMember(Value = "LAK")] + LAK = 82, + + /// + /// Enum MKD for value: MKD + /// + [EnumMember(Value = "MKD")] + MKD = 83, + + /// + /// Enum MNT for value: MNT + /// + [EnumMember(Value = "MNT")] + MNT = 84, + + /// + /// Enum BND for value: BND + /// + [EnumMember(Value = "BND")] + BND = 85, + + /// + /// Enum MMK for value: MMK + /// + [EnumMember(Value = "MMK")] + MMK = 86, + + /// + /// Enum NOK for value: NOK + /// + [EnumMember(Value = "NOK")] + NOK = 87, + + /// + /// Enum NPR for value: NPR + /// + [EnumMember(Value = "NPR")] + NPR = 88, + + /// + /// Enum PKR for value: PKR + /// + [EnumMember(Value = "PKR")] + PKR = 89, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN = 90, + + /// + /// Enum AFN for value: AFN + /// + [EnumMember(Value = "AFN")] + AFN = 91, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL = 92, + + /// + /// Enum MDL for value: MDL + /// + [EnumMember(Value = "MDL")] + MDL = 93, + + /// + /// Enum RON for value: RON + /// + [EnumMember(Value = "RON")] + RON = 94, + + /// + /// Enum RWF for value: RWF + /// + [EnumMember(Value = "RWF")] + RWF = 95, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK = 96, + + /// + /// Enum LKR for value: LKR + /// + [EnumMember(Value = "LKR")] + LKR = 97, + + /// + /// Enum SOS for value: SOS + /// + [EnumMember(Value = "SOS")] + SOS = 98, + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 99, + + /// + /// Enum RSD for value: RSD + /// + [EnumMember(Value = "RSD")] + RSD = 100, + + /// + /// Enum KES for value: KES + /// + [EnumMember(Value = "KES")] + KES = 101, + + /// + /// Enum TJS for value: TJS + /// + [EnumMember(Value = "TJS")] + TJS = 102, + + /// + /// Enum THB for value: THB + /// + [EnumMember(Value = "THB")] + THB = 103, + + /// + /// Enum ERN for value: ERN + /// + [EnumMember(Value = "ERN")] + ERN = 104, + + /// + /// Enum TMT for value: TMT + /// + [EnumMember(Value = "TMT")] + TMT = 105, + + /// + /// Enum BWP for value: BWP + /// + [EnumMember(Value = "BWP")] + BWP = 106, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY = 107, + + /// + /// Enum UAH for value: UAH + /// + [EnumMember(Value = "UAH")] + UAH = 108, + + /// + /// Enum UZS for value: UZS + /// + [EnumMember(Value = "UZS")] + UZS = 109, + + /// + /// Enum VND for value: VND + /// + [EnumMember(Value = "VND")] + VND = 110, + + /// + /// Enum MOP for value: MOP + /// + [EnumMember(Value = "MOP")] + MOP = 111, + + /// + /// Enum TWD for value: TWD + /// + [EnumMember(Value = "TWD")] + TWD = 112, + + /// + /// Enum BMD for value: BMD + /// + [EnumMember(Value = "BMD")] + BMD = 113 + } + + /// + /// Currency of the voucher + /// + /// Currency of the voucher + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum? Currency { get; set; } + /// + /// Defines ChannelRestrictions + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChannelRestrictionsEnum + { + + /// + /// Enum Ios for value: Ios + /// + [EnumMember(Value = "Ios")] + Ios = 1, + + /// + /// Enum Android for value: Android + /// + [EnumMember(Value = "Android")] + Android = 2, + + /// + /// Enum Web for value: Web + /// + [EnumMember(Value = "Web")] + Web = 3, + + /// + /// Enum Kiosk for value: Kiosk + /// + [EnumMember(Value = "Kiosk")] + Kiosk = 4, + + /// + /// Enum Pos for value: Pos + /// + [EnumMember(Value = "Pos")] + Pos = 5, + + /// + /// Enum Google for value: Google + /// + [EnumMember(Value = "Google")] + Google = 6 + } + + + /// + /// Limit the channels this voucher can be used on + /// + /// Limit the channels this voucher can be used on + [DataMember(Name="ChannelRestrictions", EmitDefaultValue=false)] + public List ChannelRestrictions { get; set; } + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [JsonConverter(typeof(StringEnumConverter))] + public enum VoucherSubTypeEnum + { + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum SignUp for value: SignUp + /// + [EnumMember(Value = "SignUp")] + SignUp = 2, + + /// + /// Enum Loyalty for value: Loyalty + /// + [EnumMember(Value = "Loyalty")] + Loyalty = 3, + + /// + /// Enum Loyalty25 for value: Loyalty25 + /// + [EnumMember(Value = "Loyalty25")] + Loyalty25 = 4, + + /// + /// Enum Retention for value: Retention + /// + [EnumMember(Value = "Retention")] + Retention = 5, + + /// + /// Enum SecondaryRetention for value: SecondaryRetention + /// + [EnumMember(Value = "SecondaryRetention")] + SecondaryRetention = 6, + + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 7 + } + + /// + /// Voucher Subtype + /// + /// Voucher Subtype + [DataMember(Name="VoucherSubType", EmitDefaultValue=false)] + public VoucherSubTypeEnum? VoucherSubType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Total times the voucher was used. + /// Total amount of customers who used this voucher. + /// Total amount of money from orders. + /// Total amount of money given away. + /// Average Order Size. + /// Voucher Id. + /// Voucher Status. + /// Voucher Type. + /// Currency of the voucher. + /// Stores that this voucher applies to. + /// Promotion details. + /// Credit note details. + /// Lump discount details. + /// Percent discount details. + /// Voucher Code. + /// Voucher Description (Visible on printout). + /// Stores that this voucher applies to. + /// Valid on orders on or above. + /// Takes priority. + /// Is voucher enabled. + /// Is voucher automatically applied. + /// Include delivery fees. + /// Valid for delivery orders. + /// Valid for pickup orders. + /// Valid for orders payed online. + /// Valid for orders payed in cash. + /// Valid only on the first order by the customer. + /// Valid once per customer. + /// Valid only once, by any customer (once used cannot be used again by any other customer). + /// Enables the voucher to be offered in the Voucher Discoverability feature. + /// Marks the voucher as promoted. + /// Force the discount to be applied which bypasses some menu restrictions. + /// Voucher Starts On (Time in UTC). + /// Voucher Expires On (Time in UTC). + /// Limit the channels this voucher can be used on. + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.. + /// Voucher Subtype. + /// Customer UserID. + /// Maximum number of times the voucher can be redeemed (used). + public VoucherWithStats(int? totalUsed = default(int?), int? totalCustomers = default(int?), double? totalAmountFromOrders = default(double?), double? totalDiscounted = default(double?), double? averageOrderSize = default(double?), int? voucherId = default(int?), StatusEnum? status = default(StatusEnum?), VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), List storeNames = default(List), PromotionDetails promotionDetails = default(PromotionDetails), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), List stores = default(List), double? validOnOrdersOver = default(double?), bool? takesPriority = default(bool?), bool? isEnabled = default(bool?), bool? isAutomaticallyApplied = default(bool?), bool? includeDeliveryFee = default(bool?), bool? isValidForDeliveryOrders = default(bool?), bool? isValidForPickupOrders = default(bool?), bool? isValidForOrdersPayedOnline = default(bool?), bool? isValidForOrdersPayedByCash = default(bool?), bool? isValidForFirstOrderOnly = default(bool?), bool? isValidOncePerCustomer = default(bool?), bool? isValidOnlyOnce = default(bool?), bool? isDiscoverable = default(bool?), bool? isPromoted = default(bool?), bool? forceDiscount = default(bool?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?), List channelRestrictions = default(List), List validityPeriods = default(List), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), int? customerId = default(int?), int? maxRedemptions = default(int?)) + { + this.TotalUsed = totalUsed; + this.TotalCustomers = totalCustomers; + this.TotalAmountFromOrders = totalAmountFromOrders; + this.TotalDiscounted = totalDiscounted; + this.AverageOrderSize = averageOrderSize; + this.VoucherId = voucherId; + this.Status = status; + this.VoucherType = voucherType; + this.Currency = currency; + this.StoreNames = storeNames; + this.PromotionDetails = promotionDetails; + this.CreditNoteDetails = creditNoteDetails; + this.LumpDiscountDetails = lumpDiscountDetails; + this.PercentDiscountDetails = percentDiscountDetails; + this.Code = code; + this.Description = description; + this.Stores = stores; + this.ValidOnOrdersOver = validOnOrdersOver; + this.TakesPriority = takesPriority; + this.IsEnabled = isEnabled; + this.IsAutomaticallyApplied = isAutomaticallyApplied; + this.IncludeDeliveryFee = includeDeliveryFee; + this.IsValidForDeliveryOrders = isValidForDeliveryOrders; + this.IsValidForPickupOrders = isValidForPickupOrders; + this.IsValidForOrdersPayedOnline = isValidForOrdersPayedOnline; + this.IsValidForOrdersPayedByCash = isValidForOrdersPayedByCash; + this.IsValidForFirstOrderOnly = isValidForFirstOrderOnly; + this.IsValidOncePerCustomer = isValidOncePerCustomer; + this.IsValidOnlyOnce = isValidOnlyOnce; + this.IsDiscoverable = isDiscoverable; + this.IsPromoted = isPromoted; + this.ForceDiscount = forceDiscount; + this.StartDate = startDate; + this.ExpiryDate = expiryDate; + this.ChannelRestrictions = channelRestrictions; + this.ValidityPeriods = validityPeriods; + this.VoucherSubType = voucherSubType; + this.CustomerId = customerId; + this.MaxRedemptions = maxRedemptions; + } + + /// + /// Total times the voucher was used + /// + /// Total times the voucher was used + [DataMember(Name="TotalUsed", EmitDefaultValue=false)] + public int? TotalUsed { get; set; } + + /// + /// Total amount of customers who used this voucher + /// + /// Total amount of customers who used this voucher + [DataMember(Name="TotalCustomers", EmitDefaultValue=false)] + public int? TotalCustomers { get; set; } + + /// + /// Total amount of money from orders + /// + /// Total amount of money from orders + [DataMember(Name="TotalAmountFromOrders", EmitDefaultValue=false)] + public double? TotalAmountFromOrders { get; set; } + + /// + /// Total amount of money given away + /// + /// Total amount of money given away + [DataMember(Name="TotalDiscounted", EmitDefaultValue=false)] + public double? TotalDiscounted { get; set; } + + /// + /// Average Order Size + /// + /// Average Order Size + [DataMember(Name="AverageOrderSize", EmitDefaultValue=false)] + public double? AverageOrderSize { get; set; } + + /// + /// Voucher Id + /// + /// Voucher Id + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + + + + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="StoreNames", EmitDefaultValue=false)] + public List StoreNames { get; set; } + + /// + /// Promotion details + /// + /// Promotion details + [DataMember(Name="PromotionDetails", EmitDefaultValue=false)] + public PromotionDetails PromotionDetails { get; set; } + + /// + /// Credit note details + /// + /// Credit note details + [DataMember(Name="CreditNoteDetails", EmitDefaultValue=false)] + public CreditNoteDetails CreditNoteDetails { get; set; } + + /// + /// Lump discount details + /// + /// Lump discount details + [DataMember(Name="LumpDiscountDetails", EmitDefaultValue=false)] + public LumpDiscountDetails LumpDiscountDetails { get; set; } + + /// + /// Percent discount details + /// + /// Percent discount details + [DataMember(Name="PercentDiscountDetails", EmitDefaultValue=false)] + public PercentDiscountDetails PercentDiscountDetails { get; set; } + + /// + /// Voucher Code + /// + /// Voucher Code + [DataMember(Name="Code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// Voucher Description (Visible on printout) + /// + /// Voucher Description (Visible on printout) + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Stores that this voucher applies to + /// + /// Stores that this voucher applies to + [DataMember(Name="Stores", EmitDefaultValue=false)] + public List Stores { get; set; } + + /// + /// Valid on orders on or above + /// + /// Valid on orders on or above + [DataMember(Name="ValidOnOrdersOver", EmitDefaultValue=false)] + public double? ValidOnOrdersOver { get; set; } + + /// + /// Takes priority + /// + /// Takes priority + [DataMember(Name="TakesPriority", EmitDefaultValue=false)] + public bool? TakesPriority { get; set; } + + /// + /// Is voucher enabled + /// + /// Is voucher enabled + [DataMember(Name="IsEnabled", EmitDefaultValue=false)] + public bool? IsEnabled { get; set; } + + /// + /// Is voucher automatically applied + /// + /// Is voucher automatically applied + [DataMember(Name="IsAutomaticallyApplied", EmitDefaultValue=false)] + public bool? IsAutomaticallyApplied { get; set; } + + /// + /// Include delivery fees + /// + /// Include delivery fees + [DataMember(Name="IncludeDeliveryFee", EmitDefaultValue=false)] + public bool? IncludeDeliveryFee { get; set; } + + /// + /// Valid for delivery orders + /// + /// Valid for delivery orders + [DataMember(Name="IsValidForDeliveryOrders", EmitDefaultValue=false)] + public bool? IsValidForDeliveryOrders { get; set; } + + /// + /// Valid for pickup orders + /// + /// Valid for pickup orders + [DataMember(Name="IsValidForPickupOrders", EmitDefaultValue=false)] + public bool? IsValidForPickupOrders { get; set; } + + /// + /// Valid for orders payed online + /// + /// Valid for orders payed online + [DataMember(Name="IsValidForOrdersPayedOnline", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedOnline { get; set; } + + /// + /// Valid for orders payed in cash + /// + /// Valid for orders payed in cash + [DataMember(Name="IsValidForOrdersPayedByCash", EmitDefaultValue=false)] + public bool? IsValidForOrdersPayedByCash { get; set; } + + /// + /// Valid only on the first order by the customer + /// + /// Valid only on the first order by the customer + [DataMember(Name="IsValidForFirstOrderOnly", EmitDefaultValue=false)] + public bool? IsValidForFirstOrderOnly { get; set; } + + /// + /// Valid once per customer + /// + /// Valid once per customer + [DataMember(Name="IsValidOncePerCustomer", EmitDefaultValue=false)] + public bool? IsValidOncePerCustomer { get; set; } + + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + /// + /// Valid only once, by any customer (once used cannot be used again by any other customer) + [DataMember(Name="IsValidOnlyOnce", EmitDefaultValue=false)] + public bool? IsValidOnlyOnce { get; set; } + + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + /// + /// Enables the voucher to be offered in the Voucher Discoverability feature + [DataMember(Name="IsDiscoverable", EmitDefaultValue=false)] + public bool? IsDiscoverable { get; set; } + + /// + /// Marks the voucher as promoted + /// + /// Marks the voucher as promoted + [DataMember(Name="IsPromoted", EmitDefaultValue=false)] + public bool? IsPromoted { get; set; } + + /// + /// Force the discount to be applied which bypasses some menu restrictions + /// + /// Force the discount to be applied which bypasses some menu restrictions + [DataMember(Name="ForceDiscount", EmitDefaultValue=false)] + public bool? ForceDiscount { get; set; } + + /// + /// Voucher Starts On (Time in UTC) + /// + /// Voucher Starts On (Time in UTC) + [DataMember(Name="StartDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// Voucher Expires On (Time in UTC) + /// + /// Voucher Expires On (Time in UTC) + [DataMember(Name="ExpiryDate", EmitDefaultValue=false)] + public DateTime? ExpiryDate { get; set; } + + + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + /// + /// Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. + [DataMember(Name="ValidityPeriods", EmitDefaultValue=false)] + public List ValidityPeriods { get; set; } + + + /// + /// Customer UserID + /// + /// Customer UserID + [DataMember(Name="CustomerId", EmitDefaultValue=false)] + public int? CustomerId { get; set; } + + /// + /// Maximum number of times the voucher can be redeemed (used) + /// + /// Maximum number of times the voucher can be redeemed (used) + [DataMember(Name="MaxRedemptions", EmitDefaultValue=false)] + public int? MaxRedemptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VoucherWithStats {\n"); + sb.Append(" TotalUsed: ").Append(TotalUsed).Append("\n"); + sb.Append(" TotalCustomers: ").Append(TotalCustomers).Append("\n"); + sb.Append(" TotalAmountFromOrders: ").Append(TotalAmountFromOrders).Append("\n"); + sb.Append(" TotalDiscounted: ").Append(TotalDiscounted).Append("\n"); + sb.Append(" AverageOrderSize: ").Append(AverageOrderSize).Append("\n"); + sb.Append(" VoucherId: ").Append(VoucherId).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" VoucherType: ").Append(VoucherType).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); + sb.Append(" PromotionDetails: ").Append(PromotionDetails).Append("\n"); + sb.Append(" CreditNoteDetails: ").Append(CreditNoteDetails).Append("\n"); + sb.Append(" LumpDiscountDetails: ").Append(LumpDiscountDetails).Append("\n"); + sb.Append(" PercentDiscountDetails: ").Append(PercentDiscountDetails).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Stores: ").Append(Stores).Append("\n"); + sb.Append(" ValidOnOrdersOver: ").Append(ValidOnOrdersOver).Append("\n"); + sb.Append(" TakesPriority: ").Append(TakesPriority).Append("\n"); + sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); + sb.Append(" IsAutomaticallyApplied: ").Append(IsAutomaticallyApplied).Append("\n"); + sb.Append(" IncludeDeliveryFee: ").Append(IncludeDeliveryFee).Append("\n"); + sb.Append(" IsValidForDeliveryOrders: ").Append(IsValidForDeliveryOrders).Append("\n"); + sb.Append(" IsValidForPickupOrders: ").Append(IsValidForPickupOrders).Append("\n"); + sb.Append(" IsValidForOrdersPayedOnline: ").Append(IsValidForOrdersPayedOnline).Append("\n"); + sb.Append(" IsValidForOrdersPayedByCash: ").Append(IsValidForOrdersPayedByCash).Append("\n"); + sb.Append(" IsValidForFirstOrderOnly: ").Append(IsValidForFirstOrderOnly).Append("\n"); + sb.Append(" IsValidOncePerCustomer: ").Append(IsValidOncePerCustomer).Append("\n"); + sb.Append(" IsValidOnlyOnce: ").Append(IsValidOnlyOnce).Append("\n"); + sb.Append(" IsDiscoverable: ").Append(IsDiscoverable).Append("\n"); + sb.Append(" IsPromoted: ").Append(IsPromoted).Append("\n"); + sb.Append(" ForceDiscount: ").Append(ForceDiscount).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" ExpiryDate: ").Append(ExpiryDate).Append("\n"); + sb.Append(" ChannelRestrictions: ").Append(ChannelRestrictions).Append("\n"); + sb.Append(" ValidityPeriods: ").Append(ValidityPeriods).Append("\n"); + sb.Append(" VoucherSubType: ").Append(VoucherSubType).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" MaxRedemptions: ").Append(MaxRedemptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VoucherWithStats); + } + + /// + /// Returns true if VoucherWithStats instances are equal + /// + /// Instance of VoucherWithStats to be compared + /// Boolean + public bool Equals(VoucherWithStats input) + { + if (input == null) + return false; + + return + ( + this.TotalUsed == input.TotalUsed || + (this.TotalUsed != null && + this.TotalUsed.Equals(input.TotalUsed)) + ) && + ( + this.TotalCustomers == input.TotalCustomers || + (this.TotalCustomers != null && + this.TotalCustomers.Equals(input.TotalCustomers)) + ) && + ( + this.TotalAmountFromOrders == input.TotalAmountFromOrders || + (this.TotalAmountFromOrders != null && + this.TotalAmountFromOrders.Equals(input.TotalAmountFromOrders)) + ) && + ( + this.TotalDiscounted == input.TotalDiscounted || + (this.TotalDiscounted != null && + this.TotalDiscounted.Equals(input.TotalDiscounted)) + ) && + ( + this.AverageOrderSize == input.AverageOrderSize || + (this.AverageOrderSize != null && + this.AverageOrderSize.Equals(input.AverageOrderSize)) + ) && + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VoucherType == input.VoucherType || + (this.VoucherType != null && + this.VoucherType.Equals(input.VoucherType)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.StoreNames == input.StoreNames || + this.StoreNames != null && + this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.PromotionDetails == input.PromotionDetails || + (this.PromotionDetails != null && + this.PromotionDetails.Equals(input.PromotionDetails)) + ) && + ( + this.CreditNoteDetails == input.CreditNoteDetails || + (this.CreditNoteDetails != null && + this.CreditNoteDetails.Equals(input.CreditNoteDetails)) + ) && + ( + this.LumpDiscountDetails == input.LumpDiscountDetails || + (this.LumpDiscountDetails != null && + this.LumpDiscountDetails.Equals(input.LumpDiscountDetails)) + ) && + ( + this.PercentDiscountDetails == input.PercentDiscountDetails || + (this.PercentDiscountDetails != null && + this.PercentDiscountDetails.Equals(input.PercentDiscountDetails)) + ) && + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Stores == input.Stores || + this.Stores != null && + this.Stores.SequenceEqual(input.Stores) + ) && + ( + this.ValidOnOrdersOver == input.ValidOnOrdersOver || + (this.ValidOnOrdersOver != null && + this.ValidOnOrdersOver.Equals(input.ValidOnOrdersOver)) + ) && + ( + this.TakesPriority == input.TakesPriority || + (this.TakesPriority != null && + this.TakesPriority.Equals(input.TakesPriority)) + ) && + ( + this.IsEnabled == input.IsEnabled || + (this.IsEnabled != null && + this.IsEnabled.Equals(input.IsEnabled)) + ) && + ( + this.IsAutomaticallyApplied == input.IsAutomaticallyApplied || + (this.IsAutomaticallyApplied != null && + this.IsAutomaticallyApplied.Equals(input.IsAutomaticallyApplied)) + ) && + ( + this.IncludeDeliveryFee == input.IncludeDeliveryFee || + (this.IncludeDeliveryFee != null && + this.IncludeDeliveryFee.Equals(input.IncludeDeliveryFee)) + ) && + ( + this.IsValidForDeliveryOrders == input.IsValidForDeliveryOrders || + (this.IsValidForDeliveryOrders != null && + this.IsValidForDeliveryOrders.Equals(input.IsValidForDeliveryOrders)) + ) && + ( + this.IsValidForPickupOrders == input.IsValidForPickupOrders || + (this.IsValidForPickupOrders != null && + this.IsValidForPickupOrders.Equals(input.IsValidForPickupOrders)) + ) && + ( + this.IsValidForOrdersPayedOnline == input.IsValidForOrdersPayedOnline || + (this.IsValidForOrdersPayedOnline != null && + this.IsValidForOrdersPayedOnline.Equals(input.IsValidForOrdersPayedOnline)) + ) && + ( + this.IsValidForOrdersPayedByCash == input.IsValidForOrdersPayedByCash || + (this.IsValidForOrdersPayedByCash != null && + this.IsValidForOrdersPayedByCash.Equals(input.IsValidForOrdersPayedByCash)) + ) && + ( + this.IsValidForFirstOrderOnly == input.IsValidForFirstOrderOnly || + (this.IsValidForFirstOrderOnly != null && + this.IsValidForFirstOrderOnly.Equals(input.IsValidForFirstOrderOnly)) + ) && + ( + this.IsValidOncePerCustomer == input.IsValidOncePerCustomer || + (this.IsValidOncePerCustomer != null && + this.IsValidOncePerCustomer.Equals(input.IsValidOncePerCustomer)) + ) && + ( + this.IsValidOnlyOnce == input.IsValidOnlyOnce || + (this.IsValidOnlyOnce != null && + this.IsValidOnlyOnce.Equals(input.IsValidOnlyOnce)) + ) && + ( + this.IsDiscoverable == input.IsDiscoverable || + (this.IsDiscoverable != null && + this.IsDiscoverable.Equals(input.IsDiscoverable)) + ) && + ( + this.IsPromoted == input.IsPromoted || + (this.IsPromoted != null && + this.IsPromoted.Equals(input.IsPromoted)) + ) && + ( + this.ForceDiscount == input.ForceDiscount || + (this.ForceDiscount != null && + this.ForceDiscount.Equals(input.ForceDiscount)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.ExpiryDate == input.ExpiryDate || + (this.ExpiryDate != null && + this.ExpiryDate.Equals(input.ExpiryDate)) + ) && + ( + this.ChannelRestrictions == input.ChannelRestrictions || + this.ChannelRestrictions != null && + this.ChannelRestrictions.SequenceEqual(input.ChannelRestrictions) + ) && + ( + this.ValidityPeriods == input.ValidityPeriods || + this.ValidityPeriods != null && + this.ValidityPeriods.SequenceEqual(input.ValidityPeriods) + ) && + ( + this.VoucherSubType == input.VoucherSubType || + (this.VoucherSubType != null && + this.VoucherSubType.Equals(input.VoucherSubType)) + ) && + ( + this.CustomerId == input.CustomerId || + (this.CustomerId != null && + this.CustomerId.Equals(input.CustomerId)) + ) && + ( + this.MaxRedemptions == input.MaxRedemptions || + (this.MaxRedemptions != null && + this.MaxRedemptions.Equals(input.MaxRedemptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TotalUsed != null) + hashCode = hashCode * 59 + this.TotalUsed.GetHashCode(); + if (this.TotalCustomers != null) + hashCode = hashCode * 59 + this.TotalCustomers.GetHashCode(); + if (this.TotalAmountFromOrders != null) + hashCode = hashCode * 59 + this.TotalAmountFromOrders.GetHashCode(); + if (this.TotalDiscounted != null) + hashCode = hashCode * 59 + this.TotalDiscounted.GetHashCode(); + if (this.AverageOrderSize != null) + hashCode = hashCode * 59 + this.AverageOrderSize.GetHashCode(); + if (this.VoucherId != null) + hashCode = hashCode * 59 + this.VoucherId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VoucherType != null) + hashCode = hashCode * 59 + this.VoucherType.GetHashCode(); + if (this.Currency != null) + hashCode = hashCode * 59 + this.Currency.GetHashCode(); + if (this.StoreNames != null) + hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); + if (this.PromotionDetails != null) + hashCode = hashCode * 59 + this.PromotionDetails.GetHashCode(); + if (this.CreditNoteDetails != null) + hashCode = hashCode * 59 + this.CreditNoteDetails.GetHashCode(); + if (this.LumpDiscountDetails != null) + hashCode = hashCode * 59 + this.LumpDiscountDetails.GetHashCode(); + if (this.PercentDiscountDetails != null) + hashCode = hashCode * 59 + this.PercentDiscountDetails.GetHashCode(); + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Stores != null) + hashCode = hashCode * 59 + this.Stores.GetHashCode(); + if (this.ValidOnOrdersOver != null) + hashCode = hashCode * 59 + this.ValidOnOrdersOver.GetHashCode(); + if (this.TakesPriority != null) + hashCode = hashCode * 59 + this.TakesPriority.GetHashCode(); + if (this.IsEnabled != null) + hashCode = hashCode * 59 + this.IsEnabled.GetHashCode(); + if (this.IsAutomaticallyApplied != null) + hashCode = hashCode * 59 + this.IsAutomaticallyApplied.GetHashCode(); + if (this.IncludeDeliveryFee != null) + hashCode = hashCode * 59 + this.IncludeDeliveryFee.GetHashCode(); + if (this.IsValidForDeliveryOrders != null) + hashCode = hashCode * 59 + this.IsValidForDeliveryOrders.GetHashCode(); + if (this.IsValidForPickupOrders != null) + hashCode = hashCode * 59 + this.IsValidForPickupOrders.GetHashCode(); + if (this.IsValidForOrdersPayedOnline != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedOnline.GetHashCode(); + if (this.IsValidForOrdersPayedByCash != null) + hashCode = hashCode * 59 + this.IsValidForOrdersPayedByCash.GetHashCode(); + if (this.IsValidForFirstOrderOnly != null) + hashCode = hashCode * 59 + this.IsValidForFirstOrderOnly.GetHashCode(); + if (this.IsValidOncePerCustomer != null) + hashCode = hashCode * 59 + this.IsValidOncePerCustomer.GetHashCode(); + if (this.IsValidOnlyOnce != null) + hashCode = hashCode * 59 + this.IsValidOnlyOnce.GetHashCode(); + if (this.IsDiscoverable != null) + hashCode = hashCode * 59 + this.IsDiscoverable.GetHashCode(); + if (this.IsPromoted != null) + hashCode = hashCode * 59 + this.IsPromoted.GetHashCode(); + if (this.ForceDiscount != null) + hashCode = hashCode * 59 + this.ForceDiscount.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.ExpiryDate != null) + hashCode = hashCode * 59 + this.ExpiryDate.GetHashCode(); + if (this.ChannelRestrictions != null) + hashCode = hashCode * 59 + this.ChannelRestrictions.GetHashCode(); + if (this.ValidityPeriods != null) + hashCode = hashCode * 59 + this.ValidityPeriods.GetHashCode(); + if (this.VoucherSubType != null) + hashCode = hashCode * 59 + this.VoucherSubType.GetHashCode(); + if (this.CustomerId != null) + hashCode = hashCode * 59 + this.CustomerId.GetHashCode(); + if (this.MaxRedemptions != null) + hashCode = hashCode * 59 + this.MaxRedemptions.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WaitHandle.cs b/src/Flipdish/Model/WaitHandle.cs new file mode 100644 index 00000000..f2052404 --- /dev/null +++ b/src/Flipdish/Model/WaitHandle.cs @@ -0,0 +1,128 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WaitHandle + /// + [DataContract] + public partial class WaitHandle : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// handle. + /// safeWaitHandle. + public WaitHandle(Object handle = default(Object), SafeWaitHandle safeWaitHandle = default(SafeWaitHandle)) + { + this.Handle = handle; + this.SafeWaitHandle = safeWaitHandle; + } + + /// + /// Gets or Sets Handle + /// + [DataMember(Name="Handle", EmitDefaultValue=false)] + public Object Handle { get; set; } + + /// + /// Gets or Sets SafeWaitHandle + /// + [DataMember(Name="SafeWaitHandle", EmitDefaultValue=false)] + public SafeWaitHandle SafeWaitHandle { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WaitHandle {\n"); + sb.Append(" Handle: ").Append(Handle).Append("\n"); + sb.Append(" SafeWaitHandle: ").Append(SafeWaitHandle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WaitHandle); + } + + /// + /// Returns true if WaitHandle instances are equal + /// + /// Instance of WaitHandle to be compared + /// Boolean + public bool Equals(WaitHandle input) + { + if (input == null) + return false; + + return + ( + this.Handle == input.Handle || + (this.Handle != null && + this.Handle.Equals(input.Handle)) + ) && + ( + this.SafeWaitHandle == input.SafeWaitHandle || + (this.SafeWaitHandle != null && + this.SafeWaitHandle.Equals(input.SafeWaitHandle)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Handle != null) + hashCode = hashCode * 59 + this.Handle.GetHashCode(); + if (this.SafeWaitHandle != null) + hashCode = hashCode * 59 + this.SafeWaitHandle.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookEventSample.cs b/src/Flipdish/Model/WebhookEventSample.cs new file mode 100644 index 00000000..24f21e7f --- /dev/null +++ b/src/Flipdish/Model/WebhookEventSample.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Sample payload of a webhook event + /// + [DataContract] + public partial class WebhookEventSample : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Event name. + /// Sample event creation date and time. + /// Sample event body. + public WebhookEventSample(string type = default(string), DateTime? createTime = default(DateTime?), FlipdishEventBase body = default(FlipdishEventBase)) + { + this.Type = type; + this.CreateTime = createTime; + this.Body = body; + } + + /// + /// Event name + /// + /// Event name + [DataMember(Name="Type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// Sample event creation date and time + /// + /// Sample event creation date and time + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Sample event body + /// + /// Sample event body + [DataMember(Name="Body", EmitDefaultValue=false)] + public FlipdishEventBase Body { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookEventSample {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookEventSample); + } + + /// + /// Returns true if WebhookEventSample instances are equal + /// + /// Instance of WebhookEventSample to be compared + /// Boolean + public bool Equals(WebhookEventSample input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookLog.cs b/src/Flipdish/Model/WebhookLog.cs new file mode 100644 index 00000000..d0be13bf --- /dev/null +++ b/src/Flipdish/Model/WebhookLog.cs @@ -0,0 +1,351 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Webhook log + /// + [DataContract] + public partial class WebhookLog : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Webhook subscription owner user identifier. + /// Event created. + /// Webhook triggered. + /// Webhook event name. + /// Webhook subscription callback url. + /// Received HTTP repsonse status HTTP code. + /// Received HTTP repsonse status. + /// Request headers. + /// Request body. + /// Received response headers. + /// Received response body. + /// Duration of HTTP request. + /// Retry count. + /// Flipdish webhook identifier. + /// Flipdish webhook version. + public WebhookLog(int? webhookSubscriptionOwnerUserId = default(int?), string eventCreated = default(string), string webhookTriggered = default(string), string webhookEventName = default(string), string webhookSubscriptionCallbackUrl = default(string), string httpResponseStatusCode = default(string), string httpResponseStatus = default(string), string requestHeaders = default(string), string requestBody = default(string), string responseHeaders = default(string), string responseBody = default(string), string duration = default(string), int? retryCount = default(int?), Guid? flipdishWebhookId = default(Guid?), string version = default(string)) + { + this.WebhookSubscriptionOwnerUserId = webhookSubscriptionOwnerUserId; + this.EventCreated = eventCreated; + this.WebhookTriggered = webhookTriggered; + this.WebhookEventName = webhookEventName; + this.WebhookSubscriptionCallbackUrl = webhookSubscriptionCallbackUrl; + this.HttpResponseStatusCode = httpResponseStatusCode; + this.HttpResponseStatus = httpResponseStatus; + this.RequestHeaders = requestHeaders; + this.RequestBody = requestBody; + this.ResponseHeaders = responseHeaders; + this.ResponseBody = responseBody; + this.Duration = duration; + this.RetryCount = retryCount; + this.FlipdishWebhookId = flipdishWebhookId; + this.Version = version; + } + + /// + /// Webhook subscription owner user identifier + /// + /// Webhook subscription owner user identifier + [DataMember(Name="WebhookSubscriptionOwnerUserId", EmitDefaultValue=false)] + public int? WebhookSubscriptionOwnerUserId { get; set; } + + /// + /// Event created + /// + /// Event created + [DataMember(Name="EventCreated", EmitDefaultValue=false)] + public string EventCreated { get; set; } + + /// + /// Webhook triggered + /// + /// Webhook triggered + [DataMember(Name="WebhookTriggered", EmitDefaultValue=false)] + public string WebhookTriggered { get; set; } + + /// + /// Webhook event name + /// + /// Webhook event name + [DataMember(Name="WebhookEventName", EmitDefaultValue=false)] + public string WebhookEventName { get; set; } + + /// + /// Webhook subscription callback url + /// + /// Webhook subscription callback url + [DataMember(Name="WebhookSubscriptionCallbackUrl", EmitDefaultValue=false)] + public string WebhookSubscriptionCallbackUrl { get; set; } + + /// + /// Received HTTP repsonse status HTTP code + /// + /// Received HTTP repsonse status HTTP code + [DataMember(Name="HttpResponseStatusCode", EmitDefaultValue=false)] + public string HttpResponseStatusCode { get; set; } + + /// + /// Received HTTP repsonse status + /// + /// Received HTTP repsonse status + [DataMember(Name="HttpResponseStatus", EmitDefaultValue=false)] + public string HttpResponseStatus { get; set; } + + /// + /// Request headers + /// + /// Request headers + [DataMember(Name="RequestHeaders", EmitDefaultValue=false)] + public string RequestHeaders { get; set; } + + /// + /// Request body + /// + /// Request body + [DataMember(Name="RequestBody", EmitDefaultValue=false)] + public string RequestBody { get; set; } + + /// + /// Received response headers + /// + /// Received response headers + [DataMember(Name="ResponseHeaders", EmitDefaultValue=false)] + public string ResponseHeaders { get; set; } + + /// + /// Received response body + /// + /// Received response body + [DataMember(Name="ResponseBody", EmitDefaultValue=false)] + public string ResponseBody { get; set; } + + /// + /// Duration of HTTP request + /// + /// Duration of HTTP request + [DataMember(Name="Duration", EmitDefaultValue=false)] + public string Duration { get; set; } + + /// + /// Retry count + /// + /// Retry count + [DataMember(Name="RetryCount", EmitDefaultValue=false)] + public int? RetryCount { get; set; } + + /// + /// Flipdish webhook identifier + /// + /// Flipdish webhook identifier + [DataMember(Name="FlipdishWebhookId", EmitDefaultValue=false)] + public Guid? FlipdishWebhookId { get; set; } + + /// + /// Flipdish webhook version + /// + /// Flipdish webhook version + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookLog {\n"); + sb.Append(" WebhookSubscriptionOwnerUserId: ").Append(WebhookSubscriptionOwnerUserId).Append("\n"); + sb.Append(" EventCreated: ").Append(EventCreated).Append("\n"); + sb.Append(" WebhookTriggered: ").Append(WebhookTriggered).Append("\n"); + sb.Append(" WebhookEventName: ").Append(WebhookEventName).Append("\n"); + sb.Append(" WebhookSubscriptionCallbackUrl: ").Append(WebhookSubscriptionCallbackUrl).Append("\n"); + sb.Append(" HttpResponseStatusCode: ").Append(HttpResponseStatusCode).Append("\n"); + sb.Append(" HttpResponseStatus: ").Append(HttpResponseStatus).Append("\n"); + sb.Append(" RequestHeaders: ").Append(RequestHeaders).Append("\n"); + sb.Append(" RequestBody: ").Append(RequestBody).Append("\n"); + sb.Append(" ResponseHeaders: ").Append(ResponseHeaders).Append("\n"); + sb.Append(" ResponseBody: ").Append(ResponseBody).Append("\n"); + sb.Append(" Duration: ").Append(Duration).Append("\n"); + sb.Append(" RetryCount: ").Append(RetryCount).Append("\n"); + sb.Append(" FlipdishWebhookId: ").Append(FlipdishWebhookId).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookLog); + } + + /// + /// Returns true if WebhookLog instances are equal + /// + /// Instance of WebhookLog to be compared + /// Boolean + public bool Equals(WebhookLog input) + { + if (input == null) + return false; + + return + ( + this.WebhookSubscriptionOwnerUserId == input.WebhookSubscriptionOwnerUserId || + (this.WebhookSubscriptionOwnerUserId != null && + this.WebhookSubscriptionOwnerUserId.Equals(input.WebhookSubscriptionOwnerUserId)) + ) && + ( + this.EventCreated == input.EventCreated || + (this.EventCreated != null && + this.EventCreated.Equals(input.EventCreated)) + ) && + ( + this.WebhookTriggered == input.WebhookTriggered || + (this.WebhookTriggered != null && + this.WebhookTriggered.Equals(input.WebhookTriggered)) + ) && + ( + this.WebhookEventName == input.WebhookEventName || + (this.WebhookEventName != null && + this.WebhookEventName.Equals(input.WebhookEventName)) + ) && + ( + this.WebhookSubscriptionCallbackUrl == input.WebhookSubscriptionCallbackUrl || + (this.WebhookSubscriptionCallbackUrl != null && + this.WebhookSubscriptionCallbackUrl.Equals(input.WebhookSubscriptionCallbackUrl)) + ) && + ( + this.HttpResponseStatusCode == input.HttpResponseStatusCode || + (this.HttpResponseStatusCode != null && + this.HttpResponseStatusCode.Equals(input.HttpResponseStatusCode)) + ) && + ( + this.HttpResponseStatus == input.HttpResponseStatus || + (this.HttpResponseStatus != null && + this.HttpResponseStatus.Equals(input.HttpResponseStatus)) + ) && + ( + this.RequestHeaders == input.RequestHeaders || + (this.RequestHeaders != null && + this.RequestHeaders.Equals(input.RequestHeaders)) + ) && + ( + this.RequestBody == input.RequestBody || + (this.RequestBody != null && + this.RequestBody.Equals(input.RequestBody)) + ) && + ( + this.ResponseHeaders == input.ResponseHeaders || + (this.ResponseHeaders != null && + this.ResponseHeaders.Equals(input.ResponseHeaders)) + ) && + ( + this.ResponseBody == input.ResponseBody || + (this.ResponseBody != null && + this.ResponseBody.Equals(input.ResponseBody)) + ) && + ( + this.Duration == input.Duration || + (this.Duration != null && + this.Duration.Equals(input.Duration)) + ) && + ( + this.RetryCount == input.RetryCount || + (this.RetryCount != null && + this.RetryCount.Equals(input.RetryCount)) + ) && + ( + this.FlipdishWebhookId == input.FlipdishWebhookId || + (this.FlipdishWebhookId != null && + this.FlipdishWebhookId.Equals(input.FlipdishWebhookId)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WebhookSubscriptionOwnerUserId != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionOwnerUserId.GetHashCode(); + if (this.EventCreated != null) + hashCode = hashCode * 59 + this.EventCreated.GetHashCode(); + if (this.WebhookTriggered != null) + hashCode = hashCode * 59 + this.WebhookTriggered.GetHashCode(); + if (this.WebhookEventName != null) + hashCode = hashCode * 59 + this.WebhookEventName.GetHashCode(); + if (this.WebhookSubscriptionCallbackUrl != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionCallbackUrl.GetHashCode(); + if (this.HttpResponseStatusCode != null) + hashCode = hashCode * 59 + this.HttpResponseStatusCode.GetHashCode(); + if (this.HttpResponseStatus != null) + hashCode = hashCode * 59 + this.HttpResponseStatus.GetHashCode(); + if (this.RequestHeaders != null) + hashCode = hashCode * 59 + this.RequestHeaders.GetHashCode(); + if (this.RequestBody != null) + hashCode = hashCode * 59 + this.RequestBody.GetHashCode(); + if (this.ResponseHeaders != null) + hashCode = hashCode * 59 + this.ResponseHeaders.GetHashCode(); + if (this.ResponseBody != null) + hashCode = hashCode * 59 + this.ResponseBody.GetHashCode(); + if (this.Duration != null) + hashCode = hashCode * 59 + this.Duration.GetHashCode(); + if (this.RetryCount != null) + hashCode = hashCode * 59 + this.RetryCount.GetHashCode(); + if (this.FlipdishWebhookId != null) + hashCode = hashCode * 59 + this.FlipdishWebhookId.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookSubscription.cs b/src/Flipdish/Model/WebhookSubscription.cs new file mode 100644 index 00000000..b3dc0f11 --- /dev/null +++ b/src/Flipdish/Model/WebhookSubscription.cs @@ -0,0 +1,215 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Webhook subscription + /// + [DataContract] + public partial class WebhookSubscription : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Webhook subscription identifier. + /// Webhook subscription owner user identifier. + /// Webhook subscription owner user identifier. + /// Webhook subscription event names. + /// Callback url. Flipdish system POST messages to this url.. + /// Is webhook subscription enabled.. + /// This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token.. + public WebhookSubscription(int? id = default(int?), int? ownerUserId = default(int?), string version = default(string), List eventNames = default(List), string callbackUrl = default(string), bool? enabled = default(bool?), string verifyToken = default(string)) + { + this.Id = id; + this.OwnerUserId = ownerUserId; + this.Version = version; + this.EventNames = eventNames; + this.CallbackUrl = callbackUrl; + this.Enabled = enabled; + this.VerifyToken = verifyToken; + } + + /// + /// Webhook subscription identifier + /// + /// Webhook subscription identifier + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// Webhook subscription owner user identifier + /// + /// Webhook subscription owner user identifier + [DataMember(Name="OwnerUserId", EmitDefaultValue=false)] + public int? OwnerUserId { get; set; } + + /// + /// Webhook subscription owner user identifier + /// + /// Webhook subscription owner user identifier + [DataMember(Name="Version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Webhook subscription event names + /// + /// Webhook subscription event names + [DataMember(Name="EventNames", EmitDefaultValue=false)] + public List EventNames { get; set; } + + /// + /// Callback url. Flipdish system POST messages to this url. + /// + /// Callback url. Flipdish system POST messages to this url. + [DataMember(Name="CallbackUrl", EmitDefaultValue=false)] + public string CallbackUrl { get; set; } + + /// + /// Is webhook subscription enabled. + /// + /// Is webhook subscription enabled. + [DataMember(Name="Enabled", EmitDefaultValue=false)] + public bool? Enabled { get; set; } + + /// + /// This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token. + /// + /// This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token. + [DataMember(Name="VerifyToken", EmitDefaultValue=false)] + public string VerifyToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookSubscription {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" OwnerUserId: ").Append(OwnerUserId).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" EventNames: ").Append(EventNames).Append("\n"); + sb.Append(" CallbackUrl: ").Append(CallbackUrl).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" VerifyToken: ").Append(VerifyToken).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookSubscription); + } + + /// + /// Returns true if WebhookSubscription instances are equal + /// + /// Instance of WebhookSubscription to be compared + /// Boolean + public bool Equals(WebhookSubscription input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.OwnerUserId == input.OwnerUserId || + (this.OwnerUserId != null && + this.OwnerUserId.Equals(input.OwnerUserId)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.EventNames == input.EventNames || + this.EventNames != null && + this.EventNames.SequenceEqual(input.EventNames) + ) && + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.VerifyToken == input.VerifyToken || + (this.VerifyToken != null && + this.VerifyToken.Equals(input.VerifyToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.OwnerUserId != null) + hashCode = hashCode * 59 + this.OwnerUserId.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.EventNames != null) + hashCode = hashCode * 59 + this.EventNames.GetHashCode(); + if (this.CallbackUrl != null) + hashCode = hashCode * 59 + this.CallbackUrl.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.VerifyToken != null) + hashCode = hashCode * 59 + this.VerifyToken.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs b/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs new file mode 100644 index 00000000..4341a915 --- /dev/null +++ b/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WebhookSubscriptionCreatedEvent + /// + [DataContract] + public partial class WebhookSubscriptionCreatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Webhook subscription details. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public WebhookSubscriptionCreatedEvent(string eventName = default(string), WebhookSubscriptionEventInfo webhookSubscriptionEventInfo = default(WebhookSubscriptionEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.WebhookSubscriptionEventInfo = webhookSubscriptionEventInfo; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Webhook subscription details + /// + /// Webhook subscription details + [DataMember(Name="WebhookSubscriptionEventInfo", EmitDefaultValue=false)] + public WebhookSubscriptionEventInfo WebhookSubscriptionEventInfo { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookSubscriptionCreatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookSubscriptionEventInfo: ").Append(WebhookSubscriptionEventInfo).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookSubscriptionCreatedEvent); + } + + /// + /// Returns true if WebhookSubscriptionCreatedEvent instances are equal + /// + /// Instance of WebhookSubscriptionCreatedEvent to be compared + /// Boolean + public bool Equals(WebhookSubscriptionCreatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.WebhookSubscriptionEventInfo == input.WebhookSubscriptionEventInfo || + (this.WebhookSubscriptionEventInfo != null && + this.WebhookSubscriptionEventInfo.Equals(input.WebhookSubscriptionEventInfo)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.WebhookSubscriptionEventInfo != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionEventInfo.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookSubscriptionDeletedEvent.cs b/src/Flipdish/Model/WebhookSubscriptionDeletedEvent.cs new file mode 100644 index 00000000..36af97b2 --- /dev/null +++ b/src/Flipdish/Model/WebhookSubscriptionDeletedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WebhookSubscriptionDeletedEvent + /// + [DataContract] + public partial class WebhookSubscriptionDeletedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Webhook subscription details. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public WebhookSubscriptionDeletedEvent(string eventName = default(string), WebhookSubscriptionEventInfo webhookSubscriptionEventInfo = default(WebhookSubscriptionEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.WebhookSubscriptionEventInfo = webhookSubscriptionEventInfo; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Webhook subscription details + /// + /// Webhook subscription details + [DataMember(Name="WebhookSubscriptionEventInfo", EmitDefaultValue=false)] + public WebhookSubscriptionEventInfo WebhookSubscriptionEventInfo { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookSubscriptionDeletedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookSubscriptionEventInfo: ").Append(WebhookSubscriptionEventInfo).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookSubscriptionDeletedEvent); + } + + /// + /// Returns true if WebhookSubscriptionDeletedEvent instances are equal + /// + /// Instance of WebhookSubscriptionDeletedEvent to be compared + /// Boolean + public bool Equals(WebhookSubscriptionDeletedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.WebhookSubscriptionEventInfo == input.WebhookSubscriptionEventInfo || + (this.WebhookSubscriptionEventInfo != null && + this.WebhookSubscriptionEventInfo.Equals(input.WebhookSubscriptionEventInfo)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.WebhookSubscriptionEventInfo != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionEventInfo.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookSubscriptionEventInfo.cs b/src/Flipdish/Model/WebhookSubscriptionEventInfo.cs new file mode 100644 index 00000000..c30d2f3f --- /dev/null +++ b/src/Flipdish/Model/WebhookSubscriptionEventInfo.cs @@ -0,0 +1,164 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WebhookSubscriptionEventInfo + /// + [DataContract] + public partial class WebhookSubscriptionEventInfo : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Webhook subscription owner user identifier. + /// Webhook subscription identifier. + /// Oauth client identifier. + /// Webhook callback url. + public WebhookSubscriptionEventInfo(int? ownerUserId = default(int?), int? webhookSubscriptionId = default(int?), string clientId = default(string), string callbackUrl = default(string)) + { + this.OwnerUserId = ownerUserId; + this.WebhookSubscriptionId = webhookSubscriptionId; + this.ClientId = clientId; + this.CallbackUrl = callbackUrl; + } + + /// + /// Webhook subscription owner user identifier + /// + /// Webhook subscription owner user identifier + [DataMember(Name="OwnerUserId", EmitDefaultValue=false)] + public int? OwnerUserId { get; set; } + + /// + /// Webhook subscription identifier + /// + /// Webhook subscription identifier + [DataMember(Name="WebhookSubscriptionId", EmitDefaultValue=false)] + public int? WebhookSubscriptionId { get; set; } + + /// + /// Oauth client identifier + /// + /// Oauth client identifier + [DataMember(Name="ClientId", EmitDefaultValue=false)] + public string ClientId { get; set; } + + /// + /// Webhook callback url + /// + /// Webhook callback url + [DataMember(Name="CallbackUrl", EmitDefaultValue=false)] + public string CallbackUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookSubscriptionEventInfo {\n"); + sb.Append(" OwnerUserId: ").Append(OwnerUserId).Append("\n"); + sb.Append(" WebhookSubscriptionId: ").Append(WebhookSubscriptionId).Append("\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" CallbackUrl: ").Append(CallbackUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookSubscriptionEventInfo); + } + + /// + /// Returns true if WebhookSubscriptionEventInfo instances are equal + /// + /// Instance of WebhookSubscriptionEventInfo to be compared + /// Boolean + public bool Equals(WebhookSubscriptionEventInfo input) + { + if (input == null) + return false; + + return + ( + this.OwnerUserId == input.OwnerUserId || + (this.OwnerUserId != null && + this.OwnerUserId.Equals(input.OwnerUserId)) + ) && + ( + this.WebhookSubscriptionId == input.WebhookSubscriptionId || + (this.WebhookSubscriptionId != null && + this.WebhookSubscriptionId.Equals(input.WebhookSubscriptionId)) + ) && + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.CallbackUrl == input.CallbackUrl || + (this.CallbackUrl != null && + this.CallbackUrl.Equals(input.CallbackUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OwnerUserId != null) + hashCode = hashCode * 59 + this.OwnerUserId.GetHashCode(); + if (this.WebhookSubscriptionId != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionId.GetHashCode(); + if (this.ClientId != null) + hashCode = hashCode * 59 + this.ClientId.GetHashCode(); + if (this.CallbackUrl != null) + hashCode = hashCode * 59 + this.CallbackUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs b/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs new file mode 100644 index 00000000..b78e3537 --- /dev/null +++ b/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs @@ -0,0 +1,266 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WebhookSubscriptionUpdatedEvent + /// + [DataContract] + public partial class WebhookSubscriptionUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Webhook subscription details. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public WebhookSubscriptionUpdatedEvent(string eventName = default(string), WebhookSubscriptionEventInfo webhookSubscriptionEventInfo = default(WebhookSubscriptionEventInfo), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.WebhookSubscriptionEventInfo = webhookSubscriptionEventInfo; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Webhook subscription details + /// + /// Webhook subscription details + [DataMember(Name="WebhookSubscriptionEventInfo", EmitDefaultValue=false)] + public WebhookSubscriptionEventInfo WebhookSubscriptionEventInfo { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookSubscriptionUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" WebhookSubscriptionEventInfo: ").Append(WebhookSubscriptionEventInfo).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookSubscriptionUpdatedEvent); + } + + /// + /// Returns true if WebhookSubscriptionUpdatedEvent instances are equal + /// + /// Instance of WebhookSubscriptionUpdatedEvent to be compared + /// Boolean + public bool Equals(WebhookSubscriptionUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.WebhookSubscriptionEventInfo == input.WebhookSubscriptionEventInfo || + (this.WebhookSubscriptionEventInfo != null && + this.WebhookSubscriptionEventInfo.Equals(input.WebhookSubscriptionEventInfo)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.WebhookSubscriptionEventInfo != null) + hashCode = hashCode * 59 + this.WebhookSubscriptionEventInfo.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebsiteImage.cs b/src/Flipdish/Model/WebsiteImage.cs new file mode 100644 index 00000000..49470149 --- /dev/null +++ b/src/Flipdish/Model/WebsiteImage.cs @@ -0,0 +1,192 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a website image + /// + [DataContract] + public partial class WebsiteImage : IEquatable + { + /// + /// Represents the location of the image + /// + /// Represents the location of the image + [JsonConverter(typeof(StringEnumConverter))] + public enum ImageLocationEnum + { + + /// + /// Enum IndexHeader for value: IndexHeader + /// + [EnumMember(Value = "IndexHeader")] + IndexHeader = 1, + + /// + /// Enum IndexAboutSectionLeft for value: IndexAboutSectionLeft + /// + [EnumMember(Value = "IndexAboutSectionLeft")] + IndexAboutSectionLeft = 2, + + /// + /// Enum IndexAboutSectionRight for value: IndexAboutSectionRight + /// + [EnumMember(Value = "IndexAboutSectionRight")] + IndexAboutSectionRight = 3, + + /// + /// Enum IndexGallery for value: IndexGallery + /// + [EnumMember(Value = "IndexGallery")] + IndexGallery = 4, + + /// + /// Enum IndexOpeningHoursHeader for value: IndexOpeningHoursHeader + /// + [EnumMember(Value = "IndexOpeningHoursHeader")] + IndexOpeningHoursHeader = 5, + + /// + /// Enum IndexTestimonialsHeader for value: IndexTestimonialsHeader + /// + [EnumMember(Value = "IndexTestimonialsHeader")] + IndexTestimonialsHeader = 6 + } + + /// + /// Represents the location of the image + /// + /// Represents the location of the image + [DataMember(Name="ImageLocation", EmitDefaultValue=false)] + public ImageLocationEnum? ImageLocation { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Represents the id of the image. + /// Represents the location of the image. + /// Represents the image url. + public WebsiteImage(int? imageId = default(int?), ImageLocationEnum? imageLocation = default(ImageLocationEnum?), string imageUrl = default(string)) + { + this.ImageId = imageId; + this.ImageLocation = imageLocation; + this.ImageUrl = imageUrl; + } + + /// + /// Represents the id of the image + /// + /// Represents the id of the image + [DataMember(Name="ImageId", EmitDefaultValue=false)] + public int? ImageId { get; set; } + + + /// + /// Represents the image url + /// + /// Represents the image url + [DataMember(Name="ImageUrl", EmitDefaultValue=false)] + public string ImageUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebsiteImage {\n"); + sb.Append(" ImageId: ").Append(ImageId).Append("\n"); + sb.Append(" ImageLocation: ").Append(ImageLocation).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebsiteImage); + } + + /// + /// Returns true if WebsiteImage instances are equal + /// + /// Instance of WebsiteImage to be compared + /// Boolean + public bool Equals(WebsiteImage input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.ImageLocation == input.ImageLocation || + (this.ImageLocation != null && + this.ImageLocation.Equals(input.ImageLocation)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.ImageLocation != null) + hashCode = hashCode * 59 + this.ImageLocation.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebsiteTestimonial.cs b/src/Flipdish/Model/WebsiteTestimonial.cs new file mode 100644 index 00000000..60dbed5c --- /dev/null +++ b/src/Flipdish/Model/WebsiteTestimonial.cs @@ -0,0 +1,147 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a testimonial + /// + [DataContract] + public partial class WebsiteTestimonial : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Id of the testimonial. + /// Author of the testimonial. + /// Message of the testimonial. + public WebsiteTestimonial(int? testimonialId = default(int?), string author = default(string), string message = default(string)) + { + this.TestimonialId = testimonialId; + this.Author = author; + this.Message = message; + } + + /// + /// Id of the testimonial + /// + /// Id of the testimonial + [DataMember(Name="TestimonialId", EmitDefaultValue=false)] + public int? TestimonialId { get; set; } + + /// + /// Author of the testimonial + /// + /// Author of the testimonial + [DataMember(Name="Author", EmitDefaultValue=false)] + public string Author { get; set; } + + /// + /// Message of the testimonial + /// + /// Message of the testimonial + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebsiteTestimonial {\n"); + sb.Append(" TestimonialId: ").Append(TestimonialId).Append("\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebsiteTestimonial); + } + + /// + /// Returns true if WebsiteTestimonial instances are equal + /// + /// Instance of WebsiteTestimonial to be compared + /// Boolean + public bool Equals(WebsiteTestimonial input) + { + if (input == null) + return false; + + return + ( + this.TestimonialId == input.TestimonialId || + (this.TestimonialId != null && + this.TestimonialId.Equals(input.TestimonialId)) + ) && + ( + this.Author == input.Author || + (this.Author != null && + this.Author.Equals(input.Author)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TestimonialId != null) + hashCode = hashCode * 59 + this.TestimonialId.GetHashCode(); + if (this.Author != null) + hashCode = hashCode * 59 + this.Author.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebsiteTestimonialBase.cs b/src/Flipdish/Model/WebsiteTestimonialBase.cs new file mode 100644 index 00000000..32186a94 --- /dev/null +++ b/src/Flipdish/Model/WebsiteTestimonialBase.cs @@ -0,0 +1,130 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Represents a testimonial base + /// + [DataContract] + public partial class WebsiteTestimonialBase : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Author of the testimonial. + /// Message of the testimonial. + public WebsiteTestimonialBase(string author = default(string), string message = default(string)) + { + this.Author = author; + this.Message = message; + } + + /// + /// Author of the testimonial + /// + /// Author of the testimonial + [DataMember(Name="Author", EmitDefaultValue=false)] + public string Author { get; set; } + + /// + /// Message of the testimonial + /// + /// Message of the testimonial + [DataMember(Name="Message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebsiteTestimonialBase {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebsiteTestimonialBase); + } + + /// + /// Returns true if WebsiteTestimonialBase instances are equal + /// + /// Instance of WebsiteTestimonialBase to be compared + /// Boolean + public bool Equals(WebsiteTestimonialBase input) + { + if (input == null) + return false; + + return + ( + this.Author == input.Author || + (this.Author != null && + this.Author.Equals(input.Author)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Author != null) + hashCode = hashCode * 59 + this.Author.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebsiteUpdatedEvent.cs b/src/Flipdish/Model/WebsiteUpdatedEvent.cs new file mode 100644 index 00000000..3588bb24 --- /dev/null +++ b/src/Flipdish/Model/WebsiteUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WebsiteUpdatedEvent + /// + [DataContract] + public partial class WebsiteUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// App Name id of the whitelabel of the website. + /// User updating the website. + /// Description of event. + /// The event name. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public WebsiteUpdatedEvent(string appNameId = default(string), UserEventInfo user = default(UserEventInfo), string description = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.AppNameId = appNameId; + this.User = user; + this.Description = description; + this.EventName = eventName; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// App Name id of the whitelabel of the website + /// + /// App Name id of the whitelabel of the website + [DataMember(Name="AppNameId", EmitDefaultValue=false)] + public string AppNameId { get; set; } + + /// + /// User updating the website + /// + /// User updating the website + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// Description of event + /// + /// Description of event + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebsiteUpdatedEvent {\n"); + sb.Append(" AppNameId: ").Append(AppNameId).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebsiteUpdatedEvent); + } + + /// + /// Returns true if WebsiteUpdatedEvent instances are equal + /// + /// Instance of WebsiteUpdatedEvent to be compared + /// Boolean + public bool Equals(WebsiteUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.AppNameId == input.AppNameId || + (this.AppNameId != null && + this.AppNameId.Equals(input.AppNameId)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AppNameId != null) + hashCode = hashCode * 59 + this.AppNameId.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WebsiteVanityUrlUpdatedEvent.cs b/src/Flipdish/Model/WebsiteVanityUrlUpdatedEvent.cs new file mode 100644 index 00000000..c18b7aba --- /dev/null +++ b/src/Flipdish/Model/WebsiteVanityUrlUpdatedEvent.cs @@ -0,0 +1,300 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// Website vanity url + /// + [DataContract] + public partial class WebsiteVanityUrlUpdatedEvent : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// The event name. + /// Description. + /// User who has updated the url. + /// New vanity url. + /// The identitfier of the event. + /// The time of creation of the event. + /// Position. + /// App id. + /// Org id. + /// Ip Address. + /// Activity Id. + /// Activity Type. + public WebsiteVanityUrlUpdatedEvent(string eventName = default(string), string description = default(string), UserEventInfo user = default(UserEventInfo), string vanityUrl = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string orgId = default(string), string ipAddress = default(string), string activityId = default(string), string activityType = default(string)) + { + this.EventName = eventName; + this.Description = description; + this.User = user; + this.VanityUrl = vanityUrl; + this.FlipdishEventId = flipdishEventId; + this.CreateTime = createTime; + this.Position = position; + this.AppId = appId; + this.OrgId = orgId; + this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; + } + + /// + /// The event name + /// + /// The event name + [DataMember(Name="EventName", EmitDefaultValue=false)] + public string EventName { get; set; } + + /// + /// Description + /// + /// Description + [DataMember(Name="Description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// User who has updated the url + /// + /// User who has updated the url + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + + /// + /// New vanity url + /// + /// New vanity url + [DataMember(Name="VanityUrl", EmitDefaultValue=false)] + public string VanityUrl { get; set; } + + /// + /// The identitfier of the event + /// + /// The identitfier of the event + [DataMember(Name="FlipdishEventId", EmitDefaultValue=false)] + public Guid? FlipdishEventId { get; set; } + + /// + /// The time of creation of the event + /// + /// The time of creation of the event + [DataMember(Name="CreateTime", EmitDefaultValue=false)] + public DateTime? CreateTime { get; set; } + + /// + /// Position + /// + /// Position + [DataMember(Name="Position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } + + /// + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// Ip Address + /// + /// Ip Address + [DataMember(Name="IpAddress", EmitDefaultValue=false)] + public string IpAddress { get; set; } + + /// + /// Activity Id + /// + /// Activity Id + [DataMember(Name="ActivityId", EmitDefaultValue=false)] + public string ActivityId { get; set; } + + /// + /// Activity Type + /// + /// Activity Type + [DataMember(Name="ActivityType", EmitDefaultValue=false)] + public string ActivityType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebsiteVanityUrlUpdatedEvent {\n"); + sb.Append(" EventName: ").Append(EventName).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" VanityUrl: ").Append(VanityUrl).Append("\n"); + sb.Append(" FlipdishEventId: ").Append(FlipdishEventId).Append("\n"); + sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); + sb.Append(" Position: ").Append(Position).Append("\n"); + sb.Append(" AppId: ").Append(AppId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" ActivityType: ").Append(ActivityType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebsiteVanityUrlUpdatedEvent); + } + + /// + /// Returns true if WebsiteVanityUrlUpdatedEvent instances are equal + /// + /// Instance of WebsiteVanityUrlUpdatedEvent to be compared + /// Boolean + public bool Equals(WebsiteVanityUrlUpdatedEvent input) + { + if (input == null) + return false; + + return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) + ) && + ( + this.VanityUrl == input.VanityUrl || + (this.VanityUrl != null && + this.VanityUrl.Equals(input.VanityUrl)) + ) && + ( + this.FlipdishEventId == input.FlipdishEventId || + (this.FlipdishEventId != null && + this.FlipdishEventId.Equals(input.FlipdishEventId)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.IpAddress == input.IpAddress || + (this.IpAddress != null && + this.IpAddress.Equals(input.IpAddress)) + ) && + ( + this.ActivityId == input.ActivityId || + (this.ActivityId != null && + this.ActivityId.Equals(input.ActivityId)) + ) && + ( + this.ActivityType == input.ActivityType || + (this.ActivityType != null && + this.ActivityType.Equals(input.ActivityType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventName != null) + hashCode = hashCode * 59 + this.EventName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.User != null) + hashCode = hashCode * 59 + this.User.GetHashCode(); + if (this.VanityUrl != null) + hashCode = hashCode * 59 + this.VanityUrl.GetHashCode(); + if (this.FlipdishEventId != null) + hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.AppId != null) + hashCode = hashCode * 59 + this.AppId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.IpAddress != null) + hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); + if (this.ActivityId != null) + hashCode = hashCode * 59 + this.ActivityId.GetHashCode(); + if (this.ActivityType != null) + hashCode = hashCode * 59 + this.ActivityType.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WhiteLabelAssetModel.cs b/src/Flipdish/Model/WhiteLabelAssetModel.cs new file mode 100644 index 00000000..11a444c4 --- /dev/null +++ b/src/Flipdish/Model/WhiteLabelAssetModel.cs @@ -0,0 +1,181 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// White label asset model + /// + [DataContract] + public partial class WhiteLabelAssetModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label asset ID. + /// White label configuration ID. + /// File path. + /// Asset URL. + /// Timestamp update. + public WhiteLabelAssetModel(int? whiteLabelAssetId = default(int?), int? whiteLabelConfigId = default(int?), string filePath = default(string), string url = default(string), DateTime? tsUpdate = default(DateTime?)) + { + this.WhiteLabelAssetId = whiteLabelAssetId; + this.WhiteLabelConfigId = whiteLabelConfigId; + this.FilePath = filePath; + this.Url = url; + this.TsUpdate = tsUpdate; + } + + /// + /// White label asset ID + /// + /// White label asset ID + [DataMember(Name="WhiteLabelAssetId", EmitDefaultValue=false)] + public int? WhiteLabelAssetId { get; set; } + + /// + /// White label configuration ID + /// + /// White label configuration ID + [DataMember(Name="WhiteLabelConfigId", EmitDefaultValue=false)] + public int? WhiteLabelConfigId { get; set; } + + /// + /// File path + /// + /// File path + [DataMember(Name="FilePath", EmitDefaultValue=false)] + public string FilePath { get; set; } + + /// + /// Asset URL + /// + /// Asset URL + [DataMember(Name="Url", EmitDefaultValue=false)] + public string Url { get; set; } + + /// + /// Timestamp update + /// + /// Timestamp update + [DataMember(Name="TsUpdate", EmitDefaultValue=false)] + public DateTime? TsUpdate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WhiteLabelAssetModel {\n"); + sb.Append(" WhiteLabelAssetId: ").Append(WhiteLabelAssetId).Append("\n"); + sb.Append(" WhiteLabelConfigId: ").Append(WhiteLabelConfigId).Append("\n"); + sb.Append(" FilePath: ").Append(FilePath).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" TsUpdate: ").Append(TsUpdate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WhiteLabelAssetModel); + } + + /// + /// Returns true if WhiteLabelAssetModel instances are equal + /// + /// Instance of WhiteLabelAssetModel to be compared + /// Boolean + public bool Equals(WhiteLabelAssetModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelAssetId == input.WhiteLabelAssetId || + (this.WhiteLabelAssetId != null && + this.WhiteLabelAssetId.Equals(input.WhiteLabelAssetId)) + ) && + ( + this.WhiteLabelConfigId == input.WhiteLabelConfigId || + (this.WhiteLabelConfigId != null && + this.WhiteLabelConfigId.Equals(input.WhiteLabelConfigId)) + ) && + ( + this.FilePath == input.FilePath || + (this.FilePath != null && + this.FilePath.Equals(input.FilePath)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.TsUpdate == input.TsUpdate || + (this.TsUpdate != null && + this.TsUpdate.Equals(input.TsUpdate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelAssetId != null) + hashCode = hashCode * 59 + this.WhiteLabelAssetId.GetHashCode(); + if (this.WhiteLabelConfigId != null) + hashCode = hashCode * 59 + this.WhiteLabelConfigId.GetHashCode(); + if (this.FilePath != null) + hashCode = hashCode * 59 + this.FilePath.GetHashCode(); + if (this.Url != null) + hashCode = hashCode * 59 + this.Url.GetHashCode(); + if (this.TsUpdate != null) + hashCode = hashCode * 59 + this.TsUpdate.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WhiteLabelColorSchemeModel.cs b/src/Flipdish/Model/WhiteLabelColorSchemeModel.cs new file mode 100644 index 00000000..f34b5ab5 --- /dev/null +++ b/src/Flipdish/Model/WhiteLabelColorSchemeModel.cs @@ -0,0 +1,334 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// White label color scheme model + /// + [DataContract] + public partial class WhiteLabelColorSchemeModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label color scheme ID. + /// Font. + /// Color. + /// Color 2. + /// Color 3. + /// Color 4. + /// Color 5. + /// Color 6. + /// Color 7. + /// Color 8. + /// Color 9. + /// Color 10. + /// Color 11. + /// Color 12 (Kiosk Primary Colour). + public WhiteLabelColorSchemeModel(int? whiteLabelColorSchemeId = default(int?), string font = default(string), string color = default(string), string color2 = default(string), string color3 = default(string), string color4 = default(string), string color5 = default(string), string color6 = default(string), string color7 = default(string), string color8 = default(string), string color9 = default(string), string color10 = default(string), string color11 = default(string), string color12 = default(string)) + { + this.WhiteLabelColorSchemeId = whiteLabelColorSchemeId; + this.Font = font; + this.Color = color; + this.Color2 = color2; + this.Color3 = color3; + this.Color4 = color4; + this.Color5 = color5; + this.Color6 = color6; + this.Color7 = color7; + this.Color8 = color8; + this.Color9 = color9; + this.Color10 = color10; + this.Color11 = color11; + this.Color12 = color12; + } + + /// + /// White label color scheme ID + /// + /// White label color scheme ID + [DataMember(Name="WhiteLabelColorSchemeId", EmitDefaultValue=false)] + public int? WhiteLabelColorSchemeId { get; set; } + + /// + /// Font + /// + /// Font + [DataMember(Name="Font", EmitDefaultValue=false)] + public string Font { get; set; } + + /// + /// Color + /// + /// Color + [DataMember(Name="Color", EmitDefaultValue=false)] + public string Color { get; set; } + + /// + /// Color 2 + /// + /// Color 2 + [DataMember(Name="Color2", EmitDefaultValue=false)] + public string Color2 { get; set; } + + /// + /// Color 3 + /// + /// Color 3 + [DataMember(Name="Color3", EmitDefaultValue=false)] + public string Color3 { get; set; } + + /// + /// Color 4 + /// + /// Color 4 + [DataMember(Name="Color4", EmitDefaultValue=false)] + public string Color4 { get; set; } + + /// + /// Color 5 + /// + /// Color 5 + [DataMember(Name="Color5", EmitDefaultValue=false)] + public string Color5 { get; set; } + + /// + /// Color 6 + /// + /// Color 6 + [DataMember(Name="Color6", EmitDefaultValue=false)] + public string Color6 { get; set; } + + /// + /// Color 7 + /// + /// Color 7 + [DataMember(Name="Color7", EmitDefaultValue=false)] + public string Color7 { get; set; } + + /// + /// Color 8 + /// + /// Color 8 + [DataMember(Name="Color8", EmitDefaultValue=false)] + public string Color8 { get; set; } + + /// + /// Color 9 + /// + /// Color 9 + [DataMember(Name="Color9", EmitDefaultValue=false)] + public string Color9 { get; set; } + + /// + /// Color 10 + /// + /// Color 10 + [DataMember(Name="Color10", EmitDefaultValue=false)] + public string Color10 { get; set; } + + /// + /// Color 11 + /// + /// Color 11 + [DataMember(Name="Color11", EmitDefaultValue=false)] + public string Color11 { get; set; } + + /// + /// Color 12 (Kiosk Primary Colour) + /// + /// Color 12 (Kiosk Primary Colour) + [DataMember(Name="Color12", EmitDefaultValue=false)] + public string Color12 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WhiteLabelColorSchemeModel {\n"); + sb.Append(" WhiteLabelColorSchemeId: ").Append(WhiteLabelColorSchemeId).Append("\n"); + sb.Append(" Font: ").Append(Font).Append("\n"); + sb.Append(" Color: ").Append(Color).Append("\n"); + sb.Append(" Color2: ").Append(Color2).Append("\n"); + sb.Append(" Color3: ").Append(Color3).Append("\n"); + sb.Append(" Color4: ").Append(Color4).Append("\n"); + sb.Append(" Color5: ").Append(Color5).Append("\n"); + sb.Append(" Color6: ").Append(Color6).Append("\n"); + sb.Append(" Color7: ").Append(Color7).Append("\n"); + sb.Append(" Color8: ").Append(Color8).Append("\n"); + sb.Append(" Color9: ").Append(Color9).Append("\n"); + sb.Append(" Color10: ").Append(Color10).Append("\n"); + sb.Append(" Color11: ").Append(Color11).Append("\n"); + sb.Append(" Color12: ").Append(Color12).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WhiteLabelColorSchemeModel); + } + + /// + /// Returns true if WhiteLabelColorSchemeModel instances are equal + /// + /// Instance of WhiteLabelColorSchemeModel to be compared + /// Boolean + public bool Equals(WhiteLabelColorSchemeModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelColorSchemeId == input.WhiteLabelColorSchemeId || + (this.WhiteLabelColorSchemeId != null && + this.WhiteLabelColorSchemeId.Equals(input.WhiteLabelColorSchemeId)) + ) && + ( + this.Font == input.Font || + (this.Font != null && + this.Font.Equals(input.Font)) + ) && + ( + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) + ) && + ( + this.Color2 == input.Color2 || + (this.Color2 != null && + this.Color2.Equals(input.Color2)) + ) && + ( + this.Color3 == input.Color3 || + (this.Color3 != null && + this.Color3.Equals(input.Color3)) + ) && + ( + this.Color4 == input.Color4 || + (this.Color4 != null && + this.Color4.Equals(input.Color4)) + ) && + ( + this.Color5 == input.Color5 || + (this.Color5 != null && + this.Color5.Equals(input.Color5)) + ) && + ( + this.Color6 == input.Color6 || + (this.Color6 != null && + this.Color6.Equals(input.Color6)) + ) && + ( + this.Color7 == input.Color7 || + (this.Color7 != null && + this.Color7.Equals(input.Color7)) + ) && + ( + this.Color8 == input.Color8 || + (this.Color8 != null && + this.Color8.Equals(input.Color8)) + ) && + ( + this.Color9 == input.Color9 || + (this.Color9 != null && + this.Color9.Equals(input.Color9)) + ) && + ( + this.Color10 == input.Color10 || + (this.Color10 != null && + this.Color10.Equals(input.Color10)) + ) && + ( + this.Color11 == input.Color11 || + (this.Color11 != null && + this.Color11.Equals(input.Color11)) + ) && + ( + this.Color12 == input.Color12 || + (this.Color12 != null && + this.Color12.Equals(input.Color12)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelColorSchemeId != null) + hashCode = hashCode * 59 + this.WhiteLabelColorSchemeId.GetHashCode(); + if (this.Font != null) + hashCode = hashCode * 59 + this.Font.GetHashCode(); + if (this.Color != null) + hashCode = hashCode * 59 + this.Color.GetHashCode(); + if (this.Color2 != null) + hashCode = hashCode * 59 + this.Color2.GetHashCode(); + if (this.Color3 != null) + hashCode = hashCode * 59 + this.Color3.GetHashCode(); + if (this.Color4 != null) + hashCode = hashCode * 59 + this.Color4.GetHashCode(); + if (this.Color5 != null) + hashCode = hashCode * 59 + this.Color5.GetHashCode(); + if (this.Color6 != null) + hashCode = hashCode * 59 + this.Color6.GetHashCode(); + if (this.Color7 != null) + hashCode = hashCode * 59 + this.Color7.GetHashCode(); + if (this.Color8 != null) + hashCode = hashCode * 59 + this.Color8.GetHashCode(); + if (this.Color9 != null) + hashCode = hashCode * 59 + this.Color9.GetHashCode(); + if (this.Color10 != null) + hashCode = hashCode * 59 + this.Color10.GetHashCode(); + if (this.Color11 != null) + hashCode = hashCode * 59 + this.Color11.GetHashCode(); + if (this.Color12 != null) + hashCode = hashCode * 59 + this.Color12.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WhiteLabelConfig.cs b/src/Flipdish/Model/WhiteLabelConfig.cs new file mode 100644 index 00000000..81f1bc73 --- /dev/null +++ b/src/Flipdish/Model/WhiteLabelConfig.cs @@ -0,0 +1,198 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// White label configuration details + /// + [DataContract] + public partial class WhiteLabelConfig : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// White label identifier. + /// White label name. + /// Country identifier. + /// App id. + /// Website URL. + /// Panacea vanity URL. + public WhiteLabelConfig(int? whiteLabelId = default(int?), string whiteLabelName = default(string), string countryId = default(string), string appNameId = default(string), string website = default(string), string panaceaVanityUrl = default(string)) + { + this.WhiteLabelId = whiteLabelId; + this.WhiteLabelName = whiteLabelName; + this.CountryId = countryId; + this.AppNameId = appNameId; + this.Website = website; + this.PanaceaVanityUrl = panaceaVanityUrl; + } + + /// + /// White label identifier + /// + /// White label identifier + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// White label name + /// + /// White label name + [DataMember(Name="WhiteLabelName", EmitDefaultValue=false)] + public string WhiteLabelName { get; set; } + + /// + /// Country identifier + /// + /// Country identifier + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// App id + /// + /// App id + [DataMember(Name="AppNameId", EmitDefaultValue=false)] + public string AppNameId { get; set; } + + /// + /// Website URL + /// + /// Website URL + [DataMember(Name="Website", EmitDefaultValue=false)] + public string Website { get; set; } + + /// + /// Panacea vanity URL + /// + /// Panacea vanity URL + [DataMember(Name="PanaceaVanityUrl", EmitDefaultValue=false)] + public string PanaceaVanityUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WhiteLabelConfig {\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" WhiteLabelName: ").Append(WhiteLabelName).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append(" AppNameId: ").Append(AppNameId).Append("\n"); + sb.Append(" Website: ").Append(Website).Append("\n"); + sb.Append(" PanaceaVanityUrl: ").Append(PanaceaVanityUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WhiteLabelConfig); + } + + /// + /// Returns true if WhiteLabelConfig instances are equal + /// + /// Instance of WhiteLabelConfig to be compared + /// Boolean + public bool Equals(WhiteLabelConfig input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.WhiteLabelName == input.WhiteLabelName || + (this.WhiteLabelName != null && + this.WhiteLabelName.Equals(input.WhiteLabelName)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ) && + ( + this.AppNameId == input.AppNameId || + (this.AppNameId != null && + this.AppNameId.Equals(input.AppNameId)) + ) && + ( + this.Website == input.Website || + (this.Website != null && + this.Website.Equals(input.Website)) + ) && + ( + this.PanaceaVanityUrl == input.PanaceaVanityUrl || + (this.PanaceaVanityUrl != null && + this.PanaceaVanityUrl.Equals(input.PanaceaVanityUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.WhiteLabelName != null) + hashCode = hashCode * 59 + this.WhiteLabelName.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + if (this.AppNameId != null) + hashCode = hashCode * 59 + this.AppNameId.GetHashCode(); + if (this.Website != null) + hashCode = hashCode * 59 + this.Website.GetHashCode(); + if (this.PanaceaVanityUrl != null) + hashCode = hashCode * 59 + this.PanaceaVanityUrl.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WhiteLabelConfigModel.cs b/src/Flipdish/Model/WhiteLabelConfigModel.cs new file mode 100644 index 00000000..60a0f392 --- /dev/null +++ b/src/Flipdish/Model/WhiteLabelConfigModel.cs @@ -0,0 +1,1953 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// WhiteLabelConfig model + /// + [DataContract] + public partial class WhiteLabelConfigModel : IEquatable + { + /// + /// Compliance type + /// + /// Compliance type + [JsonConverter(typeof(StringEnumConverter))] + public enum ComplianceTypeEnum + { + + /// + /// Enum Default for value: Default + /// + [EnumMember(Value = "Default")] + Default = 1, + + /// + /// Enum GdprCompliance for value: GdprCompliance + /// + [EnumMember(Value = "GdprCompliance")] + GdprCompliance = 2 + } + + /// + /// Compliance type + /// + /// Compliance type + [DataMember(Name="ComplianceType", EmitDefaultValue=false)] + public ComplianceTypeEnum? ComplianceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// White label languages. + /// White label assets. + /// White label color scheme. + /// White label configuration ID. + /// White label ID. + /// White label name. + /// App name ID (Bundle ID Suffix). + /// Organization ID. + /// SMS restaurant name. + /// Deep link URL scheme. + /// Host name. + /// Nexmo support SMS number. + /// Twilio support SMS number. + /// Mixpanel token. + /// Intercom app ID. + /// Share message email subject. + /// Share message email message. + /// Share message SMS message. + /// Share message WhatsApp message. + /// Share message Facebook message. + /// Share message Twitter message. + /// Share message generic message. + /// Display delivery restaurant list screen. + /// Contact form type. + /// Contact phone number. + /// Display bump side menu item. + /// Display free coke side menu item. + /// App store URL. + /// Delivery enabled. + /// Pickup enabled. + /// Display pickup restaurant list screen. + /// Display cuisine type list and restaurant search bar. + /// Display user restaurant ratings. + /// Ready to publish web. + /// Ready to publish iOS. + /// Ready to publish Android. + /// Display footer links to other sites. + /// Display online ordering menu. + /// Hide app config from admin list. + /// Compliance type. + /// Is menu migrated to RMS. + /// Map boundary max longitude. + /// Map boundary min longitude. + /// Map boundary max latitude. + /// Map boundary min latitude. + /// App store Apple ID. + /// App store token. + /// Website display static menu page. + /// Is embed. + /// Display tip option to users by default. + /// Email request mode. + /// Address entry type. + /// Address layout. + /// Category. + /// Map center latitude. + /// Map center longitude. + /// Intercom token iOS. + /// Intercom token Android. + /// Google Analytics tokens CSV. + /// Facebook tokens CSV. + /// Share message generic URL. + /// Private support email address. + /// App store ID. + /// Play console account. + /// APN certificate valid after. + /// APN certificate valid before. + /// Dine in enabled. + /// App font. + /// White label color scheme ID. + /// White label images ID. + /// App store copyright. + /// App store description. + /// App store short description. + /// App store keywords. + /// App store marketing URL. + /// App store name. + /// App store privacy URL. + /// App store support URL. + /// App store release notes. + /// App store icon URL. + /// App store icon thumbnail 100 URL. + /// Transparent logo URL. + /// Logo image name. + /// Kiosk name screen image. + /// Web to app redirect. + /// Features CSV. + /// App store password. + /// App store team ID. + /// App store app group. + /// App store signing identity. + /// App store ITC team ID. + /// Head HTML. + /// Social Twitter URL. + /// Social Facebook URL. + /// Social Instagram URL. + /// Social Pinterest URL. + /// Social TripAdvisor URL. + /// Social Google Plus URL. + /// Social FourSquare URL. + /// Social Yelp URL. + /// Website type. + /// External ordering page URL. + /// Panacea enabled. + /// Cookie consent prompt enabled. + /// Panacea vanity URL. + /// Country ID. + /// Referral user ID. + /// Referral campaign ID. + public WhiteLabelConfigModel(List whiteLabelLanguages = default(List), List whiteLabelAssets = default(List), WhiteLabelColorSchemeModel colorScheme = default(WhiteLabelColorSchemeModel), int? whiteLabelConfigId = default(int?), int? whiteLabelId = default(int?), string whiteLabelName = default(string), string appNameId = default(string), string orgId = default(string), string smsRestaurantName = default(string), string deepLinkUrlScheme = default(string), string hostName = default(string), string nexmoSupportSmsNumber = default(string), string twilioSupportSmsNumber = default(string), string mixpanelToken = default(string), string intercomAppId = default(string), string shareMessageEmailSubject = default(string), string shareMessageEmailMessage = default(string), string shareMessageSmsMessage = default(string), string shareMessageWhatsAppMessage = default(string), string shareMessageFacebookMessage = default(string), string shareMessageTwitterMessage = default(string), string shareMessageGenericMessage = default(string), bool? displayDeliveryRestaurantListScreen = default(bool?), int? contactFormType = default(int?), string contactPhoneNumber = default(string), bool? displayBumpSideMenuItem = default(bool?), bool? displayFreeCokeSideMenuItem = default(bool?), string appStoreUrl = default(string), bool? deliveryEnabled = default(bool?), bool? pickupEnabled = default(bool?), bool? displayPickupRestaurantListScreen = default(bool?), bool? displayCuisineTypeListAndRestaurantSearchBar = default(bool?), bool? displayUserRestaurantRatings = default(bool?), bool? readyToPublishWeb = default(bool?), bool? readyToPublishIos = default(bool?), bool? readyToPublishAndroid = default(bool?), bool? displayFooterLinksToOtherSites = default(bool?), bool? displayOnlineOrderingMenu = default(bool?), bool? hideAppConfigFromAdminList = default(bool?), ComplianceTypeEnum? complianceType = default(ComplianceTypeEnum?), bool? isMenuMigratedToRms = default(bool?), double? mapBoundryMaxLongitude = default(double?), double? mapBoundryMinLongitude = default(double?), double? mapBoundryMaxLatitude = default(double?), double? mapBoundryMinLatitude = default(double?), string appStoreAppleId = default(string), string appStoreToken = default(string), bool? websiteDisplayStaticMenuPage = default(bool?), bool? isEmbed = default(bool?), bool? displayTipOptionToUsersByDefault = default(bool?), int? emailRequestMode = default(int?), int? addressEntryType = default(int?), int? addressLayout = default(int?), int? category = default(int?), double? mapCenterLatitude = default(double?), double? mapCenterLongitude = default(double?), string intercomTokenIos = default(string), string intercomTokenAndroid = default(string), string googleAnalyticsTokensCsv = default(string), string facebookTokensCsv = default(string), string shareMessageGenericUrl = default(string), string privateSupportEmailAddress = default(string), string appStoreId = default(string), int? playConsoleAccount = default(int?), DateTime? apnCertificateValidAfter = default(DateTime?), DateTime? apnCertificateValidBefore = default(DateTime?), bool? dineInEnabled = default(bool?), string appFont = default(string), int? whiteLabelColorSchemeId = default(int?), int? whiteLabelImagesId = default(int?), string appStoreCopyright = default(string), string appStoreDescription = default(string), string appStoreShortDescription = default(string), string appStoreKeywords = default(string), string appStoreMarketingUrl = default(string), string appStoreName = default(string), string appStorePrivacyUrl = default(string), string appStoreSupportUrl = default(string), string appStoreReleaseNotes = default(string), string appStoreIconUrl = default(string), string appStoreIconThumbnail100Url = default(string), string transparentLogoUrl = default(string), string logoImageName = default(string), string kioskNameScreenImage = default(string), int? webToAppRedirect = default(int?), string featuresCsv = default(string), string appStorePassword = default(string), string appStoreTeamId = default(string), string appStoreAppGroup = default(string), string appStoreSigningIdentity = default(string), string appStoreItcTeamId = default(string), string headHtml = default(string), string socialTwitterUrl = default(string), string socialFacebookUrl = default(string), string socialInstagramUrl = default(string), string socialPintrestUrl = default(string), string socialTripAdvisorUrl = default(string), string socialGooglePlusUrl = default(string), string socialFourSquareUrl = default(string), string socialYelpUrl = default(string), int? websiteType = default(int?), string externalOrderingPageUrl = default(string), bool? panaceaEnabled = default(bool?), bool? cookieConsentPromptEnabled = default(bool?), string panaceaVanityUrl = default(string), string countryId = default(string), int? referralUserId = default(int?), string referralCampaignId = default(string)) + { + this.WhiteLabelLanguages = whiteLabelLanguages; + this.WhiteLabelAssets = whiteLabelAssets; + this.ColorScheme = colorScheme; + this.WhiteLabelConfigId = whiteLabelConfigId; + this.WhiteLabelId = whiteLabelId; + this.WhiteLabelName = whiteLabelName; + this.AppNameId = appNameId; + this.OrgId = orgId; + this.SmsRestaurantName = smsRestaurantName; + this.DeepLinkUrlScheme = deepLinkUrlScheme; + this.HostName = hostName; + this.NexmoSupportSmsNumber = nexmoSupportSmsNumber; + this.TwilioSupportSmsNumber = twilioSupportSmsNumber; + this.MixpanelToken = mixpanelToken; + this.IntercomAppId = intercomAppId; + this.ShareMessageEmailSubject = shareMessageEmailSubject; + this.ShareMessageEmailMessage = shareMessageEmailMessage; + this.ShareMessageSmsMessage = shareMessageSmsMessage; + this.ShareMessageWhatsAppMessage = shareMessageWhatsAppMessage; + this.ShareMessageFacebookMessage = shareMessageFacebookMessage; + this.ShareMessageTwitterMessage = shareMessageTwitterMessage; + this.ShareMessageGenericMessage = shareMessageGenericMessage; + this.DisplayDeliveryRestaurantListScreen = displayDeliveryRestaurantListScreen; + this.ContactFormType = contactFormType; + this.ContactPhoneNumber = contactPhoneNumber; + this.DisplayBumpSideMenuItem = displayBumpSideMenuItem; + this.DisplayFreeCokeSideMenuItem = displayFreeCokeSideMenuItem; + this.AppStoreUrl = appStoreUrl; + this.DeliveryEnabled = deliveryEnabled; + this.PickupEnabled = pickupEnabled; + this.DisplayPickupRestaurantListScreen = displayPickupRestaurantListScreen; + this.DisplayCuisineTypeListAndRestaurantSearchBar = displayCuisineTypeListAndRestaurantSearchBar; + this.DisplayUserRestaurantRatings = displayUserRestaurantRatings; + this.ReadyToPublishWeb = readyToPublishWeb; + this.ReadyToPublishIos = readyToPublishIos; + this.ReadyToPublishAndroid = readyToPublishAndroid; + this.DisplayFooterLinksToOtherSites = displayFooterLinksToOtherSites; + this.DisplayOnlineOrderingMenu = displayOnlineOrderingMenu; + this.HideAppConfigFromAdminList = hideAppConfigFromAdminList; + this.ComplianceType = complianceType; + this.IsMenuMigratedToRms = isMenuMigratedToRms; + this.MapBoundryMaxLongitude = mapBoundryMaxLongitude; + this.MapBoundryMinLongitude = mapBoundryMinLongitude; + this.MapBoundryMaxLatitude = mapBoundryMaxLatitude; + this.MapBoundryMinLatitude = mapBoundryMinLatitude; + this.AppStoreAppleId = appStoreAppleId; + this.AppStoreToken = appStoreToken; + this.WebsiteDisplayStaticMenuPage = websiteDisplayStaticMenuPage; + this.IsEmbed = isEmbed; + this.DisplayTipOptionToUsersByDefault = displayTipOptionToUsersByDefault; + this.EmailRequestMode = emailRequestMode; + this.AddressEntryType = addressEntryType; + this.AddressLayout = addressLayout; + this.Category = category; + this.MapCenterLatitude = mapCenterLatitude; + this.MapCenterLongitude = mapCenterLongitude; + this.IntercomTokenIos = intercomTokenIos; + this.IntercomTokenAndroid = intercomTokenAndroid; + this.GoogleAnalyticsTokensCsv = googleAnalyticsTokensCsv; + this.FacebookTokensCsv = facebookTokensCsv; + this.ShareMessageGenericUrl = shareMessageGenericUrl; + this.PrivateSupportEmailAddress = privateSupportEmailAddress; + this.AppStoreId = appStoreId; + this.PlayConsoleAccount = playConsoleAccount; + this.ApnCertificateValidAfter = apnCertificateValidAfter; + this.ApnCertificateValidBefore = apnCertificateValidBefore; + this.DineInEnabled = dineInEnabled; + this.AppFont = appFont; + this.WhiteLabelColorSchemeId = whiteLabelColorSchemeId; + this.WhiteLabelImagesId = whiteLabelImagesId; + this.AppStoreCopyright = appStoreCopyright; + this.AppStoreDescription = appStoreDescription; + this.AppStoreShortDescription = appStoreShortDescription; + this.AppStoreKeywords = appStoreKeywords; + this.AppStoreMarketingUrl = appStoreMarketingUrl; + this.AppStoreName = appStoreName; + this.AppStorePrivacyUrl = appStorePrivacyUrl; + this.AppStoreSupportUrl = appStoreSupportUrl; + this.AppStoreReleaseNotes = appStoreReleaseNotes; + this.AppStoreIconUrl = appStoreIconUrl; + this.AppStoreIconThumbnail100Url = appStoreIconThumbnail100Url; + this.TransparentLogoUrl = transparentLogoUrl; + this.LogoImageName = logoImageName; + this.KioskNameScreenImage = kioskNameScreenImage; + this.WebToAppRedirect = webToAppRedirect; + this.FeaturesCsv = featuresCsv; + this.AppStorePassword = appStorePassword; + this.AppStoreTeamId = appStoreTeamId; + this.AppStoreAppGroup = appStoreAppGroup; + this.AppStoreSigningIdentity = appStoreSigningIdentity; + this.AppStoreItcTeamId = appStoreItcTeamId; + this.HeadHtml = headHtml; + this.SocialTwitterUrl = socialTwitterUrl; + this.SocialFacebookUrl = socialFacebookUrl; + this.SocialInstagramUrl = socialInstagramUrl; + this.SocialPintrestUrl = socialPintrestUrl; + this.SocialTripAdvisorUrl = socialTripAdvisorUrl; + this.SocialGooglePlusUrl = socialGooglePlusUrl; + this.SocialFourSquareUrl = socialFourSquareUrl; + this.SocialYelpUrl = socialYelpUrl; + this.WebsiteType = websiteType; + this.ExternalOrderingPageUrl = externalOrderingPageUrl; + this.PanaceaEnabled = panaceaEnabled; + this.CookieConsentPromptEnabled = cookieConsentPromptEnabled; + this.PanaceaVanityUrl = panaceaVanityUrl; + this.CountryId = countryId; + this.ReferralUserId = referralUserId; + this.ReferralCampaignId = referralCampaignId; + } + + /// + /// White label languages + /// + /// White label languages + [DataMember(Name="WhiteLabelLanguages", EmitDefaultValue=false)] + public List WhiteLabelLanguages { get; set; } + + /// + /// White label assets + /// + /// White label assets + [DataMember(Name="WhiteLabelAssets", EmitDefaultValue=false)] + public List WhiteLabelAssets { get; set; } + + /// + /// White label color scheme + /// + /// White label color scheme + [DataMember(Name="ColorScheme", EmitDefaultValue=false)] + public WhiteLabelColorSchemeModel ColorScheme { get; set; } + + /// + /// White label configuration ID + /// + /// White label configuration ID + [DataMember(Name="WhiteLabelConfigId", EmitDefaultValue=false)] + public int? WhiteLabelConfigId { get; set; } + + /// + /// White label ID + /// + /// White label ID + [DataMember(Name="WhiteLabelId", EmitDefaultValue=false)] + public int? WhiteLabelId { get; set; } + + /// + /// White label name + /// + /// White label name + [DataMember(Name="WhiteLabelName", EmitDefaultValue=false)] + public string WhiteLabelName { get; set; } + + /// + /// App name ID (Bundle ID Suffix) + /// + /// App name ID (Bundle ID Suffix) + [DataMember(Name="AppNameId", EmitDefaultValue=false)] + public string AppNameId { get; set; } + + /// + /// Organization ID + /// + /// Organization ID + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + + /// + /// SMS restaurant name + /// + /// SMS restaurant name + [DataMember(Name="SmsRestaurantName", EmitDefaultValue=false)] + public string SmsRestaurantName { get; set; } + + /// + /// Deep link URL scheme + /// + /// Deep link URL scheme + [DataMember(Name="DeepLinkUrlScheme", EmitDefaultValue=false)] + public string DeepLinkUrlScheme { get; set; } + + /// + /// Host name + /// + /// Host name + [DataMember(Name="HostName", EmitDefaultValue=false)] + public string HostName { get; set; } + + /// + /// Nexmo support SMS number + /// + /// Nexmo support SMS number + [DataMember(Name="NexmoSupportSmsNumber", EmitDefaultValue=false)] + public string NexmoSupportSmsNumber { get; set; } + + /// + /// Twilio support SMS number + /// + /// Twilio support SMS number + [DataMember(Name="TwilioSupportSmsNumber", EmitDefaultValue=false)] + public string TwilioSupportSmsNumber { get; set; } + + /// + /// Mixpanel token + /// + /// Mixpanel token + [DataMember(Name="MixpanelToken", EmitDefaultValue=false)] + public string MixpanelToken { get; set; } + + /// + /// Intercom app ID + /// + /// Intercom app ID + [DataMember(Name="IntercomAppId", EmitDefaultValue=false)] + public string IntercomAppId { get; set; } + + /// + /// Share message email subject + /// + /// Share message email subject + [DataMember(Name="ShareMessageEmailSubject", EmitDefaultValue=false)] + public string ShareMessageEmailSubject { get; set; } + + /// + /// Share message email message + /// + /// Share message email message + [DataMember(Name="ShareMessageEmailMessage", EmitDefaultValue=false)] + public string ShareMessageEmailMessage { get; set; } + + /// + /// Share message SMS message + /// + /// Share message SMS message + [DataMember(Name="ShareMessageSmsMessage", EmitDefaultValue=false)] + public string ShareMessageSmsMessage { get; set; } + + /// + /// Share message WhatsApp message + /// + /// Share message WhatsApp message + [DataMember(Name="ShareMessageWhatsAppMessage", EmitDefaultValue=false)] + public string ShareMessageWhatsAppMessage { get; set; } + + /// + /// Share message Facebook message + /// + /// Share message Facebook message + [DataMember(Name="ShareMessageFacebookMessage", EmitDefaultValue=false)] + public string ShareMessageFacebookMessage { get; set; } + + /// + /// Share message Twitter message + /// + /// Share message Twitter message + [DataMember(Name="ShareMessageTwitterMessage", EmitDefaultValue=false)] + public string ShareMessageTwitterMessage { get; set; } + + /// + /// Share message generic message + /// + /// Share message generic message + [DataMember(Name="ShareMessageGenericMessage", EmitDefaultValue=false)] + public string ShareMessageGenericMessage { get; set; } + + /// + /// Display delivery restaurant list screen + /// + /// Display delivery restaurant list screen + [DataMember(Name="DisplayDeliveryRestaurantListScreen", EmitDefaultValue=false)] + public bool? DisplayDeliveryRestaurantListScreen { get; set; } + + /// + /// Contact form type + /// + /// Contact form type + [DataMember(Name="ContactFormType", EmitDefaultValue=false)] + public int? ContactFormType { get; set; } + + /// + /// Contact phone number + /// + /// Contact phone number + [DataMember(Name="ContactPhoneNumber", EmitDefaultValue=false)] + public string ContactPhoneNumber { get; set; } + + /// + /// Display bump side menu item + /// + /// Display bump side menu item + [DataMember(Name="DisplayBumpSideMenuItem", EmitDefaultValue=false)] + public bool? DisplayBumpSideMenuItem { get; set; } + + /// + /// Display free coke side menu item + /// + /// Display free coke side menu item + [DataMember(Name="DisplayFreeCokeSideMenuItem", EmitDefaultValue=false)] + public bool? DisplayFreeCokeSideMenuItem { get; set; } + + /// + /// App store URL + /// + /// App store URL + [DataMember(Name="AppStoreUrl", EmitDefaultValue=false)] + public string AppStoreUrl { get; set; } + + /// + /// Delivery enabled + /// + /// Delivery enabled + [DataMember(Name="DeliveryEnabled", EmitDefaultValue=false)] + public bool? DeliveryEnabled { get; set; } + + /// + /// Pickup enabled + /// + /// Pickup enabled + [DataMember(Name="PickupEnabled", EmitDefaultValue=false)] + public bool? PickupEnabled { get; set; } + + /// + /// Display pickup restaurant list screen + /// + /// Display pickup restaurant list screen + [DataMember(Name="DisplayPickupRestaurantListScreen", EmitDefaultValue=false)] + public bool? DisplayPickupRestaurantListScreen { get; set; } + + /// + /// Display cuisine type list and restaurant search bar + /// + /// Display cuisine type list and restaurant search bar + [DataMember(Name="DisplayCuisineTypeListAndRestaurantSearchBar", EmitDefaultValue=false)] + public bool? DisplayCuisineTypeListAndRestaurantSearchBar { get; set; } + + /// + /// Display user restaurant ratings + /// + /// Display user restaurant ratings + [DataMember(Name="DisplayUserRestaurantRatings", EmitDefaultValue=false)] + public bool? DisplayUserRestaurantRatings { get; set; } + + /// + /// Ready to publish web + /// + /// Ready to publish web + [DataMember(Name="ReadyToPublishWeb", EmitDefaultValue=false)] + public bool? ReadyToPublishWeb { get; set; } + + /// + /// Ready to publish iOS + /// + /// Ready to publish iOS + [DataMember(Name="ReadyToPublishIos", EmitDefaultValue=false)] + public bool? ReadyToPublishIos { get; set; } + + /// + /// Ready to publish Android + /// + /// Ready to publish Android + [DataMember(Name="ReadyToPublishAndroid", EmitDefaultValue=false)] + public bool? ReadyToPublishAndroid { get; set; } + + /// + /// Display footer links to other sites + /// + /// Display footer links to other sites + [DataMember(Name="DisplayFooterLinksToOtherSites", EmitDefaultValue=false)] + public bool? DisplayFooterLinksToOtherSites { get; set; } + + /// + /// Display online ordering menu + /// + /// Display online ordering menu + [DataMember(Name="DisplayOnlineOrderingMenu", EmitDefaultValue=false)] + public bool? DisplayOnlineOrderingMenu { get; set; } + + /// + /// Hide app config from admin list + /// + /// Hide app config from admin list + [DataMember(Name="HideAppConfigFromAdminList", EmitDefaultValue=false)] + public bool? HideAppConfigFromAdminList { get; set; } + + + /// + /// Is menu migrated to RMS + /// + /// Is menu migrated to RMS + [DataMember(Name="IsMenuMigratedToRms", EmitDefaultValue=false)] + public bool? IsMenuMigratedToRms { get; set; } + + /// + /// Map boundary max longitude + /// + /// Map boundary max longitude + [DataMember(Name="MapBoundryMaxLongitude", EmitDefaultValue=false)] + public double? MapBoundryMaxLongitude { get; set; } + + /// + /// Map boundary min longitude + /// + /// Map boundary min longitude + [DataMember(Name="MapBoundryMinLongitude", EmitDefaultValue=false)] + public double? MapBoundryMinLongitude { get; set; } + + /// + /// Map boundary max latitude + /// + /// Map boundary max latitude + [DataMember(Name="MapBoundryMaxLatitude", EmitDefaultValue=false)] + public double? MapBoundryMaxLatitude { get; set; } + + /// + /// Map boundary min latitude + /// + /// Map boundary min latitude + [DataMember(Name="MapBoundryMinLatitude", EmitDefaultValue=false)] + public double? MapBoundryMinLatitude { get; set; } + + /// + /// App store Apple ID + /// + /// App store Apple ID + [DataMember(Name="AppStoreAppleId", EmitDefaultValue=false)] + public string AppStoreAppleId { get; set; } + + /// + /// App store token + /// + /// App store token + [DataMember(Name="AppStoreToken", EmitDefaultValue=false)] + public string AppStoreToken { get; set; } + + /// + /// Website display static menu page + /// + /// Website display static menu page + [DataMember(Name="WebsiteDisplayStaticMenuPage", EmitDefaultValue=false)] + public bool? WebsiteDisplayStaticMenuPage { get; set; } + + /// + /// Is embed + /// + /// Is embed + [DataMember(Name="IsEmbed", EmitDefaultValue=false)] + public bool? IsEmbed { get; set; } + + /// + /// Display tip option to users by default + /// + /// Display tip option to users by default + [DataMember(Name="DisplayTipOptionToUsersByDefault", EmitDefaultValue=false)] + public bool? DisplayTipOptionToUsersByDefault { get; set; } + + /// + /// Email request mode + /// + /// Email request mode + [DataMember(Name="EmailRequestMode", EmitDefaultValue=false)] + public int? EmailRequestMode { get; set; } + + /// + /// Address entry type + /// + /// Address entry type + [DataMember(Name="AddressEntryType", EmitDefaultValue=false)] + public int? AddressEntryType { get; set; } + + /// + /// Address layout + /// + /// Address layout + [DataMember(Name="AddressLayout", EmitDefaultValue=false)] + public int? AddressLayout { get; set; } + + /// + /// Category + /// + /// Category + [DataMember(Name="Category", EmitDefaultValue=false)] + public int? Category { get; set; } + + /// + /// Map center latitude + /// + /// Map center latitude + [DataMember(Name="MapCenterLatitude", EmitDefaultValue=false)] + public double? MapCenterLatitude { get; set; } + + /// + /// Map center longitude + /// + /// Map center longitude + [DataMember(Name="MapCenterLongitude", EmitDefaultValue=false)] + public double? MapCenterLongitude { get; set; } + + /// + /// Intercom token iOS + /// + /// Intercom token iOS + [DataMember(Name="IntercomTokenIos", EmitDefaultValue=false)] + public string IntercomTokenIos { get; set; } + + /// + /// Intercom token Android + /// + /// Intercom token Android + [DataMember(Name="IntercomTokenAndroid", EmitDefaultValue=false)] + public string IntercomTokenAndroid { get; set; } + + /// + /// Google Analytics tokens CSV + /// + /// Google Analytics tokens CSV + [DataMember(Name="GoogleAnalyticsTokensCsv", EmitDefaultValue=false)] + public string GoogleAnalyticsTokensCsv { get; set; } + + /// + /// Facebook tokens CSV + /// + /// Facebook tokens CSV + [DataMember(Name="FacebookTokensCsv", EmitDefaultValue=false)] + public string FacebookTokensCsv { get; set; } + + /// + /// Share message generic URL + /// + /// Share message generic URL + [DataMember(Name="ShareMessageGenericUrl", EmitDefaultValue=false)] + public string ShareMessageGenericUrl { get; set; } + + /// + /// Private support email address + /// + /// Private support email address + [DataMember(Name="PrivateSupportEmailAddress", EmitDefaultValue=false)] + public string PrivateSupportEmailAddress { get; set; } + + /// + /// App store ID + /// + /// App store ID + [DataMember(Name="AppStoreId", EmitDefaultValue=false)] + public string AppStoreId { get; set; } + + /// + /// Play console account + /// + /// Play console account + [DataMember(Name="PlayConsoleAccount", EmitDefaultValue=false)] + public int? PlayConsoleAccount { get; set; } + + /// + /// APN certificate valid after + /// + /// APN certificate valid after + [DataMember(Name="ApnCertificateValidAfter", EmitDefaultValue=false)] + public DateTime? ApnCertificateValidAfter { get; set; } + + /// + /// APN certificate valid before + /// + /// APN certificate valid before + [DataMember(Name="ApnCertificateValidBefore", EmitDefaultValue=false)] + public DateTime? ApnCertificateValidBefore { get; set; } + + /// + /// Dine in enabled + /// + /// Dine in enabled + [DataMember(Name="DineInEnabled", EmitDefaultValue=false)] + public bool? DineInEnabled { get; set; } + + /// + /// App font + /// + /// App font + [DataMember(Name="AppFont", EmitDefaultValue=false)] + public string AppFont { get; set; } + + /// + /// White label color scheme ID + /// + /// White label color scheme ID + [DataMember(Name="WhiteLabelColorSchemeId", EmitDefaultValue=false)] + public int? WhiteLabelColorSchemeId { get; set; } + + /// + /// White label images ID + /// + /// White label images ID + [DataMember(Name="WhiteLabelImagesId", EmitDefaultValue=false)] + public int? WhiteLabelImagesId { get; set; } + + /// + /// App store copyright + /// + /// App store copyright + [DataMember(Name="AppStoreCopyright", EmitDefaultValue=false)] + public string AppStoreCopyright { get; set; } + + /// + /// App store description + /// + /// App store description + [DataMember(Name="AppStoreDescription", EmitDefaultValue=false)] + public string AppStoreDescription { get; set; } + + /// + /// App store short description + /// + /// App store short description + [DataMember(Name="AppStoreShortDescription", EmitDefaultValue=false)] + public string AppStoreShortDescription { get; set; } + + /// + /// App store keywords + /// + /// App store keywords + [DataMember(Name="AppStoreKeywords", EmitDefaultValue=false)] + public string AppStoreKeywords { get; set; } + + /// + /// App store marketing URL + /// + /// App store marketing URL + [DataMember(Name="AppStoreMarketingUrl", EmitDefaultValue=false)] + public string AppStoreMarketingUrl { get; set; } + + /// + /// App store name + /// + /// App store name + [DataMember(Name="AppStoreName", EmitDefaultValue=false)] + public string AppStoreName { get; set; } + + /// + /// App store privacy URL + /// + /// App store privacy URL + [DataMember(Name="AppStorePrivacyUrl", EmitDefaultValue=false)] + public string AppStorePrivacyUrl { get; set; } + + /// + /// App store support URL + /// + /// App store support URL + [DataMember(Name="AppStoreSupportUrl", EmitDefaultValue=false)] + public string AppStoreSupportUrl { get; set; } + + /// + /// App store release notes + /// + /// App store release notes + [DataMember(Name="AppStoreReleaseNotes", EmitDefaultValue=false)] + public string AppStoreReleaseNotes { get; set; } + + /// + /// App store icon URL + /// + /// App store icon URL + [DataMember(Name="AppStoreIconUrl", EmitDefaultValue=false)] + public string AppStoreIconUrl { get; set; } + + /// + /// App store icon thumbnail 100 URL + /// + /// App store icon thumbnail 100 URL + [DataMember(Name="AppStoreIconThumbnail100Url", EmitDefaultValue=false)] + public string AppStoreIconThumbnail100Url { get; set; } + + /// + /// Transparent logo URL + /// + /// Transparent logo URL + [DataMember(Name="TransparentLogoUrl", EmitDefaultValue=false)] + public string TransparentLogoUrl { get; set; } + + /// + /// Logo image name + /// + /// Logo image name + [DataMember(Name="LogoImageName", EmitDefaultValue=false)] + public string LogoImageName { get; set; } + + /// + /// Kiosk name screen image + /// + /// Kiosk name screen image + [DataMember(Name="KioskNameScreenImage", EmitDefaultValue=false)] + public string KioskNameScreenImage { get; set; } + + /// + /// Web to app redirect + /// + /// Web to app redirect + [DataMember(Name="WebToAppRedirect", EmitDefaultValue=false)] + public int? WebToAppRedirect { get; set; } + + /// + /// Features CSV + /// + /// Features CSV + [DataMember(Name="FeaturesCsv", EmitDefaultValue=false)] + public string FeaturesCsv { get; set; } + + /// + /// App store password + /// + /// App store password + [DataMember(Name="AppStorePassword", EmitDefaultValue=false)] + public string AppStorePassword { get; set; } + + /// + /// App store team ID + /// + /// App store team ID + [DataMember(Name="AppStoreTeamId", EmitDefaultValue=false)] + public string AppStoreTeamId { get; set; } + + /// + /// App store app group + /// + /// App store app group + [DataMember(Name="AppStoreAppGroup", EmitDefaultValue=false)] + public string AppStoreAppGroup { get; set; } + + /// + /// App store signing identity + /// + /// App store signing identity + [DataMember(Name="AppStoreSigningIdentity", EmitDefaultValue=false)] + public string AppStoreSigningIdentity { get; set; } + + /// + /// App store ITC team ID + /// + /// App store ITC team ID + [DataMember(Name="AppStoreItcTeamId", EmitDefaultValue=false)] + public string AppStoreItcTeamId { get; set; } + + /// + /// Head HTML + /// + /// Head HTML + [DataMember(Name="HeadHtml", EmitDefaultValue=false)] + public string HeadHtml { get; set; } + + /// + /// Social Twitter URL + /// + /// Social Twitter URL + [DataMember(Name="SocialTwitterUrl", EmitDefaultValue=false)] + public string SocialTwitterUrl { get; set; } + + /// + /// Social Facebook URL + /// + /// Social Facebook URL + [DataMember(Name="SocialFacebookUrl", EmitDefaultValue=false)] + public string SocialFacebookUrl { get; set; } + + /// + /// Social Instagram URL + /// + /// Social Instagram URL + [DataMember(Name="SocialInstagramUrl", EmitDefaultValue=false)] + public string SocialInstagramUrl { get; set; } + + /// + /// Social Pinterest URL + /// + /// Social Pinterest URL + [DataMember(Name="SocialPintrestUrl", EmitDefaultValue=false)] + public string SocialPintrestUrl { get; set; } + + /// + /// Social TripAdvisor URL + /// + /// Social TripAdvisor URL + [DataMember(Name="SocialTripAdvisorUrl", EmitDefaultValue=false)] + public string SocialTripAdvisorUrl { get; set; } + + /// + /// Social Google Plus URL + /// + /// Social Google Plus URL + [DataMember(Name="SocialGooglePlusUrl", EmitDefaultValue=false)] + public string SocialGooglePlusUrl { get; set; } + + /// + /// Social FourSquare URL + /// + /// Social FourSquare URL + [DataMember(Name="SocialFourSquareUrl", EmitDefaultValue=false)] + public string SocialFourSquareUrl { get; set; } + + /// + /// Social Yelp URL + /// + /// Social Yelp URL + [DataMember(Name="SocialYelpUrl", EmitDefaultValue=false)] + public string SocialYelpUrl { get; set; } + + /// + /// Website type + /// + /// Website type + [DataMember(Name="WebsiteType", EmitDefaultValue=false)] + public int? WebsiteType { get; set; } + + /// + /// External ordering page URL + /// + /// External ordering page URL + [DataMember(Name="ExternalOrderingPageUrl", EmitDefaultValue=false)] + public string ExternalOrderingPageUrl { get; set; } + + /// + /// Panacea enabled + /// + /// Panacea enabled + [DataMember(Name="PanaceaEnabled", EmitDefaultValue=false)] + public bool? PanaceaEnabled { get; set; } + + /// + /// Cookie consent prompt enabled + /// + /// Cookie consent prompt enabled + [DataMember(Name="CookieConsentPromptEnabled", EmitDefaultValue=false)] + public bool? CookieConsentPromptEnabled { get; set; } + + /// + /// Panacea vanity URL + /// + /// Panacea vanity URL + [DataMember(Name="PanaceaVanityUrl", EmitDefaultValue=false)] + public string PanaceaVanityUrl { get; set; } + + /// + /// Country ID + /// + /// Country ID + [DataMember(Name="CountryId", EmitDefaultValue=false)] + public string CountryId { get; set; } + + /// + /// Referral user ID + /// + /// Referral user ID + [DataMember(Name="ReferralUserId", EmitDefaultValue=false)] + public int? ReferralUserId { get; set; } + + /// + /// Referral campaign ID + /// + /// Referral campaign ID + [DataMember(Name="ReferralCampaignId", EmitDefaultValue=false)] + public string ReferralCampaignId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WhiteLabelConfigModel {\n"); + sb.Append(" WhiteLabelLanguages: ").Append(WhiteLabelLanguages).Append("\n"); + sb.Append(" WhiteLabelAssets: ").Append(WhiteLabelAssets).Append("\n"); + sb.Append(" ColorScheme: ").Append(ColorScheme).Append("\n"); + sb.Append(" WhiteLabelConfigId: ").Append(WhiteLabelConfigId).Append("\n"); + sb.Append(" WhiteLabelId: ").Append(WhiteLabelId).Append("\n"); + sb.Append(" WhiteLabelName: ").Append(WhiteLabelName).Append("\n"); + sb.Append(" AppNameId: ").Append(AppNameId).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" SmsRestaurantName: ").Append(SmsRestaurantName).Append("\n"); + sb.Append(" DeepLinkUrlScheme: ").Append(DeepLinkUrlScheme).Append("\n"); + sb.Append(" HostName: ").Append(HostName).Append("\n"); + sb.Append(" NexmoSupportSmsNumber: ").Append(NexmoSupportSmsNumber).Append("\n"); + sb.Append(" TwilioSupportSmsNumber: ").Append(TwilioSupportSmsNumber).Append("\n"); + sb.Append(" MixpanelToken: ").Append(MixpanelToken).Append("\n"); + sb.Append(" IntercomAppId: ").Append(IntercomAppId).Append("\n"); + sb.Append(" ShareMessageEmailSubject: ").Append(ShareMessageEmailSubject).Append("\n"); + sb.Append(" ShareMessageEmailMessage: ").Append(ShareMessageEmailMessage).Append("\n"); + sb.Append(" ShareMessageSmsMessage: ").Append(ShareMessageSmsMessage).Append("\n"); + sb.Append(" ShareMessageWhatsAppMessage: ").Append(ShareMessageWhatsAppMessage).Append("\n"); + sb.Append(" ShareMessageFacebookMessage: ").Append(ShareMessageFacebookMessage).Append("\n"); + sb.Append(" ShareMessageTwitterMessage: ").Append(ShareMessageTwitterMessage).Append("\n"); + sb.Append(" ShareMessageGenericMessage: ").Append(ShareMessageGenericMessage).Append("\n"); + sb.Append(" DisplayDeliveryRestaurantListScreen: ").Append(DisplayDeliveryRestaurantListScreen).Append("\n"); + sb.Append(" ContactFormType: ").Append(ContactFormType).Append("\n"); + sb.Append(" ContactPhoneNumber: ").Append(ContactPhoneNumber).Append("\n"); + sb.Append(" DisplayBumpSideMenuItem: ").Append(DisplayBumpSideMenuItem).Append("\n"); + sb.Append(" DisplayFreeCokeSideMenuItem: ").Append(DisplayFreeCokeSideMenuItem).Append("\n"); + sb.Append(" AppStoreUrl: ").Append(AppStoreUrl).Append("\n"); + sb.Append(" DeliveryEnabled: ").Append(DeliveryEnabled).Append("\n"); + sb.Append(" PickupEnabled: ").Append(PickupEnabled).Append("\n"); + sb.Append(" DisplayPickupRestaurantListScreen: ").Append(DisplayPickupRestaurantListScreen).Append("\n"); + sb.Append(" DisplayCuisineTypeListAndRestaurantSearchBar: ").Append(DisplayCuisineTypeListAndRestaurantSearchBar).Append("\n"); + sb.Append(" DisplayUserRestaurantRatings: ").Append(DisplayUserRestaurantRatings).Append("\n"); + sb.Append(" ReadyToPublishWeb: ").Append(ReadyToPublishWeb).Append("\n"); + sb.Append(" ReadyToPublishIos: ").Append(ReadyToPublishIos).Append("\n"); + sb.Append(" ReadyToPublishAndroid: ").Append(ReadyToPublishAndroid).Append("\n"); + sb.Append(" DisplayFooterLinksToOtherSites: ").Append(DisplayFooterLinksToOtherSites).Append("\n"); + sb.Append(" DisplayOnlineOrderingMenu: ").Append(DisplayOnlineOrderingMenu).Append("\n"); + sb.Append(" HideAppConfigFromAdminList: ").Append(HideAppConfigFromAdminList).Append("\n"); + sb.Append(" ComplianceType: ").Append(ComplianceType).Append("\n"); + sb.Append(" IsMenuMigratedToRms: ").Append(IsMenuMigratedToRms).Append("\n"); + sb.Append(" MapBoundryMaxLongitude: ").Append(MapBoundryMaxLongitude).Append("\n"); + sb.Append(" MapBoundryMinLongitude: ").Append(MapBoundryMinLongitude).Append("\n"); + sb.Append(" MapBoundryMaxLatitude: ").Append(MapBoundryMaxLatitude).Append("\n"); + sb.Append(" MapBoundryMinLatitude: ").Append(MapBoundryMinLatitude).Append("\n"); + sb.Append(" AppStoreAppleId: ").Append(AppStoreAppleId).Append("\n"); + sb.Append(" AppStoreToken: ").Append(AppStoreToken).Append("\n"); + sb.Append(" WebsiteDisplayStaticMenuPage: ").Append(WebsiteDisplayStaticMenuPage).Append("\n"); + sb.Append(" IsEmbed: ").Append(IsEmbed).Append("\n"); + sb.Append(" DisplayTipOptionToUsersByDefault: ").Append(DisplayTipOptionToUsersByDefault).Append("\n"); + sb.Append(" EmailRequestMode: ").Append(EmailRequestMode).Append("\n"); + sb.Append(" AddressEntryType: ").Append(AddressEntryType).Append("\n"); + sb.Append(" AddressLayout: ").Append(AddressLayout).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" MapCenterLatitude: ").Append(MapCenterLatitude).Append("\n"); + sb.Append(" MapCenterLongitude: ").Append(MapCenterLongitude).Append("\n"); + sb.Append(" IntercomTokenIos: ").Append(IntercomTokenIos).Append("\n"); + sb.Append(" IntercomTokenAndroid: ").Append(IntercomTokenAndroid).Append("\n"); + sb.Append(" GoogleAnalyticsTokensCsv: ").Append(GoogleAnalyticsTokensCsv).Append("\n"); + sb.Append(" FacebookTokensCsv: ").Append(FacebookTokensCsv).Append("\n"); + sb.Append(" ShareMessageGenericUrl: ").Append(ShareMessageGenericUrl).Append("\n"); + sb.Append(" PrivateSupportEmailAddress: ").Append(PrivateSupportEmailAddress).Append("\n"); + sb.Append(" AppStoreId: ").Append(AppStoreId).Append("\n"); + sb.Append(" PlayConsoleAccount: ").Append(PlayConsoleAccount).Append("\n"); + sb.Append(" ApnCertificateValidAfter: ").Append(ApnCertificateValidAfter).Append("\n"); + sb.Append(" ApnCertificateValidBefore: ").Append(ApnCertificateValidBefore).Append("\n"); + sb.Append(" DineInEnabled: ").Append(DineInEnabled).Append("\n"); + sb.Append(" AppFont: ").Append(AppFont).Append("\n"); + sb.Append(" WhiteLabelColorSchemeId: ").Append(WhiteLabelColorSchemeId).Append("\n"); + sb.Append(" WhiteLabelImagesId: ").Append(WhiteLabelImagesId).Append("\n"); + sb.Append(" AppStoreCopyright: ").Append(AppStoreCopyright).Append("\n"); + sb.Append(" AppStoreDescription: ").Append(AppStoreDescription).Append("\n"); + sb.Append(" AppStoreShortDescription: ").Append(AppStoreShortDescription).Append("\n"); + sb.Append(" AppStoreKeywords: ").Append(AppStoreKeywords).Append("\n"); + sb.Append(" AppStoreMarketingUrl: ").Append(AppStoreMarketingUrl).Append("\n"); + sb.Append(" AppStoreName: ").Append(AppStoreName).Append("\n"); + sb.Append(" AppStorePrivacyUrl: ").Append(AppStorePrivacyUrl).Append("\n"); + sb.Append(" AppStoreSupportUrl: ").Append(AppStoreSupportUrl).Append("\n"); + sb.Append(" AppStoreReleaseNotes: ").Append(AppStoreReleaseNotes).Append("\n"); + sb.Append(" AppStoreIconUrl: ").Append(AppStoreIconUrl).Append("\n"); + sb.Append(" AppStoreIconThumbnail100Url: ").Append(AppStoreIconThumbnail100Url).Append("\n"); + sb.Append(" TransparentLogoUrl: ").Append(TransparentLogoUrl).Append("\n"); + sb.Append(" LogoImageName: ").Append(LogoImageName).Append("\n"); + sb.Append(" KioskNameScreenImage: ").Append(KioskNameScreenImage).Append("\n"); + sb.Append(" WebToAppRedirect: ").Append(WebToAppRedirect).Append("\n"); + sb.Append(" FeaturesCsv: ").Append(FeaturesCsv).Append("\n"); + sb.Append(" AppStorePassword: ").Append(AppStorePassword).Append("\n"); + sb.Append(" AppStoreTeamId: ").Append(AppStoreTeamId).Append("\n"); + sb.Append(" AppStoreAppGroup: ").Append(AppStoreAppGroup).Append("\n"); + sb.Append(" AppStoreSigningIdentity: ").Append(AppStoreSigningIdentity).Append("\n"); + sb.Append(" AppStoreItcTeamId: ").Append(AppStoreItcTeamId).Append("\n"); + sb.Append(" HeadHtml: ").Append(HeadHtml).Append("\n"); + sb.Append(" SocialTwitterUrl: ").Append(SocialTwitterUrl).Append("\n"); + sb.Append(" SocialFacebookUrl: ").Append(SocialFacebookUrl).Append("\n"); + sb.Append(" SocialInstagramUrl: ").Append(SocialInstagramUrl).Append("\n"); + sb.Append(" SocialPintrestUrl: ").Append(SocialPintrestUrl).Append("\n"); + sb.Append(" SocialTripAdvisorUrl: ").Append(SocialTripAdvisorUrl).Append("\n"); + sb.Append(" SocialGooglePlusUrl: ").Append(SocialGooglePlusUrl).Append("\n"); + sb.Append(" SocialFourSquareUrl: ").Append(SocialFourSquareUrl).Append("\n"); + sb.Append(" SocialYelpUrl: ").Append(SocialYelpUrl).Append("\n"); + sb.Append(" WebsiteType: ").Append(WebsiteType).Append("\n"); + sb.Append(" ExternalOrderingPageUrl: ").Append(ExternalOrderingPageUrl).Append("\n"); + sb.Append(" PanaceaEnabled: ").Append(PanaceaEnabled).Append("\n"); + sb.Append(" CookieConsentPromptEnabled: ").Append(CookieConsentPromptEnabled).Append("\n"); + sb.Append(" PanaceaVanityUrl: ").Append(PanaceaVanityUrl).Append("\n"); + sb.Append(" CountryId: ").Append(CountryId).Append("\n"); + sb.Append(" ReferralUserId: ").Append(ReferralUserId).Append("\n"); + sb.Append(" ReferralCampaignId: ").Append(ReferralCampaignId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WhiteLabelConfigModel); + } + + /// + /// Returns true if WhiteLabelConfigModel instances are equal + /// + /// Instance of WhiteLabelConfigModel to be compared + /// Boolean + public bool Equals(WhiteLabelConfigModel input) + { + if (input == null) + return false; + + return + ( + this.WhiteLabelLanguages == input.WhiteLabelLanguages || + this.WhiteLabelLanguages != null && + this.WhiteLabelLanguages.SequenceEqual(input.WhiteLabelLanguages) + ) && + ( + this.WhiteLabelAssets == input.WhiteLabelAssets || + this.WhiteLabelAssets != null && + this.WhiteLabelAssets.SequenceEqual(input.WhiteLabelAssets) + ) && + ( + this.ColorScheme == input.ColorScheme || + (this.ColorScheme != null && + this.ColorScheme.Equals(input.ColorScheme)) + ) && + ( + this.WhiteLabelConfigId == input.WhiteLabelConfigId || + (this.WhiteLabelConfigId != null && + this.WhiteLabelConfigId.Equals(input.WhiteLabelConfigId)) + ) && + ( + this.WhiteLabelId == input.WhiteLabelId || + (this.WhiteLabelId != null && + this.WhiteLabelId.Equals(input.WhiteLabelId)) + ) && + ( + this.WhiteLabelName == input.WhiteLabelName || + (this.WhiteLabelName != null && + this.WhiteLabelName.Equals(input.WhiteLabelName)) + ) && + ( + this.AppNameId == input.AppNameId || + (this.AppNameId != null && + this.AppNameId.Equals(input.AppNameId)) + ) && + ( + this.OrgId == input.OrgId || + (this.OrgId != null && + this.OrgId.Equals(input.OrgId)) + ) && + ( + this.SmsRestaurantName == input.SmsRestaurantName || + (this.SmsRestaurantName != null && + this.SmsRestaurantName.Equals(input.SmsRestaurantName)) + ) && + ( + this.DeepLinkUrlScheme == input.DeepLinkUrlScheme || + (this.DeepLinkUrlScheme != null && + this.DeepLinkUrlScheme.Equals(input.DeepLinkUrlScheme)) + ) && + ( + this.HostName == input.HostName || + (this.HostName != null && + this.HostName.Equals(input.HostName)) + ) && + ( + this.NexmoSupportSmsNumber == input.NexmoSupportSmsNumber || + (this.NexmoSupportSmsNumber != null && + this.NexmoSupportSmsNumber.Equals(input.NexmoSupportSmsNumber)) + ) && + ( + this.TwilioSupportSmsNumber == input.TwilioSupportSmsNumber || + (this.TwilioSupportSmsNumber != null && + this.TwilioSupportSmsNumber.Equals(input.TwilioSupportSmsNumber)) + ) && + ( + this.MixpanelToken == input.MixpanelToken || + (this.MixpanelToken != null && + this.MixpanelToken.Equals(input.MixpanelToken)) + ) && + ( + this.IntercomAppId == input.IntercomAppId || + (this.IntercomAppId != null && + this.IntercomAppId.Equals(input.IntercomAppId)) + ) && + ( + this.ShareMessageEmailSubject == input.ShareMessageEmailSubject || + (this.ShareMessageEmailSubject != null && + this.ShareMessageEmailSubject.Equals(input.ShareMessageEmailSubject)) + ) && + ( + this.ShareMessageEmailMessage == input.ShareMessageEmailMessage || + (this.ShareMessageEmailMessage != null && + this.ShareMessageEmailMessage.Equals(input.ShareMessageEmailMessage)) + ) && + ( + this.ShareMessageSmsMessage == input.ShareMessageSmsMessage || + (this.ShareMessageSmsMessage != null && + this.ShareMessageSmsMessage.Equals(input.ShareMessageSmsMessage)) + ) && + ( + this.ShareMessageWhatsAppMessage == input.ShareMessageWhatsAppMessage || + (this.ShareMessageWhatsAppMessage != null && + this.ShareMessageWhatsAppMessage.Equals(input.ShareMessageWhatsAppMessage)) + ) && + ( + this.ShareMessageFacebookMessage == input.ShareMessageFacebookMessage || + (this.ShareMessageFacebookMessage != null && + this.ShareMessageFacebookMessage.Equals(input.ShareMessageFacebookMessage)) + ) && + ( + this.ShareMessageTwitterMessage == input.ShareMessageTwitterMessage || + (this.ShareMessageTwitterMessage != null && + this.ShareMessageTwitterMessage.Equals(input.ShareMessageTwitterMessage)) + ) && + ( + this.ShareMessageGenericMessage == input.ShareMessageGenericMessage || + (this.ShareMessageGenericMessage != null && + this.ShareMessageGenericMessage.Equals(input.ShareMessageGenericMessage)) + ) && + ( + this.DisplayDeliveryRestaurantListScreen == input.DisplayDeliveryRestaurantListScreen || + (this.DisplayDeliveryRestaurantListScreen != null && + this.DisplayDeliveryRestaurantListScreen.Equals(input.DisplayDeliveryRestaurantListScreen)) + ) && + ( + this.ContactFormType == input.ContactFormType || + (this.ContactFormType != null && + this.ContactFormType.Equals(input.ContactFormType)) + ) && + ( + this.ContactPhoneNumber == input.ContactPhoneNumber || + (this.ContactPhoneNumber != null && + this.ContactPhoneNumber.Equals(input.ContactPhoneNumber)) + ) && + ( + this.DisplayBumpSideMenuItem == input.DisplayBumpSideMenuItem || + (this.DisplayBumpSideMenuItem != null && + this.DisplayBumpSideMenuItem.Equals(input.DisplayBumpSideMenuItem)) + ) && + ( + this.DisplayFreeCokeSideMenuItem == input.DisplayFreeCokeSideMenuItem || + (this.DisplayFreeCokeSideMenuItem != null && + this.DisplayFreeCokeSideMenuItem.Equals(input.DisplayFreeCokeSideMenuItem)) + ) && + ( + this.AppStoreUrl == input.AppStoreUrl || + (this.AppStoreUrl != null && + this.AppStoreUrl.Equals(input.AppStoreUrl)) + ) && + ( + this.DeliveryEnabled == input.DeliveryEnabled || + (this.DeliveryEnabled != null && + this.DeliveryEnabled.Equals(input.DeliveryEnabled)) + ) && + ( + this.PickupEnabled == input.PickupEnabled || + (this.PickupEnabled != null && + this.PickupEnabled.Equals(input.PickupEnabled)) + ) && + ( + this.DisplayPickupRestaurantListScreen == input.DisplayPickupRestaurantListScreen || + (this.DisplayPickupRestaurantListScreen != null && + this.DisplayPickupRestaurantListScreen.Equals(input.DisplayPickupRestaurantListScreen)) + ) && + ( + this.DisplayCuisineTypeListAndRestaurantSearchBar == input.DisplayCuisineTypeListAndRestaurantSearchBar || + (this.DisplayCuisineTypeListAndRestaurantSearchBar != null && + this.DisplayCuisineTypeListAndRestaurantSearchBar.Equals(input.DisplayCuisineTypeListAndRestaurantSearchBar)) + ) && + ( + this.DisplayUserRestaurantRatings == input.DisplayUserRestaurantRatings || + (this.DisplayUserRestaurantRatings != null && + this.DisplayUserRestaurantRatings.Equals(input.DisplayUserRestaurantRatings)) + ) && + ( + this.ReadyToPublishWeb == input.ReadyToPublishWeb || + (this.ReadyToPublishWeb != null && + this.ReadyToPublishWeb.Equals(input.ReadyToPublishWeb)) + ) && + ( + this.ReadyToPublishIos == input.ReadyToPublishIos || + (this.ReadyToPublishIos != null && + this.ReadyToPublishIos.Equals(input.ReadyToPublishIos)) + ) && + ( + this.ReadyToPublishAndroid == input.ReadyToPublishAndroid || + (this.ReadyToPublishAndroid != null && + this.ReadyToPublishAndroid.Equals(input.ReadyToPublishAndroid)) + ) && + ( + this.DisplayFooterLinksToOtherSites == input.DisplayFooterLinksToOtherSites || + (this.DisplayFooterLinksToOtherSites != null && + this.DisplayFooterLinksToOtherSites.Equals(input.DisplayFooterLinksToOtherSites)) + ) && + ( + this.DisplayOnlineOrderingMenu == input.DisplayOnlineOrderingMenu || + (this.DisplayOnlineOrderingMenu != null && + this.DisplayOnlineOrderingMenu.Equals(input.DisplayOnlineOrderingMenu)) + ) && + ( + this.HideAppConfigFromAdminList == input.HideAppConfigFromAdminList || + (this.HideAppConfigFromAdminList != null && + this.HideAppConfigFromAdminList.Equals(input.HideAppConfigFromAdminList)) + ) && + ( + this.ComplianceType == input.ComplianceType || + (this.ComplianceType != null && + this.ComplianceType.Equals(input.ComplianceType)) + ) && + ( + this.IsMenuMigratedToRms == input.IsMenuMigratedToRms || + (this.IsMenuMigratedToRms != null && + this.IsMenuMigratedToRms.Equals(input.IsMenuMigratedToRms)) + ) && + ( + this.MapBoundryMaxLongitude == input.MapBoundryMaxLongitude || + (this.MapBoundryMaxLongitude != null && + this.MapBoundryMaxLongitude.Equals(input.MapBoundryMaxLongitude)) + ) && + ( + this.MapBoundryMinLongitude == input.MapBoundryMinLongitude || + (this.MapBoundryMinLongitude != null && + this.MapBoundryMinLongitude.Equals(input.MapBoundryMinLongitude)) + ) && + ( + this.MapBoundryMaxLatitude == input.MapBoundryMaxLatitude || + (this.MapBoundryMaxLatitude != null && + this.MapBoundryMaxLatitude.Equals(input.MapBoundryMaxLatitude)) + ) && + ( + this.MapBoundryMinLatitude == input.MapBoundryMinLatitude || + (this.MapBoundryMinLatitude != null && + this.MapBoundryMinLatitude.Equals(input.MapBoundryMinLatitude)) + ) && + ( + this.AppStoreAppleId == input.AppStoreAppleId || + (this.AppStoreAppleId != null && + this.AppStoreAppleId.Equals(input.AppStoreAppleId)) + ) && + ( + this.AppStoreToken == input.AppStoreToken || + (this.AppStoreToken != null && + this.AppStoreToken.Equals(input.AppStoreToken)) + ) && + ( + this.WebsiteDisplayStaticMenuPage == input.WebsiteDisplayStaticMenuPage || + (this.WebsiteDisplayStaticMenuPage != null && + this.WebsiteDisplayStaticMenuPage.Equals(input.WebsiteDisplayStaticMenuPage)) + ) && + ( + this.IsEmbed == input.IsEmbed || + (this.IsEmbed != null && + this.IsEmbed.Equals(input.IsEmbed)) + ) && + ( + this.DisplayTipOptionToUsersByDefault == input.DisplayTipOptionToUsersByDefault || + (this.DisplayTipOptionToUsersByDefault != null && + this.DisplayTipOptionToUsersByDefault.Equals(input.DisplayTipOptionToUsersByDefault)) + ) && + ( + this.EmailRequestMode == input.EmailRequestMode || + (this.EmailRequestMode != null && + this.EmailRequestMode.Equals(input.EmailRequestMode)) + ) && + ( + this.AddressEntryType == input.AddressEntryType || + (this.AddressEntryType != null && + this.AddressEntryType.Equals(input.AddressEntryType)) + ) && + ( + this.AddressLayout == input.AddressLayout || + (this.AddressLayout != null && + this.AddressLayout.Equals(input.AddressLayout)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.MapCenterLatitude == input.MapCenterLatitude || + (this.MapCenterLatitude != null && + this.MapCenterLatitude.Equals(input.MapCenterLatitude)) + ) && + ( + this.MapCenterLongitude == input.MapCenterLongitude || + (this.MapCenterLongitude != null && + this.MapCenterLongitude.Equals(input.MapCenterLongitude)) + ) && + ( + this.IntercomTokenIos == input.IntercomTokenIos || + (this.IntercomTokenIos != null && + this.IntercomTokenIos.Equals(input.IntercomTokenIos)) + ) && + ( + this.IntercomTokenAndroid == input.IntercomTokenAndroid || + (this.IntercomTokenAndroid != null && + this.IntercomTokenAndroid.Equals(input.IntercomTokenAndroid)) + ) && + ( + this.GoogleAnalyticsTokensCsv == input.GoogleAnalyticsTokensCsv || + (this.GoogleAnalyticsTokensCsv != null && + this.GoogleAnalyticsTokensCsv.Equals(input.GoogleAnalyticsTokensCsv)) + ) && + ( + this.FacebookTokensCsv == input.FacebookTokensCsv || + (this.FacebookTokensCsv != null && + this.FacebookTokensCsv.Equals(input.FacebookTokensCsv)) + ) && + ( + this.ShareMessageGenericUrl == input.ShareMessageGenericUrl || + (this.ShareMessageGenericUrl != null && + this.ShareMessageGenericUrl.Equals(input.ShareMessageGenericUrl)) + ) && + ( + this.PrivateSupportEmailAddress == input.PrivateSupportEmailAddress || + (this.PrivateSupportEmailAddress != null && + this.PrivateSupportEmailAddress.Equals(input.PrivateSupportEmailAddress)) + ) && + ( + this.AppStoreId == input.AppStoreId || + (this.AppStoreId != null && + this.AppStoreId.Equals(input.AppStoreId)) + ) && + ( + this.PlayConsoleAccount == input.PlayConsoleAccount || + (this.PlayConsoleAccount != null && + this.PlayConsoleAccount.Equals(input.PlayConsoleAccount)) + ) && + ( + this.ApnCertificateValidAfter == input.ApnCertificateValidAfter || + (this.ApnCertificateValidAfter != null && + this.ApnCertificateValidAfter.Equals(input.ApnCertificateValidAfter)) + ) && + ( + this.ApnCertificateValidBefore == input.ApnCertificateValidBefore || + (this.ApnCertificateValidBefore != null && + this.ApnCertificateValidBefore.Equals(input.ApnCertificateValidBefore)) + ) && + ( + this.DineInEnabled == input.DineInEnabled || + (this.DineInEnabled != null && + this.DineInEnabled.Equals(input.DineInEnabled)) + ) && + ( + this.AppFont == input.AppFont || + (this.AppFont != null && + this.AppFont.Equals(input.AppFont)) + ) && + ( + this.WhiteLabelColorSchemeId == input.WhiteLabelColorSchemeId || + (this.WhiteLabelColorSchemeId != null && + this.WhiteLabelColorSchemeId.Equals(input.WhiteLabelColorSchemeId)) + ) && + ( + this.WhiteLabelImagesId == input.WhiteLabelImagesId || + (this.WhiteLabelImagesId != null && + this.WhiteLabelImagesId.Equals(input.WhiteLabelImagesId)) + ) && + ( + this.AppStoreCopyright == input.AppStoreCopyright || + (this.AppStoreCopyright != null && + this.AppStoreCopyright.Equals(input.AppStoreCopyright)) + ) && + ( + this.AppStoreDescription == input.AppStoreDescription || + (this.AppStoreDescription != null && + this.AppStoreDescription.Equals(input.AppStoreDescription)) + ) && + ( + this.AppStoreShortDescription == input.AppStoreShortDescription || + (this.AppStoreShortDescription != null && + this.AppStoreShortDescription.Equals(input.AppStoreShortDescription)) + ) && + ( + this.AppStoreKeywords == input.AppStoreKeywords || + (this.AppStoreKeywords != null && + this.AppStoreKeywords.Equals(input.AppStoreKeywords)) + ) && + ( + this.AppStoreMarketingUrl == input.AppStoreMarketingUrl || + (this.AppStoreMarketingUrl != null && + this.AppStoreMarketingUrl.Equals(input.AppStoreMarketingUrl)) + ) && + ( + this.AppStoreName == input.AppStoreName || + (this.AppStoreName != null && + this.AppStoreName.Equals(input.AppStoreName)) + ) && + ( + this.AppStorePrivacyUrl == input.AppStorePrivacyUrl || + (this.AppStorePrivacyUrl != null && + this.AppStorePrivacyUrl.Equals(input.AppStorePrivacyUrl)) + ) && + ( + this.AppStoreSupportUrl == input.AppStoreSupportUrl || + (this.AppStoreSupportUrl != null && + this.AppStoreSupportUrl.Equals(input.AppStoreSupportUrl)) + ) && + ( + this.AppStoreReleaseNotes == input.AppStoreReleaseNotes || + (this.AppStoreReleaseNotes != null && + this.AppStoreReleaseNotes.Equals(input.AppStoreReleaseNotes)) + ) && + ( + this.AppStoreIconUrl == input.AppStoreIconUrl || + (this.AppStoreIconUrl != null && + this.AppStoreIconUrl.Equals(input.AppStoreIconUrl)) + ) && + ( + this.AppStoreIconThumbnail100Url == input.AppStoreIconThumbnail100Url || + (this.AppStoreIconThumbnail100Url != null && + this.AppStoreIconThumbnail100Url.Equals(input.AppStoreIconThumbnail100Url)) + ) && + ( + this.TransparentLogoUrl == input.TransparentLogoUrl || + (this.TransparentLogoUrl != null && + this.TransparentLogoUrl.Equals(input.TransparentLogoUrl)) + ) && + ( + this.LogoImageName == input.LogoImageName || + (this.LogoImageName != null && + this.LogoImageName.Equals(input.LogoImageName)) + ) && + ( + this.KioskNameScreenImage == input.KioskNameScreenImage || + (this.KioskNameScreenImage != null && + this.KioskNameScreenImage.Equals(input.KioskNameScreenImage)) + ) && + ( + this.WebToAppRedirect == input.WebToAppRedirect || + (this.WebToAppRedirect != null && + this.WebToAppRedirect.Equals(input.WebToAppRedirect)) + ) && + ( + this.FeaturesCsv == input.FeaturesCsv || + (this.FeaturesCsv != null && + this.FeaturesCsv.Equals(input.FeaturesCsv)) + ) && + ( + this.AppStorePassword == input.AppStorePassword || + (this.AppStorePassword != null && + this.AppStorePassword.Equals(input.AppStorePassword)) + ) && + ( + this.AppStoreTeamId == input.AppStoreTeamId || + (this.AppStoreTeamId != null && + this.AppStoreTeamId.Equals(input.AppStoreTeamId)) + ) && + ( + this.AppStoreAppGroup == input.AppStoreAppGroup || + (this.AppStoreAppGroup != null && + this.AppStoreAppGroup.Equals(input.AppStoreAppGroup)) + ) && + ( + this.AppStoreSigningIdentity == input.AppStoreSigningIdentity || + (this.AppStoreSigningIdentity != null && + this.AppStoreSigningIdentity.Equals(input.AppStoreSigningIdentity)) + ) && + ( + this.AppStoreItcTeamId == input.AppStoreItcTeamId || + (this.AppStoreItcTeamId != null && + this.AppStoreItcTeamId.Equals(input.AppStoreItcTeamId)) + ) && + ( + this.HeadHtml == input.HeadHtml || + (this.HeadHtml != null && + this.HeadHtml.Equals(input.HeadHtml)) + ) && + ( + this.SocialTwitterUrl == input.SocialTwitterUrl || + (this.SocialTwitterUrl != null && + this.SocialTwitterUrl.Equals(input.SocialTwitterUrl)) + ) && + ( + this.SocialFacebookUrl == input.SocialFacebookUrl || + (this.SocialFacebookUrl != null && + this.SocialFacebookUrl.Equals(input.SocialFacebookUrl)) + ) && + ( + this.SocialInstagramUrl == input.SocialInstagramUrl || + (this.SocialInstagramUrl != null && + this.SocialInstagramUrl.Equals(input.SocialInstagramUrl)) + ) && + ( + this.SocialPintrestUrl == input.SocialPintrestUrl || + (this.SocialPintrestUrl != null && + this.SocialPintrestUrl.Equals(input.SocialPintrestUrl)) + ) && + ( + this.SocialTripAdvisorUrl == input.SocialTripAdvisorUrl || + (this.SocialTripAdvisorUrl != null && + this.SocialTripAdvisorUrl.Equals(input.SocialTripAdvisorUrl)) + ) && + ( + this.SocialGooglePlusUrl == input.SocialGooglePlusUrl || + (this.SocialGooglePlusUrl != null && + this.SocialGooglePlusUrl.Equals(input.SocialGooglePlusUrl)) + ) && + ( + this.SocialFourSquareUrl == input.SocialFourSquareUrl || + (this.SocialFourSquareUrl != null && + this.SocialFourSquareUrl.Equals(input.SocialFourSquareUrl)) + ) && + ( + this.SocialYelpUrl == input.SocialYelpUrl || + (this.SocialYelpUrl != null && + this.SocialYelpUrl.Equals(input.SocialYelpUrl)) + ) && + ( + this.WebsiteType == input.WebsiteType || + (this.WebsiteType != null && + this.WebsiteType.Equals(input.WebsiteType)) + ) && + ( + this.ExternalOrderingPageUrl == input.ExternalOrderingPageUrl || + (this.ExternalOrderingPageUrl != null && + this.ExternalOrderingPageUrl.Equals(input.ExternalOrderingPageUrl)) + ) && + ( + this.PanaceaEnabled == input.PanaceaEnabled || + (this.PanaceaEnabled != null && + this.PanaceaEnabled.Equals(input.PanaceaEnabled)) + ) && + ( + this.CookieConsentPromptEnabled == input.CookieConsentPromptEnabled || + (this.CookieConsentPromptEnabled != null && + this.CookieConsentPromptEnabled.Equals(input.CookieConsentPromptEnabled)) + ) && + ( + this.PanaceaVanityUrl == input.PanaceaVanityUrl || + (this.PanaceaVanityUrl != null && + this.PanaceaVanityUrl.Equals(input.PanaceaVanityUrl)) + ) && + ( + this.CountryId == input.CountryId || + (this.CountryId != null && + this.CountryId.Equals(input.CountryId)) + ) && + ( + this.ReferralUserId == input.ReferralUserId || + (this.ReferralUserId != null && + this.ReferralUserId.Equals(input.ReferralUserId)) + ) && + ( + this.ReferralCampaignId == input.ReferralCampaignId || + (this.ReferralCampaignId != null && + this.ReferralCampaignId.Equals(input.ReferralCampaignId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.WhiteLabelLanguages != null) + hashCode = hashCode * 59 + this.WhiteLabelLanguages.GetHashCode(); + if (this.WhiteLabelAssets != null) + hashCode = hashCode * 59 + this.WhiteLabelAssets.GetHashCode(); + if (this.ColorScheme != null) + hashCode = hashCode * 59 + this.ColorScheme.GetHashCode(); + if (this.WhiteLabelConfigId != null) + hashCode = hashCode * 59 + this.WhiteLabelConfigId.GetHashCode(); + if (this.WhiteLabelId != null) + hashCode = hashCode * 59 + this.WhiteLabelId.GetHashCode(); + if (this.WhiteLabelName != null) + hashCode = hashCode * 59 + this.WhiteLabelName.GetHashCode(); + if (this.AppNameId != null) + hashCode = hashCode * 59 + this.AppNameId.GetHashCode(); + if (this.OrgId != null) + hashCode = hashCode * 59 + this.OrgId.GetHashCode(); + if (this.SmsRestaurantName != null) + hashCode = hashCode * 59 + this.SmsRestaurantName.GetHashCode(); + if (this.DeepLinkUrlScheme != null) + hashCode = hashCode * 59 + this.DeepLinkUrlScheme.GetHashCode(); + if (this.HostName != null) + hashCode = hashCode * 59 + this.HostName.GetHashCode(); + if (this.NexmoSupportSmsNumber != null) + hashCode = hashCode * 59 + this.NexmoSupportSmsNumber.GetHashCode(); + if (this.TwilioSupportSmsNumber != null) + hashCode = hashCode * 59 + this.TwilioSupportSmsNumber.GetHashCode(); + if (this.MixpanelToken != null) + hashCode = hashCode * 59 + this.MixpanelToken.GetHashCode(); + if (this.IntercomAppId != null) + hashCode = hashCode * 59 + this.IntercomAppId.GetHashCode(); + if (this.ShareMessageEmailSubject != null) + hashCode = hashCode * 59 + this.ShareMessageEmailSubject.GetHashCode(); + if (this.ShareMessageEmailMessage != null) + hashCode = hashCode * 59 + this.ShareMessageEmailMessage.GetHashCode(); + if (this.ShareMessageSmsMessage != null) + hashCode = hashCode * 59 + this.ShareMessageSmsMessage.GetHashCode(); + if (this.ShareMessageWhatsAppMessage != null) + hashCode = hashCode * 59 + this.ShareMessageWhatsAppMessage.GetHashCode(); + if (this.ShareMessageFacebookMessage != null) + hashCode = hashCode * 59 + this.ShareMessageFacebookMessage.GetHashCode(); + if (this.ShareMessageTwitterMessage != null) + hashCode = hashCode * 59 + this.ShareMessageTwitterMessage.GetHashCode(); + if (this.ShareMessageGenericMessage != null) + hashCode = hashCode * 59 + this.ShareMessageGenericMessage.GetHashCode(); + if (this.DisplayDeliveryRestaurantListScreen != null) + hashCode = hashCode * 59 + this.DisplayDeliveryRestaurantListScreen.GetHashCode(); + if (this.ContactFormType != null) + hashCode = hashCode * 59 + this.ContactFormType.GetHashCode(); + if (this.ContactPhoneNumber != null) + hashCode = hashCode * 59 + this.ContactPhoneNumber.GetHashCode(); + if (this.DisplayBumpSideMenuItem != null) + hashCode = hashCode * 59 + this.DisplayBumpSideMenuItem.GetHashCode(); + if (this.DisplayFreeCokeSideMenuItem != null) + hashCode = hashCode * 59 + this.DisplayFreeCokeSideMenuItem.GetHashCode(); + if (this.AppStoreUrl != null) + hashCode = hashCode * 59 + this.AppStoreUrl.GetHashCode(); + if (this.DeliveryEnabled != null) + hashCode = hashCode * 59 + this.DeliveryEnabled.GetHashCode(); + if (this.PickupEnabled != null) + hashCode = hashCode * 59 + this.PickupEnabled.GetHashCode(); + if (this.DisplayPickupRestaurantListScreen != null) + hashCode = hashCode * 59 + this.DisplayPickupRestaurantListScreen.GetHashCode(); + if (this.DisplayCuisineTypeListAndRestaurantSearchBar != null) + hashCode = hashCode * 59 + this.DisplayCuisineTypeListAndRestaurantSearchBar.GetHashCode(); + if (this.DisplayUserRestaurantRatings != null) + hashCode = hashCode * 59 + this.DisplayUserRestaurantRatings.GetHashCode(); + if (this.ReadyToPublishWeb != null) + hashCode = hashCode * 59 + this.ReadyToPublishWeb.GetHashCode(); + if (this.ReadyToPublishIos != null) + hashCode = hashCode * 59 + this.ReadyToPublishIos.GetHashCode(); + if (this.ReadyToPublishAndroid != null) + hashCode = hashCode * 59 + this.ReadyToPublishAndroid.GetHashCode(); + if (this.DisplayFooterLinksToOtherSites != null) + hashCode = hashCode * 59 + this.DisplayFooterLinksToOtherSites.GetHashCode(); + if (this.DisplayOnlineOrderingMenu != null) + hashCode = hashCode * 59 + this.DisplayOnlineOrderingMenu.GetHashCode(); + if (this.HideAppConfigFromAdminList != null) + hashCode = hashCode * 59 + this.HideAppConfigFromAdminList.GetHashCode(); + if (this.ComplianceType != null) + hashCode = hashCode * 59 + this.ComplianceType.GetHashCode(); + if (this.IsMenuMigratedToRms != null) + hashCode = hashCode * 59 + this.IsMenuMigratedToRms.GetHashCode(); + if (this.MapBoundryMaxLongitude != null) + hashCode = hashCode * 59 + this.MapBoundryMaxLongitude.GetHashCode(); + if (this.MapBoundryMinLongitude != null) + hashCode = hashCode * 59 + this.MapBoundryMinLongitude.GetHashCode(); + if (this.MapBoundryMaxLatitude != null) + hashCode = hashCode * 59 + this.MapBoundryMaxLatitude.GetHashCode(); + if (this.MapBoundryMinLatitude != null) + hashCode = hashCode * 59 + this.MapBoundryMinLatitude.GetHashCode(); + if (this.AppStoreAppleId != null) + hashCode = hashCode * 59 + this.AppStoreAppleId.GetHashCode(); + if (this.AppStoreToken != null) + hashCode = hashCode * 59 + this.AppStoreToken.GetHashCode(); + if (this.WebsiteDisplayStaticMenuPage != null) + hashCode = hashCode * 59 + this.WebsiteDisplayStaticMenuPage.GetHashCode(); + if (this.IsEmbed != null) + hashCode = hashCode * 59 + this.IsEmbed.GetHashCode(); + if (this.DisplayTipOptionToUsersByDefault != null) + hashCode = hashCode * 59 + this.DisplayTipOptionToUsersByDefault.GetHashCode(); + if (this.EmailRequestMode != null) + hashCode = hashCode * 59 + this.EmailRequestMode.GetHashCode(); + if (this.AddressEntryType != null) + hashCode = hashCode * 59 + this.AddressEntryType.GetHashCode(); + if (this.AddressLayout != null) + hashCode = hashCode * 59 + this.AddressLayout.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.MapCenterLatitude != null) + hashCode = hashCode * 59 + this.MapCenterLatitude.GetHashCode(); + if (this.MapCenterLongitude != null) + hashCode = hashCode * 59 + this.MapCenterLongitude.GetHashCode(); + if (this.IntercomTokenIos != null) + hashCode = hashCode * 59 + this.IntercomTokenIos.GetHashCode(); + if (this.IntercomTokenAndroid != null) + hashCode = hashCode * 59 + this.IntercomTokenAndroid.GetHashCode(); + if (this.GoogleAnalyticsTokensCsv != null) + hashCode = hashCode * 59 + this.GoogleAnalyticsTokensCsv.GetHashCode(); + if (this.FacebookTokensCsv != null) + hashCode = hashCode * 59 + this.FacebookTokensCsv.GetHashCode(); + if (this.ShareMessageGenericUrl != null) + hashCode = hashCode * 59 + this.ShareMessageGenericUrl.GetHashCode(); + if (this.PrivateSupportEmailAddress != null) + hashCode = hashCode * 59 + this.PrivateSupportEmailAddress.GetHashCode(); + if (this.AppStoreId != null) + hashCode = hashCode * 59 + this.AppStoreId.GetHashCode(); + if (this.PlayConsoleAccount != null) + hashCode = hashCode * 59 + this.PlayConsoleAccount.GetHashCode(); + if (this.ApnCertificateValidAfter != null) + hashCode = hashCode * 59 + this.ApnCertificateValidAfter.GetHashCode(); + if (this.ApnCertificateValidBefore != null) + hashCode = hashCode * 59 + this.ApnCertificateValidBefore.GetHashCode(); + if (this.DineInEnabled != null) + hashCode = hashCode * 59 + this.DineInEnabled.GetHashCode(); + if (this.AppFont != null) + hashCode = hashCode * 59 + this.AppFont.GetHashCode(); + if (this.WhiteLabelColorSchemeId != null) + hashCode = hashCode * 59 + this.WhiteLabelColorSchemeId.GetHashCode(); + if (this.WhiteLabelImagesId != null) + hashCode = hashCode * 59 + this.WhiteLabelImagesId.GetHashCode(); + if (this.AppStoreCopyright != null) + hashCode = hashCode * 59 + this.AppStoreCopyright.GetHashCode(); + if (this.AppStoreDescription != null) + hashCode = hashCode * 59 + this.AppStoreDescription.GetHashCode(); + if (this.AppStoreShortDescription != null) + hashCode = hashCode * 59 + this.AppStoreShortDescription.GetHashCode(); + if (this.AppStoreKeywords != null) + hashCode = hashCode * 59 + this.AppStoreKeywords.GetHashCode(); + if (this.AppStoreMarketingUrl != null) + hashCode = hashCode * 59 + this.AppStoreMarketingUrl.GetHashCode(); + if (this.AppStoreName != null) + hashCode = hashCode * 59 + this.AppStoreName.GetHashCode(); + if (this.AppStorePrivacyUrl != null) + hashCode = hashCode * 59 + this.AppStorePrivacyUrl.GetHashCode(); + if (this.AppStoreSupportUrl != null) + hashCode = hashCode * 59 + this.AppStoreSupportUrl.GetHashCode(); + if (this.AppStoreReleaseNotes != null) + hashCode = hashCode * 59 + this.AppStoreReleaseNotes.GetHashCode(); + if (this.AppStoreIconUrl != null) + hashCode = hashCode * 59 + this.AppStoreIconUrl.GetHashCode(); + if (this.AppStoreIconThumbnail100Url != null) + hashCode = hashCode * 59 + this.AppStoreIconThumbnail100Url.GetHashCode(); + if (this.TransparentLogoUrl != null) + hashCode = hashCode * 59 + this.TransparentLogoUrl.GetHashCode(); + if (this.LogoImageName != null) + hashCode = hashCode * 59 + this.LogoImageName.GetHashCode(); + if (this.KioskNameScreenImage != null) + hashCode = hashCode * 59 + this.KioskNameScreenImage.GetHashCode(); + if (this.WebToAppRedirect != null) + hashCode = hashCode * 59 + this.WebToAppRedirect.GetHashCode(); + if (this.FeaturesCsv != null) + hashCode = hashCode * 59 + this.FeaturesCsv.GetHashCode(); + if (this.AppStorePassword != null) + hashCode = hashCode * 59 + this.AppStorePassword.GetHashCode(); + if (this.AppStoreTeamId != null) + hashCode = hashCode * 59 + this.AppStoreTeamId.GetHashCode(); + if (this.AppStoreAppGroup != null) + hashCode = hashCode * 59 + this.AppStoreAppGroup.GetHashCode(); + if (this.AppStoreSigningIdentity != null) + hashCode = hashCode * 59 + this.AppStoreSigningIdentity.GetHashCode(); + if (this.AppStoreItcTeamId != null) + hashCode = hashCode * 59 + this.AppStoreItcTeamId.GetHashCode(); + if (this.HeadHtml != null) + hashCode = hashCode * 59 + this.HeadHtml.GetHashCode(); + if (this.SocialTwitterUrl != null) + hashCode = hashCode * 59 + this.SocialTwitterUrl.GetHashCode(); + if (this.SocialFacebookUrl != null) + hashCode = hashCode * 59 + this.SocialFacebookUrl.GetHashCode(); + if (this.SocialInstagramUrl != null) + hashCode = hashCode * 59 + this.SocialInstagramUrl.GetHashCode(); + if (this.SocialPintrestUrl != null) + hashCode = hashCode * 59 + this.SocialPintrestUrl.GetHashCode(); + if (this.SocialTripAdvisorUrl != null) + hashCode = hashCode * 59 + this.SocialTripAdvisorUrl.GetHashCode(); + if (this.SocialGooglePlusUrl != null) + hashCode = hashCode * 59 + this.SocialGooglePlusUrl.GetHashCode(); + if (this.SocialFourSquareUrl != null) + hashCode = hashCode * 59 + this.SocialFourSquareUrl.GetHashCode(); + if (this.SocialYelpUrl != null) + hashCode = hashCode * 59 + this.SocialYelpUrl.GetHashCode(); + if (this.WebsiteType != null) + hashCode = hashCode * 59 + this.WebsiteType.GetHashCode(); + if (this.ExternalOrderingPageUrl != null) + hashCode = hashCode * 59 + this.ExternalOrderingPageUrl.GetHashCode(); + if (this.PanaceaEnabled != null) + hashCode = hashCode * 59 + this.PanaceaEnabled.GetHashCode(); + if (this.CookieConsentPromptEnabled != null) + hashCode = hashCode * 59 + this.CookieConsentPromptEnabled.GetHashCode(); + if (this.PanaceaVanityUrl != null) + hashCode = hashCode * 59 + this.PanaceaVanityUrl.GetHashCode(); + if (this.CountryId != null) + hashCode = hashCode * 59 + this.CountryId.GetHashCode(); + if (this.ReferralUserId != null) + hashCode = hashCode * 59 + this.ReferralUserId.GetHashCode(); + if (this.ReferralCampaignId != null) + hashCode = hashCode * 59 + this.ReferralCampaignId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Model/WhiteLabelLanguageModel.cs b/src/Flipdish/Model/WhiteLabelLanguageModel.cs new file mode 100644 index 00000000..1d853077 --- /dev/null +++ b/src/Flipdish/Model/WhiteLabelLanguageModel.cs @@ -0,0 +1,113 @@ +/* + * Flipdish Open API v1.0 + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.0 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; + +namespace Flipdish.Model +{ + /// + /// White label language model + /// + [DataContract] + public partial class WhiteLabelLanguageModel : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// Language ID. + public WhiteLabelLanguageModel(string languageId = default(string)) + { + this.LanguageId = languageId; + } + + /// + /// Language ID + /// + /// Language ID + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WhiteLabelLanguageModel {\n"); + sb.Append(" LanguageId: ").Append(LanguageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WhiteLabelLanguageModel); + } + + /// + /// Returns true if WhiteLabelLanguageModel instances are equal + /// + /// Instance of WhiteLabelLanguageModel to be compared + /// Boolean + public bool Equals(WhiteLabelLanguageModel input) + { + if (input == null) + return false; + + return + ( + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); + return hashCode; + } + } + } + +} diff --git a/src/Flipdish/Properties/AssemblyInfo.cs b/src/Flipdish/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..8409b783 --- /dev/null +++ b/src/Flipdish/Properties/AssemblyInfo.cs @@ -0,0 +1,32 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Flipdish Client C#")] +[assembly: AssemblyDescription("Client API C# library")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Flipdish")] +[assembly: AssemblyProduct("Flipdish Library")] +[assembly: AssemblyCopyright("No Copyright")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] diff --git a/src/Flipdish/project.json b/src/Flipdish/project.json new file mode 100644 index 00000000..d5d3017c --- /dev/null +++ b/src/Flipdish/project.json @@ -0,0 +1,12 @@ +{ + "supports": {}, + "dependencies": { + "FubarCoder.RestSharp.Portable.Core": "4.0.7", + "FubarCoder.RestSharp.Portable.HttpClient": "4.0.7", + "Newtonsoft.Json": "10.0.3", + "JsonSubTypes": "1.2.0" + }, + "frameworks": { + "netstandard1.3": {} + } +} \ No newline at end of file